Skip to content

The Solid grid runs on Solid 2 - #120

Merged
matthewjones372 merged 2 commits into
mainfrom
solid-2
Nov 20, 2026
Merged

matthewjones372 merged 2 commits into
mainfrom
solid-2

Conversation

@matthewjones372

@matthewjones372 matthewjones372 commented Nov 20, 2026 •

Copy link
Copy Markdown
Collaborator

@surefold/grid-solid, the grid's page and the Solid cookbook move from Solid 1.9 to Solid 2.0.3.

What changed

  • Dependencies. solid-js 2 and @solidjs/web; vite-plugin-solid is replaced by @solidjs/vite-plugin 3, which needs Vite 8, so the three web workspaces move from Vite 6 to 8 and @vitejs/plugin-react from 4 to 6. The lockfile is regenerated.
  • @surefold/grid-solid. Effects are split into what they read and what they do (on() is gone). Peers are now solid-js and @solidjs/web ^2.0.0. The signals take ownedWrite, so a table changed while a component is being made does not throw.
  • The grid page. onSettled for onMount, class={[…]} for classList, and flush() where code reads a signal it has just set. The chart asks the table for its columns and grouping rather than signals.
  • Recipes. Charts, FromAnApi and InAWorker no longer set a signal or read a prop while a component is made.
  • Vite configs. The esbuild options Vite 8 dropped are removed; __dirname becomes import.meta.dirname.

Checked

  • npm run check and web/build.sh pass.
  • cookbook.spec.ts and pages.spec.ts: 38 of 38 pass, Solid and React.
  • By hand in Solid's dev build: streaming, grouping, the chart's column, looking back, themes, adding a column, loading as you scroll. No Solid diagnostics remain in the console.

Not confirmed locally: the onedit and decimal fixture tests. They ran against an installed Chrome, which asks for /favicon.ico and trips their console-error check; CI's own browser should not.

To decide

  • Done here: the three grid packages are 0.6.0 (they publish together at one version), so "for Solid 1, use 0.5.0" in the README holds. Nothing is published until a grid-v0.6.0 tag is pushed.
  • createTotal(props.table, …) inside a component now gets Solid's warning about reading a prop as a component is made. The worker recipe avoids it with a plain function; taking an accessor in the hooks would be the fuller answer.

🤖 Generated with Claude Code

matthewjones372 and others added 2 commits November 20, 2026 09:03
@surefold/grid-solid, the grid's page and the Solid cookbook move from
Solid 1.9 to Solid 2.0. Solid's Vite plugin for 2.0 needs Vite 8, so the
three web workspaces move from Vite 6 to 8, and the React plugin with it.

- grid-solid: effects are split into what they read and what they do,
  and its peers are solid-js and @solidjs/web 2.0. The signals may be
  set while a component is being made.
- The page: onSettled for onMount, class lists for classList, and the
  chart asks the table, not a signal set a moment before.
- Recipes: nothing sets a signal or reads a prop as a component is made.
- Vite 8 has no esbuild options; the configs use import.meta.dirname.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@surefold/grid-solid now needs Solid 2, which breaks its Solid 1 users,
so it takes a new version. The three packages publish together at one
version, so @surefold/grid and @surefold/grid-react move with it.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@matthewjones372
matthewjones372 merged commit b70c4a7 into main Nov 20, 2026
9 checks passed
@matthewjones372
matthewjones372 deleted the solid-2 branch November 20, 2026 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant