Repository navigation
feat(tanstack-query-devtools): port @tanstack/react-query-devtools 5.102.8 - #1881
Merged
Merged
Conversation
…102.8 Add @octanejs/tanstack-query-devtools: ReactQueryDevtools, ReactQueryDevtoolsPanel, DevtoolsPanelOptions and the ./production entry over the unchanged @tanstack/query-devtools core. The core is built once in a lazy useState initializer (recorded divergence). Recreated on current main: octane-tsc typecheck script, peer octane ^0.10.0, noUnused* compiler options, root typecheck coverage, pnpm 12.9.1 parity environment, and Prettier-formatted TSRX sources instead of a .prettierignore exemption. Co-Authored-By: Claude Opus 5.5 <[email protected]>
dion04
marked this pull request as ready for review
October 8, 2026 07:49
This was referenced Oct 8, 2026
The generator ran on Windows and wrote six floating-ui pin headings with backslash separators, which `binding-parity:gaps:check` rejects on CI. Co-Authored-By: Claude Opus 5.5 <[email protected]>
trueadm
added a commit
that referenced
this pull request
Oct 8, 2026
…atalogs #1881 published @octanejs/tanstack-query-devtools and added it to the website catalog (bindings.json) but not to the two hand-maintained agent catalogs, so main b7d152c failed test shard 1/4: - octane-mcp-server bridge.test.js: KNOWN_BINDINGS must cover every published binding derived from the workspace manifests. - website-mcp content.test.ts: llms.txt must list the catalogued bindings package-for-package. Map @tanstack/react-query-devtools to the binding in KNOWN_BINDINGS, list it beside @octanejs/tanstack-devtools in llms.txt's devtools line, and include the CLI data pnpm sync regenerates from that map. Co-Authored-By: Claude Opus 5.5 <[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
@octanejs/tanstack-query-devtools, an Octane port of@tanstack/react-query-devtools5.102.8:ReactQueryDevtools,ReactQueryDevtoolsPanel, theDevtoolsPanelOptionstype, and the./productionentry.@tanstack/query-devtoolscore and@octanejs/tanstack-queryforuseQueryClientandonlineManager.mainunder the current repo rules.Why
@octanejs/tanstack-querydocumented the devtools package as not included. This fills that gap.Changes
packages/tanstack-query-devtools: authored.tsrxadapters, a byte-exact committed pristine upstream tree with its lock and provenance, the parity manifest, and audit inventories.useStateinitializer instead of on every render. The upstream suite asserts no constructor count. The divergence is recorded inUPSTREAM.md,status.json, the parity manifest, and anOCTANE DIVERGENCEmarker.gitHeadfor this release, so preflight ran with--npm-provenance. Tag@tanstack/[email protected]resolves to2969edf, the same commit@octanejs/tanstack-querypins.main:typecheckscript usesoctane-tsc -p tsconfig.json, and the package tsconfig is added to the rootpnpm typecheck, astypecheck:coveragenow requires.octane: workspace:^0.10.0, and the tsconfig addsnoUnusedLocals/noUnusedParameters, matching sibling bindings.[email protected], whichupdate-audit.mjsnow reads from the rootpackageManagerinstead of hardcoding it..prettierignoreexemption is dropped because the plugin now round-trips them correctly. The source-ledger hashes were regenerated to match.tanstack-queryREADME line that said devtools were not included.pnpm sync: bindings status, parity gaps, package inventory, CLI data, ecosystem index, consumer tsconfigs, the evals manifest, and a one-linelockfileSha256bump in everyaudit/react-parity.jsonbecause the new workspace package changespnpm-lock.yaml.Validation
Local runs were on Windows:
tanstack-query-devtools,tanstack-query-devtools-ssr, andtanstack-query-devtools-adapted. All 49 tests pass, covering the 37 upstream registrations with import rewrites only and the 12 Octane conformance and SSR tests.octane-tsc -p packages/tanstack-query-devtools/tsconfig.jsonpnpm syncleaves the tree clean.changeset:check,test:markers:check,tsrx-decls:check,virtual-tsx:check,parity:gaps:check,packages:inventory:check,website:ecosystem-data:check,binding-parity:gaps:check,cli:data:check,scaffold:manifest:check,bindings:status:check,consumer:tsconfigs:check,packages:source:check,rules:check, andnode scripts/check-typecheck-coverage.mjs.react-parity:validate: this package validates. The only failures areformischandembla-carousel, from the Windows ESM loader, in packages this PR does not touch beyond the lockfile hash.tanstack-query-devtools-pristine: not run locally.pristine-suite-lib.mjsspawnsnode_modules/.bin/vitestwithout.cmd, so it cannot run on Windows. CI covers it.pnpm typecheck(full): not run locally. Windows rejects the command line as too long. CI covers it.pnpm format:check: the only warning ispackages/pdf/test-utils.ts, which this PR does not touch.pnpm test(full),packages:pack:check, and thenode --testself-tests behindtypecheck:coverage: these hit Windows path and spawn issues in repo scripts. Left to CI.perf-review: report below.Perf review: feat/tanstack-query-devtools-port (upstream/main..HEAD)
Scan:
node scripts/perf-review-scan.mjs --base upstream/main packages/tanstack-query-devtools/src/found 0 candidates.Hot paths touched: none in the framework.
ReactQueryDevtoolsandReactQueryDevtoolsPanelare dev-only components, mounted once per app. They re-render only when their own props or the query client change.stylespread literal, which matches upstream. This is a cold dev-only panel.Not checked: compiled output and browser latency, because no hot path is touched.
Risk / follow-ups
$$<type>expando #1883 (fixes Event delegation shares the$$<type>expando with Solid, so handlers fire twice inside Octane roots #1882). Octane's event delegation shared Solid'sclickexpando, so devtools row clicks ran twice and toggled the selection back off. Picture-in-picture is unaffected. Until fix(octane): move delegated event slots off Solid's$$<type>expando #1883 lands, clicking a query row in the docked panel does not open its details..test-dsuite for this package, sooctane-tscon the authored source covers the port's types.0.0.0with apatchchangeset, which is how other new bindings start.Provenance
agent-authored)🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Note
Low Risk
Adds a new dev-only binding with broad test coverage and no changes to query runtime or auth; the lazy core initializer is an internal optimization with no asserted upstream behavioral difference.
Overview
Introduces
@octanejs/tanstack-query-devtools, an Octane binding for@tanstack/[email protected]that pairs with@octanejs/tanstack-query. It exposesReactQueryDevtools,ReactQueryDevtoolsPanel,DevtoolsPanelOptions, and a./productionentry while keeping@tanstack/query-devtoolsas the unchanged core.The adapter is implemented in
.tsrxwith Octane hooks anduseQueryClientfrom the query binding. The devtools core is created in a lazyuseStateinitializer (documented divergence from React’s per-render construction). The default export is development-only viaNODE_ENV, matching upstream;productionalways ships the real components.Parity and CI wiring include pinned upstream artifacts, pristine/adapted vitest lanes for all 37 upstream tests, conformance/SSR tests, audit inventories, and registration in root
typecheck, generated docs/inventory (110 bindings), CLI ecosystem data, and a changeset. Workspace lockfile updates refreshlockfileSha256across existingaudit/react-parity.jsonfiles.Reviewed by Cursor Bugbot for commit 61fc461. Bugbot is set up for automated code reviews on this repo. Configure here.