Repository navigation
Commit 560cbec
feat: move the devtools to Solid 2 (#563)
* feat: move the devtools to Solid 2
The shell (@tanstack/devtools), devtools-ui and devtools-a11y now render
with their own copy of Solid 2 (solid-js and @solidjs/web rc.21+) and
drop the solid-js peer, so framework adapters other than Solid are
unaffected. @tanstack/solid-devtools and devtools-utils/solid peer on
Solid 2.
Port notes: effects are split into compute and apply; props are read
through `props` (no destructuring) and create-time reads are untracked;
store setters write drafts and reconcile layouts; contexts have no
default and render as `<Context value>`; `classList`, `on:` and `Index`
are replaced; aria booleans are strings. @neodrag/solid has no Solid 2
build, so sortable lists use @neodrag/core directly. The shell and
class-based panels load their chunk through a signal instead of `lazy`,
so neither needs a Loading boundary. tsup builds compile JSX with
@solidjs/babel-plugin (scripts/tsup-solid-v2.ts).
Tests flush after DOM events and timer callbacks, since Solid 2 applies
writes on the next flush. The devtools bundle size limit moves from
67 KB to 85 KB: the Solid 2 runtime accounts for the whole increase.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0117BoWMMJ6aTSA3MvtgJWG2
* chore(devtools): move to Solid 2.0 stable
Bump solid-js, @solidjs/* and Solid 2 primitives off their rc/next tags onto
the stable releases (solid-js ^2.0.0, @solidjs/vite-plugin ^3.0.0) and set the
solid-js peer to ^2.0.0. Where the repo enforces minimumReleaseAge, the
2.0.0 packages are listed in minimumReleaseAgeExclude until they age past it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0117BoWL7JwK3aqy95RDD2WN
* fix(devtools): read props and settings in tracked scopes instead of untrack
The Solid 2 port used untrack to quiet STRICT_READ_UNTRACKED. Most of those
reads froze values that can change:
- JsonTree branched on props.value at creation, so an array or object that
changed in place (a store) kept rendering [] / {}. It now uses Show/Switch
and a keys memo; expansion defaults are writable derived signals.
- Trigger corner/edge and the panel's open state derive from settings; the
placement effect tracks the stored spot and leaves gestures alone.
- Lazy shell/panel components render through keyed Show.
- The plugin title renders from its effect, not the ref.
- createSortable creates its list from an effect that tracks the node and
options.
- solid-devtools creates the core at mount.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0117BoWKxztQH1DynW6X2DK1
* fix(devtools): bundle Solid into the core so the app's Solid cannot change it
In a Solid 1 app, vite-plugin-solid gives every package the app's copy of
solid-js. The core then loaded Solid 1 for its Solid 2 code, and the Vite
dev server stopped with "./internal is not exported". The core now bundles
the production build of Solid 2, @solid-primitives and devtools-ui, so it
has no runtime solid-js import.
This also removes the Solid 2 dev warnings (more than 100 in the React
example) that the core printed in every app's console.
The devtools-ui fonts are copied to dist/assets, because their relative
URL is wrong once the module is bundled.
* feat(solid-devtools): support Solid 1 and Solid 2 apps
The adapter now uses only the solid-js APIs that both versions have, and
no JSX. A small helper runs effects with the Solid 2 compute/apply split
or the Solid 1 single function. Plugin content is resolved with
children() and put into the mount node, so no @solidjs/web or
solid-js/web import is needed.
The component renders nothing and mounts the shell into <body> from an
effect. Effects do not run on the server, so the clientOnly wrapper is
gone and server and client output match.
The peer range is now solid-js ^1.9.13 || ^2.0.0. Update the docs and
the changeset to match.
* chore: deny the @google/genai install script so CI installs pass
The lockfile now has @google/genai 2.32.0, which has a preinstall script
that only echoes "no-op". pnpm 11 stops the install for build scripts
that allowBuilds does not list, so every CI job failed at setup.
* test(e2e): add a Solid 1 app for @tanstack/solid-devtools
The app uses solid-js 1.9 and vite-plugin-solid 2, so every package gets
the app's Solid 1. The test opens the devtools, then clicks a Solid 1
plugin and checks that its text updates.
Sherif now skips the solid-js version check, because the repo has Solid 1
and Solid 2 apps on purpose.
* fix(devtools): stop installing the bundled Solid packages
The core bundles solid-js, @solidjs/web, @solid-primitives and
devtools-ui, so they move to devDependencies. Apps no longer install
Solid 2, which needs Node 22.12. TabName and TanStackDevtoolsTheme are
written out, so the public types do not import those packages.
devtools-ui and devtools-a11y still depend on Solid 2, so their engines
now say Node 22.12 or later.
The font copy in the build skips a file that the other build (prod or
dev) wrote already. On Windows the two copies failed with EBUSY.
* fix(solid-devtools): keep plugin nodes attached and dispose closed panes
- Plugin nodes go into the pane before the plugin's onMount runs.
- Updates move or remove only the nodes that changed, so an input next to
changing text keeps its focus.
- Closing a pane disposes the plugin's root and still calls the plugin's
own destroy.
- The element type no longer erases the types of render callbacks.
The Solid 1 and Solid 2 e2e apps test these three behaviors.
* fix: handle the open review comments on the Solid 2 port
- setStore saves only the sections an update returns, merged with the
saved values, so a state-only update keeps the saved settings.
- replaceLayout saves the new layout. Before, it saved the store before
the write was committed, so the old layout.
- A devtools-utils Solid panel that fails to load logs the error. Before,
the rejection was unhandled.
- The quick start and the a11y docs say which Solid versions work.
- The SolidStart example README uses `pnpm install --ignore-workspace`,
because the example is outside the workspace.
---------
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Alem Tuzlak <t.zlak@hotmail.com>1 parent 8648af9 commit 560cbec
125 files changed
Lines changed: 3095 additions & 4617 deletions
File tree
- .changeset
- docs
- framework/solid
- guides
- plugins
- e2e/apps
- solid1
- src
- tests
- solid
- src
- tests
- examples/solid
- a11y-devtools
- src
- basic
- src
- devtools-ui
- src
- start
- packages
- devtools-a11y
- src/core
- components
- contexts
- tests
- devtools-ui
- src
- components
- styles
- tests
- devtools-utils
- skills/devtools-framework-adapters/references
- src/solid
- devtools-vite
- skills/devtools-vite-plugin
- src
- devtools
- skills
- devtools-app-setup
- devtools-plugin-panel
- src
- components
- context
- hooks
- styles
- tabs
- marketplace
- utils
- tests
- solid-devtools
- src
- scripts
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
213 | | - | |
| 213 | + | |
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
| 21 | + | |
19 | 22 | | |
20 | 23 | | |
21 | 24 | | |
22 | 25 | | |
23 | | - | |
24 | | - | |
25 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
26 | 30 | | |
27 | | - | |
28 | | - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
29 | 35 | | |
30 | 36 | | |
31 | 37 | | |
| |||
38 | 44 | | |
39 | 45 | | |
40 | 46 | | |
41 | | - | |
| 47 | + | |
42 | 48 | | |
43 | 49 | | |
44 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
142 | | - | |
| 142 | + | |
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
| 48 | + | |
47 | 49 | | |
48 | | - | |
| 50 | + | |
49 | 51 | | |
50 | 52 | | |
51 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| 114 | + | |
| 115 | + | |
114 | 116 | | |
115 | 117 | | |
116 | 118 | | |
| |||
120 | 122 | | |
121 | 123 | | |
122 | 124 | | |
123 | | - | |
| 125 | + | |
124 | 126 | | |
125 | 127 | | |
126 | 128 | | |
| |||
136 | 138 | | |
137 | 139 | | |
138 | 140 | | |
139 | | - | |
| 141 | + | |
140 | 142 | | |
141 | 143 | | |
142 | 144 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | | - | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| 20 | + | |
19 | 21 | | |
20 | 22 | | |
21 | | - | |
22 | | - | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
4 | 12 | | |
5 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
6 | 38 | | |
7 | 39 | | |
8 | 40 | | |
| |||
12 | 44 | | |
13 | 45 | | |
14 | 46 | | |
| 47 | + | |
15 | 48 | | |
16 | | - | |
| 49 | + | |
17 | 50 | | |
18 | 51 | | |
19 | 52 | | |
| |||
0 commit comments