Repository navigation
Version Packages - #12
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 main, this PR will be updated.
Releases
prerender-crawler@0.3.0
Minor Changes
ecc3741: Prerendered calls now store the live answer, so server components can be prerendered.
@solidjs/prerender. An artifact is now the response the app's own server-function endpoint gives for the call's GET address (status, headers and body), captured by replaying each call through the crawl after the pages render. Before, the integration encoded the returned value itself, which bypassed the server's result policies: a server component (return props => <jsx/>) was stored as an error, and client navigation to it crashed in both static and hybrid builds.On the client,
prerendered()now returns the runtime's own GET reference and serves artifacts through the reference's own send (withMeta(fn, { fetch })), so an app's transportfetchstays the app's and carries the hybrid fallback. Hydration adopts server-rendered reads and server components without a request, where it used to refetch them, and responses decode through the runtime's own pipeline. Artifacts are recognized by a marker line instead of status, so a host answering a missing artifact with a 200 page now falls back to the live server in hybrid mode instead of failing to parse.Artifacts live under the build's id (
_static/<build>/…), so they can be cached as immutable and a deploy never serves the previous build's answer from a CDN.Breaking: artifacts are
_static/<build>/<label>.<key>.txtin a new format (rebuild to regenerate them);serverFunctions()no longer takescodec(the server's configured codec is used);@solidjs/web2.0.0-rc.16 or later is required.prerender-crawler.PrerenderContext.fetch(input)sends a request through the crawl's own transport (paced byinterval, relative urls resolved againstorigin) and returns the raw response, for integrations that capture what the app answers at an address that is not a page.buildIdnames the build (context.buildId); the Vite plugin mints one per build and defines it asimport.meta.env.PRERENDER_BUILD.@solidjs/prerender@0.3.0
Minor Changes
ecc3741: Prerendered calls now store the live answer, so server components can be prerendered.
@solidjs/prerender. An artifact is now the response the app's own server-function endpoint gives for the call's GET address (status, headers and body), captured by replaying each call through the crawl after the pages render. Before, the integration encoded the returned value itself, which bypassed the server's result policies: a server component (return props => <jsx/>) was stored as an error, and client navigation to it crashed in both static and hybrid builds.On the client,
prerendered()now returns the runtime's own GET reference and serves artifacts through the reference's own send (withMeta(fn, { fetch })), so an app's transportfetchstays the app's and carries the hybrid fallback. Hydration adopts server-rendered reads and server components without a request, where it used to refetch them, and responses decode through the runtime's own pipeline. Artifacts are recognized by a marker line instead of status, so a host answering a missing artifact with a 200 page now falls back to the live server in hybrid mode instead of failing to parse.Artifacts live under the build's id (
_static/<build>/…), so they can be cached as immutable and a deploy never serves the previous build's answer from a CDN.Breaking: artifacts are
_static/<build>/<label>.<key>.txtin a new format (rebuild to regenerate them);serverFunctions()no longer takescodec(the server's configured codec is used);@solidjs/web2.0.0-rc.16 or later is required.prerender-crawler.PrerenderContext.fetch(input)sends a request through the crawl's own transport (paced byinterval, relative urls resolved againstorigin) and returns the raw response, for integrations that capture what the app answers at an address that is not a page.buildIdnames the build (context.buildId); the Vite plugin mints one per build and defines it asimport.meta.env.PRERENDER_BUILD.