Repository navigation
Remove the protocol check's unused overlay branch and the kernel bundler's old-runtime file check - #5419
Merged
Conversation
…r's old-runtime check `diff` in build/browser/protocol.mjs still handled `side.overlay`, a mode for schemas that narrow a record declared elsewhere. Its last caller went with #4551; SENT, OLDER_READS and READ, the only sides `protocolBreaks` passes, carry no overlay. The branch, its comment and `nested`'s fourth parameter go, and `baselineSchemas`' doc now names the widget declaration schema it drops alongside the served state and the x-state verb. `kernelOutputs` stat-ed `runtime/annotation-overlay/check-api.js` before compiling it, for comparison arms whose runtime predates that file. Its one caller, `leaf-dev`'s distribution `prepare`, compiles this checkout, which always has it, and AGENTS.md ("Stage") rules out code for earlier runtimes. The kernel now compiles its diagnostic entries unconditionally, and the test that built a kernel without the file is removed with it: no caller builds one. No behavior changes for any current caller.
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.
Two pieces of build code handle cases no caller produces any more. This PR removes them. Nothing any current caller sees changes.
build/browser/protocol.mjs):diffkept a branch forside.overlay, a mode for schemas that narrow a record declared elsewhere. Compose each page's layer from the Leaf reading it, so only the log and records bump the protocol #4551 removed its last caller (the...SENT, overlay: kinds[kind].recordside), andprotocolBreaksnow passes onlySENT,OLDER_READSandREAD, none of which has an overlay. The branch, its doc sentence andnested's fourth parameter are removed.baselineSchemas' doc now also names the widget declaration schema, which it drops along with the served state and the x-state verb.build/runtime-bundle.mjs): before compilingruntime/annotation-overlay/check-api.js,kernelOutputschecked that the file exists, so that comparison arms whose runtime predates it would still build. Its only caller,leaf-dev's distributionprepare, compiles this checkout's own payload, which always has the file. AGENTS.md ("Stage") rules out code kept for earlier runtimes. The kernel now compiles its diagnostic entries unconditionally. I also removed the test case that built a kernel from a layer missing the file, since no caller builds one. A site's layer is still bundled fromruntimeEntriesalone (worker/bundle-runtime.mjs,bundleLayer), as before.node --test build/runtime-bundle.test.mjs build/browser/protocol.test.mjspasses (7 tests). ESLint and Prettier aren't installed in this sandbox, so I'm leaving the lint check to CI.