Skip to content

fix(kitsu-core): allow longer prototype chain on serialise#447

Merged
wopian merged 1 commit intowopian:masterfrom
mgebeily:allow-prototype-chain
Jul 16, 2020
Merged

fix(kitsu-core): allow longer prototype chain on serialise#447
wopian merged 1 commit intowopian:masterfrom
mgebeily:allow-prototype-chain

Conversation

@mgebeily
Copy link
Copy Markdown
Contributor

Re-opening due to a premature merge!

Thanks for the awesome library.

I'm currently using it in a TypeScript project with instantiated objects of a different type (i.e., const user = new User()). The validation that checks the object's prototype parent fails unless I clone the object (by passing in something like { ...user }). I changed the validation to allow objects further down the prototype chain.

Let me know if I'm missing the justification. Thanks again for your time.

@wopian wopian merged commit 7826683 into wopian:master Jul 16, 2020
wopian pushed a commit that referenced this pull request Jul 16, 2020
@wopian
Copy link
Copy Markdown
Owner

wopian commented Jul 16, 2020

Thank you for fixing this for TypeScript consumers. 👍

Released in 10.0.0-alpha.2 and back-ported as 9.1.12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants