This repository was archived by the owner on Jul 10, 2025. It is now read-only.

Description
The TypeScript runtime currently has limited support for integers larger than 2^53-1. bigint
types are used when passing u64
WASM primitives, but when they’re passed as part of a MessagePack-encoded structure, they will always use number
, causing precision to be lost for larger numbers.
Recently a new PR for msgpack-js made it possible to use bigint
with MessagePack as well: msgpack/msgpack-javascript#211
I think it makes sense for us to implement an opt-in option with a similar effect.