Skip to content

feat: add pack type and family hints - #5

Open
enochgroot wants to merge 3 commits into
feat/bigint-64bitfrom
feat/pack-type-hints
Open

enochgroot wants to merge 3 commits into
feat/bigint-64bitfrom
feat/pack-type-hints

Conversation

@enochgroot

Copy link
Copy Markdown
Owner

Summary

Stacked on feat/bigint-64bit so this PR is pack-hints only.

Test Plan

  • node-gyp rebuild on Node 20 linux/arm64
  • npm test — 170 pass, 0 fail (33 pack-hints cases)

enochgroot and others added 3 commits September 19, 2026 01:43
Integers outside Number.MAX_SAFE_INTEGER unpack as bigint instead of a
rounded number. Values that fit stay number regardless of wire width.
pack() accepts bigint in the int64/uint64 range and throws for anything
larger.

Closes msgpack#37.
- pack(value, { type, family, interpret }) forces MessagePack wire types
- two-arg last-object detection; pack(1, 2) still packs an array
- Host objects, null type, and related pack-options cases
- [[noreturn]] on ThrowCannotPackAs so gcovr throw edges match
- GCOVR_EXCL only on unreachable hint defaults and empty info[1]
- Native coverage 95.2% lines / 95.4% branches
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