unstale

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 init

@unstale/cli on npm

solid-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.

    2.0.0release notes

  • 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.

    2.0.0release notes

  • wideWrites is renamed to fanOut; the attribution engine uses this threshold to warn earlier about subscriber fan-out while enabled.

    2.0.0release notes

  • A throwing cleanup no longer aborts teardown: remaining cleanups run and the first error is rethrown after teardown or the flush finishes.

    2.0.0release notes

  • ownerPath now identifies where the error was thrown; the boundary where it was met is reported separately by boundaryPath.

    2.0.0release notes

  • The compiler option was renamed to sourceNames; the compiler rejects componentNames as an unknown option.

    2.0.0release notes

  • createComputed is gone from the API.

    2.0.0release notes

  • 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.

    2.0.0release notes

  • Client-sourced stores remain pending during hydration until their first client result, unless seedLoadingValue exposes the seed as commit zero.

    2.0.0release notes

  • Its types moved to solid-js/internal; it remains a runtime export from solid-js but is no longer part of the public types.

    2.0.0release notes

  • Its return type is now Accessor<T | U>, representing the content and fallback union, rather than () => unknown.

    2.0.0release notes

  • 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.

    2.0.0release notes

  • The option is removed; snapshot-based boundary-local hydration safety makes it unnecessary.

    2.0.0release notes

  • Manual writes to derived stores now win over same-tick recomputes that are already queued.

    2.0.0release notes

  • 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.

    2.0.0release notes

  • The solid-js client dev artifact is renamed from dist/dev.js to dist/solid.dev.js, and the exports map is updated.

    2.0.0release notes

  • The @solidjs/universal client dev artifact is renamed from dist/dev.js to dist/universal.dev.js, and the exports map is updated.

    2.0.0release notes

  • The @solidjs/web client dev artifact is renamed from dist/dev.js to dist/web.dev.js, and the exports map is updated.

    2.0.0release notes

  • 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.

    2.0.0release notes

  • Re-exported from @solidjs/signals; during render(), async values consumed by JSX without a <Loading> boundary now throw an error catchable by <Errored> boundaries.

    2.0.0release notes

  • In development, event handlers fired synchronously from an effect callback no longer inherit its strict-read window or effect-callback phase.

    2.0.0release notes

  • Resolves the caller's render through its owner instead of the module-global SSR context; outside an attributable render it returns undefined.

    2.0.0release notes

  • WIDE_WRITE is folded into HUGE_FAN_OUT, consolidating fan-out warnings under one diagnostic code and threshold story.

    2.0.0release notes

  • Removed from the public API because snapshots make hydration timing transparent.

    2.0.0release notes

  • 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.

    2.0.0release notes

  • A derived store key no longer reads true for one pass at the store's first landing; a first answer is loading, not pending.

    2.0.0release notes

  • The deprecated isSvg API is removed.

    2.0.0release notes

  • JSX type ownership moves from solid-js to renderer packages, so renderer packages provide the relevant JSX types.

    2.0.0release notes

  • Pending reads suspend into the nearest boundary rather than blocking the shell; without a boundary, the renderer blocks the shell as before.

    2.0.0release notes

  • moduleUrl resolves through the caller's render; when no render can be attributed, it returns the raw specifier.

    2.0.0release notes

  • 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.

    2.0.0release notes

  • 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.

    2.0.0release notes

  • The server error hook is consolidated under onError; onServerError is removed.

    2.0.0release notes

  • The deprecated Properties API is removed.

    2.0.0release notes

  • 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.

    2.0.0release notes

  • Replaces SERVER_FN_ERROR_SANITIZED and SSR_ERROR_SANITIZED with one diagnostic code for sanitized server errors.

    2.0.0release notes

  • 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.

    2.0.0release notes

  • Legacy dist/* entrypoints are no longer exported; use the supported public package surface. Dual-runtime packages also provide CJS-specific declarations.

    2.0.0release notes

  • Adds a dev-only subpath entry for the HMR component-swap runtime; production resolves it to inert stubs.

    2.0.0release notes

  • 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.

    2.0.0release notes

  • 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.

    2.0.0release notes

  • 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.

    2.0.0release notes

  • The deprecated SVGNamespace API is removed.

    2.0.0release notes

  • Manual writes to writable derived signals now win over same-tick recomputes that are already queued.

    2.0.0release notes

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.

    2.0.0release notes

Deprecations 2

  • Deprecated for new code; use createEffect(compute, effect) for reactive side effects or onSettled for one-time DOM work after render.

    2.0.0release notes

  • 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.

    2.0.0release notes

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.

    1.0.0, 2.0.0release notesupgrade guide

  • Exported as a type for attribution feedback.

    2.0.0release notes

  • Exported as a type for change-origin data.

    2.0.0release notes

  • Adds a client error hook for handled failures; it reports each error object once and supports ownerPath context.

    2.0.0release notes

  • Configures the HMR cannot-hot-swap bail path instead of hardcoding a page reload.

    2.0.0release notes

  • Accepts the JSX site location as its fourth argument; dev and observe component owners carry it so findings can report the component location.

    2.0.0release notes

  • 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.

    2.0.0release notes

  • Adds a pure fold over attribution records that ranks async sources and interactions by held time and rerun cost.

    2.0.0release notes

  • Lets custom renderers and test harnesses declare a user interaction around a callback so writes can carry interaction provenance.

    2.0.0release notes

  • Registers a footer printed once per diagnostic code after its first console report, helping users find repair guidance.

    2.0.0release notes

  • Adds deferStream to opt into holding the shell on a dynamic source; dynamic continues streaming its source by default.

    2.0.0release notes

  • Adds schedule?: boolean; when true, the initial effect callback uses the effect queue and can be held until a transition settles.

    2.0.0release notes

  • Re-exported from @solidjs/signals with related types.

    2.0.0release notes

  • Adds a gate that bounds transition-hold latency regardless of acknowledgment.

    2.0.0release notes

  • Adds a gate that fails when a transition hold is not acknowledged by the screen, with interaction, held write, blocker, and duration as evidence.

    2.0.0release notes

  • Adds an exported type for feedback interaction records.

    2.0.0release notes

  • Adds an exported type for feedback source records.

    2.0.0release notes

  • Exported as a type for transition-hold events.

    2.0.0release notes

  • Adds an on prop for declarative boundary reset.

    1.0.0, 2.0.0release notesupgrade guide

  • 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.

    2.0.0release notes

  • Diagnostic events now include the root-first chain of named owners enclosing the subject.

    2.0.0release notes

  • A dev-only signals-core helper provides the console face for reporting a diagnostic entry.

    2.0.0release notes

  • Adds maxSilentHoldMs and maxHoldMs responsiveness budget fields.

    2.0.0release notes

  • A new server diagnostic reports sequential waits at SSR boundaries; ASYNC_WATERFALL is client-only again.

    2.0.0release notes

  • Adds four modes—server, hybrid, initial, and client—to control how computations serialize and hydrate.

    2.0.0release notes

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.

    2.0.0release notes

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.

    2.0.0release notes

  • Adds a dev diagnostic that throws when a store setter callback returns a Promise, because store setter callbacks are synchronous transactions.

    2.0.0release notes

  • Returns an idempotent release function for its hold; options combine across holds by the most demanding request per key, and disable performs full teardown.

    2.0.0release notes

  • Compute results are inferred as const so inline tuple results retain their element types without a type argument or as const.

    2.0.0release notes

  • Collected client errors can now be reported through the client error hook, including failures handled by an error boundary.

    2.0.0release notes

  • Hydration now returns async iterables for createMemo to the signals async pipeline for native handling, eliminating manual flush and schedule management.

    2.0.0release notes

  • 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.

    2.0.0release notes

  • Hydration now returns async iterables for createProjection to the signals async pipeline for native handling, eliminating manual flush and schedule management.

    2.0.0release notes

  • Hydration now returns async iterables for createStore(fn) to the signals async pipeline for native handling, eliminating manual flush and schedule management.

    2.0.0release notes

  • 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.

    2.0.0release notes

  • 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.

    2.0.0release notes

  • 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.

    2.0.0release notes

  • Creating a memo, effect, or owner inside createTrackedEffect or owner-backed onSettled now emits this dev-only error diagnostic before throwing.

    2.0.0release notes

  • 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.

    2.0.0release notes

  • Adds server-rendering support with streaming fragment coordination, collapsed fallback mode, and nested composite slots.

    2.0.0release notes

  • Supports SSR for seeded derived stores: the server renders the seed as commit #0 and the client hydrates with it.

    2.0.0release notes

  • 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.

    2.0.0release notes

  • 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.

    2.0.0release notes

Tooling 7

  • Dev-mode diagnostic messages now include their stable code identifier as a prefix, making messages searchable by code.

    2.0.0release notes

  • Compiled JSX binding-effect diagnostics identify the element they write, and why-chains appear as collapsed console groups.

    2.0.0release notes

  • Attribution can report derived state kept in sync by an effect when the resulting relay causes torn or duplicate runs.

    2.0.0release notes

  • Attribution reports effects whose writes feed their own inputs, including cycles relayed across effects.

    2.0.0release notes

  • Adds a diagnostics harness with scenario capture, assertion helpers, Vitest matchers, browser and Playwright adapters, protocol types, and JSONL export.

    2.0.0release notes

  • Adds a Vitest matcher for asserting that an artifact has no silent holds.

    2.0.0release notes

  • Adds a Vitest matcher for asserting that hold latency stays within a budget.

    2.0.0release notes

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.

    2.0.1release notes

  • Reading the length descriptor of a frozen source array no longer causes a proxy-invariant TypeError.

    2.0.1release notes

  • Hydration adoption no longer pulls an async iterable that the compute did not construct, avoiding corrupted queues and stalled foreign subscriptions.

    2.0.0release notes

  • Hydration and SSR wrappers now forward async iterator cancellation so generators close when adapters or serializers stop consuming them.

    2.0.0release notes

  • This diagnostic now fires once per render() instead of once per pending render effect.

    2.0.0release notes

  • Development messages now identify the context and explain whether no provider/default, an undefined default, or an undefined provider value caused the error.

    2.0.0release notes

  • Its return type is now Accessor<T | U>, representing the content and fallback union, rather than () => unknown.

    2.0.0release notes

  • Fixes seed typing so readonly store seeds do not override inference from the projection function's return type.

    2.0.0release notes

  • Fixes SSR behavior so createSignal(fn) with an async value triggers a <Loading> boundary instead of showing undefined.

    2.0.0release notes

  • 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.

    2.0.0release notes

  • 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.

    2.0.0release notes

  • dynamicComponent moves into solid-js; @solidjs/web keeps dynamic and re-exports it.

    2.0.0release notes

  • 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.

    2.0.0release notes

  • Builds a function-valued fallback inside its own scope regardless of arity, aligning hydration key allocation; rest-parameter fallbacks receive err and reset.

    2.0.0release notes

  • Returning h(Comp, …) from a render-prop callback no longer remounts stable rows on parent updates.

    2.0.0release notes

  • Client development builds now throw a descriptive error when a JSX tag resolves to a non-function, rather than crashing while reading its name.

    2.0.0release notes

  • preload resolves the caller's own render rather than using the module-global SSR context, avoiding asset hints being registered against another concurrent render.

    2.0.0release notes

  • 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.

    2.0.0release notes

  • Adds MathML support to Dynamic and createElement.

    2.0.0release notes

  • Serialized null and undefined values are now adopted correctly instead of being treated as absent and causing the client compute to run.

    2.0.0release notes

  • 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.

    2.0.0release notes

  • Default/server hydration adoption now re-runs nodes whose dependencies diverged during the hydration window once hydration completes, rather than silently losing the change.

    2.0.0release notes

  • 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.

    2.0.0release notes

solid-js 120 changes

Breaking changes 7

  • Replace cache with query for Solid Router data loading.

    1.0.0upgrade guide

  • Replace Solid Router createAsync data loading with createMemo.

    1.0.0upgrade guide

  • An async memo becomes a value in the graph; writes to its inputs are held until it has a result, coordinating updates across consumers.

    1.0.0upgrade guide

  • An async memo can replace a resource or createAsync fetch; its coordinated update behavior keeps old content until new data is ready.

    1.0.0upgrade guide

  • 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.

    1.0.0upgrade guide

  • Use query in place of Solid Router's cache when migrating data loading.

    1.0.0upgrade guide

  • Re-asks the same question from a source, replacing reload signals or resource refetch calls.

    1.0.0upgrade guide

New APIs and options 4

  • createStore(async fn, seed) reads inputs, awaits the response, and reconciles the result into the store.

    1.0.0upgrade guide

  • Thrown request failures reach the nearest Errored boundary, which can show the error and retry it.

    1.0.0upgrade guide

  • Reports pending async work so consumers can make held updates visible, such as by dimming content.

    1.0.0upgrade guide

  • Declares a placeholder for a source before its first result, allowing JSX such as Show to decide what renders without reaching a Loading boundary.

    1.0.0upgrade guide

Performance 1

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.

    1.0.0upgrade guide

  • Converted fetches enable server rendering to stream each region as its data settles.

    1.0.0upgrade guide

  • Delete startTransition when it was used to keep old content during a reload; that behavior is now the default.

    1.0.0upgrade guide

Fixes and other changes 5

  • Sets the committed value for computations created during a transition.

    1.9.12release notes

  • Prevents createDeferred from keeping the Node.js process alive.

    1.9.12release notes

  • Lazily creates the external source to prevent use-after-dispose.

    1.9.12release notes

  • Fixes SSR output for bool: attribute serialization and escaping for logical and child expressions.

    1.9.12release notes

  • Fixes an SSR collision caused by the loading property in createResource.

    1.9.10release notes