Repository navigation
Version Packages - #86
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to next, this PR will be updated.
Releases
@solidjs/meta@2.0.0
Major Changes
37caba2: Solid Meta 1.0: rebuilt as a thin layer over Solid 2.0's
useHeadprimitive.MetaProviderandMetaContextare gone — remove the wrapper and thetags={[]}SSRplumbing; on the server, head tags are spliced into
<head>automaticallyby
renderToString/renderToStream(or collected via theonHeadrenderoption).
<Head>groups its child tags into one replacementset (several
og:images that override as a unit and restore on disposal);<Script>covers JSON-LD and other head scripts.with last-committed-wins and restore-on-disposal,
keyto overrideidentity, streaming-correct SSR patches that ride suspense reveals, and
flicker-free hydration adoption.
useHead(TagDescription)shim (the coreuseHead(HeadTag | HeadTag[] | () => HeadTag[])in@solidjs/webreplaces it),
escapeprop (everything is escaped; text is applied viatextContent),ref/event handlers on head tags, and client-dynamic<Base>/<Meta charset>(shell-only on the server, ignored with a dev warning onthe client).
solid-js>=2.0.0-beta.30and@solidjs/web>=2.0.0-beta.31(the first beta with reactiveuseHeadgroups, media-qualified meta identity, and replaceable icons). For Solid
1.x stay on
@solidjs/meta0.29.x; for Solid 0.x, 0.26.x.See the README migration guide for a 0.x → 1.0 walkthrough.
f9e874f: Solid Meta 2.0.0, the stable release for Solid 2.0. The version jumps to 2.0.0 to match
solid-js,@solidjs/weband@solidjs/router: the1.0.0-next.*prereleases were this same line, and there is no stable 1.x. For Solid 1.x stay on@solidjs/meta0.29.x.Peer dependencies are now
solid-js/@solidjs/web^2.0.0.Patch Changes
36a5a18: Drop the
useHead/HeadTagre-exports. The primitive belongs to@solidjs/web(a required peer) — import it from there. Keeping a secondimport path for the identical function only invited confusion about whether
they differ.
8a74994: Fix hydration id drift from dynamic Title/Style/Script bodies
Compiled JSX children (e.g.
<Title>Page {site()}</Title>) can allocate acomputation when read. The head registry evaluates descriptor getters at
runtime-dependent points — the registry effect on the client, stream flush on
the server — so that allocation landed under different owners on each runtime
and drifted every hydration id assigned after it, breaking claims for content
rendered after the tag (most visibly under a streamed
Loadingboundary).headTagnow pins the body in a memo created at registration, under thecomponent, at the same point on both runtimes; the descriptor getter is a pure
read. Adds an SSR -> hydrate parity harness covering sync, root-async, and
boundary-async Title bodies.
f9e874f:
<Head>no longer writes a signal during server render, so dev SSR stops logging[SERVER_WRITE]for every page that uses it (Solid 2: <Head> writes a signal during server render ([SERVER_WRITE] in dev SSR) #80). The server reads the group's tags when its boundary flushes, so the write did nothing there.f9e874f: Add a
solidexport condition so@solidjs/vite-plugin(through vitefu) bundles@solidjs/metain SSR instead of leaving it external. Left external, Node loaded it against the productionsolid-jsserver build while the app ran on the dev build, and the two owner stacks threwNoOwnerErrorin dev SSR (Solid 2:@solidjs/metathrowsNoOwnerErrorin dev SSR (twosolid-jsinstances) #74).70014b4: Update
solid-js/@solidjs/webto2.0.0-rc.0and move the peer ranges from>=2.0.0-beta.30 <2.0.0/>=2.0.0-beta.31 <2.0.0to^2.0.0-rc.0. The old ranges admitted the hazardous2.0.0-experimental.*publishes (which sort between beta and rc) and excluded stable2.0.0; the caret floors above the experimentals and auto-graduates to stable 2.x.