release: MessagePack wire contract and HTTP content negotiation #83
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
qa:preview
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
quatrain/core!83
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "claude-bot/release/msgpack-wire-contract"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Release
Promotes
developtomainso the packages below are published with thelatestdist-tag.Content
Single change since the previous release: #82, the MessagePack wire contract.
@quatrain/core(1.2.22):normalizeForMsgPack(value, options)enforces the MessagePack representation on any value:toMsgPack()/toJSON()applied, everyrefkey emitted aspathat any depth,nullvalues omitted.refAsPath: falsekeepsref; the option is handed down totoMsgPack()onAbstractObjectandDataObject.@quatrain/types(1.2.20):MsgPackOptionstype;ObjectUri.toMsgPack(options);ObjectUri.toMsgPackReference()no longer overwrites an existingpathkey.@quatrain/http(1.0.6):msgPackContentNegotiation(options), a framework-agnostic middleware that decodes MessagePack request bodies and encodes responses on demand.Impact
toMsgPack()calls without argument behave as before.@quatrain/httpgains two runtime dependencies:@msgpack/msgpackand@quatrain/core.Why now
The
betaversions cannot be consumed alongside the other published packages: their^1.2.21ranges on@quatrain/coreexclude a1.2.22prerelease, so an application depending on both installs several copies of@quatrain/core. Publishing the final versions restores a single copy.Validation
develop(runs 830 and 831), beta versions published from it.main, 0 behind.After merge
Merge
mainback intodevelop(release commit and hashes), as for the previous releases.The `ref` to `path` rule stays on by default and can now be turned off per application: normalizeForMsgPack(value, { refAsPath: false }). The option is handed down to toMsgPack() on ObjectUri, AbstractObject and DataObject, so live objects and already serialized references give the same result. msgPackContentNegotiation() in @quatrain/http becomes a factory taking the same options. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>