Skip to content

feat(tanstack-query-devtools): port @tanstack/react-query-devtools 5.102.8 - #1465

Closed
dion04 wants to merge 6 commits into
octanejs:mainfrom
dion04:feat/tanstack-query-devtools
Closed

dion04 wants to merge 6 commits into
octanejs:mainfrom
dion04:feat/tanstack-query-devtools

Conversation

@dion04

@dion04 dion04 commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds @octanejs/tanstack-query-devtools, an Octane port of @tanstack/react-query-devtools 5.102.8. @octanejs/tanstack-query documented the devtools package as not included; this fills that gap.

  • Ports ReactQueryDevtools, ReactQueryDevtoolsPanel, the DevtoolsPanelOptions type and the ./production entry.
  • Reuses the unchanged framework-neutral @tanstack/query-devtools core (a self-contained Solid bundle with no React import) and @octanejs/tanstack-query for useQueryClient and onlineManager.
  • One intentional divergence: the core instance is built in a lazy useState initializer rather than eagerly on every render. The upstream suite asserts no constructor count. It is recorded in UPSTREAM.md, status.json, the parity manifest and a OCTANE DIVERGENCE marker.
  • Pin: npm publishes no gitHead for this release, so preflight ran with --npm-provenance. The release tag @tanstack/[email protected] resolves to 2969edf, the same commit @octanejs/tanstack-query pins.
  • Updates the tanstack-query README line that said devtools were not included.
  • Touches every other package's audit/react-parity.json by one line, only for the regenerated lockfile hash (pnpm react-parity:lockfiles:generate), because the new workspace package changes pnpm-lock.yaml.

Validation

  • 37/37 upstream registrations pass unchanged against real React (tanstack-query-devtools-pristine) and against the Octane port with import rewrites only and no patches (tanstack-query-devtools-adapted).
  • 12 Octane-only conformance and SSR tests (production switch, single core construction, container markup, panel style/onClose, SSR never mounts).
  • Ran the repo gates on Linux runners in a fork: parity validation and required lanes, materialized-upstream check, package inventory, bindings status, binding parity gaps, CLI data, website ecosystem data, consumer tsconfigs, package packs and source publication, .tsrx declarations, test markers, typecheck coverage, tsrx-tsc on the package, format:check, changeset:check, rules:check, virtual-tsx:check, parity:gaps:check, scaffold:manifest:check, the full pnpm typecheck, and a pnpm sync drift check. The merged head (current with main) was re-run after resolving lockfile-hash conflicts.
  • Not run: the full sharded pnpm test, example browser journeys, website e2e, and the pnpm react-port:evidence machine matrix (it needs local batch state).
  • Development was on Windows, so the Linux-only gates above are the ones that were verified in the fork.

Risk / follow-ups

  • There is no React-vs-Octane differential lane and no separate type-parity lane. Upstream ships no .test-d suite for this package; the port's types are covered by tsrx-tsc on the authored source.
  • Version is 0.0.0 with a patch changeset, matching how other new bindings start.

Provenance

  • An agent produced this diff (agent-authored)

View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.


Note

Low Risk
New dev-only binding with 37 unchanged upstream runtime tests and documented adapter divergences; no changes to query runtime or auth/data paths.

Overview
Introduces @octanejs/tanstack-query-devtools, an Octane binding for @tanstack/[email protected], so Query apps can use devtools alongside @octanejs/tanstack-query.

The package exposes ReactQueryDevtools, ReactQueryDevtoolsPanel, DevtoolsPanelOptions, and a ./production entry that always renders (the main entry no-ops outside development, matching upstream). Adapter UI is authored in .tsrx and wires into the unchanged @tanstack/query-devtools core via @octanejs/tanstack-query (useQueryClient, onlineManager). The devtools core is created once in a lazy useState initializer instead of on every render.

Repo wiring adds a changeset, Prettier ignore rules for the new TSRX sources, generated bindings/package inventory rows, CLI ecosystem data, and a pristine upstream test manifest. Many packages only pick up a regenerated lockfileSha256 in audit/react-parity.json (and eval task manifests) from the new workspace dependency.

Reviewed by Cursor Bugbot for commit 47b3b8c. Bugbot is set up for automated code reviews on this repo. Configure here.

dion04 and others added 4 commits September 30, 2026 14:44
…102.8

Add @octanejs/tanstack-query-devtools: ReactQueryDevtools,
ReactQueryDevtoolsPanel and the ./production entry over the unchanged
@tanstack/query-devtools core, for use with @octanejs/tanstack-query.

All 37 upstream registrations run unchanged against React and, with
import rewrites only, against Octane. Adds Octane-only conformance and
SSR tests, docs, catalog entries and a changeset. The pin uses the
release tag commit shared with @octanejs/tanstack-query because npm
publishes no gitHead for this release.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Add the registration inventory, crosswalk, closure, pristine/adapted
runtime inventories, provenance and react-parity manifest for the
pinned @tanstack/react-query-devtools 5.102.8 port, generated by
scripts/update-audit.mjs. Bind Octane-only conformance cases with
@parity-case markers and record the lazy core construction divergence.
Keep the TSRX sources out of Prettier, which drops parentheses that the
TSRX parser needs.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Declare process locally instead of relying on @types/node, matching the
source-publication gate, and list the binding in llms.txt.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…per lane

