Update dependency astro to v5.6.1 - autoclosed #959
Closed
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 contains the following updates:
5.5.2
->5.6.1
Release Notes
withastro/astro (astro)
v5.6.1
Compare Source
Patch Changes
#13519
3323f5c
Thanks @florian-lefebvre! - Refactors some internals to improve Rolldown compatibility#13545
a7aff41
Thanks @stramel! - Prevent empty attributes from appearing in the SVG output#13552
9cd0fd4
Thanks @ematipico! - Fixes an issue where Astro validated the i18n configuration incorrectly, causing false positives in downstream libraries.v5.6.0
Compare Source
Minor Changes
#13403
dcb9526
Thanks @yurynix! - Adds a new optionalprerenderedErrorPageFetch
option in the Adapter API to allow adapters to provide custom implementations for fetching prerendered error pages.Now, adapters can override the default
fetch()
behavior, for example whenfetch()
is unavailable or when you cannot call the server from itself.The following example provides a custom fetch for
500.html
and404.html
, reading them from disk instead of performing an HTTP call:If no value is provided, Astro will fallback to its default behavior for fetching error pages.
Read more about this feature in the Adapter API reference.
#13482
ff257df
Thanks @florian-lefebvre! - Updates Astro config validation to also run for the Integration API. An error log will specify which integration is failing the validation.Now, Astro will first validate the user configuration, then validate the updated configuration after each integration
astro:config:setup
hook has run. This meansupdateConfig()
calls will no longer accept invalid configuration.This fixes a situation where integrations could potentially update a project with a malformed configuration. These issues should now be caught and logged so that you can update your integration to only set valid configurations.
#13405
21e7e80
Thanks @Marocco2! - Adds a neweagerness
option forprefetch()
when usingexperimental.clientPrerender
With the experimental
clientPrerender
flag enabled, you can use theeagerness
option onprefetch()
to suggest to the browser how eagerly it should prefetch/prerender link targets.This follows the same API described in the Speculation Rules API and allows you to balance the benefit of reduced wait times against bandwidth, memory, and CPU costs for your site visitors.
For example, you can now use
prefetch()
programmatically with large sets of links and avoid browser limits in place to guard against over-speculating (prerendering/prefetching too many links). Seteagerness: 'moderate'
to take advantage of First In, First Out (FIFO) strategies and browser heuristics to let the browser decide when to prerender/prefetch them and in what order:#13482
ff257df
Thanks @florian-lefebvre! - Improves integrations error handlingIf an error is thrown from an integration hook, an error log will now provide information about the concerned integration and hook
Patch Changes
#13539
c43bf8c
Thanks @ascorbic! - Adds a newsession.load()
method to the experimental session API that allows you to load a session by ID.When using the experimental sessions API, you don't normally need to worry about managing the session ID and cookies: Astro automatically reads the user's cookies and loads the correct session when needed. However, sometimes you need more control over which session to load.
The new
load()
method allows you to manually load a session by ID. This is useful if you are handling the session ID yourself, or if you want to keep track of a session without using cookies. For example, you might want to restore a session from a logged-in user on another device, or work with an API endpoint that doesn't use cookies.If a session with that ID doesn't exist, a new one will be created. This allows you to generate a session ID in the client if needed.
For more information, see the experimental sessions docs.
#13488
d777420
Thanks @stramel! - BREAKING CHANGE to the experimental SVG Component API onlyRemoves some previously available prop, attribute, and configuration options from the experimental SVG API. These items are no longer available and must be removed from your code:
The
title
prop has been removed until we can settle on the correct balance between developer experience and accessibility. Please replace anytitle
props on your components witharia-label
:Sprite mode has been temporarily removed while we consider a new implementation that addresses how this feature was being used in practice. This means that there are no longer multiple
mode
options, and all SVGs will be inline. All instances ofmode
must be removed from your project as you can no longer control a mode:The default
role
is no longer applied due to developer feedback. Please add the appropriaterole
on each component individually as needed:The
size
prop has been removed to better work in combination withviewBox
and additional styles/attributes. Please replacesize
with explicitwidth
andheight
attributes:v5.5.6
Compare Source
Patch Changes
#13429
06de673
Thanks @ematipico! - TheActionAPIContext.rewrite
method is deprecated and will be removed in a future major version of Astro#13524
82cd583
Thanks @ematipico! - Fixes a bug where the functionsAstro.preferredLocale
andAstro.preferredLocaleList
would return the incorrect localeswhen the Astro configuration specifies a list of
codes
. Before, the functions would return thepath
, instead now the functionsreturn a list built from
codes
.#13526
ff9d69e
Thanks @jsparkdev! - updatevite
to the latest versionv5.5.5
Compare Source
Patch Changes
#13510
5b14d33
Thanks @florian-lefebvre! - Fixes a case whereastro:env
secrets used in actions would not be available#13485
018fbe9
Thanks @ascorbic! - Fixes a bug that caused cookies to ignore custom decode function if has() had been called before#13505
a98ae5b
Thanks @ematipico! - Updates the dependencyvite
to the latest.#13483
fc2dcb8
Thanks @ematipico! - Fixes a bug where an Astro adapter couldn't call the middleware when there isn't a route that matches the incoming request.v5.5.4
Compare Source
Patch Changes
#13457
968e713
Thanks @ascorbic! - Sets correct response status text for custom error pages#13447
d80ba2b
Thanks @ematipico! - Fixes an issue wheresite
was added to the generated redirects.#13481
e9e9245
Thanks @martrapp! - Makes server island work with the client router again.#13484
8b5e4dc
Thanks @ascorbic! - Display useful errors when config loading fails because of Node addons being disabled on Stackblitzv5.5.3
Compare Source
Patch Changes
#13437
013fa87
Thanks @Vardhaman619! - Handle server.allowedHosts when the value is true without attempting to push it into an array.#13324
ea74336
Thanks @ematipico! - Upgrade to shiki v3#13372
7783dbf
Thanks @ascorbic! - Fixes a bug that caused some very large data stores to save incomplete data.#13358
8c21663
Thanks @ematipico! - Adds a new function calledinsertPageRoute
to the Astro Container API.The new function is useful when testing routes that, for some business logic, use
Astro.rewrite
.For example, if you have a route
/blog/post
and for some business decision there's a rewrite to/generic-error
, the container API implementation will look like this:This new method only works for page routes, which means that endpoints aren't supported.
#13426
565583b
Thanks @ascorbic! - Fixes a bug that caused theastro add
command to ignore the--yes
flag for third-party integrations#13428
9cac9f3
Thanks @matthewp! - Prevent bad value in x-forwarded-host from crashing request#13432
defad33
Thanks @P4tt4te! - Fix an issue in the Container API, where therenderToString
function doesn't render adequately nested slots when they are components.Updated dependencies [
ea74336
]:Configuration
📅 Schedule: Branch creation - "after 10pm,before 6:00am" in timezone Europe/Paris, Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.