Skip to content

docs: show how to preserve 64-bit map keys exactly - #301

Draft
liuyinchu wants to merge 1 commit into
msgpack:mainfrom
liuyinchu:oss20/docs-exact-64-bit-map-keys
Draft

liuyinchu wants to merge 1 commit into
msgpack:mainfrom
liuyinchu:oss20/docs-exact-64-bit-map-keys

Conversation

@liuyinchu

Copy link
Copy Markdown

Refs #226. Documents how to combine useBigInt64 with mapKeyConverter so a numeric MessagePack key that cannot be represented exactly as a JavaScript number can still become an exact object key. The default decoder behavior is unchanged.

The executable README fixture showed the default precision loss and verified the exact decimal key with both options. All 328 tests, lint, and TypeScript checks passed locally. The fixture uses equivalent standardized bytes, not a PHP runtime. This change was prepared with AI assistance.

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.

1 participant