Skip to content

Bump msgpackr to 2.0.4: two-byte over-cap record decode fix (5.1) - #1180

Merged
kriszyp merged 1 commit into
mainfrom
kris/msgpackr-2.0.4-main
Jun 9, 2026
Merged

Bump msgpackr to 2.0.4: two-byte over-cap record decode fix (5.1)#1180
kriszyp merged 1 commit into
mainfrom
kris/msgpackr-2.0.4-main

Conversation

@kriszyp

@kriszyp kriszyp commented Jun 9, 2026

Copy link
Copy Markdown
Member

Summary

Bumps msgpackr 2.0.1 → 2.0.4, the v2 counterpart of the v5.0 fix (#1179). msgpackr ≤2.0.3 mis-read self-contained two-byte over-cap record definitions (recordDefinition used a second-byte reader that consumed the first value byte as a phantom high byte → Record id is not defined for N), leaving high-cardinality records undecodable. Fixed upstream in kriszyp/msgpackr#190 — read-path only, so it fixes decoding and recovers already-written data without an on-disk format change.

Scope on main/5.1

The typed path goes through structon; the classic two-byte path is reached via the randomAccessFields=false opt-out (#1152) / toJSON fallback, so this is a latent-correctness fix for the unreleased 5.1 line (lower urgency than the v5.0/v5.0.30 patch, where it's actively hit + recovers CDI data).

Verification

Notes

🤖 Generated by Claude (Opus 4.7).

v2 counterpart of the v5.0 msgpackr 1.12.1 bump. msgpackr's two-byte record
path mis-read self-contained over-cap record definitions (recordDefinition went
through a second-byte reader that consumed the first value byte as a phantom
high byte → "Record id is not defined for N"), making high-cardinality records
undecodable. Fixed upstream in msgpackr 2.0.4 (kriszyp/msgpackr#190), read-path
only, so the bump fixes the decode and recovers any already-written data without
changing the on-disk format.

On main the typed path goes through structon; the classic two-byte path is
reached via the randomAccessFields=false opt-out / toJSON fallback, so this is a
latent-correctness fix for 5.1. Encoder regression coverage lives upstream
(msgpackr#190) and on the v5.0 line (#1179).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@kriszyp
kriszyp requested review from cb1kenobi and heskew June 9, 2026 02:43
@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addedmsgpackr@​2.0.410010010095100

View full report

@claude

claude Bot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Reviewed; no blockers found.

@kriszyp
kriszyp marked this pull request as ready for review June 9, 2026 02:57
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@kriszyp
kriszyp merged commit 3a1b084 into main Jun 9, 2026
69 of 73 checks passed
@kriszyp
kriszyp deleted the kris/msgpackr-2.0.4-main branch June 9, 2026 02:57
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