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
@astrojs/[email protected]
Major Changes
#6791
37021044dd4382a9b214f89b7c221bf1c93f3e7d
Thanks @patdx! - Render SolidJS components usingrenderToStringAsync
.This changes the renderer of SolidJS components from
renderToString
torenderToStringAsync
. It also injects the actual SolidJS hydration script generated bygenerateHydrationScript
, so thatSuspense
,ErrorBoundary
and similar components can be hydrated correctly.The server render phase will now wait for Suspense boundaries to resolve instead of always rendering the Suspense fallback.
If you use the APIs
createResource
orlazy
, their functionalities will now be executed on the server side, not just the client side.This increases the flexibility of the SolidJS integration. Server-side components can now safely fetch remote data, call async Astro server functions like
getImage()
or load other components dynamically. Even server-only components that do not hydrate in the browser will benefit.It is very unlikely that a server-only component would have used the Suspense feature until now, so this should not be a breaking change for server-only components.
This could be a breaking change for components that meet the following conditions:
Suspense
,lazy
orcreateResource
, andclient:load
client:idle
client:visible
client:media
These components will now first try to resolve the Suspense boundaries on the server side instead of the client side.
If you do not want Suspense boundaries to be resolved on the server (for example, if you are using createResource to do an HTTP fetch that relies on a browser-side cookie), you may consider:
client:only
to skip server side rendering completelyonMount()
to detect server mode and render a server fallback without using Suspense.[email protected]
Minor Changes
#9513
e44f6acf99195a3f29b8390fd9b2c06410551b74
Thanks @wtto00! - Adds a'load'
prefetch strategy to prefetch links on page load#9377
fe719e27a84c09e46b515252690678c174a25759
Thanks @bluwy! - Adds "Missing ARIA roles check" and "Unsupported ARIA roles check" audit rules for the dev toolbar#9573
2a8b9c56b9c6918531c57ec38b89474571331aee
Thanks @bluwy! - Allows passing a string to--open
andserver.open
to open a specific URL on startup in development#9544
b8a6fa8917ff7babd35dafb3d3dcd9a58cee836d
Thanks @bluwy! - Adds a helpful error for static sites when you use theastro preview
command if you have not previously runastro build
.#9546
08402ad5846c73b6887e74ed4575fd71a3e3c73d
Thanks @bluwy! - Adds an option for the Sharp image service to allow large images to be processed. SetlimitInputPixels: false
to bypass the default image size limit:#9596
fbc26976533bbcf2de9d6dba1aa3ea3dc6ce0853
Thanks @Princesseuh! - Adds the ability to set arootMargin
setting when using theclient:visible
directive. This allows a component to be hydrated when it is near the viewport, rather than hydrated when it has entered the viewport.#9063
f33fe3190b482a42ebc68cc5275fd7f2c49102e6
Thanks @alex-sherwin! - Cookie encoding / decoding can now be customizedAdds new
encode
anddecode
functions to allow customizing how cookies are encoded and decoded. For example, you can bypass the default encoding viaencodeURIComponent
when adding a URL as part of a cookie:Later, you can decode the URL in the same way:
Patch Changes
#9593
3b4e629ac8c2fdb4b491bf01abc7794e2e100173
Thanks @bluwy! - Improvesastro add
error reporting when the dependencies fail to install#9563
d48ab90fb41fbc0589cd2df711682a41382c03aa
Thanks @martrapp! - Fixes back navigation to fragment links (e.g.#about
) in Firefox when using view transitionsCo-authored-by: Florian Lefebvre [email protected]
Co-authored-by: Sarah Rainsberger [email protected]
#9597
9fd24a546c45d48451da46637c14e7ed54dac76a
Thanks @lilnasy! - Fixes an issue where configuring trailingSlash had no effect on API routes.#9586
82bad5d6205672ed3f6a49d4de53d3a68367433e
Thanks @martrapp! - Fixes page titles in the browser's drop-down for back / forward navigation when using view transitions#9575
ab6049bd58e4d02f47d500f9db08a865bc7f09b8
Thanks @bluwy! - Sets correctprocess.env.NODE_ENV
default when using the JS API#9587
da307e4a080483f8763f1919a05fa2194bb14e22
Thanks @jjenzz! - Adds aCSSProperties
interface that allows extending the style attribute#9513
e44f6acf99195a3f29b8390fd9b2c06410551b74
Thanks @wtto00! - Ignores3g
in slow connection detection. Only2g
andslow-2g
are considered slow connections.[email protected]
Minor Changes
607303be198931825dac9f3bc97867b4886feaf3
Thanks @onsclom! - Improves thecreate astro
CLI experience by asking all the questions upfront, then creating your new Astro project based on your responses.@astrojs/[email protected]
Minor Changes
#9524
0903ef90494e9c8bd0272347a0cdd51eca7f4648
Thanks @aleksandrjet! - Allows rendering lazy components.You can now use lazy components with Suspense: