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

Support serialization of typed arrays #155

Merged
merged 8 commits into from
Oct 18, 2021
Merged

Support serialization of typed arrays #155

merged 8 commits into from
Oct 18, 2021

Conversation

tomhooijenga
Copy link
Contributor

This fixes #144.

Copy link
Collaborator

@Skn0tt Skn0tt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @tomhooijenga! Thank you for creating this PR, I like it a lot! I have two minor nits. I think you didn't click the "allow maintainers to push changes" checkbox, so I attached two (very minor) commits I'd love to see added :)
commits.zip

@tomhooijenga
Copy link
Contributor Author

Hi @Skn0tt, I've added your commits. The checkbox seems to be checked... I've turned it off and on again, maybe that helps.

@@ -193,6 +201,35 @@ const symbolRule = compositeTransformation(
}
);

const constructorToName = Object.fromEntries(
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Object.fromEntries is node 12 and up but the tests also run 10. Does SuperJSON still actively support Node 10?

| 'regexp'
| 'Date'
| 'Error'
| 'typed-array';
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this can be removed entirely because it is defined in CompositeTypeAnnotation

@Skn0tt Skn0tt merged commit 824a9b3 into flightcontrolhq:main Oct 18, 2021
@Skn0tt
Copy link
Collaborator

Skn0tt commented Oct 18, 2021

@allcontributors please add @tomhooijenga for bug, code

@allcontributors
Copy link
Contributor

@Skn0tt

I've put up a pull request to add @tomhooijenga! 🎉

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.

Buffer / Uint8array support?
2 participants