Repository navigation
ci: typecheck every published package - #1642
Merged
Merged
Conversation
About 40 published packages had a tsconfig, or a package-local typecheck
script, that no CI job ran. The root `typecheck` chain never reached them, and
the coverage manifest required only four projects.
- check-typecheck-coverage.mjs now requires every published package's own
projects to be reached by the root octane-tsc run. Those are the projects its
`typecheck` script hands to a .tsrx-aware checker, or its tsconfig.json when
it declares none. A project that cannot pass yet needs a published exception
with a reason and an expiry date, and an exception goes stale as soon as the
project is typechecked. Unit tests cover the rules.
- The root `typecheck` gains 43 projects: alien-signals, auto-animate,
calendar, colorful, content-loader, day-picker, draggable, email, email-cli,
formisch, html-react-parser, image-crop, input-otp, livestore, octane-is,
popper, portabletext, resizable-panels, the sanity packages, spring,
stick-to-bottom, syntax-highlighter, to-print, transition-group, vaul,
waypoint, window, wouter, plus floating-ui, tanstack-pacer and tanstack-store
projects their own scripts check.
- Fixes for errors under TypeScript 7.1 (octane-tsc):
- email: css-tree walk options typed with `satisfies`, so their callbacks
are contextually typed again.
- formisch and input-otp typetests: drop `baseUrl`, which TypeScript 7
removed.
- resizable-panels: the lib now knows `FocusOptions.focusVisible`, so the
unused `@ts-expect-error` goes, and its script uses octane-tsc like CI.
- drei, ink and select fail only on errors in octane/compiler/volar's virtual
TSX, with no source location. They carry exceptions until 2026-10-31 while
that compiler defect is fixed separately.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
Benchmark report
Compares js-framework: 1k/10k row operations (ms, lower is better)All 20 timed operations (20 within noise)
Application bundle size (bytes)
13 other measured values are unchanged. Public-import reachability bundles (bytes)
70 other measured values are unchanged. |
…s and the parity lane The first CI run of the wider root typecheck found three problems with this branch's own changes: - resizable-panels: published consumers compile the source with an older lib.dom that has no `FocusOptions.focusVisible`, so removing the `@ts-expect-error` broke the packed-consumer check. An `as FocusOptions` assertion compiles under both TypeScript 5.9 and 7.1 (verified: 5.9 rejects the unasserted literal with TS2353). - formisch and input-otp: the React parity audit pins each typetest config's hash. Dropping `baseUrl` resolves the same files under tsrx-tsc and octane-tsc, so the pinned hashes are updated. - floating-ui's adapted typetests compile upstream files that the parity harness materializes into a gitignored directory, so a clean checkout has no inputs. The coverage record gains `materializedProjects`: a reason, no expiry, stale once the project is typechecked. The project leaves the root chain. Co-Authored-By: Claude Opus 5.5 <[email protected]>
trueadm
marked this pull request as ready for review
October 3, 2026 10:21
KevinVandy
pushed a commit
to KevinVandy/octane
that referenced
this pull request
Oct 9, 2026
* feat: add @octanejs/tanstack-db binding Port the Octane live-query bindings for @tanstack/db (TanStack/db PR octanejs#1699, `packages/octane-db`, still open) into the monorepo as `@octanejs/tanstack-db`. - Re-exports @tanstack/[email protected] unchanged; adapts the live-query surface (useLiveQuery, useLiveInfiniteQuery, useLiveSuspenseQuery, useLiveQueryEffect, usePacedMutations) onto Octane hooks. Source imports only public @tanstack/db. - Package shape matches sibling bindings: exports point at src/ (no dist build), self-contained tsconfig (jsxImportSource octane), status.json. - Tests decoupled from the db monorepo: internal src imports rewritten to @tanstack/db; test helpers, the conformance suite, and db's expression evaluator vendored under tests/db-fixtures/ (pinned to 0.6.17, test-only) so the infinite-query tests can interpret the where/cursor IR db generates. - Wired into vitest.config.js and the root typecheck script; registered in website/src/content/bindings.json; changeset added. Generated inventories (docs/packages.md, docs/bindings-status.md, CLI data, react-parity lockfile hashes) are intentionally omitted from this diff and should be regenerated with `pnpm sync` at merge time. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * fix(tanstack-db): move @octanejs/tanstack-db to TanStack DB 0.7.0 and fix live-query blockers Rebinds the binding to the TanStack DB 0.7.0 adapter architecture and fixes the PR review's P1 blockers at the source: - Suspense suspends via Octane `use(thenable)` instead of `throw promise` (Octane Suspense only recognizes the use() sentinel). Proven by an async fallback regression test. - useLiveQuery/useLiveSuspenseQuery rebuilt on db's shared createLiveQueryObserver (db octanejs#1642) so status-only transitions (error/cleaned-up) update isError/ isCleanedUp. - useLiveInfiniteQuery rebuilt on the coordinated createLiveQueryWindowController (db octanejs#1675): window leases stop two hooks on one collection truncating each other (regression test), and a failed page load rolls back and surfaces snapshot.error with a clean retry. - useLiveQueryEffect parses deps + the compiler slot together from ...rest, so no-deps usage keeps its call-site slot. - Conformance suite: drop order-only-move from universal expected-fail (db octanejs#1669 fixed the contract); un-skip the missing-orderBy test (surfaced synchronously during render via getWindow()); record StrictMode double-invoke as not-applicable. Committed-test-marker gate passes. - Bump @tanstack/db ^0.6.17 -> ^0.7.0; re-pin vendored db-internal fixtures; vendor the @tanstack/[email protected] adapter source under upstream/ with SHA256SUMS; add UPSTREAM.md pin + crosswalk; refresh status.json/README. Octane-adaptation: the subscribe wrappers defer an initial onStoreChange to a microtask because Octane's useSyncExternalStore re-checks the snapshot before (not after) subscribe; pinned by the eager-onstorechange test. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * fix(tanstack-db): call use() unconditionally in useLiveSuspenseQuery; document startSync divergence Addresses two Cursor Bugbot findings on the 0.7.0 remediation commit. - [High] useLiveSuspenseQuery called use() only on the loading/idle path and skipped it once ready. Octane keys use(thenable) by dynamic call-order index (runtime __thenableIdx), not by compiler slot, so a ready hook that skips its use() shifts the thenable index of a sibling use()/second useLiveSuspenseQuery in the same component. On the replay after the first query resolves, the second hook read the first's fulfilled thenable (resume-replay leniency path) and stopped suspending, surfacing its still-loading collection as ready. Fix: call use() unconditionally — exactly once per render — handing it an already-resolved sentinel on the ready/stale paths so the call-order index stays stable and no suspend occurs. New regression test drives two independently gated collections and asserts the later sibling stays suspended while the earlier one is ready (fails pre-fix with `a:3|b:0`). - [Medium] Documented the useLiveInfiniteQuery `startSync: true` divergence in status.json. The query-function collection is created with the first-page window already applied (.limit(pageSize + 1).offset(0)), so eager sync fetches exactly the first page — never a wider subset — before the window controller grows it; only the fetch-start timing differs from upstream's post-commit start. (Bugbot's third finding, "stale pages after deps change", was against the pre-remediation commit and no longer applies: the controller rewrite computes page count synchronously during render.) Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * fix(tanstack-db): pre-tag the useLiveSuspenseQuery ready-path sentinel as fulfilled Follow-up to the unconditional-use() change. The shared `SETTLED` thenable handed to `use()` on the non-loading paths was a bare `Promise.resolve()`. Octane's `use()` tags an untagged thenable `'pending'` synchronously (its fulfillment callback runs a microtask later), so the first `use(SETTLED)` on the ready path suspended and flashed the Suspense fallback even though data was already ready. Give `SETTLED` the React 19 `cache()` settled shape (`status: 'fulfilled'`) so `trackThenable` leaves it untouched and `use()` returns synchronously without suspending. New regression test preloads a collection to `ready` before mount so the first render takes the ready path, and asserts the fallback never renders (fails pre-fix: first commit shows `Loading...` instead of `ready:3`). Reported by Cursor Bugbot on the previous commit. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * fix(tanstack-db): defer infinite query sync until commit * fix: repair tanstack db CI integration * fix: complete tanstack db CI integration --------- Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]> Co-authored-by: Dominic Gannaway <[email protected]>
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
Every published package is now typechecked in CI, closing review finding H9. The gap was much wider than the six packages the review named: about 40 published packages had a
tsconfig.json, or a package-localtypecheckscript, that the rootpnpm typecheckchain never reached. The coverage manifest required only four projects.Changes
scripts/check-typecheck-coverage.mjsrequires every published package's own projects to be reached by the rootoctane-tscrun.typecheckscript hands to a .tsrx-aware checker (octane-tsc/tsrx-tsc), or itstsconfig.jsonwhen it declares none.tsccompare against React's types, so they are not required.publishedExceptionsentries need a reason and anexpiresdate. An expired or stale exception fails the check.typecheck:coverage, avoiding theci:workflow:testline other PRs edit.Root
typecheckgains 42 projects, which pass together in about 4 s of build time:Materialized projects. floating-ui's adapted typetests compile upstream files that the React parity harness writes into a gitignored directory, so a clean checkout has no inputs. They are recorded under a new
materializedProjectskey, which takes a reason and no date because this is not debt, and goes stale once the project is typechecked.Fixes under TypeScript 7.1 (what
octane-tscruns):@octanejs/email: css-treewalkoptions are typed withsatisfies WalkOptionsVisit<…>. TypeScript 7 could not contextually type callbacks through css-tree's largeWalkOptionsunion, giving 8 implicit-any andthis.atruleerrors. Type-only; the emitted JS is the same.baseUrl, which TypeScript 7 removed;pathsbecome relative. Their React parity audits pin these files, so the pinned hashes are updated.tsrx-tscstill compiles both.FocusOptions.focusVisible, so the@ts-expect-errorwas unused, but published consumers on an older lib.dom still need it. Anas FocusOptionsassertion compiles under both: TypeScript 5.9 rejects the unasserted literal with TS2353 and accepts this. The package script now usesoctane-tsc, matching CI.Tracked, not fixed here: drei (4 errors), ink (1) and select (1) fail only inside
octane/compiler/volar's virtual TSX, which TypeScript reports as "no corresponding location in the original file":@forrow'skeyis passed as a component prop, and so are the Suspense children and anundefinedref;@tryboundary component is typedunknown;unknown.These are compiler defects, so the packages are not edited to dodge them. They carry exceptions until 2026-10-31, and a separate session is fixing the virtual TSX.
No changeset: the source edits are a type-only
satisfiesand a comment, so the published behavior and API are unchanged.Validation
pnpm typecheck:coverage: 5/5 unit tests pass, and the check reports "123 published packages, 4 required projects, 0 private and 3 published exceptions". A negative control (droppingpackages/wouter/tsconfig.jsonfrom the chain) fails with the package and project named.octane-tscover the added projects together: 0 errors. The first CI run caught the floating-ui inputs, the resizable-panels consumer compatibility and the parity hashes; all three are fixed in the follow-up commit.pnpm sync,pnpm format:files:checkon changed files.pnpm typecheck,pnpm test: left to CI.Provenance
agent-authored)🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Note
Low Risk
Changes are mostly CI/manifest enforcement and type-only fixes; runtime behavior is unchanged aside from resizable-panels using a type assertion for focus options.
Overview
Root CI typecheck now covers every published package, not just a handful of manifest-listed projects.
scripts/check-typecheck-coverage.mjsis refactored into testable exports that assert each non-private package’soctane-tsc/tsrx-tscprojects (or defaulttsconfig.json) appear in the rootpnpm typecheckchain, with datedpublishedExceptions,materializedProjects, and stale-exception detection. Unit tests run viatypecheck:coveragebefore the manifest check.The root
typecheckscript adds ~43octane-tscprojects for packages that previously only typechecked locally (e.g. email, formisch, wouter, resizable-panels typetests, and related typetest configs).@octanejs/drei,@octanejs/ink, and@octanejs/selectstay out of the chain until virtual-TSX compiler issues are fixed, with exceptions expiring 2026-10-31.TypeScript 7.1 compatibility tweaks:
@octanejs/emailcss-treewalkcallbacks usesatisfies WalkOptionsVisit<…>; formisch and input-otp typetests drop removedbaseUrland use relativepaths; resizable-panels replaces@ts-expect-erroronfocusVisiblewithas FocusOptionsand switches its packagetypechecktooctane-tscto match CI.Reviewed by Cursor Bugbot for commit 73553f7. Bugbot is set up for automated code reviews on this repo. Configure here.