Repository navigation
feat: remove legacy Context.Provider support - #1138
Merged
domgan-oai merged 5 commits intoSep 19, 2026
Merged
Conversation
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
Bugbot Autofix is ON, but it could not run because the branch was deleted or merged before autofix could start.
Reviewed by Cursor Bugbot for commit 9b6da82. Configure here.
domgan-oai
marked this pull request as ready for review
September 18, 2026 23:20
6 of 8 tasks
trueadm
added a commit
that referenced
this pull request
Sep 23, 2026
…h lanes (#1266) Context.Provider (#1138 follow-up): the compiler only rejects <Ctx.Provider> when createContext is in the same module. For an imported context the client failed with "Element type is invalid" and the server with "comp is not a function". Development contexts from octane and octane/server now carry a non-enumerable .Provider getter that throws OCTANE_CONTEXT_PROVIDER with the migration hint. Production bundles are byte-identical. Bench lanes: - lynx-table stage tests resolve bare imports from packages/lynx (the tmpdir copy could not resolve octane/internal/context) and no longer depend on cwd. - ssr-workerd declares octane and @tsrx/core. - conversation-streaming resolves toolchain provenance through packages/octane. - The bundle-reachability harness and the Bun register hook keep the source TypeScript loader for compiled .ts/.tsx output (retained enum), matching Vite. Co-authored-by: Claude Opus 5.5 <[email protected]>
This was referenced Oct 2, 2026
This was referenced Oct 4, 2026
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
Remove the legacy
Context.Provideralias. Code such as<Theme.Provider value={theme}>now receivesOCTANE_CONTEXT_PROVIDERwhen the compiler can identify the Octane context; the supported form is<Theme value={theme}>.Client, server, native, and Lynx factories no longer expose
.Provider, and the public context types no longer declare it. Migrate the bindings, examples, documentation, benchmarks, registry content, and adapted upstream fixtures to the direct context component.Imported direct contexts retain request prefetching and universal rendering support. Registered context identity keeps ordinary components named
Provideropaque, and keyed contexts retain state until their key changes.Validation
Matched-baseline provider-output benchmark against
330bb0878: identical semantic hash and reached-work counters over 128 repeated updates; minified bundle +266 bytes, gzip +75 bytes. Full runtime entry bundles change gzip by +39 bytes (client), +27 bytes (server), and +134 bytes (native). These measurements do not establish latency or heap improvements.Current-head CI passed all 26 jobs at
8123e18c6, including the full Node 24 test shards, React parity lanes, browser integration, typechecking, and publishable package validation. The local root test command selects the core development and production projects.The local full package-pack command reaches its strict TSRX consumer, but a dependency download receives a 403 from the configured registry gateway. Current-head CI passed the complete package-pack validation.
Risk / follow-ups
This is an intentional beta API break with a minor core changeset. Most binding peers add the upcoming 0.3 release to their existing supported ranges. Ink and Drei require the coordinated core release because their shipped native templates use imported direct contexts; integrations using the new internal identity helper also require that release. The source compiler diagnoses statically recognized contexts; context types also reject legacy properties imported from other modules.
Provenance
agent-authored)Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Note
High Risk
Intentional breaking API change to context provisioning across the core runtime, compiler, and the full binding surface; any remaining
.Providerusage outside the migrated tree will fail at compile or runtime.Overview
This PR drops the React 18-style
Context.Provideralias so Octane contexts are only used as direct provider components:<Theme value={theme}>orcreateElement(Theme, { value }, children). The compiler now fails statically recognized.Provideraccess withOCTANE_CONTEXT_PROVIDER, and docs describe the React 19–aligned shape (noConsumereither).The core release is a minor bump with a changeset that patches the
@octanejs/*bindings; theiroctanepeer ranges add^0.3.0. Bindings and in-repo apps (Apollo, Aria, Base UI, cmdk, Blocknote, benchmarks, examples, registry content, upstream test patches) are mechanically migrated from.Providerto the context component itself, includingcreateElement(Ctx, …)call sites.Collateral updates include Apollo SSR coverage for ordinary server render with a cached client, parity ledger/doc tweaks, and small upstream conformance patches (e.g. Base UI tests, checkbox indicator commit timing).
Reviewed by Cursor Bugbot for commit 8123e18. Bugbot is set up for automated code reviews on this repo. Configure here.