Patch Changes
-
caba92a: A server render under a request event now adds the client entry's assets to the response as a
Linkheader: the entry script and its static imports asrel=preload; as=script; crossorigin, and their stylesheets asrel=preload; as=style. Hosts and CDNs that build103 Early HintsfromLinkheaders, such as Cloudflare, can then start those downloads before the page arrives. Scripts usepreloadrather thanmodulepreloadbecause Cloudflare and Chrome document onlypreloadandpreconnectfor Early Hints. It covers the static build manifest only, so dev renders add nothing, andnoScriptsrenders hint only stylesheets.createSSRResponsenow appends the response stub'sLinkvalues to aLinkheader inresponseInitinstead of replacing it, as it already does forServer-Timing. -
91260dc: During
renderToStream, an<Errored>whose<Loading>fails before the shell is sent now draws its error fallback in the shell even when the<Loading>is not all of its content: markup between them (<Errored><section><Loading>), a sibling beside the<Loading>, or another<Loading>inside the<Errored>. The fallback replaces the<Errored>'s whole content, as a client render shows it, and the error is serialized at the<Errored>, so the hydrating client adopts that markup without asking again and recovers when the content's inputs change (#4287). The server error hook hearsfallback. Before, the shell kept the content with the failed<Loading>'s position empty (<b></b>for<Errored><b><Loading>), 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
<Errored>above it, leaves the shell as before: the client renders the failure, and the hook hearsclient. So does an<Errored>whose markup has no place of its own in the shell: one that put no element and no<Loading>placeholder into the page (text alone, or nothing), or that was itself never inserted. A fallback that throws inside an outer<Errored>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 heardfallback. Whatever the replaced content still had pending goes with it. A<Loading>still pending inside it streams nothing, and its head tags (useHead) never reach the document head, whether they come from a settled<Loading>or from the content itself. A later failure inside the replaced content is still reported to the hook asclient. After the shell has been sent, a nested<Loading>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/URLSearchParamsand 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
<Loading>or<Errored>around it, now answers the frame's:errorrecord instead of a bare:complete(#5283).serverComponentResponsenow resolves itsResponseat the shell, ascreateSSRResponsedoes, so that failure also marks the responseno-store. It returnsPromise<Response>(experimental API); responses made throughframeTransformResultare unaffected. -
7de4595: Frames: in production, sibling mounts of one server component (and
<For>rows) get their owndata-fidsite again instead of all sharing the first one (#5281). -
cbc14c8: A
GETserver function called with a file among its arguments (withenableRichArguments) now throws a clear error before sending, instead of putting[object FormData]in the url and failing with a 400. AGETcall 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
<head>first and only reaches<body>(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:
onHydrationEndfired 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 anonHydrationEndcallback. -
6e6963b: Guard the global
_$HYwhenrunHydrationEventsclears the hydration event queue, so a client render after a hydration with no delegated events does not throw once_$HYis removed. -
8fa0476: Replace stale server-rendered Loading boundary content if its module preload fails and the client renders the boundary again.
-
cf3006c: Keep a
<Loading>fallback on the page when its content fails after the shell is sent and no server<Errored>drew a fallback at that position (for example<Errored><b><Loading>…</Loading></b></Errored>). The server used to swap in a blank there until the client hydrated. Now the fallback stays until the client renders the<Errored>fallback over it. -
185a5c2: Keep a pending
<Loading>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
liveandbroadcastrequests withcache: "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. -
cc3575f: Set
rel="stylesheet"before removingaswhen a warmed stylesheet preload link goes live, so the link is never arel="preload"withoutas. -
4752ff1: A JSX spread that drops
checked,valueorselectedclears 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
constructorandtoStringwhen their class map conditions become false, including on spread elements andDynamictags. -
8fa0476: Share the hydration node collection logic used for live children and captured marker regions.
-
b72a531: Fix DOM rendering when an omitted optional
refprop is forwarded through a localconstalias. -
6e69108: Keep module scripts registered with
useHeadin the server-rendered HTML when a modulepreload link for the same URL was registered first. -
c787ec8:
renderToStreamnow inserts the content of a root hole as written. It was passed toString.prototype.replaceas 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
defaultMutedcontrols the initialmutedattribute. -
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