Use the shared wrapper inventory shape for the pristine lane, format the
upstream lock, drop the unneeded run-pristine registry entry, and refresh
the lockfile integrity recorded in every parity manifest.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@github-actions github-actions Bot added agent-authored Diff or issue body substantially produced by an AI agent feat PR: new feature or capability labels Sep 30, 2026
dion04 and others added 2 commits September 30, 2026 16:06
…-devtools

# Conflicts:
#	docs/packages.md
#	packages/alien-signals/audit/react-parity.json
#	packages/apollo-client/audit/react-parity.json
#	packages/aria/audit/react-parity.json
#	packages/base-ui-utils/audit/react-parity.json
#	packages/base-ui/audit/react-parity.json
#	packages/better-auth/audit/react-parity.json
#	packages/cmdk/audit/react-parity.json
#	packages/colorful/audit/react-parity.json
#	packages/day-picker/audit/react-parity.json
#	packages/dexie/audit/react-parity.json
#	packages/dnd-kit/audit/react-parity.json
#	packages/draggable/audit/react-parity.json
#	packages/drei/audit/react-parity.json
#	packages/dropzone/audit/react-parity.json
#	packages/email/audit/react-parity.json
#	packages/embla-carousel/audit/react-parity.json
#	packages/floating-ui/audit/react-parity.json
#	packages/formisch/audit/react-parity.json
#	packages/gsap/audit/react-parity.json
#	packages/hook-form/audit/react-parity.json
#	packages/i18next/audit/react-parity.json
#	packages/inertia/audit/react-parity.json
#	packages/ink/audit/react-parity.json
#	packages/input-otp/audit/react-parity.json
#	packages/intersection-observer/audit/react-parity.json
#	packages/jotai/audit/react-parity.json
#	packages/lexical/audit/react-parity.json
#	packages/livestore/audit/react-parity.json
#	packages/lucide/audit/react-parity.json
#	packages/mantine-hooks/audit/react-parity.json
#	packages/markdown/audit/react-parity.json
#	packages/mobx/audit/react-parity.json
#	packages/monaco-editor/audit/react-parity.json
#	packages/motion/audit/react-parity.json
#	packages/nuqs/audit/react-parity.json
#	packages/octane-is/audit/react-parity.json
#	packages/opentui/audit/react-parity.json
#	packages/pdf/audit/react-parity.json
#	packages/phosphor-icons/audit/react-parity.json
#	packages/popper/audit/react-parity.json
#	packages/radix/audit/react-parity.json
#	packages/rainbowkit/audit/react-parity.json
#	packages/react-error-boundary/audit/react-parity.json
#	packages/react-map-gl/audit/react-parity.json
#	packages/recharts/audit/react-parity.json
#	packages/redux-toolkit/audit/react-parity.json
#	packages/redux/audit/react-parity.json
#	packages/remix-router/audit/react-parity.json
#	packages/resizable-panels/audit/react-parity.json
#	packages/rxjs/audit/react-parity.json
#	packages/select/audit/react-parity.json
#	packages/shadcn/audit/react-parity.json
#	packages/solana-kit/audit/react-parity.json
#	packages/sonner/audit/react-parity.json
#	packages/spring/audit/react-parity.json
#	packages/streamdown/audit/react-parity.json
#	packages/styled-components/audit/react-parity.json
#	packages/swr/audit/react-parity.json
#	packages/syntax-highlighter/audit/react-parity.json
#	packages/tanstack-ai/audit/react-parity.json
#	packages/tanstack-devtools/audit/react-parity.json
#	packages/tanstack-form/audit/react-parity.json
#	packages/tanstack-hotkeys/audit/react-parity.json
#	packages/tanstack-pacer/audit/react-parity.json
#	packages/tanstack-query/audit/react-parity.json
#	packages/tanstack-router-ssr-query/audit/react-parity.json
#	packages/tanstack-router/audit/react-parity.json
#	packages/tanstack-store/audit/react-parity.json
#	packages/tanstack-table/audit/react-parity.json
#	packages/tanstack-virtual/audit/react-parity.json
#	packages/testing-library/audit/react-parity.json
#	packages/textarea-autosize/audit/react-parity.json
#	packages/three/audit/react-parity.json
#	packages/tiptap/audit/react-parity.json
#	packages/transition-group/audit/react-parity.json
#	packages/usehooks-ts/audit/react-parity.json
#	packages/valtio/audit/react-parity.json
#	packages/vaul/audit/react-parity.json
#	packages/visx/audit/react-parity.json
#	packages/wagmi/audit/react-parity.json
#	packages/waypoint/audit/react-parity.json
#	packages/window/audit/react-parity.json
#	packages/xstate-store/audit/react-parity.json
#	packages/xstate/audit/react-parity.json
#	packages/xyflow/audit/react-parity.json
#	packages/zag/audit/react-parity.json
#	packages/zustand/audit/react-parity.json
The user-app corpus manifest records the workspace lockfile hash, which
changes with the new workspace package.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@dion04
dion04 marked this pull request as ready for review September 30, 2026 14:37
Copilot AI balanced review requested due to automatic review settings September 30, 2026 14:37

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@trueadm

trueadm commented Oct 7, 2026

Copy link
Copy Markdown
Collaborator

Can we update this PR?

@trueadm

trueadm commented Oct 7, 2026

Copy link
Copy Markdown
Collaborator

This PR is stale, please re-create PR given the new repo agent constraints and rules.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-authored Diff or issue body substantially produced by an AI agent feat PR: new feature or capability

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants