From 8d4ed67f67d9f8f8b6c8fbdaa41a419d6e68828e Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 2 Dec 2026 08:14:37 +0000 Subject: [PATCH] Version packages --- .changeset/cleanup-action-landing-5233.md | 5 ---- .changeset/cleanup-writes-by-phase.md | 6 ---- .changeset/create-root-no-closure.md | 5 ---- .changeset/effect-cleanup-prod-5208.md | 5 ---- .changeset/entry-link-headers.md | 7 ----- ...rrored-nested-loading-preflush-fallback.md | 8 ------ .../fix-ssr-function-spread-presence.md | 5 ---- .changeset/get-file-arguments-error.md | 5 ---- .changeset/html-copy-nested-children.md | 5 ---- .changeset/hydration-ref-snapshot-read.md | 5 ---- .changeset/keep-deferred-hydration-region.md | 5 ---- .changeset/loading-on-mount-effect-5203.md | 5 ---- .changeset/nested-errored-async-rethrow.md | 5 ---- .changeset/plenty-moons-shave.md | 5 ---- .changeset/reconcile-keyed-row-proxy-5220.md | 5 ---- .changeset/release-removed-spread-checked.md | 5 ---- .changeset/repark-drops-disposed-source.md | 5 ---- .changeset/share-hydration-node-collection.md | 5 ---- .changeset/skip-omitted-ref-alias.md | 5 ---- .changeset/ssr-root-hole-dollar-patterns.md | 5 ---- .changeset/thin-store-engine.md | 5 ---- packages/diagnostics/CHANGELOG.md | 28 +++++++++++++++++++ packages/diagnostics/package.json | 8 +++--- packages/element/package.json | 4 +-- packages/h/package.json | 2 +- packages/html/CHANGELOG.md | 15 ++++++++++ packages/html/package.json | 4 +-- packages/signals/CHANGELOG.md | 15 ++++++++++ packages/signals/package.json | 2 +- packages/solid/CHANGELOG.md | 23 +++++++++++++++ packages/solid/package.json | 4 +-- packages/universal/CHANGELOG.md | 10 +++++++ packages/universal/package.json | 4 +-- packages/web/CHANGELOG.md | 24 ++++++++++++++++ packages/web/package.json | 4 +-- 35 files changed, 131 insertions(+), 127 deletions(-) delete mode 100644 .changeset/cleanup-action-landing-5233.md delete mode 100644 .changeset/cleanup-writes-by-phase.md delete mode 100644 .changeset/create-root-no-closure.md delete mode 100644 .changeset/effect-cleanup-prod-5208.md delete mode 100644 .changeset/entry-link-headers.md delete mode 100644 .changeset/errored-nested-loading-preflush-fallback.md delete mode 100644 .changeset/fix-ssr-function-spread-presence.md delete mode 100644 .changeset/get-file-arguments-error.md delete mode 100644 .changeset/html-copy-nested-children.md delete mode 100644 .changeset/hydration-ref-snapshot-read.md delete mode 100644 .changeset/keep-deferred-hydration-region.md delete mode 100644 .changeset/loading-on-mount-effect-5203.md delete mode 100644 .changeset/nested-errored-async-rethrow.md delete mode 100644 .changeset/plenty-moons-shave.md delete mode 100644 .changeset/reconcile-keyed-row-proxy-5220.md delete mode 100644 .changeset/release-removed-spread-checked.md delete mode 100644 .changeset/repark-drops-disposed-source.md delete mode 100644 .changeset/share-hydration-node-collection.md delete mode 100644 .changeset/skip-omitted-ref-alias.md delete mode 100644 .changeset/ssr-root-hole-dollar-patterns.md delete mode 100644 .changeset/thin-store-engine.md diff --git a/.changeset/cleanup-action-landing-5233.md b/.changeset/cleanup-action-landing-5233.md deleted file mode 100644 index 2ede9b4e9..000000000 --- a/.changeset/cleanup-action-landing-5233.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@solidjs/signals": patch ---- - -An action started while a transition lands, from a cleanup (`onCleanup` or an effect's returned cleanup) or from an optimistic value's `equals`, no longer leaves the flush pointing at the landed transaction. Before, the next action merged into it: its write showed but was never committed, and a later write that compared against the signal was skipped (#5233). An action that yielded could also commit its first write during the `yield`. diff --git a/.changeset/cleanup-writes-by-phase.md b/.changeset/cleanup-writes-by-phase.md deleted file mode 100644 index 56fcbcc09..000000000 --- a/.changeset/cleanup-writes-by-phase.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@solidjs/signals": patch -"solid-js": patch ---- - -Development: whether a cleanup may write is now decided by the scope it belongs to, not by where teardown runs it. A setter, store setter, `refresh` or `action` call from an `onCleanup` is an owned write again (`REACTIVE_WRITE_IN_OWNED_SCOPE`, `ACTION_CALLED_IN_OWNED_SCOPE`), under a removed `` row and under a `` branch alike. A cleanup returned from an effect callback or from `onSettled` may still write and call actions. Move the write into a returned cleanup, or mark the signal `ownedWrite`. Production output is unchanged by this. diff --git a/.changeset/create-root-no-closure.md b/.changeset/create-root-no-closure.md deleted file mode 100644 index f0010c850..000000000 --- a/.changeset/create-root-no-closure.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@solidjs/signals": patch ---- - -`createRoot` calls `init` without allocating a wrapper closure for each root. Creating a root is 10 to 25% faster in a Node microbench; `init` still receives `dispose` as its only argument. diff --git a/.changeset/effect-cleanup-prod-5208.md b/.changeset/effect-cleanup-prod-5208.md deleted file mode 100644 index bc5d5697c..000000000 --- a/.changeset/effect-cleanup-prod-5208.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@solidjs/signals": patch ---- - -In production, an effect that returns a non-function cleanup no longer stores that value. The next run used to call it and halt the reactive system. Development still throws on the run that returned it. diff --git a/.changeset/entry-link-headers.md b/.changeset/entry-link-headers.md deleted file mode 100644 index aed09952b..000000000 --- a/.changeset/entry-link-headers.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@solidjs/web": patch ---- - -A server render under a request event now adds the client entry's assets to the response as a `Link` header: the entry script and its static imports as `rel=preload; as=script; crossorigin`, and their stylesheets as `rel=preload; as=style`. Hosts and CDNs that build `103 Early Hints` from `Link` headers, such as Cloudflare, can then start those downloads before the page arrives. Scripts use `preload` rather than `modulepreload` because Cloudflare and Chrome document only `preload` and `preconnect` for Early Hints. It covers the static build manifest only, so dev renders add nothing, and `noScripts` renders hint only stylesheets. - -`createSSRResponse` now appends the response stub's `Link` values to a `Link` header in `responseInit` instead of replacing it, as it already does for `Server-Timing`. diff --git a/.changeset/errored-nested-loading-preflush-fallback.md b/.changeset/errored-nested-loading-preflush-fallback.md deleted file mode 100644 index 04aa3227e..000000000 --- a/.changeset/errored-nested-loading-preflush-fallback.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -"solid-js": patch -"@solidjs/web": patch ---- - -During `renderToStream`, an `` whose `` fails before the shell is sent now draws its error fallback in the shell even when the `` is not all of its content: markup between them (`
`), a sibling beside the ``, or another `` inside the ``. The fallback replaces the ``'s whole content, as a client render shows it, and the error is serialized at the ``, so the hydrating client adopts that markup without asking again and recovers when the content's inputs change (#4287). The server error hook hears `fallback`. Before, the shell kept the content with the failed ``'s position empty (`` for ``), and the fallback appeared only once the client hydrated, or never without JavaScript. The same applies to the awaited form (`await renderToStream(...)`). - -The fallback is drawn only when it is ready as it renders; the shell never waits for it. A fallback with an async or client-only hole, or one that throws with no `` above it, leaves the shell as before: the client renders the failure, and the hook hears `client`. So does an `` whose markup has no place of its own in the shell: one that put no element and no `` placeholder into the page (text alone, or nothing), or that was itself never inserted. A fallback that throws inside an outer `` is that boundary's failure, drawn in the shell the same way. When the hook maps the error to another value, a fallback that reads the error is rendered again with that value; if that second render throws or is not ready, nothing is drawn, although the hook has already heard `fallback`. Whatever the replaced content still had pending goes with it. A `` still pending inside it streams nothing, and its head tags (`useHead`) never reach the document head, whether they come from a settled `` or from the content itself. A later failure inside the replaced content is still reported to the hook as `client`. After the shell has been sent, a nested `` failure still streams an empty fragment and the client renders the failure, as before. diff --git a/.changeset/fix-ssr-function-spread-presence.md b/.changeset/fix-ssr-function-spread-presence.md deleted file mode 100644 index 6be38f2f0..000000000 --- a/.changeset/fix-ssr-function-spread-presence.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"solid-js": patch ---- - -Fix server rendering so `Object.hasOwn` distinguishes omitted props from explicit `undefined` in a lone function spread. diff --git a/.changeset/get-file-arguments-error.md b/.changeset/get-file-arguments-error.md deleted file mode 100644 index d1c241fbb..000000000 --- a/.changeset/get-file-arguments-error.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@solidjs/web": patch ---- - -A `GET` server function called with a file among its arguments (with `enableRichArguments`) now throws a clear error before sending, instead of putting `[object FormData]` in the url and failing with a 400. A `GET` call whose codec-encoded arguments are too long for a url and go over POST now sends the encoding it already made instead of encoding the arguments a second time, so a one-shot argument such as an async iterator arrives with all its chunks. diff --git a/.changeset/html-copy-nested-children.md b/.changeset/html-copy-nested-children.md deleted file mode 100644 index 2a42e3d4b..000000000 --- a/.changeset/html-copy-nested-children.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@solidjs/html": patch ---- - -Preserve nested children when a tagged component copies its props with object spread or `Object.assign`. diff --git a/.changeset/hydration-ref-snapshot-read.md b/.changeset/hydration-ref-snapshot-read.md deleted file mode 100644 index 82d9b86ec..000000000 --- a/.changeset/hydration-ref-snapshot-read.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@solidjs/signals": patch ---- - -Hydration no longer discards a served element and calls its ref twice when the ref reads a signal whose value differs from the hydration snapshot. The ref is served the snapshot and runs once on the served element; its read no longer replays the pass that created the element. diff --git a/.changeset/keep-deferred-hydration-region.md b/.changeset/keep-deferred-hydration-region.md deleted file mode 100644 index 7ef26c332..000000000 --- a/.changeset/keep-deferred-hydration-region.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@solidjs/web": patch ---- - -Replace stale server-rendered Loading boundary content if its module preload fails and the client renders the boundary again. diff --git a/.changeset/loading-on-mount-effect-5203.md b/.changeset/loading-on-mount-effect-5203.md deleted file mode 100644 index b6eeb8690..000000000 --- a/.changeset/loading-on-mount-effect-5203.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@solidjs/signals": patch ---- - -Defer mid-flush `ASYNC_OUTSIDE_LOADING_BOUNDARY` diagnostics until after `settle()`, so pending reads inside a `` boundary whose `on` computation sits higher in the heap run and re-arm the boundary before the warning is evaluated. diff --git a/.changeset/nested-errored-async-rethrow.md b/.changeset/nested-errored-async-rethrow.md deleted file mode 100644 index 2c09edc0b..000000000 --- a/.changeset/nested-errored-async-rethrow.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@solidjs/signals": patch ---- - -Do not keep an inner error boundary's pending reader attached to an outer error boundary after an async rejection is caught by the inner boundary (#5261). diff --git a/.changeset/plenty-moons-shave.md b/.changeset/plenty-moons-shave.md deleted file mode 100644 index 2949b0b91..000000000 --- a/.changeset/plenty-moons-shave.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"solid-js": patch ---- - -Export the `NoFn` type from `solid-js` (client and server entries), alongside the other store types already re-exported from `@solidjs/signals`. diff --git a/.changeset/reconcile-keyed-row-proxy-5220.md b/.changeset/reconcile-keyed-row-proxy-5220.md deleted file mode 100644 index 836477da8..000000000 --- a/.changeset/reconcile-keyed-row-proxy-5220.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@solidjs/signals": patch ---- - -A keyed `reconcile` keeps a row's store proxy when the row is matched by key, even if nothing has subscribed to any of its fields. Before, such a row got a new proxy at every reconcile, so a `` over the list disposed and remade the row and lost its local state. Updates to the kept proxy follow normal store flush and transition timing. diff --git a/.changeset/release-removed-spread-checked.md b/.changeset/release-removed-spread-checked.md deleted file mode 100644 index 7619ecf44..000000000 --- a/.changeset/release-removed-spread-checked.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@solidjs/web": patch ---- - -A JSX spread that drops `checked`, `value` or `selected` clears it once and then leaves it alone, so a later unrelated prop change in the same spread no longer clears a checkbox, radio, typed text or chosen option the user set since. diff --git a/.changeset/repark-drops-disposed-source.md b/.changeset/repark-drops-disposed-source.md deleted file mode 100644 index 8980f917c..000000000 --- a/.changeset/repark-drops-disposed-source.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@solidjs/signals": patch ---- - -fix(signals): a re-parked reader drops a pending source that was disposed while loading, so a hold whose owner re-ran and replaced that source lands, and a staged error reaches its boundary diff --git a/.changeset/share-hydration-node-collection.md b/.changeset/share-hydration-node-collection.md deleted file mode 100644 index 9e0087c18..000000000 --- a/.changeset/share-hydration-node-collection.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@solidjs/web": patch ---- - -Share the hydration node collection logic used for live children and captured marker regions. diff --git a/.changeset/skip-omitted-ref-alias.md b/.changeset/skip-omitted-ref-alias.md deleted file mode 100644 index 6eaed090f..000000000 --- a/.changeset/skip-omitted-ref-alias.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@solidjs/web": patch ---- - -Fix DOM rendering when an omitted optional `ref` prop is forwarded through a local `const` alias. diff --git a/.changeset/ssr-root-hole-dollar-patterns.md b/.changeset/ssr-root-hole-dollar-patterns.md deleted file mode 100644 index a6f16d233..000000000 --- a/.changeset/ssr-root-hole-dollar-patterns.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@solidjs/web": patch ---- - -`renderToStream` now inserts the content of a root hole as written. It was passed to `String.prototype.replace` as a replacement string, so `` $` ``, `$&`, `$'` and `$$` in rendered text were expanded instead of output (#5275). diff --git a/.changeset/thin-store-engine.md b/.changeset/thin-store-engine.md deleted file mode 100644 index 2bec75b32..000000000 --- a/.changeset/thin-store-engine.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@solidjs/signals": patch ---- - -Stores run on one signal per key a reader touches (the "thin" engine), in place of the deep engine's per-target committed backing and overlay. The public store API is unchanged, with one correctness fix: a store write now becomes visible at the flush that carries it for every reader, the same as a signal write. The deep engine let some reads between a setter and its flush see the new value early; those reads now return the old value until `flush()`. An app with stores ships about 0.65 to 1.3 KB less brotli, and an app without stores ships no store code at all. A push to a list no reader has read yet is now kept for a boundary that resumes after it, so the resume claims the server's rows and catches up (GH3). diff --git a/packages/diagnostics/CHANGELOG.md b/packages/diagnostics/CHANGELOG.md index 8f2dc45a3..736e38962 100644 --- a/packages/diagnostics/CHANGELOG.md +++ b/packages/diagnostics/CHANGELOG.md @@ -1,5 +1,33 @@ # @solidjs/diagnostics +## 2.0.5 + +### Patch Changes + +- Updated dependencies [f7b6b9c] +- Updated dependencies [a3df43a] +- Updated dependencies [e0f2ad4] +- Updated dependencies [162d46a] +- Updated dependencies [caba92a] +- Updated dependencies [91260dc] +- Updated dependencies [00fba00] +- Updated dependencies [cbc14c8] +- Updated dependencies [cc4b6cf] +- Updated dependencies [8fa0476] +- Updated dependencies [a88836f] +- Updated dependencies [9f7d51d] +- Updated dependencies [0b703b4] +- Updated dependencies [510bb8d] +- Updated dependencies [4752ff1] +- Updated dependencies [50a4bfd] +- Updated dependencies [8fa0476] +- Updated dependencies [b72a531] +- Updated dependencies [c787ec8] +- Updated dependencies [46e665b] + - @solidjs/signals@2.0.5 + - solid-js@2.0.5 + - @solidjs/web@2.0.5 + ## 2.0.4 ### Patch Changes diff --git a/packages/diagnostics/package.json b/packages/diagnostics/package.json index 6b10ffed2..8bfc8ef7f 100644 --- a/packages/diagnostics/package.json +++ b/packages/diagnostics/package.json @@ -1,6 +1,6 @@ { "name": "@solidjs/diagnostics", - "version": "2.0.4", + "version": "2.0.5", "description": "Agent-consumable diagnostics harness for Solid: capture the dev-mode diagnostic and attribution channels as structured artifacts, with assertion helpers for tests and agent loops.", "author": "Ryan Carniato", "license": "MIT", @@ -52,11 +52,11 @@ "test:watch": "vitest watch tests" }, "dependencies": { - "@solidjs/signals": "^2.0.4" + "@solidjs/signals": "^2.0.5" }, "peerDependencies": { - "@solidjs/web": "^2.0.4", - "solid-js": "^2.0.4", + "@solidjs/web": "^2.0.5", + "solid-js": "^2.0.5", "vitest": ">=2.0.0" }, "peerDependenciesMeta": { diff --git a/packages/element/package.json b/packages/element/package.json index 3069996fb..a213aebbb 100644 --- a/packages/element/package.json +++ b/packages/element/package.json @@ -30,8 +30,8 @@ "component-register": "^0.8.7" }, "peerDependencies": { - "solid-js": "^2.0.4", - "@solidjs/web": "^2.0.4" + "solid-js": "^2.0.5", + "@solidjs/web": "^2.0.5" }, "devDependencies": { "solid-js": "workspace:*", diff --git a/packages/h/package.json b/packages/h/package.json index 427ae9f59..0bd3529b4 100644 --- a/packages/h/package.json +++ b/packages/h/package.json @@ -61,7 +61,7 @@ "csstype": "^3.1.0" }, "peerDependencies": { - "@solidjs/web": "^2.0.4" + "@solidjs/web": "^2.0.5" }, "devDependencies": { "@solidjs/web": "workspace:*", diff --git a/packages/html/CHANGELOG.md b/packages/html/CHANGELOG.md index c27879882..19eb19236 100644 --- a/packages/html/CHANGELOG.md +++ b/packages/html/CHANGELOG.md @@ -1,5 +1,20 @@ # @solidjs/html +## 2.0.3 + +### Patch Changes + +- 7aed9cb: Preserve nested children when a tagged component copies its props with object spread or `Object.assign`. +- Updated dependencies [caba92a] +- Updated dependencies [91260dc] +- Updated dependencies [cbc14c8] +- Updated dependencies [8fa0476] +- Updated dependencies [4752ff1] +- Updated dependencies [8fa0476] +- Updated dependencies [b72a531] +- Updated dependencies [c787ec8] + - @solidjs/web@2.0.5 + ## 2.0.2 ### Patch Changes diff --git a/packages/html/package.json b/packages/html/package.json index bea1d85e8..3699be507 100644 --- a/packages/html/package.json +++ b/packages/html/package.json @@ -1,7 +1,7 @@ { "name": "@solidjs/html", "description": "Tagged-template-literal templating for Solid — write components with no build step.", - "version": "2.0.2", + "version": "2.0.3", "author": "Ryan Carniato", "license": "MIT", "homepage": "https://solidjs.com", @@ -42,7 +42,7 @@ "test": "vitest run" }, "peerDependencies": { - "@solidjs/web": "^2.0.4" + "@solidjs/web": "^2.0.5" }, "devDependencies": { "@solidjs/web": "workspace:*", diff --git a/packages/signals/CHANGELOG.md b/packages/signals/CHANGELOG.md index b0700a8a4..9a02561a6 100644 --- a/packages/signals/CHANGELOG.md +++ b/packages/signals/CHANGELOG.md @@ -1,5 +1,20 @@ # @solidjs/signals +## 2.0.5 + +### Patch Changes + +- f7b6b9c: An action started while a transition lands, from a cleanup (`onCleanup` or an effect's returned cleanup) or from an optimistic value's `equals`, no longer leaves the flush pointing at the landed transaction. Before, the next action merged into it: its write showed but was never committed, and a later write that compared against the signal was skipped (#5233). An action that yielded could also commit its first write during the `yield`. +- a3df43a: Development: whether a cleanup may write is now decided by the scope it belongs to, not by where teardown runs it. A setter, store setter, `refresh` or `action` call from an `onCleanup` is an owned write again (`REACTIVE_WRITE_IN_OWNED_SCOPE`, `ACTION_CALLED_IN_OWNED_SCOPE`), under a removed `` row and under a `` branch alike. A cleanup returned from an effect callback or from `onSettled` may still write and call actions. Move the write into a returned cleanup, or mark the signal `ownedWrite`. Production output is unchanged by this. +- e0f2ad4: `createRoot` calls `init` without allocating a wrapper closure for each root. Creating a root is 10 to 25% faster in a Node microbench; `init` still receives `dispose` as its only argument. +- 162d46a: In production, an effect that returns a non-function cleanup no longer stores that value. The next run used to call it and halt the reactive system. Development still throws on the run that returned it. +- cc4b6cf: Hydration no longer discards a served element and calls its ref twice when the ref reads a signal whose value differs from the hydration snapshot. The ref is served the snapshot and runs once on the served element; its read no longer replays the pass that created the element. +- a88836f: Defer mid-flush `ASYNC_OUTSIDE_LOADING_BOUNDARY` diagnostics until after `settle()`, so pending reads inside a `` boundary whose `on` computation sits higher in the heap run and re-arm the boundary before the warning is evaluated. +- 9f7d51d: Do not keep an inner error boundary's pending reader attached to an outer error boundary after an async rejection is caught by the inner boundary (#5261). +- 510bb8d: A keyed `reconcile` keeps a row's store proxy when the row is matched by key, even if nothing has subscribed to any of its fields. Before, such a row got a new proxy at every reconcile, so a `` over the list disposed and remade the row and lost its local state. Updates to the kept proxy follow normal store flush and transition timing. +- 50a4bfd: fix(signals): a re-parked reader drops a pending source that was disposed while loading, so a hold whose owner re-ran and replaced that source lands, and a staged error reaches its boundary +- 46e665b: Stores run on one signal per key a reader touches (the "thin" engine), in place of the deep engine's per-target committed backing and overlay. The public store API is unchanged, with one correctness fix: a store write now becomes visible at the flush that carries it for every reader, the same as a signal write. The deep engine let some reads between a setter and its flush see the new value early; those reads now return the old value until `flush()`. An app with stores ships about 0.65 to 1.3 KB less brotli, and an app without stores ships no store code at all. A push to a list no reader has read yet is now kept for a boundary that resumes after it, so the resume claims the server's rows and catches up (GH3). + ## 2.0.4 ### Patch Changes diff --git a/packages/signals/package.json b/packages/signals/package.json index 74d0f41be..84f02ccd9 100644 --- a/packages/signals/package.json +++ b/packages/signals/package.json @@ -1,6 +1,6 @@ { "name": "@solidjs/signals", - "version": "2.0.4", + "version": "2.0.5", "description": "Solid's reactive primitives: signals, memos, effects, stores, and async-aware computations.", "author": "Ryan Carniato", "license": "MIT", diff --git a/packages/solid/CHANGELOG.md b/packages/solid/CHANGELOG.md index 7b336aff4..723f7bcca 100644 --- a/packages/solid/CHANGELOG.md +++ b/packages/solid/CHANGELOG.md @@ -1,5 +1,28 @@ # solid-js +## 2.0.5 + +### Patch Changes + +- a3df43a: Development: whether a cleanup may write is now decided by the scope it belongs to, not by where teardown runs it. A setter, store setter, `refresh` or `action` call from an `onCleanup` is an owned write again (`REACTIVE_WRITE_IN_OWNED_SCOPE`, `ACTION_CALLED_IN_OWNED_SCOPE`), under a removed `` row and under a `` branch alike. A cleanup returned from an effect callback or from `onSettled` may still write and call actions. Move the write into a returned cleanup, or mark the signal `ownedWrite`. Production output is unchanged by this. +- 91260dc: During `renderToStream`, an `` whose `` fails before the shell is sent now draws its error fallback in the shell even when the `` is not all of its content: markup between them (`
`), a sibling beside the ``, or another `` inside the ``. The fallback replaces the ``'s whole content, as a client render shows it, and the error is serialized at the ``, so the hydrating client adopts that markup without asking again and recovers when the content's inputs change (#4287). The server error hook hears `fallback`. Before, the shell kept the content with the failed ``'s position empty (`` for ``), and the fallback appeared only once the client hydrated, or never without JavaScript. The same applies to the awaited form (`await renderToStream(...)`). + + The fallback is drawn only when it is ready as it renders; the shell never waits for it. A fallback with an async or client-only hole, or one that throws with no `` above it, leaves the shell as before: the client renders the failure, and the hook hears `client`. So does an `` whose markup has no place of its own in the shell: one that put no element and no `` placeholder into the page (text alone, or nothing), or that was itself never inserted. A fallback that throws inside an outer `` is that boundary's failure, drawn in the shell the same way. When the hook maps the error to another value, a fallback that reads the error is rendered again with that value; if that second render throws or is not ready, nothing is drawn, although the hook has already heard `fallback`. Whatever the replaced content still had pending goes with it. A `` still pending inside it streams nothing, and its head tags (`useHead`) never reach the document head, whether they come from a settled `` or from the content itself. A later failure inside the replaced content is still reported to the hook as `client`. After the shell has been sent, a nested `` failure still streams an empty fragment and the client renders the failure, as before. + +- 00fba00: Fix server rendering so `Object.hasOwn` distinguishes omitted props from explicit `undefined` in a lone function spread. +- 0b703b4: Export the `NoFn` type from `solid-js` (client and server entries), alongside the other store types already re-exported from `@solidjs/signals`. +- Updated dependencies [f7b6b9c] +- Updated dependencies [a3df43a] +- Updated dependencies [e0f2ad4] +- Updated dependencies [162d46a] +- Updated dependencies [cc4b6cf] +- Updated dependencies [a88836f] +- Updated dependencies [9f7d51d] +- Updated dependencies [510bb8d] +- Updated dependencies [50a4bfd] +- Updated dependencies [46e665b] + - @solidjs/signals@2.0.5 + ## 2.0.4 ### Patch Changes diff --git a/packages/solid/package.json b/packages/solid/package.json index 7e0877640..0ed5fe831 100644 --- a/packages/solid/package.json +++ b/packages/solid/package.json @@ -1,7 +1,7 @@ { "name": "solid-js", "description": "Reactive JavaScript library for building user interfaces. Compiles JSX to real DOM with fine-grained signal-based updates — no virtual DOM.", - "version": "2.0.4", + "version": "2.0.5", "author": "Ryan Carniato", "license": "MIT", "homepage": "https://solidjs.com", @@ -134,7 +134,7 @@ "tanstack-intent" ], "dependencies": { - "@solidjs/signals": "^2.0.4", + "@solidjs/signals": "^2.0.5", "seroval": "^1.8.0", "seroval-plugins": "^1.8.0" } diff --git a/packages/universal/CHANGELOG.md b/packages/universal/CHANGELOG.md index adb6b5d3f..c44b96d20 100644 --- a/packages/universal/CHANGELOG.md +++ b/packages/universal/CHANGELOG.md @@ -1,5 +1,15 @@ # @solidjs/universal +## 2.0.5 + +### Patch Changes + +- Updated dependencies [a3df43a] +- Updated dependencies [91260dc] +- Updated dependencies [00fba00] +- Updated dependencies [0b703b4] + - solid-js@2.0.5 + ## 2.0.4 ### Patch Changes diff --git a/packages/universal/package.json b/packages/universal/package.json index 26fb0f1c5..d2343ca4b 100644 --- a/packages/universal/package.json +++ b/packages/universal/package.json @@ -1,7 +1,7 @@ { "name": "@solidjs/universal", "description": "Solid's universal runtime for creating custom renderers", - "version": "2.0.4", + "version": "2.0.5", "author": "Ryan Carniato", "license": "MIT", "homepage": "https://solidjs.com", @@ -51,7 +51,7 @@ "test": "vitest run" }, "peerDependencies": { - "solid-js": "^2.0.4" + "solid-js": "^2.0.5" }, "devDependencies": { "solid-js": "workspace:*" diff --git a/packages/web/CHANGELOG.md b/packages/web/CHANGELOG.md index c46a25609..181cd427a 100644 --- a/packages/web/CHANGELOG.md +++ b/packages/web/CHANGELOG.md @@ -1,5 +1,29 @@ # @solidjs/web +## 2.0.5 + +### Patch Changes + +- caba92a: A server render under a request event now adds the client entry's assets to the response as a `Link` header: the entry script and its static imports as `rel=preload; as=script; crossorigin`, and their stylesheets as `rel=preload; as=style`. Hosts and CDNs that build `103 Early Hints` from `Link` headers, such as Cloudflare, can then start those downloads before the page arrives. Scripts use `preload` rather than `modulepreload` because Cloudflare and Chrome document only `preload` and `preconnect` for Early Hints. It covers the static build manifest only, so dev renders add nothing, and `noScripts` renders hint only stylesheets. + + `createSSRResponse` now appends the response stub's `Link` values to a `Link` header in `responseInit` instead of replacing it, as it already does for `Server-Timing`. + +- 91260dc: During `renderToStream`, an `` whose `` fails before the shell is sent now draws its error fallback in the shell even when the `` is not all of its content: markup between them (`
`), a sibling beside the ``, or another `` inside the ``. The fallback replaces the ``'s whole content, as a client render shows it, and the error is serialized at the ``, so the hydrating client adopts that markup without asking again and recovers when the content's inputs change (#4287). The server error hook hears `fallback`. Before, the shell kept the content with the failed ``'s position empty (`` for ``), and the fallback appeared only once the client hydrated, or never without JavaScript. The same applies to the awaited form (`await renderToStream(...)`). + + The fallback is drawn only when it is ready as it renders; the shell never waits for it. A fallback with an async or client-only hole, or one that throws with no `` above it, leaves the shell as before: the client renders the failure, and the hook hears `client`. So does an `` whose markup has no place of its own in the shell: one that put no element and no `` placeholder into the page (text alone, or nothing), or that was itself never inserted. A fallback that throws inside an outer `` is that boundary's failure, drawn in the shell the same way. When the hook maps the error to another value, a fallback that reads the error is rendered again with that value; if that second render throws or is not ready, nothing is drawn, although the hook has already heard `fallback`. Whatever the replaced content still had pending goes with it. A `` still pending inside it streams nothing, and its head tags (`useHead`) never reach the document head, whether they come from a settled `` or from the content itself. A later failure inside the replaced content is still reported to the hook as `client`. After the shell has been sent, a nested `` failure still streams an empty fragment and the client renders the failure, as before. + +- cbc14c8: A `GET` server function called with a file among its arguments (with `enableRichArguments`) now throws a clear error before sending, instead of putting `[object FormData]` in the url and failing with a 400. A `GET` call whose codec-encoded arguments are too long for a url and go over POST now sends the encoding it already made instead of encoding the arguments a second time, so a one-shot argument such as an async iterator arrives with all its chunks. +- 8fa0476: Replace stale server-rendered Loading boundary content if its module preload fails and the client renders the boundary again. +- 4752ff1: A JSX spread that drops `checked`, `value` or `selected` clears it once and then leaves it alone, so a later unrelated prop change in the same spread no longer clears a checkbox, radio, typed text or chosen option the user set since. +- 8fa0476: Share the hydration node collection logic used for live children and captured marker regions. +- b72a531: Fix DOM rendering when an omitted optional `ref` prop is forwarded through a local `const` alias. +- c787ec8: `renderToStream` now inserts the content of a root hole as written. It was passed to `String.prototype.replace` as a replacement string, so `` $` ``, `$&`, `$'` and `$$` in rendered text were expanded instead of output (#5275). +- Updated dependencies [a3df43a] +- Updated dependencies [91260dc] +- Updated dependencies [00fba00] +- Updated dependencies [0b703b4] + - solid-js@2.0.5 + ## 2.0.4 ### Patch Changes diff --git a/packages/web/package.json b/packages/web/package.json index 3734aea5c..11e5caedd 100644 --- a/packages/web/package.json +++ b/packages/web/package.json @@ -1,7 +1,7 @@ { "name": "@solidjs/web", "description": "Solid's web runtime: client rendering, hydration, SSR, and DOM-specific control flow (Portal, Dynamic).", - "version": "2.0.4", + "version": "2.0.5", "author": "Ryan Carniato", "license": "MIT", "homepage": "https://solidjs.com", @@ -380,7 +380,7 @@ "seroval-plugins": "^1.8.0" }, "peerDependencies": { - "solid-js": "^2.0.4" + "solid-js": "^2.0.5" }, "devDependencies": { "@codspeed/vitest-plugin": "^5.4.0",