Ad
 
Learn More

The latest tag flip is the Solid 2 line

solid-js 2.0.0 is now the npm latest tag, and @solidjs/router 2.0.0 followed. SolidStart and vite-plugin-solid still expect Solid 1.x, so unpinned installs break before any app code changes.

Written by Watch Changelog Team

•2 min read

The latest tag flip is the Solid 2 line

solid-js 2.0.0 landed on npm on November 17, and we flagged it as Important on SolidJS Releases. The GitHub release says almost nothing, just a version-packages commit. The part that matters is on the registry: the latest tag for solid-js now points at 2.0.0, and 1.x moved to a tag called v1-latest (1.9.19 today). Any install that asks for solid-js without a version now gets Solid 2.

Solid 2 is a real major. The subpath imports most apps use are gone from the package. solid-js 2.0.0 no longer exports solid-js/web, solid-js/store, solid-js/h, solid-js/html, solid-js/universal or the jsx-runtime entries. render and hydrate move to the new @solidjs/web package, store helpers move into solid-js itself, and web projects need jsxImportSource set to @solidjs/web. The package also now declares Node 22.12.0 or later in its engines field.

The router moved with it. @solidjs/router 2.0.0 is also on latest as of this morning and needs solid-js 2 and @solidjs/web 2 as peers, with 1.x parked on v1-latest. The rest of the stack has not caught up yet. The current latest @solidjs/start, 2.2.3, still asks for solid-js 1.9.15 or newer within 1.x and a router below 2.0. The current latest vite-plugin-solid, 2.11.16, still asks for solid-js 1.x. So a new project, a starter, or a quick npm install of solid-js and the router next to SolidStart can pull in two Solid 2 packages that the framework and the build plugin do not accept. Expect peer dependency errors, or with forced installs, missing module errors on the first solid-js/web import.

Your app code changes too once you do move. From the official migration guide: onMount becomes onSettled, createEffect splits into a compute step and an apply step, Index is gone in favor of For with keyed set to false, Suspense and ErrorBoundary become Loading and Errored, createResource gives way to async computations, mergeProps and splitProps become merge and omit, use: directives are removed, and store setters are draft-first. Setters also batch by default, so a read right after a set returns the old value until the batch flushes.

What I would do: check every Solid repo for unpinned solid-js or @solidjs/router ranges, CI steps that install without a lockfile, and templates or scaffolds that pull latest. If you are on SolidStart, pin solid-js to 1.x and the router to the 1.x line (or install from the v1-latest tag) until SolidStart and vite-plugin-solid ship releases that accept Solid 2. Plan the move on a branch with the migration guide open, starting with the import and tsconfig changes, since those fail loudest. The rest of the day's flagged changes are on /sources/important.

Official sources: solid-js on npm, the Solid 2.0 migration guide, @solidjs/router on npm and @solidjs/start on npm.