Skip to content

feat(solid): add Solid 2 next to Solid 1 - #330

Merged
matschik merged 3 commits into
mainfrom
feat/solid-2
Nov 18, 2026
Merged

matschik merged 3 commits into
mainfrom
feat/solid-2

Conversation

@matschik

Copy link
Copy Markdown
Owner

Requested by Mathieu · project thread

  • feat(solid): add Solid 2 next to Solid 1. Solid 2.0 is stable since 2026-11-16 (solid-js@2.0.0). The previous snippets move to solid1; solid2 changes 8 of them, following the migration guide: onSettled replaces onMount (and returns the interval cleanup), merge replaces mergeProps, the context is its own provider, render comes from @solidjs/web, setName moves out of the component body (Solid 2 forbids writes there), and fetch-data uses an async createMemo under <Loading> and <Errored>. The solid family, ?f=solid, saved selections and the old /compare/*-solid URLs now resolve to Solid 2 (301).
  • fix(solid): open full-app snippets from their own entry in the playground. The Solid playground now runs 2.0 by default, so today's Solid links fail on onMount. Each link pins its version through an import_map.json tab (1.9.19 or 2.0.0), and "Render app" opens from its own main.jsx.
  • fix(og): keep share images of the former solid comparison URLs. /og/react-vs-solid.png and the other old slugs still render.

Checks: the 22 Solid 2 examples run clean under Vite dev with Solid's dev diagnostics on (a Solid 1 snippet triggers REACTIVE_WRITE_IN_OWNED_SCOPE as a control); playground links open in Chromium on v1.9.19 and v2.0.0; vp test (36), check:ci and build pass.

Known gap, unchanged: scripts/npmDownloadStats.ts sends solid-js@^1 like it already sends vue@^2, which the npm downloads API does not accept.

Solid 2.0 is stable since 2026-11-16. The previous Solid snippets become
solid1, and solid2 holds the 2.0 versions: onSettled replaces onMount,
merge replaces mergeProps, the context is its own provider, render comes
from @solidjs/web, and fetch-data uses an async createMemo with Loading
and Errored. The solid family and old /compare/*-solid URLs now resolve
to Solid 2.

The Solid playground runs 2.0 by default, so Solid 1 links failed on
onMount. Each playground link now pins its version with an import map.
@matschik matschik self-assigned this Nov 18, 2026
@matschik
matschik merged commit 7173e77 into main Nov 18, 2026
2 checks passed
@matschik-usine
matschik-usine Bot deleted the feat/solid-2 branch November 22, 2026 10:59
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