Commit graph

55 commits

Author SHA1 Message Date
github-actions[bot]
6fbe63f3cb
ci: Version Packages (#552)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-10-11 13:01:21 -05:00
Kevin Van Cott
e1228726f9
fix(preact): Unmount panels on Preact 11 and pass app context to plugins (#551)
* fix(devtools-utils): Unmount Preact panels on Preact 11

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* chore(preact-devtools): Develop and test against Preact 11

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* chore(examples): Add px units to numeric Preact styles

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* fix(preact-devtools): Pass the app's context to plugins

The Portal renders plugins into a separate root, so they lost the app's
context (for example QueryClientProvider). Forward the context through
getChildContext. This avoids preact/compat, which patches global options,
and works on Preact 10 and 11.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-11 12:17:15 -05:00
github-actions[bot]
375c58fc15
ci: Version Packages (#512)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-20 12:38:11 +02:00
kolaworld
f1584c7db4
fix(devtools-utils): align Svelte factory contracts (#504)
* fix(devtools-utils): align Svelte factory contracts

Closes #503

* fix(svelte-devtools): replace mounted plugin components

* fix(svelte-devtools): clean up replaced plugin panels

* fix(devtools-utils): own Svelte panel lifecycle

* fix(svelte-devtools): preserve plugin state on updates
2026-08-20 11:22:18 +02:00
Alem Tuzlak
53805408af
chore: upgrade Vitest to v4 (#497)
* ci: stop Release test:lib flakes from runner overload

Release runs nx run-many across every package at nx.json parallel: 5.
That oversubscribes GitHub-hosted runners and flakes two test:lib jobs:

- @tanstack/devtools-ui: default 5s timeout on Solid + goober mounts
- @tanstack/devtools: vitest worker RPC stall (onTaskUpdate)

PR already caps NX_PARALLEL at 3 (#478). Apply the same cap to Release,
and raise the 30s test/hook timeouts on the remaining heavy UI packages.

* chore: upgrade Vitest to v4

Bump vitest from 3.2.4 to 4.1.10. Vitest 4 replaces the 60s
onTaskUpdate RPC timeout that failed Release after every
@tanstack/devtools test had already passed.

Migrate defineWorkspace to test.projects. Turn off Solid HMR in
tests so the module runner does not load /@solid-refresh. Update
mocks and timers that Vitest 4 types or isolates differently.
2026-08-12 16:20:22 +02:00
github-actions[bot]
da1d7e2826
ci: Version Packages (#473)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-06-23 11:16:12 +02:00
Alem Tuzlak
d7c5a93710
feat: add Svelte 5 adapter and devtools-utils Svelte factories (#366)
* docs: add Svelte devtools adapter design doc

* docs: add Svelte devtools implementation plan

* feat(svelte-devtools): add Svelte 5 adapter package

* feat(devtools-utils): add Svelte factory functions and build config

* fix: resolve knip issues and update svelte vite plugin to v6

* docs: add Svelte documentation

* chore: add changeset for Svelte adapter

* ci: apply automated fixes

* fix(svelte-devtools): mount once and tear down stale plugin components on update

- Mount the core exactly once: untrack props in the mount $effect so a prop
  change no longer destroys and rebuilds the entire devtools core (the update
  $effect already handles config/plugin changes reactively).
- update() now calls destroyAllComponents() before setConfig(), matching the
  Angular adapter — the core re-invokes render/name for the new plugin set, so
  without this the previous Svelte instances were orphaned and leaked.
- renderComponent() keys mounted components by container.id directly (the core
  always assigns one) instead of an empty-string fallback that could never be
  matched on destroy.
- vite.config: cast svelte() plugin as any, matching the vue/solid configs, to
  satisfy the vite 8 plugin types.

* chore(devtools-utils): add svelte devDependency for the svelte subpath build

The `./svelte` build type-checks svelte-importing source, so svelte must be
resolvable at build time (mirroring vite-plugin-solid for the solid build)
rather than relying on workspace hoisting of the optional peer.

* test(devtools-utils): cover svelte plugin and panel factories

Mirrors the existing solid class factory tests: createSveltePlugin shape +
NoOp behavior, and createSveltePanel mounting/tearing down a class-based core.

* ci: apply automated fixes

* refactor(devtools-utils): make createSveltePlugin generic over component props

Threads a TComponentProps generic through the svelte plugin factory (mirroring
createVuePlugin) so plugin props are type-checked against the component instead
of falling back to `any`. Addresses PR review feedback.

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-06-23 11:12:54 +02:00
Alem Tuzlak
f17d7e8a0a
chore: add bugs.url metadata to all published packages (#470)
Adds the `bugs` field pointing to the GitHub issue tracker to every publishable package under packages/. This was the only standard metadata field missing; repository, license, homepage, funding, author and keywords were already present and consistent across all packages.
2026-06-22 16:35:07 +02:00
github-actions[bot]
ca6e266ff4
ci: Version Packages (#465)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-06-19 14:24:51 +02:00
github-actions[bot]
0ec5292ac1
ci: Version Packages (#433)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-05-13 12:17:50 +02:00
Riccardo Perra
ad26f6182f
feat(angular): angular adapter and utils (#368)
* feat(angular-devtools): create angular adapter package

Add the @tanstack/angular-devtools package with:
- TanStackDevtoolsComponent: standalone Angular component that wraps TanStackDevtoolsCore
- Plugin system supporting Angular components rendered into devtools containers
- Type definitions for Angular-specific plugin and init configuration
- Build config using @analogjs/vite-plugin-angular for AOT compilation

* fix(angular-devtools): add reactivity for input changes, remove unused RenderArray

* feat(devtools-utils): add angular support

* fix: resolve angular build issues

- Remove @analogjs/vite-plugin-angular from build (produces empty chunks
  for library builds). Use plain esbuild via Vite instead - Angular AOT
  compilation happens at consumer's build time.
- Upgrade Angular dev deps from ^19 to ^20 for TypeScript 5.9 compat.
- Remove @angular/build dep (only needed by analogjs plugin).
- Add @tanstack/angular-devtools workspace override to root.

* ci: apply automated fixes

* fix: resolve lint, knip, and sherif issues

- Fix array-type ESLint rule in angular-devtools
- Fix import/consistent-type-specifier-style in devtools-utils angular
- Sort peerDependencies alphabetically (sherif)
- Remove unused devDependencies flagged by knip
- Remove angularCompilerOptions from tsconfig (not using ngc)

* feat: add Angular support with setup, adapter, and custom plugin documentation

* feat(angular): angular adapter add utils and some examples, fix build

* ci: apply automated fixes

* feat: Add angular adapter and devtools-utils/angular

* remove afterNextRender in devtools-utils

Since angular-devtools already run the code within afterNextRender in browser env, we don't like to wrap the panel returned from utils

* fix examples

* fix angular devtools wrong pnpm link

* feat(angular-devtools): add with-devtools provider

* docs(angular-devtools): update docs

* ci: apply automated fixes

* chore(angular-devtools): fix examples dependencies and knip issues

* feat(angular-devtools): rename withDevtools to provideTanStackDevtools

* Add a11y plugin for angular

* chore(deps): update @tanstack/devtools and related packages

* ci: apply automated fixes

---------

Co-authored-by: Alem Tuzlak <t.zlak@hotmail.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-04-28 20:17:46 +02:00
github-actions[bot]
6c7b961fe4
ci: Version Packages (#389)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-03-15 09:52:44 +01:00
Harry Whorlow
d11aaf99fa
feat: extract theme provider (#386)
* feat: extract theme provider

* chore: export type

* chore: unify types

* fix:lock
2026-03-15 09:38:49 +01:00
Harry Whorlow
63e505c7b6
feat: support vite v8 (#388)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-03-15 09:35:54 +01:00
Sarah Gerrard
7c33985598
a11y plugin (#326)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Harry Whorlow <whorlowharry@gmail.com>
Co-authored-by: Harry Whorlow <79278353+harry-whorlow@users.noreply.github.com>
Co-authored-by: Lachlan Collins <1667261+lachlancollins@users.noreply.github.com>
2026-03-13 15:18:56 +01:00
Alem Tuzlak
40db560c00
feat: refactor props passing to plugins for improved flexibility (#319)
* feat: refactor props passing to plugins for improved flexibility

* ci: apply automated fixes

* fix tests

* ci: apply automated fixes

* fix

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-03-13 12:51:03 +01:00
github-actions[bot]
a120650543
ci: Version Packages (#380)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-03-11 14:39:21 +01:00
Alem Tuzlak
1451124c07
fix: include skills/ in npm publish for all packages (#379)
* fix: include skills/ and bin/intent.js in npm publish for all packages

The skills/ directories and intent bin shim were missing from the
individual package.json files. The intent scanner requires both
"bin": { "intent": ... } and a skills/ directory to detect packages.
Without these, npx @tanstack/intent install reports "No intent-enabled
packages found."

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-03-11 14:35:35 +01:00
github-actions[bot]
da5ff35a0d
ci: Version Packages (#378)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-03-11 12:27:44 +01:00
Alem Tuzlak
644bcb3ec5
feat: add @tanstack/intent agent skills (#377)
* feat: add @tanstack/intent agent skills for all packages

Scaffold agent-readable SKILL.md files via @tanstack/intent for AI coding
agents (Claude Code, Cursor, Copilot, etc.) to generate better code when
working with TanStack Devtools.

Skills added (9 total across 4 packages):
- devtools: app-setup, plugin-panel, production, marketplace
- event-bus-client: event-client, instrumentation, bidirectional
- devtools-vite: vite-plugin
- devtools-utils: framework-adapters (React, Vue, Solid, Preact)

Also includes:
- CI workflows for skill validation, staleness checks, and intent notifications
- Domain map, skill spec, and skill tree artifacts
- Intent CLI bin shim and package.json wiring
- README note for AI agent users

* ci: apply automated fixes

* ci: apply automated fixes (attempt 2/3)

* chore: add changeset for intent skills

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-03-11 12:25:57 +01:00
github-actions[bot]
c6bbb90257
ci: Version Packages (#370)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-03-06 13:26:50 +01:00
Alem Tuzlak
024ea7d602
fix(devtools): prevent solid-js from leaking into server bundles (#367)
* fix(devtools): prevent solid-js from leaking into server bundles

Move all solid-js runtime imports (render, Portal, lazy, ClientEventBus)
from core into a new mount-impl.tsx file loaded via dynamic import().
This ensures solid-js code is never in the static import graph and only
loads as a separate chunk when mount() is called on the client.

* feat(devtools-utils): add Solid.js support and enhance routing configurations

* ci: apply automated fixes

* fix(devtools-utils): resolve self-referencing import for clean CI builds

Add ambient module declaration (barrel-types.d.ts) so TypeScript can
resolve @tanstack/devtools-utils/solid on clean checkouts without dist/.

* ci: apply automated fixes

* fix(devtools-utils): fix lint errors in solid class files

* fix(devtools-utils): use variable import path to prevent esbuild SSR pre-bundling

esbuild follows dynamic imports with string literals during Vite's
dependency optimization, pulling solid-js into the SSR bundle. Using a
variable path prevents static analysis from following the import.

* fix(devtools-utils): add workerd export condition to ./solid for Cloudflare SSR

The ./solid export was missing a workerd condition, causing Vite's SSR
dep optimizer (esbuild) to resolve to the client entry instead of
server.js when running under Cloudflare workerd. The client entry's
compiled Solid JSX imports use/setStyleProperty from solid-js/web which
don't exist in the server entry, crashing the dev server.

Also reverts the variable import workaround in class.ts back to a
literal import, since the workerd condition now properly routes SSR
resolution to the server entry.

* Refactor code structure for improved readability and maintainability

* fix(devtools-utils): use relative dynamic import for class-mount-impl

Replace the cross-package bare specifier import('@tanstack/devtools-utils/solid')
with a relative import('./class-mount-impl'). Bare specifiers in dynamic imports
inside pre-bundled dependencies aren't resolved by bundlers like esbuild/webpack,
causing "Failed to resolve module specifier" errors in the browser.

The relative import works in all bundlers (Vite, Next.js, etc.) because the
class-mount-impl.js file is co-located in the same dist directory, built
together via a single vite config with vite-plugin-solid for JSX compilation.

* ci: apply automated fixes

* chore: fix issues

* chore: changeset

* fix: lock

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-03-06 13:24:54 +01:00
github-actions[bot]
2117765147
ci: Version Packages (#365)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-03-04 14:27:33 +01:00
github-actions[bot]
3e19f95196
ci: Version Packages (#317)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-01-14 09:06:57 +01:00
Birk Skyum
055e822f10
feat(devtools-utils): export vue (#316)
* feat(devtools-utils): export vue

* changeset
2026-01-14 08:52:50 +01:00
github-actions[bot]
67be66c1e6
ci: Version Packages (#311)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-01-08 15:09:25 +01:00
Alem Tuzlak
e7f2877bee
chore: fix panel double mounting (#310)
* chore: fix panel double mounting

* changeset

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-01-08 15:00:36 +01:00
github-actions[bot]
98228a1d9a
ci: Version Packages (#309)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-01-06 14:41:28 +01:00
Alem Tuzlak
0f1535caa4
Chore/revert issue with panel (#308)
* revert panel issue

* changeset

* fixup for the panel classes

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-01-06 14:36:30 +01:00
github-actions[bot]
aaeb5900e2
ci: Version Packages (#307)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-01-06 13:42:41 +01:00
Alem Tuzlak
638186d00b
revert panel issue (#306)
* revert panel issue

* changeset
2026-01-06 13:41:33 +01:00
github-actions[bot]
cda3fc7c81
ci: Version Packages (#303)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-01-06 13:26:01 +01:00
Alem Tuzlak
adcf45c434
fix: make the import meta conditional to work outside of vite (#305)
* fix: make the import meta conditional to work outside of vite

* ci: apply automated fixes

* changeset

* fix: unmounting of devtools

* fix: unmounting of devtools

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-01-06 13:24:18 +01:00
github-actions[bot]
cbe2d05b13
ci: Version Packages (#298)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-12-26 13:25:33 +01:00
Alem Tuzlak
bf1d590c34
feat: fix event bus port issues (#297)
* feat: fix event bus port issues

* changeset

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-12-26 13:23:56 +01:00
Lachlan Collins
f58a87b9b6
ci: prepare for trusted publishing (#288) 2025-12-09 11:44:55 +11:00
github-actions[bot]
8ff7ae55ed
ci: Version Packages (#284)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-12-07 13:54:18 -06:00
Kevin Van Cott
e0d58d56fc
feat: add preact devtools (#283)
* feat: add preact devtools

* changeset

* ci: apply automated fixes

* fix example jsx issue

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-12-07 13:48:43 -06:00
Lachlan Collins
66722f5a70
docs: correct local relative links (#282)
* docs: correct local relative links

* Fix config imports
2025-12-05 22:38:56 +11:00
github-actions[bot]
5bdbad1997
ci: Version Packages (#279)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-12-01 11:04:07 +01:00
Alem Tuzlak
5bda41e2de
Feat/bring support for react 17 to utils (#278)
* feat: bring support for react 17

* changeset

* lock update

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-12-01 11:01:17 +01:00
github-actions[bot]
8e354af674
ci: Version Packages (#273)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-11-25 12:46:39 +01:00
Damian Osipiuk
d781f4f758
feat: vue devtools (#226)
* feat: vue devtools

* fix(vue-devtools): fix jsdoc, bump sherif

* fix: pass props to plugin component

* feat: utils and props passing

* fix: plugin util

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-11-25 12:32:50 +01:00
github-actions[bot]
de1a73fd80
ci: Version Packages (#262)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-11-12 16:01:31 +01:00
github-actions[bot]
87764c2c52
ci: Version Packages (#260)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-11-07 12:43:53 +01:00
Alem Tuzlak
37ebb886f6
chore: fix issue with config (#259) 2025-11-07 12:37:29 +01:00
github-actions[bot]
96ed09de13
ci: Version Packages (#246)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-10-29 11:39:21 +01:00
Alem Tuzlak
aa32c0219a
feat: add defaultOpen option to plugins (#245)
* feat: add defaultOpen option to plugins

* ci: apply automated fixes

* chore: docs update

* fix utils

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-10-29 11:30:08 +01:00
github-actions[bot]
b236c5c02e
ci: Version Packages (#197)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-10-03 14:59:04 +02:00
github-actions[bot]
82f1652704
ci: Version Packages (#172)
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @tanstack/devtools-utils@0.0.3

### Patch Changes

- fix issues with mounting
([#171](https://github.com/TanStack/devtools/pull/171))

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-09-23 16:44:18 +02:00