npm / solid-js
solid-js
What changed in solid-js 1 to 2, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
51 breaking1 security2 deprecations29 new APIs and options2 performance21 behavior and defaults7 tooling28 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initsolid-js 2121 changes
Breaking changes 44
The API accepts at most one optional key; mark multiple slots with multiple calls or target the nested record directly. Passing multiple keys throws in dev.
Async memos that resolve to rendered output are rejected at the value landing, with a diagnostic; return data from the memo and render JSX separately.
wideWritesis renamed tofanOut; the attribution engine uses this threshold to warn earlier about subscriber fan-out while enabled.A throwing cleanup no longer aborts teardown: remaining cleanups run and the first error is rethrown after teardown or the flush finishes.
ownerPathnow identifies where the error was thrown; the boundary where it was met is reported separately byboundaryPath.The compiler option was renamed to sourceNames; the compiler rejects componentNames as an unknown option.
createComputed is gone from the API.
The default-less generic form now returns Context<T>, and useContext returns T directly; missing providers still throw ContextNotFoundError. The form with an explicit default is unchanged.
Client-sourced stores remain pending during hydration until their first client result, unless seedLoadingValue exposes the seed as commit zero.
Its types moved to solid-js/internal; it remains a runtime export from solid-js but is no longer part of the public types.
Its return type is now Accessor<T | U>, representing the content and fallback union, rather than () => unknown.
It is no longer in solid-js public types and is typed only through solid-js/internal. Application code should use createRoot and runWithOwner instead.
The option is removed; snapshot-based boundary-local hydration safety makes it unnecessary.
Manual writes to derived stores now win over same-tick recomputes that are already queued.
Manual writes to writable derived values apply immediately; when a source changes, the derivation reruns and receives the write as prev or as the store draft.
The solid-js client dev artifact is renamed from dist/dev.js to dist/solid.dev.js, and the exports map is updated.
The @solidjs/universal client dev artifact is renamed from dist/dev.js to dist/universal.dev.js, and the exports map is updated.
The @solidjs/web client dev artifact is renamed from dist/dev.js to dist/web.dev.js, and the exports map is updated.
Async dynamic instances serialize their landing for hydration, which the client adopts instead of re-running the source. Async sources resolving to client component functions are rejected with DYNAMIC_ASYNC_COMPONENT.
Re-exported from
@solidjs/signals; duringrender(), async values consumed by JSX without a<Loading>boundary now throw an error catchable by<Errored>boundaries.In development, event handlers fired synchronously from an effect callback no longer inherit its strict-read window or effect-callback phase.
Resolves the caller's render through its owner instead of the module-global SSR context; outside an attributable render it returns undefined.
WIDE_WRITEis folded intoHUGE_FAN_OUT, consolidating fan-out warnings under one diagnostic code and threshold story.Removed from the public API because snapshots make hydration timing transparent.
Pending now reflects unrevealed in-flight value changes or live affects marks; stable same-question re-asks no longer appear pending, and optimistic overrides do not mask pending state.
A derived store key no longer reads true for one pass at the store's first landing; a first answer is loading, not pending.
The deprecated isSvg API is removed.
JSX type ownership moves from solid-js to renderer packages, so renderer packages provide the relevant JSX types.
Pending reads suspend into the nearest boundary rather than blocking the shell; without a boundary, the renderer blocks the shell as before.
moduleUrl resolves through the caller's render; when no render can be attributed, it returns the raw specifier.
Callbacks on one owner now run in reverse registration order. A throwing cleanup no longer aborts teardown: other cleanups run, then the first error is rethrown.
The server onError option is now the server error hook, and one-argument handlers keep working while hearing every handled failure; filter on context.handling === "failed" for request-failing failures.
The server error hook is consolidated under onError; onServerError is removed.
The deprecated Properties API is removed.
The root mount participates in transitions: uncaught async during initial render withholds DOM attachment until pending work settles, while the no-async path remains synchronous.
Replaces
SERVER_FN_ERROR_SANITIZEDandSSR_ERROR_SANITIZEDwith one diagnostic code for sanitized server errors.Only non-GET calls made inside an action get default revalidation. Calls elsewhere no longer trigger it; explicit X-Revalidate keys and redirects still reach consumers.
Legacy dist/* entrypoints are no longer exported; use the supported public package surface. Dual-runtime packages also provide CJS-specific declarations.
Adds a dev-only subpath entry for the HMR component-swap runtime; production resolves it to inert stubs.
Adds a compiler option for source names carried into output for dev and observe runtime labels; true enables component names, while the object form selects kinds.
Hybrid stores wait for a pending server answer to resolve or reject before handoff; dependency changes can supersede it, and a rejected server answer remains surfaced until refresh.
A bare ssrSource: "client" is now a structural server hole: reads suspend the nearest <Loading> boundary and the client renders the content fresh after hydration. Reads outside a boundary throw an error.
The deprecated SVGNamespace API is removed.
Manual writes to writable derived signals now win over same-tick recomputes that are already queued.
Security 1
Escapes string content rendered by
<Errored>on the server, preventing user text from becoming live markup and avoiding a hydration text-node mismatch.
Deprecations 2
Deprecated for new code; use createEffect(compute, effect) for reactive side effects or onSettled for one-time DOM work after render.
Server-side setter writes now emit a [SERVER_WRITE] warning. Behavior is unchanged this release, but server writes will become an error in a future release.
New APIs and options 25
Declares that in-flight work will change targeted data, causing the named slots or source accessor to read pending until the surrounding transaction settles or reverts.
Exported as a type for attribution feedback.
Exported as a type for change-origin data.
Adds a client error hook for handled failures; it reports each error object once and supports ownerPath context.
Configures the HMR cannot-hot-swap bail path instead of hardcoding a page reload.
Accepts the JSX site location as its fourth argument; dev and observe component owners carry it so findings can report the component location.
Adds an async memo that may lag but never leads: after its first answer, refetches keep the previous answer until the new one lands, while isPending reports the refetch.
Adds a pure fold over attribution records that ranks async sources and interactions by held time and rerun cost.
Lets custom renderers and test harnesses declare a user interaction around a callback so writes can carry interaction provenance.
Registers a footer printed once per diagnostic code after its first console report, helping users find repair guidance.
Adds deferStream to opt into holding the shell on a dynamic source; dynamic continues streaming its source by default.
Adds schedule?: boolean; when true, the initial effect callback uses the effect queue and can be held until a transition settles.
Re-exported from
@solidjs/signalswith related types.Adds a gate that bounds transition-hold latency regardless of acknowledgment.
Adds a gate that fails when a transition hold is not acknowledged by the screen, with interaction, held write, blocker, and duration as evidence.
Adds an exported type for feedback interaction records.
Adds an exported type for feedback source records.
Exported as a type for transition-hold events.
Adds an
onprop for declarative boundary reset.Adds a recovery record for client rendering of a handed-over Loading boundary, including fallback duration and fresh-render cost, joined to the server boundary record by id.
Diagnostic events now include the root-first chain of named owners enclosing the subject.
A dev-only signals-core helper provides the console face for reporting a diagnostic entry.
Adds
maxSilentHoldMsandmaxHoldMsresponsiveness budget fields.A new server diagnostic reports sequential waits at SSR boundaries;
ASYNC_WATERFALLis client-only again.Adds four modes—server, hybrid, initial, and client—to control how computations serialize and hydrate.
Performance 1
Keyed <For> over a store array can use a patch-mode row-ops driver, avoiding mapArray, per-row owners, and DOM-side reconciliation when eligible.
Behavior and default changes 18
The dev diagnostic is now a non-halting console warning rather than an error; it only fires during the synchronous body of render or hydrate.
Adds a dev diagnostic that throws when a store setter callback returns a Promise, because store setter callbacks are synchronous transactions.
Returns an idempotent release function for its hold; options combine across holds by the most demanding request per key, and disable performs full teardown.
Compute results are inferred as const so inline tuple results retain their element types without a type argument or as const.
Collected client errors can now be reported through the client error hook, including failures handled by an error boundary.
Hydration now returns async iterables for
createMemoto the signals async pipeline for native handling, eliminating manual flush and schedule management.A hybrid async-generator memo hands off only after the server answer lands, keeping the node settled and isPending false until the client generator produces something new.
Hydration now returns async iterables for
createProjectionto the signals async pipeline for native handling, eliminating manual flush and schedule management.Hydration now returns async iterables for
createStore(fn)to the signals async pipeline for native handling, eliminating manual flush and schedule management.Pending reads suspend into the nearest boundary so it can stream content behind its placeholder; without a boundary, the renderer blocks the shell as before.
Rejected module promises are no longer cached. Failed chunk loads can retry on the next client mount or preload, and transient server import failures do not poison later SSR requests.
Supports SSR for loading-value memos: the server renders the loading value and the client hydrates from the serialized landing without suspending on the server.
Creating a memo, effect, or owner inside
createTrackedEffector owner-backedonSettlednow emits this dev-only error diagnostic before throwing.Returns a promise for the target's next quiescent state; it resolves with the settled value or store node and rejects if the re-ask fails.
Adds server-rendering support with streaming fragment coordination, collapsed fallback mode, and nested composite slots.
Supports SSR for seeded derived stores: the server renders the seed as commit #0 and the client hydrates with it.
Hybrid async-generator signal-shaped nodes re-run the client generator after hydration adoption: the first yield reproduces the server value and subsequent yields apply live.
Dev builds detect unscoped function holes that permute hydration keys and report this diagnostic on both server render and client hydrate. The message recommends calling the function at the hole or passing the built value.
Tooling 7
Dev-mode diagnostic messages now include their stable code identifier as a prefix, making messages searchable by code.
Compiled JSX binding-effect diagnostics identify the element they write, and why-chains appear as collapsed console groups.
Attribution can report derived state kept in sync by an effect when the resulting relay causes torn or duplicate runs.
Attribution reports effects whose writes feed their own inputs, including cycles relayed across effects.
Adds a diagnostics harness with scenario capture, assertion helpers, Vitest matchers, browser and Playwright adapters, protocol types, and JSONL export.
Adds a Vitest matcher for asserting that an artifact has no silent holds.
Adds a Vitest matcher for asserting that hold latency stays within a budget.
Fixes and other changes 23
Frozen plain objects and arrays inside a store now wrap and track like unfrozen ones, allowing fine-grained updates for libraries that freeze their state.
Reading the length descriptor of a frozen source array no longer causes a proxy-invariant TypeError.
Hydration adoption no longer pulls an async iterable that the compute did not construct, avoiding corrupted queues and stalled foreign subscriptions.
Hydration and SSR wrappers now forward async iterator cancellation so generators close when adapters or serializers stop consuming them.
This diagnostic now fires once per
render()instead of once per pending render effect.Development messages now identify the context and explain whether no provider/default, an undefined default, or an undefined provider value caused the error.
Its return type is now Accessor<T | U>, representing the content and fallback union, rather than () => unknown.
Fixes seed typing so readonly store seeds do not override inference from the projection function's return type.
Fixes SSR behavior so
createSignal(fn)with an async value triggers a<Loading>boundary instead of showingundefined.A deferStream read inside a code-split lazy component now holds the shell until the chunk loads, while the boundary still owns data discovered by the loaded code.
render and hydrate with a document root now preserve the subscription scope for top-level reactive expressions, so they continue responding to signal changes after initial flattening.
dynamicComponentmoves intosolid-js;@solidjs/webkeepsdynamicand re-exports it.An
<Errored>around a<Loading>whose async read fails during streamed rendering can render its fallback in server HTML and have the client adopt that markup and serialized error.Builds a function-valued fallback inside its own scope regardless of arity, aligning hydration key allocation; rest-parameter fallbacks receive
errandreset.Returning h(Comp, …) from a render-prop callback no longer remounts stable rows on parent updates.
Client development builds now throw a descriptive error when a JSX tag resolves to a non-function, rather than crashing while reading its name.
preload resolves the caller's own render rather than using the module-global SSR context, avoiding asset hints being registered against another concurrent render.
on is treated as a value prop so keyed loading boundaries work with normal component usage; server boundary key alignment also accounts for the on dependency.
Adds MathML support to Dynamic and createElement.
Serialized null and undefined values are now adopted correctly instead of being treated as absent and causing the client compute to run.
Hybrid memo and function-form signal handoff waits for the server answer to land, adopts it as the synchronous first step, and avoids a pending window during handoff.
Default/server hydration adoption now re-runs nodes whose dependencies diverged during the hydration window once hydration completes, rather than silently losing the change.
The signal option now types as the global AbortSignal when available, or as until's minimal abort surface otherwise, allowing declarations to type-check without DOM or Node types.
solid-js 120 changes
Breaking changes 7
Replace cache with query for Solid Router data loading.
Replace Solid Router createAsync data loading with createMemo.
An async memo becomes a value in the graph; writes to its inputs are held until it has a result, coordinating updates across consumers.
An async memo can replace a resource or createAsync fetch; its coordinated update behavior keeps old content until new data is ready.
Loading handles the first load and can show a fallback when its on value changes, allowing content to behave independently instead of holding the update.
Use
queryin place of Solid Router'scachewhen migrating data loading.Re-asks the same question from a source, replacing reload signals or resource refetch calls.
New APIs and options 4
createStore(async fn, seed) reads inputs, awaits the response, and reconciles the result into the store.
Thrown request failures reach the nearest Errored boundary, which can show the error and retry it.
Reports pending async work so consumers can make held updates visible, such as by dimming content.
Declares a placeholder for a source before its first result, allowing JSX such as Show to decide what renders without reaching a Loading boundary.
Performance 1
Improves splitProps performance.
Behavior and default changes 3
Effects have a compute phase that tracks reads and returns a value, followed by an untracked effect phase that receives the value and may return cleanup.
Converted fetches enable server rendering to stream each region as its data settles.
Delete
startTransitionwhen it was used to keep old content during a reload; that behavior is now the default.
Fixes and other changes 5
Sets the committed value for computations created during a transition.
Prevents createDeferred from keeping the Node.js process alive.
Lazily creates the external source to prevent use-after-dispose.
Fixes SSR output for bool: attribute serialization and escaping for logical and child expressions.
Fixes an SSR collision caused by the loading property in createResource.