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

feat: serialize values implementing toJSON() #139

Merged
merged 1 commit into from
Feb 6, 2023
Merged

Conversation

pi0
Copy link
Member

@pi0 pi0 commented Feb 6, 2023

This PR adds support for setItem with lossy serialization on objects implementing toJSON(). Also throws an explicit error when cannot stringify instead of siltently storing wrong "object Object" strings.

@pi0 pi0 changed the title feat: support serialization with toJSON feat: serialize objects implementing toJSON() Feb 6, 2023
@pi0 pi0 changed the title feat: serialize objects implementing toJSON() feat: serialize values implementing toJSON() Feb 6, 2023
@pi0 pi0 merged commit b62411c into main Feb 6, 2023
@pi0 pi0 deleted the feat/serializable-obj branch February 6, 2023 10:42
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.

1 participant