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

Use parser's API support for BigInt #45

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

haoadoreorange
Copy link

@haoadoreorange haoadoreorange commented Dec 12, 2021

Inspired by #37, I forked json-bigint and expose the parser's API through a similar mechanism, you can find it here. It now supports a schema-like object wihich allow to do what #37 did during parsing phase.

This PR use that package. It allows to not bothering with type definitions, and also avoid defining normalizer for unecessary property.

Performance-wise it's theoretically a little bit faster, since we're not re-iterating the object.

Signed-off-by: Quoc-Hao Tran [email protected]

- Use parser's API support instead of normalizing bigint/number ourself.

Signed-off-by: Quoc-Hao Tran <[email protected]>
@haoadoreorange haoadoreorange force-pushed the theia-master branch 3 times, most recently from 9c79588 to 9df9898 Compare December 15, 2021 23:55
Signed-off-by: Quoc-Hao Tran <[email protected]>
Copy link
Contributor

@marco-miller marco-miller left a comment

Choose a reason for hiding this comment

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

This aging PR would require a rebase on current latest master branch.

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.

None yet

2 participants