Repository navigation
feat(swr): add exact binding - #526
Closed
jonkwheeler wants to merge 50 commits into
Closed
jonkwheeler wants to merge 50 commits into
jonkwheeler wants to merge 50 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
jonkwheeler
added a commit
to jonkwheeler/octane
that referenced
this pull request
Aug 3, 2026
Address PR review feedback (octanejs#526) - strip trailing Octane hook metadata at the shared normalizer - cover root overloads and middleware wrapping - refresh executable parity inventories
Address PR review feedback (octanejs#526) - strip trailing Octane hook metadata at the shared normalizer - cover root overloads and middleware wrapping - refresh executable parity inventories
jonkwheeler
force-pushed
the
jon/swr-binding
branch
from
August 3, 2026 03:54
8289548 to
0622931
Compare
jonkwheeler
marked this pull request as ready for review
August 3, 2026 04:12
jonkwheeler
marked this pull request as draft
August 3, 2026 04:15
Resolve inventory, eval manifest, hook-form parity lockfile, and root package scripts while keeping SWR bindings:typecheck coverage. Co-authored-by: Cursor <[email protected]>
Restore root package.json, align SWR engines with workspace baseline, refresh react-parity lockfile/vitest hashes, and regenerate inventory. Co-authored-by: Cursor <[email protected]>
Extend the SWR classification gate so discovery includes adapted suites under tests/upstream and compiler-executed typetest programs, fail-closed on any unclassified file, and keep the ledger complete for review readiness. Co-authored-by: Cursor <[email protected]>
Contributor
Author
|
READY FOR REVIEW |
Contributor
Author
|
READY FOR REVIEW |
Contributor
Author
|
REVIEW WITHDRAWN |
Contributor
Author
|
READY FOR REVIEW |
Contributor
Author
|
Merging origin/main to clear conflicts; prior ready signal is void. REVIEW WITHDRAWN |
Co-authored-by: Cursor <[email protected]>
Contributor
Author
|
READY FOR REVIEW |
Keep main's eval manifest digests; refresh catalogs after merge if needed. Co-authored-by: Cursor <[email protected]>
Contributor
Author
|
REVIEW WITHDRAWN Merging origin/main to clear DIRTY conflicts; prior ready signal is void until Bugbot and the ready checklist pass on the new head. |
Co-authored-by: Cursor <[email protected]>
Contributor
Author
|
READY FOR REVIEW |
Resolve docs/packages.md and evals manifest conflicts via pnpm sync after Version Packages (octanejs#682) landed on main. Co-authored-by: Cursor <[email protected]>
Contributor
Author
|
Merged origin/main (Version Packages #682); conflicts in docs/packages.md and evals manifest resolved via pnpm sync. Bugbot clean on current head. READY FOR REVIEW |
5 of 9 tasks
Collaborator
|
Thank you for your contribution! This pull request was incorporated into |
kotarotaniguchi0523
pushed a commit
to kotarotaniguchi0523/octane
that referenced
this pull request
Aug 12, 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
Octane applications can now replace
[email protected]with@octanejs/swrwithout redesigning the public root, infinite, immutable, mutation, subscription, or_internalAPIs. The port preserves cache scoping, request deduplication and races, mutation, retry/poll/focus/reconnect behavior, Suspense, conditional server exports, and the pinned release's type surface while mapping the React-only devtools marker to an explicitly documented Octane contract.Parity is fail-closed rather than inferred from API similarity: the unchanged React Jest suite, three pristine TypeScript projects, adapted Octane lanes, differential traces, SSR/stream/hydration probes, packed conditional exports, and evidence mutation controls all execute from pinned upstream artifacts. The package also includes migration guidance, an offline playground example, release metadata, and catalog integration.
Validation
pnpm format:checkpnpm typecheckpnpm testRisk / follow-ups
The port intentionally does not claim unreleased SWR behavior or React devtools metadata compatibility. Fetchers, middleware, cache providers, subscribers, retry handlers, and devtools middleware remain trusted consumer code, matching the upstream execution model. No production network or credential-bearing fixture is used.
Provenance
agent-authored)Note
Medium Risk
Large new data-fetching binding touches cache, mutations, Suspense, and SSR/hydration; behavior is heavily tested but any subtle race or hydration mismatch would affect migrated apps.
Overview
Introduces
@octanejs/swras a drop-in Octane port of[email protected], covering the root hook plusinfinite,immutable,mutation,subscription,_internal, andreact-serverexport conditions, with Octane hooks replacing the React seam while keeping upstream cache and request semantics.Repository integration bumps binding/package inventories to 61 bindings, adds a patch changeset, wires
packages/swrintobindings:typecheckand globalreact-parityclassification checks, excludes selected SWR.tsrxmodules from Prettier, and documents the binding in bindings status, CLI catalog data, and a full implementation plan.Documented divergences: devtools expose
window.__SWR_DEVTOOLS_OCTANE__instead of React’s global, and the pin does not add automatic fetch abort on unmount. Parity is backed by pristine upstream Jest/TS lanes, adapted Octane tests, differential/SSR/hydration probes, and audit manifests underpackages/swr.Reviewed by Cursor Bugbot for commit f854226. Bugbot is set up for automated code reviews on this repo. Configure here.