chore(deps): update astro monorepo (major) #1868
Open
+1,862
−865
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:
^1.2.2 || ^2.0.0 || ^3.0.0
->^1.2.2 || ^2.0.0 || ^3.0.0 || ^4.0.0
3.6.3
->4.3.0
^1.0.2 || ^2.0.0 || ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0
->^1.0.2 || ^2.0.0 || ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0
6.0.2
->7.1.0
^1.2.2 || ^2.0.0 || ^3.0.0 || ^4.0.0
->^1.2.2 || ^2.0.0 || ^3.0.0 || ^4.0.0 || ^5.0.0
4.5.3
->5.1.0
^3.0.0 || ^4.0.0
->^3.0.0 || ^4.0.0 || ^5.0.0
4.16.15
->5.10.1
Release Notes
withastro/astro (@astrojs/react)
v4.3.0
Compare Source
Minor Changes
#13809
3c3b492
Thanks @ascorbic! - Increases minimum Node.js version to 18.20.8Node.js 18 has now reached end-of-life and should not be used. For now, Astro will continue to support Node.js 18.20.8, which is the final LTS release of Node.js 18, as well as Node.js 20 and Node.js 22 or later. We will drop support for Node.js 18 in a future release, so we recommend upgrading to Node.js 22 as soon as possible. See Astro's Node.js support policy for more details.
v4.2.7
Compare Source
Patch Changes
c3e80c2
Thanks @jsparkdev! - update vite to latest version for fixing CVEv4.2.6
Compare Source
Patch Changes
e1cd1ae
Thanks @florian-lefebvre! - Fixes SSR renderer typev4.2.5
Compare Source
Patch Changes
a19a185
Thanks @florian-lefebvre! - Improves type-safety of renderersv4.2.4
Compare Source
Patch Changes
#13596
3752519
Thanks @jsparkdev! - update vite to latest version to fix CVE#13547
360cb91
Thanks @jsparkdev! - Updates vite to the latest versionv4.2.3
Compare Source
Patch Changes
ff9d69e
Thanks @jsparkdev! - updatevite
to the latest versionv4.2.2
Compare Source
Patch Changes
a98ae5b
Thanks @ematipico! - Updates the dependencyvite
to the latest.v4.2.1
Compare Source
Patch Changes
80926fa
Thanks @ematipico! - Updatesesbuild
andvite
to the latest to avoid false positives audits warnings caused byesbuild
.v4.2.0
Compare Source
Minor Changes
#13036
3c90d8f
Thanks @artmsilva! - Adds experimental support for disabling streamingThis is useful to support libraries that are not compatible with streaming such as some CSS-in-JS libraries. To disable streaming for all React components in your project, set
experimentalDisableStreaming: true
as a configuration option for@astrojs/react
:// astro.config.mjs import { defineConfig } from 'astro/config'; import react from '@​astrojs/react'; export default defineConfig({ integrations: [ react({ + experimentalDisableStreaming: true, }), ], });
v4.1.6
Compare Source
Patch Changes
#12996
80c6801
Thanks @bluwy! - Removes hardcodedssr.external: ['react-dom/server', 'react-dom/client']
config that causes issues with adapters that bundle all dependencies (e.g. Cloudflare). These externals should already be inferred by default by Vite when deploying to a server environment.#13011
cf30880
Thanks @ascorbic! - Upgrades Vitev4.1.5
Compare Source
Patch Changes
ea603ae
Thanks @louisescher! - Adds a warning message when multiple JSX-based UI frameworks are being used without either theinclude
orexclude
property being set on the integration.v4.1.4
Compare Source
Patch Changes
c7642fb
Thanks @bluwy! - Removes react-specific entrypoints inoptimizeDeps.include
and rely on@vitejs/plugin-react
to addv4.1.3
Compare Source
Patch Changes
51ab7b5
Thanks @bluwy! - Supports checking for React 19 componentsv4.1.2
Compare Source
Patch Changes
739dbfb
Thanks @ascorbic! - Upgrades Vite to pin esbuildv4.1.1
Compare Source
Patch Changes
391df0e
Thanks @matthewp! - Preoptimize React compiler runtimev4.1.0
Compare Source
Minor Changes
97c9265
Thanks @bskimball! - Add React 19 stable to peer dependenciesv4.0.0
Compare Source
Major Changes
9f44019
Thanks @bluwy! - Updates Vite dependency to v6 to match Astro v5Minor Changes
#12539
827093e
Thanks @bluwy! - Drops node 21 support#12510
14feaf3
Thanks @bholmesdev! - Changes the generated URL query param from_astroAction
to_action
when submitting a form using Actions. This avoids leaking the framework name into the URL bar, which may be considered a security issue.withastro/astro (@astrojs/svelte)
v7.1.0
Compare Source
Minor Changes
#13809
3c3b492
Thanks @ascorbic! - Increases minimum Node.js version to 18.20.8Node.js 18 has now reached end-of-life and should not be used. For now, Astro will continue to support Node.js 18.20.8, which is the final LTS release of Node.js 18, as well as Node.js 20 and Node.js 22 or later. We will drop support for Node.js 18 in a future release, so we recommend upgrading to Node.js 22 as soon as possible. See Astro's Node.js support policy for more details.
v7.0.13
Compare Source
Patch Changes
c3e80c2
Thanks @jsparkdev! - update vite to latest version for fixing CVEv7.0.12
Compare Source
Patch Changes
e1cd1ae
Thanks @florian-lefebvre! - Fixes SSR renderer typev7.0.11
Compare Source
Patch Changes
a19a185
Thanks @florian-lefebvre! - Improves type-safety of renderersv7.0.10
Compare Source
Patch Changes
#13596
3752519
Thanks @jsparkdev! - update vite to latest version to fix CVE#13547
360cb91
Thanks @jsparkdev! - Updates vite to the latest versionv7.0.9
Compare Source
Patch Changes
ff9d69e
Thanks @jsparkdev! - updatevite
to the latest versionv7.0.8
Compare Source
Patch Changes
a98ae5b
Thanks @ematipico! - Updates the dependencyvite
to the latest.v7.0.7
Compare Source
Patch Changes
ecadb6b
Thanks @ascorbic! - Hides fallback content when renderingclient:only
islandv7.0.6
Compare Source
Patch Changes
a05e6ab
Thanks @Hugos68! - Fixes a case where$props.id()
would not be unique across multiple islandsv7.0.5
Compare Source
Patch Changes
80926fa
Thanks @ematipico! - Updatesesbuild
andvite
to the latest to avoid false positives audits warnings caused byesbuild
.v7.0.4
Compare Source
Patch Changes
cf30880
Thanks @ascorbic! - Upgrades Vitev7.0.3
Compare Source
Patch Changes
8809b85
Thanks @aminevg! - Fixes an issue where TypeScript couldn't infer the correct types of theserver.mjs
filev7.0.2
Compare Source
Patch Changes
739dbfb
Thanks @ascorbic! - Upgrades Vite to pin esbuildv7.0.1
Compare Source
Patch Changes
c3e80c2
Thanks @jsparkdev! - update vite to latest version for fixing CVEv7.0.0
Compare Source
Major Changes
#12060
cb5d3ae
Thanks @Princesseuh! - Updates peer dependency range to support Astro 5#12524
9f44019
Thanks @bluwy! - Updates@sveltejs/vite-plugin-svelte
to v5 to handle Vite 6#12524
9f44019
Thanks @bluwy! - Updates Vite dependency to v6 to match Astro v5Minor Changes
827093e
Thanks @bluwy! - Drops node 21 supportPatch Changes
#12102
dcc1e89
Thanks @hermit99! - Fixes an Reference Error that occurred during client transitions#12551
b21a075
Thanks @ematipico! - New release to include changes from 5.7.3withastro/astro (@astrojs/vue)
v5.1.0
Compare Source
Minor Changes
#13809
3c3b492
Thanks @ascorbic! - Increases minimum Node.js version to 18.20.8Node.js 18 has now reached end-of-life and should not be used. For now, Astro will continue to support Node.js 18.20.8, which is the final LTS release of Node.js 18, as well as Node.js 20 and Node.js 22 or later. We will drop support for Node.js 18 in a future release, so we recommend upgrading to Node.js 22 as soon as possible. See Astro's Node.js support policy for more details.
v5.0.13
Compare Source
Patch Changes
c3e80c2
Thanks @jsparkdev! - update vite to latest version for fixing CVEv5.0.12
Compare Source
Patch Changes
e1cd1ae
Thanks @florian-lefebvre! - Fixes SSR renderer typev5.0.11
Compare Source
Patch Changes
a19a185
Thanks @florian-lefebvre! - Improves type-safety of renderersv5.0.10
Compare Source
Patch Changes
#13596
3752519
Thanks @jsparkdev! - update vite to latest version to fix CVE#13547
360cb91
Thanks @jsparkdev! - Updates vite to the latest versionv5.0.9
Compare Source
Patch Changes
ff9d69e
Thanks @jsparkdev! - updatevite
to the latest versionv5.0.8
Compare Source
Patch Changes
a98ae5b
Thanks @ematipico! - Updates the dependencyvite
to the latest.v5.0.7
Compare Source
Patch Changes
3842ce5
Thanks @florian-lefebvre! - Fixes a case where the compiler could not be resolved automaticallyv5.0.6
Compare Source
Patch Changes
cf30880
Thanks @ascorbic! - Upgrades Vitev5.0.5
Compare Source
Patch Changes
ea603ae
Thanks @louisescher! - Adds a warning message when multiple JSX-based UI frameworks are being used without either theinclude
orexclude
property being set on the integration.v5.0.4
Compare Source
Patch Changes
8809b85
Thanks @aminevg! - Fixes an issue where TypeScript couldn't infer the correct types of theserver.mjs
filev5.0.3
Compare Source
Patch Changes
739dbfb
Thanks @ascorbic! - Upgrades Vite to pin esbuildv5.0.2
Compare Source
Patch Changes
7dc2fca
Thanks @yoyo837! - fix vite peer dependency issue for vue integrationv5.0.1
Compare Source
Patch Changes
c3e80c2
Thanks @jsparkdev! - update vite to latest version for fixing CVEv5.0.0
Compare Source
Major Changes
#12060
cb5d3ae
Thanks @Princesseuh! - Updates peer dependency range to support Astro 5#12524
9f44019
Thanks @bluwy! - Updates Vite dependency to v6 to match Astro v5Minor Changes
827093e
Thanks @bluwy! - Drops node 21 supportPatch Changes
81b0bf5
Thanks @ematipico! - New release to include changes from 4.5.2withastro/astro (astro)
v5.10.1
Compare Source
Patch Changes
#13988
609044c
Thanks @ascorbic! - Fixes a bug in live collections that caused it to incorrectly complain about the collection being defined in the wrong file#13909
b258d86
Thanks @isVivek99! - Fixes rendering of special boolean attributes for custom elements#13983
e718375
Thanks @florian-lefebvre! - Fixes a case where the toolbar audit would incorrectly flag images processed by Astro in content collections documents#13999
f077b68
Thanks @ascorbic! - AddslastModified
field to experimental live collection cache hintsLive loaders can now set a
lastModified
field in the cache hints for entries and collections to indicate when the data was last modified. This is then available in thecacheHint
field returned bygetCollection
andgetEntry
.#13987
08f34b1
Thanks @ematipico! - Adds an informative message in dev mode when the CSP feature is enabled.#14005
82aad62
Thanks @ematipico! - Fixes a bug where inline styles and scripts didn't work when CSP was enabled. Now when adding<styles>
elements inside an Astro component, their hashes care correctly computed.#13985
0b4c641
Thanks @jsparkdev! - Updates wrong linkv5.10.0
Compare Source
Minor Changes
#13917
e615216
Thanks @ascorbic! - Adds a newpriority
attribute for Astro's image components.This change introduces a new
priority
option for the<Image />
and<Picture />
components, which automatically sets theloading
,decoding
, andfetchpriority
attributes to their optimal values for above-the-fold images which should be loaded immediately.It is a boolean prop, and you can use the shorthand syntax by simply adding
priority
as a prop to the<Image />
or<Picture />
component. When set, it will apply the following attributes:loading="eager"
decoding="sync"
fetchpriority="high"
The individual attributes can still be set manually if you need to customize your images further.
By default, the Astro
<Image />
component generates<img>
tags that lazy-load their content by settingloading="lazy"
anddecoding="async"
. This improves performance by deferring the loading of images that are not immediately visible in the viewport, and gives the best scores in performance audits like Lighthouse.The new
priority
attribute will override those defaults and automatically add the best settings for your high-priority assets.This option was previously available for experimental responsive images, but now it is a standard feature for all images.
Usage
#13917
e615216
Thanks @ascorbic! - The responsive images feature introduced behind a flag in v5.0.0 is no longer experimental and is available for general use.The new responsive images feature in Astro automatically generates optimized images for different screen sizes and resolutions, and applies the correct attributes to ensure that images are displayed correctly on all devices.
Enable the
or component, or configure a default
image.responsiveStyles
option in your Astro config. Then, set alayout
attribute on anyimage.layout
, for instantly responsive images with automatically generatedsrcset
andsizes
attributes based on the image's dimensions and the layout type.Displaying images correctly on the web can be challenging, and is one of the most common performance issues seen in sites. This new feature simplifies the most challenging part of the process: serving your site visitor an image optimized for their viewing experience, and for your website's performance.
For full details, see the updated Image guide.
Migration from Experimental Responsive Images
The
experimental.responsiveImages
flag has been removed, and all experimental image configuration options have been renamed to their final names.If you were using the experimental responsive images feature, you'll need to update your configuration:
Remove the experimental flag
export default defineConfig({ experimental: { - responsiveImages: true, }, });
Update image configuration options
During the experimental phase, default styles were applied automatically to responsive images. Now, you need to explicitly set the
responsiveStyles
option totrue
if you want these styles applied.export default defineConfig({ image: { + responsiveStyles: true, }, });
The experimental image configuration options have been renamed:
Before:
After:
Component usage remains the same
The
layout
,fit
, andposition
props on<Image>
and<Picture>
components work exactly the same as before:If you weren't using the experimental responsive images feature, no changes are required.
Please see the Image guide for more information on using responsive images in Astro.
#13685
3c04c1f
Thanks @ascorbic! - Adds experimental support for live content collectionsLive content collections are a new type of content collection that fetch their data at runtime rather than build time. This allows you to access frequently-updated data from CMSs, APIs, databases, or other sources using a unified API, without needing to rebuild your site when the data changes.
Live collections vs build-time collections
In Astro 5.0, the content layer API added support for adding diverse content sources to content collections. You can create loaders that fetch data from any source at build time, and then access it inside a page via
getEntry()
andgetCollection()
. The data is cached between builds, giving fast access and updates.However there is no method for updating the data store between builds, meaning any updates to the data need a full site deploy, even if the pages are rendered on-demand. This means that content collections are not suitable for pages that update frequently. Instead, today these pages tend to access the APIs directly in the frontmatter. This works, but leads to a lot of boilerplate, and means users don't benefit from the simple, unified API that content loaders offer. In most cases users tend to individually create loader libraries that they share between pages.
Live content collections solve this problem by allowing you to create loaders that fetch data at runtime, rather than build time. This means that the data is always up-to-date, without needing to rebuild the site.
How to use
To enable live collections add the
experimental.liveContentCollections
flag to yourastro.config.mjs
file:Then create a new
src/live.config.ts
file (alongside yoursrc/content.config.ts
if you have one) to define your live collections with a live loader and optionally a schema using the newdefineLiveCollection()
function from theastro:content
module.You can then use the dedicated
getLiveCollection()
andgetLiveEntry()
functions to access your live data:v5.9.4
Compare Source
Patch Changes
#13951
7eb88f1
Thanks @ascorbic! - Fixes a issue that caused errors when using an adapter-provided session driver with custom options#13953
448bddc
Thanks @zaitovalisher! - Fixes a bug where quotes were not added to the 'strict-dynamic' CSP directivev5.9.3
Compare Source
Patch Changes
#13923
a9ac5ed
Thanks @ematipico! - BREAKING CHANGE to the experimental Content Security Policy (CSP) onlyChanges the behavior of experimental Content Security Policy (CSP) to now serve hashes differently depending on whether or not a page is prerendered:
<meta>
element for static pages.Response
headercontent-security-policy
for on-demand rendered pages.This new strategy allows you to add CSP content that is not supported in a
<meta>
element (e.g.report-uri
,frame-ancestors
, and sandbox directives) to on-demand rendered pages.No change to your project code is required as this is an implementation detail. However, this will result in a different HTML output for pages that are rendered on demand. Please check your production site to verify that CSP is working as intended.
To keep up to date with this developing feature, or to leave feedback, visit the CSP Roadmap proposal.
#13926
953a249
Thanks @ematipico! - Adds a new Astro Adapter Feature calledexperimentalStaticHeaders
to allow your adapter to receive theHeaders
for rendered static pages.Adapters that enable support for this feature can access header values directly, affecting their handling of some Astro features such as Content Security Policy (CSP). For example, Astro will no longer serve the CSP
<meta http-equiv="content-security-policy">
element in static pages to adapters with this support.Astro will serve the value of the header inside a map that can be retrieved from the hook
astro:build:generated
. Adapters can read this mapping and use their hosting headers capabilities to create a configuration file.A new field called
experimentalRouteToHeaders
will contain a map ofMap<IntegrationResolvedRoute, Headers>
where theHeaders
type contains the headers emitted by the rendered static route.To enable support for this experimental Astro Adapter Feature, add it to your
adapterFeatures
in your adapter config:See the Adapter API docs for more information about providing adapter features.
#13697
af83b85
Thanks @benosmac! - Fixes issues with fallback route pattern matching wheni18n.routing.fallbackType
isrewrite
.generatePath
when building fallback routes and checking for existing translated pagesNow for a route to be matched it needs to be inside a named
[locale]
folder. This fixes an issue whereroute.pattern.test()
incorrectly matched dynamic routes, causing the page to be skipped.findRouteToRewrite
Now the requested pathname must exist in
route.distURL
for a dynamic route to match. This fixes an issue whereroute.pattern.test()
incorrectly matched dynamic routes, causing the build to fail.#13924
1cd8c3b
Thanks @qw-in! - Fixes an edge case whereisPrerendered
was incorrectly set tofalse
for static redirects.#13926
953a249
Thanks @ematipico! - Fixes an issue where the experimental CSPmeta
element wasn't placed in the<head>
element as early as possible, causing these policies to not apply to styles and scripts that came before themeta
element.v5.9.2
Compare Source
Patch Changes
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR was generated by Mend Renovate. View the repository job log.