Skip to content

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

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

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

Conversation

@mgebeily
Copy link
Copy Markdown
Contributor

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 1292ba7 into wopian:master Jul 16, 2020
wopian added a commit that referenced this pull request Jul 16, 2020
@wopian wopian changed the title feat(kitsu-core): allow longer prototype chain on serialise fix(kitsu-core): allow longer prototype chain on serialise Jul 16, 2020
@wopian
Copy link
Copy Markdown
Owner

wopian commented Jul 16, 2020

Can you recreate the PR please? I accidentally hit merge too soon and can't merge a "merged" PR again 😢

https://github.com/mgebeily/kitsu/pull/new/allow-prototype-chain

@mgebeily
Copy link
Copy Markdown
Contributor Author

Can you recreate the PR please? I accidentally hit merge too soon and can't merge a "merged" PR again cry

https://github.com/mgebeily/kitsu/pull/new/allow-prototype-chain

Sure thing! Thanks for getting to it so quickly: #447

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