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

Native JSON support for response serializing/deserializing long int (BigInt) #10

Merged
merged 6 commits into from
Feb 21, 2024

Conversation

Rendez
Copy link
Collaborator

@Rendez Rendez commented Feb 20, 2024

fixes #6
closes qdrant/qdrant-web-ui#87

Implement TC39's stage 3 proposal JSON parse with source to serialize/deserialize big numeric values:

Learn more: https://2ality.com/2022/11/json-parse-with-source.html

Works in Chrome >= 112 or Node >= 20 with harmony flag: --harmony-json-parse-with-source. That means, if BigInt is required, then it should be run in a supporting JS engine. Adoption will happen fast (months), so it's not a blocker if it's well documented.

TODO

  • More/better test coverage (Jest running must allow node harmony flag, which it does NOT right now)
  • qdrant-js REST from OAS uint64 need to be a union with bigint types.
  • Pin version in qdrant-js to 1.2.4 when released.

@Rendez Rendez added the enhancement New feature or request label Feb 20, 2024
@Rendez Rendez force-pushed the feat/merino/json-parse-with-source-big-int branch from ddb9eff to d22bd94 Compare February 20, 2024 20:47
@Rendez Rendez force-pushed the feat/merino/json-parse-with-source-big-int branch from 868af22 to 9246857 Compare February 21, 2024 11:15
@Rendez Rendez force-pushed the feat/merino/json-parse-with-source-big-int branch from c6b26c5 to be8e78c Compare February 21, 2024 12:26
@Rendez Rendez merged commit 1b194f2 into main Feb 21, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

UI Point Long type precision loss BigInteger support
2 participants