Repository navigation
feat(client): add generated cache and stream metadata - #109
Merged
Merged
Conversation
Carry route metadata through OpenAPI and AsyncAPI into generated operations, entities, and stream bindings. This covers declared tag renames, multiplexed WebSockets, and WebTransport messages. Add WebSocket and EventSource adapters, decode stream payloads before normalization, and keep mutation cache overrides and invalidation behavior consistent across the three framework bindings.
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
Conventional Commits ValidationPR Title: valid |
This branch was successfully deployed
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.
Generated clients could lose cache behavior at several boundaries. A declared
snake_case tag stopped resolving after field renaming, stream payloads skipped
the generated codec, multiplexed WebSocket operations became duplicate clients,
and WebTransport message metadata never reached the generated stream table.
This change carries route metadata through OpenAPI and AsyncAPI into the client
IR, then emits typed stream bindings for WebSocket, SSE, and WebTransport. The
runtime now adapts open WebSocket and EventSource sessions, decodes entity
frames before normalization, resolves collection tags for every returned
record, and honors per-call mutation clients in React, Vue, and Angular.
The streaming extension also gets a served
/capabilitiestest. It boots thereal dashboard and streaming extensions, then checks that every declared
streaming intent survived contributor registration.
Verification
go test . ./internal/client/... ./internal/router/...GOWORK=off go test ./...fromextensions/streaminggo vet . ./internal/client/... ./internal/router/...GOWORK=off go vet ./...fromextensions/streamingnpm test -- --runandnpm run typecheckinclient-core,client-react,client-vue, andclient-angularnpm run sizeinclient-coregolangci-lint run --new-from-rev=origin/main --timeout=5mGOWORK=off golangci-lint run ./... --new-from-rev=origin/main --timeout=5mmake cidoes not complete in this checkout. Itsfmt-checktarget callsgo fmt -l, which this Go toolchain does not support. Running the wrapper withGOWORK=offalso makescmd/forgeresolve the released Forge module, whoselogger API does not match this checkout. The scoped checks above pass, and both
new-change lint runs report zero issues.