Skip to content

Commit

Permalink
TypeScript conversion (#117)
Browse files Browse the repository at this point in the history
Convert to TypeScript

var -> const,let

Updated CHANGELOG.md

See Changelog for 2 minor breaking changes.
  • Loading branch information
NaridaL committed Feb 4, 2020
1 parent ecddf42 commit d1fc85a
Show file tree
Hide file tree
Showing 45 changed files with 3,459 additions and 3,644 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ coverage
*.log
.DS_Store
test/typescript/ts.js
test/babel/babel-compiled.js
test/babel/babel-compiled.js
.nyc_output
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
language: node_js
script: npm run coverage
script: yarn build-test && yarn test && git diff --exit-code
after_success:
- cat ./coverage/lcov.info|./node_modules/coveralls/bin/coveralls.js
- cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
node_js:
- "10"
- "10"
12 changes: 11 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
* #117 TypeScript conversion. Type definitions should now match behavior exactly. By @NaridaL
* **BREAKING CHANGE**: `@serializeAll("*": ModelSchema)` is no longer valid. Instead you should pass
`@serializeAll("*": object(ModelSchema))`.
* **BREAKING CHANGE**: `{"*": object(...)}` and `{"x": object(...)}` now behave the same when
deserializing `{"x": "str_not_object"}` (result: `{x: null}`). Previously the `"*"` schema would
have returned `{}`.
* You can pass a `pattern` argument as `AdditionalPropArgs` instead of having to manually assign it
to a PropSchema: `@serializeAll("*": list(primitive(), { pattern: /^_.*/ }))`. Note this only make
sense together with the `"*"` property.

# 1.5.4
* #113: Fix interpolation problem with IE11 by @danfma

Expand All @@ -7,7 +17,7 @@
* #99: Allow `serialize`-ing plain objects by specifying constructor by @pyrogenic

# 1.5.2
* Fixed potential memory leak, fixes #95 through #100 by @svennergr
* Fixed potential memory leak, fixes #95 through #100 by @svennergr

# 1.5.1
* Fixed make beforeDeserialize, afterDeserialize optional, see #94 by zeevl
Expand Down
Loading

0 comments on commit d1fc85a

Please sign in to comment.