[codex] align state-protocol conformance and prep 0.1.5 release#6
Merged
[codex] align state-protocol conformance and prep 0.1.5 release#6
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR finishes the state-protocol conformance work that started with the
oldValuevsold_valuefix and prepares the next Streams release.What changed
state-protocolstreams so only valid change or control messages are acceptedold_valueas the previous-value field and stop relying on legacyoldValuesnapshot-start,snapshot-end, andresetcontrol messages while ensuring they do not generate touch invalidationsold_valueregression@durable-streams/state@0.2.5npm packtobun pm packso release validation works with the repo's Bun package-manager pin0.1.5Root cause
state-protocolstreams were only loosely validated and Prisma WAL fixtures still used a camelCaseoldValuefield. That left the runtime short of the published Durable Streams State Protocol and forced downstream consumers to special-case Prisma WAL payloads.Validation
bun run typecheckbun run check:result-policybun testbun test test/conformance.test.tsbun run test:conformancebun run test:conformance:localbun run build:npm-packagesbun run test:node-local-packagebun run test:bun-local-packagebun run test:bun-server-package