Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeScript conversion #117

Merged
merged 11 commits into from
Feb 4, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
* #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))`.
* 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 +14,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