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
[email protected]
Minor Changes
#13210
344e9bc
Thanks @VitaliyR! - HandleHEAD
requests to an endpoint when a handler is not defined.If an endpoint defines a handler for
GET
, but does not define a handler forHEAD
, Astro will call theGET
handler and return the headers and status but an empty body.#13195
3b66955
Thanks @MatthewLymer! - Improves SSR performance for synchronous components by avoiding the use of Promises. With this change, SSR rendering of on-demand pages can be up to 4x faster.#13145
8d4e566
Thanks @ascorbic! - Adds support for adapters auto-configuring experimental session storage drivers.Adapters can now configure a default session storage driver when the
experimental.session
flag is enabled. If a hosting platform has a storage primitive that can be used for session storage, the adapter can automatically configure the session storage using that driver. This allows Astro to provide a more seamless experience for users who want to use sessions without needing to manually configure the session storage.Patch Changes
#13145⚠️ BREAKING CHANGE FOR EXPERIMENTAL SESSIONS ONLY ⚠️
8d4e566
Thanks @ascorbic! -Changes the
experimental.session
option to a boolean flag and moves session config to a top-level value. This change is to allow the new automatic session driver support. You now need to separately enable theexperimental.session
flag, and then configure the session driver using the top-levelsession
key if providing manual configuration.You no longer need to configure a session driver if you are using an adapter that supports automatic session driver configuration and wish to use its default settings.
However, you can still manually configure additional driver options or choose a non-default driver to use with your adapter with the new top-level
session
config option. For more information, see the experimental session docs.#13101
2ed67d5
Thanks @corneliusroemer! - Fixes a bug whereHEAD
andOPTIONS
requests for non-prerendered pages were incorrectly rejected with 403 FORBIDDEN@astrojs/[email protected]
Minor Changes
#13194
1b5037b
Thanks @dfdez! - AddsincludedFiles
andexcludedFiles
configuration options to customize SSR function bundle contents.The
includeFiles
property allows you to explicitly specify additional files that should be bundled with your function. This is useful for files that aren't automatically detected as dependencies, such as:fs
operationsSimilarly, you can use the
excludeFiles
property to prevent specific files from being bundled that would otherwise be included. This is helpful for:See the Netlify adapter documentation for detailed usage instructions and examples.
#13145
8d4e566
Thanks @ascorbic! - Automatically configures Netlify Blobs storage when experimental session enabledIf the
experimental.session
flag is enabled when using the Netlify adapter, Astro will automatically configure the session storage using the Netlify Blobs driver. You can still manually configure the session storage if you need to use a different driver or want to customize the session storage configuration.See the experimental session docs for more information on configuring session storage.
Patch Changes
@astrojs/[email protected]
Minor Changes
#13145
8d4e566
Thanks @ascorbic! - Automatically configures filesystem storage when experimental session enabledIf the
experimental.session
flag is enabled when using the Node adapter, Astro will automatically configure session storage using the filesystem driver. You can still manually configure session storage if you need to use a different driver or want to customize the session storage configuration.See the experimental session docs for more information on configuring session storage.