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 msgpack fork that supports bigints. #229

Merged
merged 2 commits into from
Oct 13, 2020
Merged

Conversation

EvanJRichard
Copy link
Contributor

Summary

See #130. This PR proposes to change the js-sdk to use a fork that supports BigInt<->uint64 encode/decode.

See also

Resolves #130

@EvanJRichard EvanJRichard self-assigned this Oct 13, 2020
Copy link
Member

@jasonpaulos jasonpaulos left a comment

Choose a reason for hiding this comment

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

@EvanJRichard could you add a small test to tests/2.Encoding.js that verifies encoding/decoding a BigInt works as expected?

Pending that, LGTM.

@EvanJRichard EvanJRichard merged commit 1a31f97 into develop Oct 13, 2020
@EvanJRichard EvanJRichard deleted the evan/new_msgpack branch October 13, 2020 19:05
jasonpaulos pushed a commit that referenced this pull request Oct 14, 2020
A bigint is used only when the decoded number cannot fit in to a Number.

Resolves: #130
@mxmauro
Copy link

mxmauro commented Oct 19, 2020

Sorry @EvanJRichard my mistake, now found the correct code but still couldn't find the repo on GitHub

@jasonpaulos
Copy link
Member

@mxmauro the repo for algo-msgpack-with-bigint is https://github.com/EvanJRichard/msgpack-javascript.

@EvanJRichard, we should probably update our fork's package.json to point to its repo.

@jasonpaulos jasonpaulos mentioned this pull request Nov 3, 2020
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.

JS max integer values
3 participants