From c579945e6b4109765fd477c2a74b5b18804d6f11 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 5 Dec 2026 12:41:06 +0000 Subject: [PATCH] Version packages --- .changeset/affects-reject-5329.md | 5 -- .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/fix-ssr-render-effect-cleanup.md | 5 -- .changeset/for-plain-maparray.md | 5 -- .changeset/frame-address-collision.md | 5 -- .changeset/frame-preflush-rejection.md | 5 -- .changeset/frames-prod-site-id.md | 5 -- .changeset/get-file-arguments-error.md | 5 -- .changeset/head-asset-lookup-scan.md | 5 -- .changeset/hold-hydration-for-root-preload.md | 6 --- .changeset/html-copy-nested-children.md | 5 -- .changeset/hydration-events-cleanup.md | 5 -- .changeset/hydration-ref-snapshot-read.md | 5 -- .changeset/keep-deferred-hydration-region.md | 5 -- .../keep-explicit-component-children.md | 5 -- .changeset/keep-loading-fallback-5223.md | 5 -- .../keep-pending-sibling-boundary-nodes.md | 5 -- .changeset/live-no-store-5335.md | 5 -- .changeset/loading-on-mount-effect-5203.md | 5 -- .../lowered-show-zombie-condition-5327.md | 5 -- .changeset/nested-errored-async-rethrow.md | 5 -- .changeset/optimistic-failed-read.md | 5 -- .changeset/plenty-moons-shave.md | 5 -- .changeset/projection-draft-array-keys.md | 5 -- .changeset/projection-draft-native-objects.md | 6 --- .changeset/reconcile-keyed-row-proxy-5220.md | 5 -- .changeset/release-removed-spread-checked.md | 5 -- .../remove-stale-prototype-class-tokens.md | 5 -- .changeset/repark-drops-disposed-source.md | 5 -- .changeset/run-with-ancestor-owner.md | 6 --- .changeset/second-list-guess-5326.md | 5 -- .changeset/share-hydration-node-collection.md | 5 -- .changeset/skip-omitted-ref-alias.md | 5 -- .changeset/ssr-for-positional-index.md | 5 -- .changeset/ssr-lazy-writable-signal.md | 5 -- .changeset/ssr-modulepreload-script.md | 5 -- .changeset/ssr-root-hole-dollar-patterns.md | 5 -- .changeset/ssr-spread-default-muted.md | 5 -- .changeset/thin-store-engine.md | 5 -- packages/babel-plugin/CHANGELOG.md | 6 +++ packages/babel-plugin/package.json | 2 +- packages/diagnostics/CHANGELOG.md | 51 +++++++++++++++++++ packages/diagnostics/package.json | 8 +-- packages/element/package.json | 4 +- packages/h/package.json | 2 +- packages/html/CHANGELOG.md | 27 ++++++++++ packages/html/package.json | 4 +- packages/signals/CHANGELOG.md | 22 ++++++++ packages/signals/package.json | 2 +- packages/solid/CHANGELOG.md | 37 ++++++++++++++ packages/solid/package.json | 4 +- packages/universal/CHANGELOG.md | 17 +++++++ packages/universal/package.json | 4 +- packages/web/CHANGELOG.md | 43 ++++++++++++++++ packages/web/package.json | 4 +- 61 files changed, 220 insertions(+), 251 deletions(-) delete mode 100644 .changeset/affects-reject-5329.md 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/fix-ssr-render-effect-cleanup.md delete mode 100644 .changeset/for-plain-maparray.md delete mode 100644 .changeset/frame-address-collision.md delete mode 100644 .changeset/frame-preflush-rejection.md delete mode 100644 .changeset/frames-prod-site-id.md delete mode 100644 .changeset/get-file-arguments-error.md delete mode 100644 .changeset/head-asset-lookup-scan.md delete mode 100644 .changeset/hold-hydration-for-root-preload.md delete mode 100644 .changeset/html-copy-nested-children.md delete mode 100644 .changeset/hydration-events-cleanup.md delete mode 100644 .changeset/hydration-ref-snapshot-read.md delete mode 100644 .changeset/keep-deferred-hydration-region.md delete mode 100644 .changeset/keep-explicit-component-children.md delete mode 100644 .changeset/keep-loading-fallback-5223.md delete mode 100644 .changeset/keep-pending-sibling-boundary-nodes.md delete mode 100644 .changeset/live-no-store-5335.md delete mode 100644 .changeset/loading-on-mount-effect-5203.md delete mode 100644 .changeset/lowered-show-zombie-condition-5327.md delete mode 100644 .changeset/nested-errored-async-rethrow.md delete mode 100644 .changeset/optimistic-failed-read.md delete mode 100644 .changeset/plenty-moons-shave.md delete mode 100644 .changeset/projection-draft-array-keys.md delete mode 100644 .changeset/projection-draft-native-objects.md delete mode 100644 .changeset/reconcile-keyed-row-proxy-5220.md delete mode 100644 .changeset/release-removed-spread-checked.md delete mode 100644 .changeset/remove-stale-prototype-class-tokens.md delete mode 100644 .changeset/repark-drops-disposed-source.md delete mode 100644 .changeset/run-with-ancestor-owner.md delete mode 100644 .changeset/second-list-guess-5326.md delete mode 100644 .changeset/share-hydration-node-collection.md delete mode 100644 .changeset/skip-omitted-ref-alias.md delete mode 100644 .changeset/ssr-for-positional-index.md delete mode 100644 .changeset/ssr-lazy-writable-signal.md delete mode 100644 .changeset/ssr-modulepreload-script.md delete mode 100644 .changeset/ssr-root-hole-dollar-patterns.md delete mode 100644 .changeset/ssr-spread-default-muted.md delete mode 100644 .changeset/thin-store-engine.md diff --git a/.changeset/affects-reject-5329.md b/.changeset/affects-reject-5329.md deleted file mode 100644 index 70434fd6f5..0000000000 --- a/.changeset/affects-reject-5329.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@solidjs/signals": patch ---- - -fix(signals): a declared reload (`affects()` + `refresh()`) whose re-ask rejects no longer leaves `isPending` stuck true (#5329) diff --git a/.changeset/cleanup-action-landing-5233.md b/.changeset/cleanup-action-landing-5233.md deleted file mode 100644 index 2ede9b4e94..0000000000 --- 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 56fcbcc09c..0000000000 --- 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 f0010c850c..0000000000 --- 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 bc5d5697c3..0000000000 --- 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 aed09952be..0000000000 --- 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 04aa3227eb..0000000000 --- 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 6be38f2f0a..0000000000 --- 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/fix-ssr-render-effect-cleanup.md b/.changeset/fix-ssr-render-effect-cleanup.md deleted file mode 100644 index 2e321e2058..0000000000 --- a/.changeset/fix-ssr-render-effect-cleanup.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"solid-js": patch ---- - -Run the cleanup returned by `createRenderEffect` when its server-side owner is disposed, including when the effect first runs after an async dependency resolves. diff --git a/.changeset/for-plain-maparray.md b/.changeset/for-plain-maparray.md deleted file mode 100644 index 18395dd2fe..0000000000 --- a/.changeset/for-plain-maparray.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"solid-js": patch ---- - -`` returns its `mapArray` directly again. It had been creating the map lazily on first read, under the component's owner, for a list driver that has since been removed (#3079). That left a closure and a hydration-only special case (#3161) behind for no benefit. Every `` page is about 60 B smaller minified. diff --git a/.changeset/frame-address-collision.md b/.changeset/frame-address-collision.md deleted file mode 100644 index f4eaa8e04f..0000000000 --- a/.changeset/frame-address-collision.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@solidjs/web": patch ---- - -Frames: two server component calls with different arguments no longer share a frame address, so one mount can no longer show another call's markup (#5284). The argument digest now quotes strings, tells numbers from strings, names `URL` / `URLSearchParams` and other class instances by their own string form, and hashes with FNV-1a. diff --git a/.changeset/frame-preflush-rejection.md b/.changeset/frame-preflush-rejection.md deleted file mode 100644 index 359113ea47..0000000000 --- a/.changeset/frame-preflush-rejection.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@solidjs/web": patch ---- - -Frames: a server component whose async read rejects before the first flush, with no server `` or `` around it, now answers the frame's `:error` record instead of a bare `:complete` (#5283). `serverComponentResponse` now resolves its `Response` at the shell, as `createSSRResponse` does, so that failure also marks the response `no-store`. It returns `Promise` (experimental API); responses made through `frameTransformResult` are unaffected. diff --git a/.changeset/frames-prod-site-id.md b/.changeset/frames-prod-site-id.md deleted file mode 100644 index 9449056299..0000000000 --- a/.changeset/frames-prod-site-id.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@solidjs/web": patch ---- - -Frames: in production, sibling mounts of one server component (and `` rows) get their own `data-fid` site again instead of all sharing the first one (#5281). diff --git a/.changeset/get-file-arguments-error.md b/.changeset/get-file-arguments-error.md deleted file mode 100644 index d1c241fbb6..0000000000 --- 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/head-asset-lookup-scan.md b/.changeset/head-asset-lookup-scan.md deleted file mode 100644 index 9bf17af156..0000000000 --- a/.changeset/head-asset-lookup-scan.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@solidjs/web": patch ---- - -Adopting server-emitted head resources during hydration no longer walks the whole document once per resource. The lookup checks `` first and only reaches `` (stream-emitted boundary links) when the head has no match, so a page with many preload links hydrates faster. Which element is adopted is unchanged. diff --git a/.changeset/hold-hydration-for-root-preload.md b/.changeset/hold-hydration-for-root-preload.md deleted file mode 100644 index bacdaafea0..0000000000 --- a/.changeset/hold-hydration-for-root-preload.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"solid-js": patch -"@solidjs/web": patch ---- - -Keep hydration open while a root waits on its module preload. Another root finishing first ended hydration for the page: `onHydrationEnd` fired and early input on the waiting root was lost before it claimed anything. A root that starts in the same tick after another root finished now also cancels that root's queued cleanup, which marked the page done and cleared the new root's registry. The same holds for a root started from an `onHydrationEnd` callback. diff --git a/.changeset/html-copy-nested-children.md b/.changeset/html-copy-nested-children.md deleted file mode 100644 index 2a42e3d4bd..0000000000 --- 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-events-cleanup.md b/.changeset/hydration-events-cleanup.md deleted file mode 100644 index 395a2fb8a6..0000000000 --- a/.changeset/hydration-events-cleanup.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@solidjs/web": patch ---- - -Guard the global `_$HY` when `runHydrationEvents` clears the hydration event queue, so a client render after a hydration with no delegated events does not throw once `_$HY` is removed. diff --git a/.changeset/hydration-ref-snapshot-read.md b/.changeset/hydration-ref-snapshot-read.md deleted file mode 100644 index 82d9b86ec3..0000000000 --- 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 7ef26c332a..0000000000 --- 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/keep-explicit-component-children.md b/.changeset/keep-explicit-component-children.md deleted file mode 100644 index ad30bd457e..0000000000 --- a/.changeset/keep-explicit-component-children.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@solidjs/babel-plugin": patch ---- - -Preserve an explicit `children` prop when a component's JSX body contains only comments or indentation. diff --git a/.changeset/keep-loading-fallback-5223.md b/.changeset/keep-loading-fallback-5223.md deleted file mode 100644 index 3de8ec822a..0000000000 --- a/.changeset/keep-loading-fallback-5223.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@solidjs/web": patch ---- - -Keep a `` fallback on the page when its content fails after the shell is sent and no server `` drew a fallback at that position (for example `…`). The server used to swap in a blank there until the client hydrated. Now the fallback stays until the client renders the `` fallback over it. diff --git a/.changeset/keep-pending-sibling-boundary-nodes.md b/.changeset/keep-pending-sibling-boundary-nodes.md deleted file mode 100644 index 16ec45ade7..0000000000 --- a/.changeset/keep-pending-sibling-boundary-nodes.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@solidjs/web": patch ---- - -Keep a pending `` boundary's server-rendered elements in the document when a sibling boundary in the same insert resumes first. They were removed at the sibling's resume and re-inserted at their own. A boundary whose server output is text only is not covered yet. diff --git a/.changeset/live-no-store-5335.md b/.changeset/live-no-store-5335.md deleted file mode 100644 index bced910a81..0000000000 --- a/.changeset/live-no-store-5335.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@solidjs/web": patch ---- - -Send `live` and `broadcast` requests with `cache: "no-store"`. A live answer is never cacheable, and without it Firefox held a second tab's request to the same address for about 20 seconds while the first tab's connection was open. diff --git a/.changeset/loading-on-mount-effect-5203.md b/.changeset/loading-on-mount-effect-5203.md deleted file mode 100644 index b6eeb8690c..0000000000 --- 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/lowered-show-zombie-condition-5327.md b/.changeset/lowered-show-zombie-condition-5327.md deleted file mode 100644 index b8157bc954..0000000000 --- a/.changeset/lowered-show-zombie-condition-5327.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@solidjs/signals": patch ---- - -Fix a production-compiled `` whose condition reads `isPending()` re-running without end while a refetch is in flight. The lowered `` makes a new condition memo on every pass, and the old one, kept as a zombie during the hold, was re-run at the end of each flush and woke the `` again. A zombie that only its own owner reads is no longer re-run. diff --git a/.changeset/nested-errored-async-rethrow.md b/.changeset/nested-errored-async-rethrow.md deleted file mode 100644 index 2c09edc0b9..0000000000 --- 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/optimistic-failed-read.md b/.changeset/optimistic-failed-read.md deleted file mode 100644 index 13cbda6849..0000000000 --- a/.changeset/optimistic-failed-read.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@solidjs/signals": patch ---- - -Avoid retrying an errored computation while checking dependencies for a newly mounted reader. Failed optimistic sources retain their error until an existing reader re-reads them or an explicit refresh requests recovery. diff --git a/.changeset/plenty-moons-shave.md b/.changeset/plenty-moons-shave.md deleted file mode 100644 index 2949b0b919..0000000000 --- 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/projection-draft-array-keys.md b/.changeset/projection-draft-array-keys.md deleted file mode 100644 index 00b82fbd0f..0000000000 --- a/.changeset/projection-draft-array-keys.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@solidjs/signals": patch ---- - -Fix `Object.keys` throwing on arrays inside client projection drafts. diff --git a/.changeset/projection-draft-native-objects.md b/.changeset/projection-draft-native-objects.md deleted file mode 100644 index c31188d905..0000000000 --- a/.changeset/projection-draft-native-objects.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@solidjs/signals": patch -"solid-js": patch ---- - -Keep platform objects such as dates and maps raw in deep projection drafts so their native methods work on the client and server. diff --git a/.changeset/reconcile-keyed-row-proxy-5220.md b/.changeset/reconcile-keyed-row-proxy-5220.md deleted file mode 100644 index 836477da8b..0000000000 --- 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 7619ecf44d..0000000000 --- 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/remove-stale-prototype-class-tokens.md b/.changeset/remove-stale-prototype-class-tokens.md deleted file mode 100644 index 2e5d1dd6fb..0000000000 --- a/.changeset/remove-stale-prototype-class-tokens.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@solidjs/web": patch ---- - -Remove class tokens such as `constructor` and `toString` when their class map conditions become false, including on spread elements and `Dynamic` tags. diff --git a/.changeset/repark-drops-disposed-source.md b/.changeset/repark-drops-disposed-source.md deleted file mode 100644 index 8980f917c9..0000000000 --- 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/run-with-ancestor-owner.md b/.changeset/run-with-ancestor-owner.md deleted file mode 100644 index 3a7a29cd8a..0000000000 --- a/.changeset/run-with-ancestor-owner.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@solidjs/signals": patch -"solid-js": patch ---- - -New dev diagnostic `RUN_WITH_ANCESTOR_OWNER` (#5280). A running computation that uses `runWithOwner` to create a node on one of its own ancestors gets a warning. A typical case is a memo created lazily on first read under the component's captured owner. That node outlives the code that made it, and it takes the ancestor's next child slot at the moment of the read, which shifts hydration ids so later siblings miss their claims. The fix is to make the owner up front (`const scope = createRoot(() => getOwner())`) and create lazily under it, as `mapArray` does. Re-entries from event handlers, timers and async continuations, re-entries that only read context, and nodes created with an `id` option or `transparent` are not reported. Dev only, with no production bytes. diff --git a/.changeset/second-list-guess-5326.md b/.changeset/second-list-guess-5326.md deleted file mode 100644 index eba260ca0a..0000000000 --- a/.changeset/second-list-guess-5326.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@solidjs/signals": patch ---- - -Show a second whole-list guess on a keyed `createOptimisticStore` that rewrites a row back to the value its truth holds while an earlier guess on that row is still out. The list used to treat the rewritten row as the truth's own row, which is the row already shown, so it wrote nothing and the first guess stayed on screen. diff --git a/.changeset/share-hydration-node-collection.md b/.changeset/share-hydration-node-collection.md deleted file mode 100644 index 9e0087c18a..0000000000 --- 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 6eaed090fd..0000000000 --- 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-for-positional-index.md b/.changeset/ssr-for-positional-index.md deleted file mode 100644 index 8e11b0ec65..0000000000 --- a/.changeset/ssr-for-positional-index.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"solid-js": patch ---- - -Pass the numeric row index to every `` callback during server rendering, including callbacks that use a default or rest parameter. diff --git a/.changeset/ssr-lazy-writable-signal.md b/.changeset/ssr-lazy-writable-signal.md deleted file mode 100644 index bb68276886..0000000000 --- a/.changeset/ssr-lazy-writable-signal.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"solid-js": patch ---- - -On the server, `createSignal(fn, { lazy: true })` now runs `fn` on the first read. diff --git a/.changeset/ssr-modulepreload-script.md b/.changeset/ssr-modulepreload-script.md deleted file mode 100644 index 8af6de7a4f..0000000000 --- a/.changeset/ssr-modulepreload-script.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@solidjs/web": patch ---- - -Keep module scripts registered with `useHead` in the server-rendered HTML when a modulepreload link for the same URL was registered first. diff --git a/.changeset/ssr-root-hole-dollar-patterns.md b/.changeset/ssr-root-hole-dollar-patterns.md deleted file mode 100644 index a6f16d2334..0000000000 --- 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/ssr-spread-default-muted.md b/.changeset/ssr-spread-default-muted.md deleted file mode 100644 index 1cdc28dbdd..0000000000 --- a/.changeset/ssr-spread-default-muted.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@solidjs/web": patch ---- - -Fix server rendering of spread props on audio and video elements so `defaultMuted` controls the initial `muted` attribute. diff --git a/.changeset/thin-store-engine.md b/.changeset/thin-store-engine.md deleted file mode 100644 index 2bec75b320..0000000000 --- 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/babel-plugin/CHANGELOG.md b/packages/babel-plugin/CHANGELOG.md index 4d857f46c1..8202107eeb 100644 --- a/packages/babel-plugin/CHANGELOG.md +++ b/packages/babel-plugin/CHANGELOG.md @@ -1,5 +1,11 @@ # @solidjs/babel-plugin +## 2.0.4 + +### Patch Changes + +- 625b7ab: Preserve an explicit `children` prop when a component's JSX body contains only comments or indentation. + ## 2.0.3 ### Patch Changes diff --git a/packages/babel-plugin/package.json b/packages/babel-plugin/package.json index ae08b2135f..bf27962c8e 100644 --- a/packages/babel-plugin/package.json +++ b/packages/babel-plugin/package.json @@ -1,7 +1,7 @@ { "name": "@solidjs/babel-plugin", "description": "Babel compiler plugin for Solid templates", - "version": "2.0.3", + "version": "2.0.4", "author": "Ryan Carniato", "license": "MIT", "repository": { diff --git a/packages/diagnostics/CHANGELOG.md b/packages/diagnostics/CHANGELOG.md index 8f2dc45a31..2f880e0796 100644 --- a/packages/diagnostics/CHANGELOG.md +++ b/packages/diagnostics/CHANGELOG.md @@ -1,5 +1,56 @@ # @solidjs/diagnostics +## 2.0.5 + +### Patch Changes + +- Updated dependencies [56bca54] +- Updated dependencies [f7b6b9c] +- Updated dependencies [a3df43a] +- Updated dependencies [e0f2ad4] +- Updated dependencies [162d46a] +- Updated dependencies [caba92a] +- Updated dependencies [91260dc] +- Updated dependencies [00fba00] +- Updated dependencies [7898398] +- Updated dependencies [a50909b] +- Updated dependencies [5a729a9] +- Updated dependencies [97d54b0] +- Updated dependencies [7de4595] +- Updated dependencies [cbc14c8] +- Updated dependencies [e77da6f] +- Updated dependencies [185a5c2] +- Updated dependencies [6e6963b] +- Updated dependencies [cc4b6cf] +- Updated dependencies [8fa0476] +- Updated dependencies [cf3006c] +- Updated dependencies [185a5c2] +- Updated dependencies [623a4f6] +- Updated dependencies [a88836f] +- Updated dependencies [a440e01] +- Updated dependencies [9f7d51d] +- Updated dependencies [ae5ce50] +- Updated dependencies [0b703b4] +- Updated dependencies [44f26d6] +- Updated dependencies [14f48f4] +- Updated dependencies [510bb8d] +- Updated dependencies [4752ff1] +- Updated dependencies [d92fc73] +- Updated dependencies [50a4bfd] +- Updated dependencies [a50909b] +- Updated dependencies [6181f4b] +- Updated dependencies [8fa0476] +- Updated dependencies [b72a531] +- Updated dependencies [be566af] +- Updated dependencies [1465dfd] +- Updated dependencies [6e69108] +- Updated dependencies [c787ec8] +- Updated dependencies [0df6d19] +- 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 6b10ffed21..8bfc8ef7ff 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 3069996fba..a213aebbbd 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 427ae9f59b..0bd3529b44 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 c278798822..6ffd29f2da 100644 --- a/packages/html/CHANGELOG.md +++ b/packages/html/CHANGELOG.md @@ -1,5 +1,32 @@ # @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 [5a729a9] +- Updated dependencies [97d54b0] +- Updated dependencies [7de4595] +- Updated dependencies [cbc14c8] +- Updated dependencies [e77da6f] +- Updated dependencies [185a5c2] +- Updated dependencies [6e6963b] +- Updated dependencies [8fa0476] +- Updated dependencies [cf3006c] +- Updated dependencies [185a5c2] +- Updated dependencies [623a4f6] +- Updated dependencies [4752ff1] +- Updated dependencies [d92fc73] +- Updated dependencies [8fa0476] +- Updated dependencies [b72a531] +- Updated dependencies [6e69108] +- Updated dependencies [c787ec8] +- Updated dependencies [0df6d19] + - @solidjs/web@2.0.5 + ## 2.0.2 ### Patch Changes diff --git a/packages/html/package.json b/packages/html/package.json index bea1d85e85..3699be5078 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 b0700a8a48..32135db6ff 100644 --- a/packages/signals/CHANGELOG.md +++ b/packages/signals/CHANGELOG.md @@ -1,5 +1,27 @@ # @solidjs/signals +## 2.0.5 + +### Patch Changes + +- 56bca54: fix(signals): a declared reload (`affects()` + `refresh()`) whose re-ask rejects no longer leaves `isPending` stuck true (#5329) +- 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. +- a440e01: Fix a production-compiled `` whose condition reads `isPending()` re-running without end while a refetch is in flight. The lowered `` makes a new condition memo on every pass, and the old one, kept as a zombie during the hold, was re-run at the end of each flush and woke the `` again. A zombie that only its own owner reads is no longer re-run. +- 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). +- ae5ce50: Avoid retrying an errored computation while checking dependencies for a newly mounted reader. Failed optimistic sources retain their error until an existing reader re-reads them or an explicit refresh requests recovery. +- 44f26d6: Fix `Object.keys` throwing on arrays inside client projection drafts. +- 14f48f4: Keep platform objects such as dates and maps raw in deep projection drafts so their native methods work on the client and server. +- 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 +- a50909b: New dev diagnostic `RUN_WITH_ANCESTOR_OWNER` (#5280). A running computation that uses `runWithOwner` to create a node on one of its own ancestors gets a warning. A typical case is a memo created lazily on first read under the component's captured owner. That node outlives the code that made it, and it takes the ancestor's next child slot at the moment of the read, which shifts hydration ids so later siblings miss their claims. The fix is to make the owner up front (`const scope = createRoot(() => getOwner())`) and create lazily under it, as `mapArray` does. Re-entries from event handlers, timers and async continuations, re-entries that only read context, and nodes created with an `id` option or `transparent` are not reported. Dev only, with no production bytes. +- 6181f4b: Show a second whole-list guess on a keyed `createOptimisticStore` that rewrites a row back to the value its truth holds while an earlier guess on that row is still out. The list used to treat the rewritten row as the truth's own row, which is the row already shown, so it wrote nothing and the first guess stayed on screen. +- 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 0930f28345..d43e6589ab 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 7b336aff4e..8ee6dbe89e 100644 --- a/packages/solid/CHANGELOG.md +++ b/packages/solid/CHANGELOG.md @@ -1,5 +1,42 @@ # 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. +- 7898398: Run the cleanup returned by `createRenderEffect` when its server-side owner is disposed, including when the effect first runs after an async dependency resolves. +- a50909b: `` returns its `mapArray` directly again. It had been creating the map lazily on first read, under the component's owner, for a list driver that has since been removed (#3079). That left a closure and a hydration-only special case (#3161) behind for no benefit. Every `` page is about 60 B smaller minified. +- 185a5c2: Keep hydration open while a root waits on its module preload. Another root finishing first ended hydration for the page: `onHydrationEnd` fired and early input on the waiting root was lost before it claimed anything. A root that starts in the same tick after another root finished now also cancels that root's queued cleanup, which marked the page done and cleared the new root's registry. The same holds for a root started from an `onHydrationEnd` callback. +- 0b703b4: Export the `NoFn` type from `solid-js` (client and server entries), alongside the other store types already re-exported from `@solidjs/signals`. +- 14f48f4: Keep platform objects such as dates and maps raw in deep projection drafts so their native methods work on the client and server. +- a50909b: New dev diagnostic `RUN_WITH_ANCESTOR_OWNER` (#5280). A running computation that uses `runWithOwner` to create a node on one of its own ancestors gets a warning. A typical case is a memo created lazily on first read under the component's captured owner. That node outlives the code that made it, and it takes the ancestor's next child slot at the moment of the read, which shifts hydration ids so later siblings miss their claims. The fix is to make the owner up front (`const scope = createRoot(() => getOwner())`) and create lazily under it, as `mapArray` does. Re-entries from event handlers, timers and async continuations, re-entries that only read context, and nodes created with an `id` option or `transparent` are not reported. Dev only, with no production bytes. +- be566af: Pass the numeric row index to every `` callback during server rendering, including callbacks that use a default or rest parameter. +- 1465dfd: On the server, `createSignal(fn, { lazy: true })` now runs `fn` on the first read. +- Updated dependencies [56bca54] +- Updated dependencies [f7b6b9c] +- Updated dependencies [a3df43a] +- Updated dependencies [e0f2ad4] +- Updated dependencies [162d46a] +- Updated dependencies [cc4b6cf] +- Updated dependencies [a88836f] +- Updated dependencies [a440e01] +- Updated dependencies [9f7d51d] +- Updated dependencies [ae5ce50] +- Updated dependencies [44f26d6] +- Updated dependencies [14f48f4] +- Updated dependencies [510bb8d] +- Updated dependencies [50a4bfd] +- Updated dependencies [a50909b] +- Updated dependencies [6181f4b] +- 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 7e08776407..0ed5fe8315 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 adb6b5d3ff..68c665e86a 100644 --- a/packages/universal/CHANGELOG.md +++ b/packages/universal/CHANGELOG.md @@ -1,5 +1,22 @@ # @solidjs/universal +## 2.0.5 + +### Patch Changes + +- Updated dependencies [a3df43a] +- Updated dependencies [91260dc] +- Updated dependencies [00fba00] +- Updated dependencies [7898398] +- Updated dependencies [a50909b] +- Updated dependencies [185a5c2] +- Updated dependencies [0b703b4] +- Updated dependencies [14f48f4] +- Updated dependencies [a50909b] +- Updated dependencies [be566af] +- Updated dependencies [1465dfd] + - solid-js@2.0.5 + ## 2.0.4 ### Patch Changes diff --git a/packages/universal/package.json b/packages/universal/package.json index 26fb0f1c5b..d2343ca4b4 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 c46a256094..f96277ca11 100644 --- a/packages/web/CHANGELOG.md +++ b/packages/web/CHANGELOG.md @@ -1,5 +1,48 @@ # @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. + +- 5a729a9: Frames: two server component calls with different arguments no longer share a frame address, so one mount can no longer show another call's markup (#5284). The argument digest now quotes strings, tells numbers from strings, names `URL` / `URLSearchParams` and other class instances by their own string form, and hashes with FNV-1a. +- 97d54b0: Frames: a server component whose async read rejects before the first flush, with no server `` or `` around it, now answers the frame's `:error` record instead of a bare `:complete` (#5283). `serverComponentResponse` now resolves its `Response` at the shell, as `createSSRResponse` does, so that failure also marks the response `no-store`. It returns `Promise` (experimental API); responses made through `frameTransformResult` are unaffected. +- 7de4595: Frames: in production, sibling mounts of one server component (and `` rows) get their own `data-fid` site again instead of all sharing the first one (#5281). +- 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. +- e77da6f: Adopting server-emitted head resources during hydration no longer walks the whole document once per resource. The lookup checks `` first and only reaches `` (stream-emitted boundary links) when the head has no match, so a page with many preload links hydrates faster. Which element is adopted is unchanged. +- 185a5c2: Keep hydration open while a root waits on its module preload. Another root finishing first ended hydration for the page: `onHydrationEnd` fired and early input on the waiting root was lost before it claimed anything. A root that starts in the same tick after another root finished now also cancels that root's queued cleanup, which marked the page done and cleared the new root's registry. The same holds for a root started from an `onHydrationEnd` callback. +- 6e6963b: Guard the global `_$HY` when `runHydrationEvents` clears the hydration event queue, so a client render after a hydration with no delegated events does not throw once `_$HY` is removed. +- 8fa0476: Replace stale server-rendered Loading boundary content if its module preload fails and the client renders the boundary again. +- cf3006c: Keep a `` fallback on the page when its content fails after the shell is sent and no server `` drew a fallback at that position (for example `…`). The server used to swap in a blank there until the client hydrated. Now the fallback stays until the client renders the `` fallback over it. +- 185a5c2: Keep a pending `` boundary's server-rendered elements in the document when a sibling boundary in the same insert resumes first. They were removed at the sibling's resume and re-inserted at their own. A boundary whose server output is text only is not covered yet. +- 623a4f6: Send `live` and `broadcast` requests with `cache: "no-store"`. A live answer is never cacheable, and without it Firefox held a second tab's request to the same address for about 20 seconds while the first tab's connection was open. +- 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. +- d92fc73: Remove class tokens such as `constructor` and `toString` when their class map conditions become false, including on spread elements and `Dynamic` tags. +- 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. +- 6e69108: Keep module scripts registered with `useHead` in the server-rendered HTML when a modulepreload link for the same URL was registered first. +- 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). +- 0df6d19: Fix server rendering of spread props on audio and video elements so `defaultMuted` controls the initial `muted` attribute. +- Updated dependencies [a3df43a] +- Updated dependencies [91260dc] +- Updated dependencies [00fba00] +- Updated dependencies [7898398] +- Updated dependencies [a50909b] +- Updated dependencies [185a5c2] +- Updated dependencies [0b703b4] +- Updated dependencies [14f48f4] +- Updated dependencies [a50909b] +- Updated dependencies [be566af] +- Updated dependencies [1465dfd] + - solid-js@2.0.5 + ## 2.0.4 ### Patch Changes diff --git a/packages/web/package.json b/packages/web/package.json index 3734aea5ce..11e5caedd8 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",