chore(deps): update astro monorepo (major) #1868
Open
+1,442
−556
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.2.1
^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.0.5
^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.0.7
^3.0.0 || ^4.0.0
->^3.0.0 || ^4.0.0 || ^5.0.0
4.16.15
->5.4.2
Release Notes
withastro/astro (@astrojs/react)
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.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
4f2fd0a
Thanks @Princesseuh! - Fixes compatibility with Astro 5v7.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.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
4f2fd0a
Thanks @Princesseuh! - Fixes compatibility with Astro 5v5.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.4.2
Compare Source
Patch Changes
#12985
84e94cc
Thanks @matthewp! - Prevent re-executing scripts in client router#13349
50e2e0b
Thanks @ascorbic! - Correctly escapes attributes in Markdown images#13262
0025df3
Thanks @ematipico! - Refactor Astro Actions to not use a middleware. Doing so should avoid unexpected issues when using the Astro middleware at the edge.v5.4.1
Compare Source
Patch Changes
#13336
8f632ef
Thanks @ematipico! - Fixes a regression where some asset utilities were move across monorepo, and not re-exported anymore.#13320
b5dabe9
Thanks @{! - Adds support for typing experimental session dataYou can add optional types to your session data by creating a
src/env.d.ts
file in your project that extends the globalApp.SessionData
interface. For example:Any keys not defined in this interface will be treated as
any
.Then when you access
Astro.session
in your components, any defined keys will be typed correctly:v5.4.0
Compare Source
Minor Changes
5be12b2
Thanks @Fryuni! - Exposes extra APIs for scripting and testing.Config helpers
Two new helper functions exported from
astro/config
:mergeConfig()
allows users to merge partially defined Astro configurations on top of a base config while following the merge rules ofupdateConfig()
available for integrations.validateConfig()
allows users to validate that a given value is a valid Astro configuration and fills in default values as necessary.These helpers are particularly useful for integration authors and for developers writing scripts that need to manipulate Astro configurations programmatically.
Programmatic build
The
build
API now receives a second optionalBuildOptions
argument where users can specify:devOutput
(defaultfalse
): output a development-based build similar to code transformed inastro dev
.teardownCompiler
(defaulttrue
): teardown the compiler WASM instance after build.These options provide more control when running Astro builds programmatically, especially for testing scenarios or custom build pipelines.
#13278
4a43c4b
Thanks @ematipico! - Adds a new configuration optionserver.allowedHosts
and CLI option--allowed-hosts
.Now you can specify the hostnames that the dev and preview servers are allowed to respond to. This is useful for allowing additional subdomains, or running the dev server in a web container.
allowedHosts
checks the Host header on HTTP requests from browsers and if it doesn't match, it will reject the request to prevent CSRF and XSS attacks.This feature is the same as Vite's
server.allowHosts
configuration.#13254
1e11f5e
Thanks @p0lyw0lf! - Adds the ability to process and optimize remote images in Markdown filesPreviously, Astro only allowed local images to be optimized when included using
![]()
syntax in plain Markdown files. Astro's image service could only display remote images without any processing.Now, Astro's image service can also optimize remote images written in standard Markdown syntax. This allows you to enjoy the benefits of Astro's image processing when your images are stored externally, for example in a CMS or digital asset manager.
No additional configuration is required to use this feature! Any existing remote images written in Markdown will now automatically be optimized. To opt-out of this processing, write your images in Markdown using the HTML
<img>
tag instead. Note that images located in yourpublic/
folder are still never processed.Patch Changes
#13256
509fa67
Thanks @p0lyw0lf! - Adds experimental responsive image support in MarkdownPreviously, the
experimental.responsiveImages
feature could only provide responsive images when using the<Image />
and<Picture />
components.Now, images written with the
![]()
Markdown syntax in Markdown and MDX files will generate responsive images by default when using this experimental feature.To try this experimental feature, set
experimental.responsiveImages
to true in yourastro.config.mjs
file:Learn more about using this feature in the experimental responsive images feature reference.
For a complete overview, and to give feedback on this experimental API, see the Responsive Images RFC.
#13323
80926fa
Thanks @ematipico! - Updatesesbuild
andvite
to the latest to avoid false positives audits warnings caused byesbuild
.#13313
9e7c71d
Thanks @martrapp! - Fixes an issue where a form field named "attributes" shadows the form.attributes property.#12052
5be12b2
Thanks @Fryuni! - Fixes incorrect config update when callingupdateConfig
fromastro:build:setup
hook.The function previously called a custom update config function made for merging an Astro config. Now it calls the appropriate
mergeConfig()
utility exported by Vite that updates functional options correctly.#13303
5f72a58
Thanks @ematipico! - Fixes an issue where the dev server was applying second decoding of the URL of the incoming request, causing issues for certain URLs.Updated dependencies [
1e11f5e
,1e11f5e
]:v5.3.1
Compare Source
Patch Changes
#13233
32fafeb
Thanks @joshmkennedy! - Ensures consistent behaviour ofAstro.rewrite
/ctx.rewrite
when usingbase
andtrailingSlash
options.#13003
ea79054
Thanks @chaegumi! - Fixes a bug that caused thevite.base
value to be ignored when runningastro dev
#13299
2e1321e
Thanks @bluwy! - Usestinyglobby
for globbing files#13233
32fafeb
Thanks @joshmkennedy! - Ensures thatAstro.url
/ctx.url
is correctly updated with thebase
path after rewrites.This change fixes an issue where
Astro.url
/ctx.url
did not include the configured base path after Astro.rewrite was called. Now, the base path is correctly reflected in Astro.url.Previously, any rewrites performed through
Astro.rewrite
/ctx.rewrite
failed to append the base path toAstro.url
/ctx.rewrite
, which could lead to incorrect URL handling in downstream logic. By fixing this, we ensure that all routes remain consistent and predictable after a rewrite.If you were relying on the work around of including the base path in astro.rewrite you can now remove it from the path.
v5.3.0
Compare Source
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 FORBIDDENv5.2.6
Compare Source
Patch Changes
#13188
7bc8256
Thanks @ematipico! - Fixes the wording of the an error message#13205
9d56602
Thanks @ematipico! - Fixes and issue where a server island component returns 404 whenbase
is configured in i18n project.#13212
fb38840
Thanks @joshmkennedy! - An additional has been added during the build command to add clarity around output and buildOutput.#13213
6bac644
Thanks @joshmkennedy! - Allows readonly arrays to be passed to thepaginate()
functionv5.2.5
Compare Source
Patch Changes
#13133
e76aa83
Thanks @ematipico! - Fixes a bug where Astro was failing to build an external redirect when the middleware was triggered#13119
ac43580
Thanks @Hacksore! - Adds extra guidance in the terminal when using theastro add tailwind
CLI commandNow, users are given a friendly reminder to import the stylesheet containing their Tailwind classes into any pages where they want to use Tailwind. Commonly, this is a shared layout component so that Tailwind styling can be used on multiple pages.
v5.2.4
Compare Source
Patch Changes
#13130
b71bd10
Thanks @ascorbic! - Fixes a bug that caused duplicate slashes inside query params to be collapsed#13131
d60c742
Thanks @ascorbic! - Ignores trailing slashes for endpoints with file extensions in the routeUpdated dependencies [
b71bd10
]:v5.2.3
Compare Source
Patch Changes
#13113
3a26e45
Thanks @unprintable123! - Fixes the bug that rewrite will pass encoded url to the dynamic routing and cause params mismatch.#13111
23978dd
Thanks @ascorbic! - Fixes a bug that caused injected endpoint routes to return not found when trailingSlash was set to always#13112
0fa5c82
Thanks @ematipico! - Fixes a bug where the i18n middleware was blocking a server island request when theprefixDefaultLocale
option is set totrue
v5.2.2
Compare Source
Patch Changes
187c4d3
Thanks @ascorbic! - Fixes a bug that caused peer dependency errors when runningastro add tailwind
v5.2.1
Compare Source
Patch Changes
740eb60
Thanks @ascorbic! - Fixes a bug that caused some dev server asset requests to return 404 when trailingSlash was set to "always"v5.2.0
Compare Source
Minor Changes
#12994
5361755
Thanks @ascorbic! - Redirects trailing slashes for on-demand pagesWhen the
trailingSlash
option is set toalways
ornever
, on-demand rendered pages will now redirect to the correct URL when the trailing slash doesn't match the configuration option. This was previously the case for static pages, but now works for on-demand pages as well.Now, it doesn't matter whether your visitor navigates to
/about/
,/about
, or even/about///
. In production, they'll always end up on the correct page. For GET requests, the redirect will be a 301 (permanent) redirect, and for all other request methods, it will be a 308 (permanent, and preserve the request method) redirect.In development, you'll see a helpful 404 page to alert you of a trailing slash mismatch so you can troubleshoot routes.
#12979
e621712
Thanks @ematipico! - Adds support for redirecting to external sites with theredirects
configuration option.Now, you can redirect routes either internally to another path or externally by providing a URL beginning with
http
orhttps
:#13084
0f3be31
Thanks @ematipico! - Adds a new experimental virtual moduleastro:config
that exposes a type-safe subset of yourastro.config.mjs
configurationThe virtual module exposes two sub-paths for controlled access to your configuration:
astro:config/client
: exposes config information that is safe to expose to the client.astro:config/server
: exposes additional information that is safe to expose to the server, such as file/dir paths.To enable this new virtual module, add the
experimental.serializeManifest
feature flag to your Astro config:Then, you can access the module in any file inside your project to import and use values from your Astro config:
For a complete overview, and to give feedback on this experimental API, see the Serialized Manifest RFC.
Patch Changes
#13049
2ed4bd9
Thanks @florian-lefebvre! - Updatesastro add tailwind
to add the@tailwindcss/vite
plugin instead of the@astrojs/tailwind
integration#12994
5361755
Thanks @ascorbic! - Returns a more helpful 404 page in dev if there is a trailing slash mismatch between the route requested and thetrailingSlash
configuration#12666
037495d
Thanks @Thodor12! - Added additional generated typings for the content layerUpdated dependencies [
5361755
,db252e0
]:v5.1.10
Compare Source
Patch Changes
#13058
1a14b53
Thanks @ascorbic! - Fixes broken type declaration#13059
e36837f
Thanks @ascorbic! - Fixes a bug that caused tsconfig path aliases to break if there was more than one wildcard pattern#13045
c7f1366
Thanks @mtwilliams-code! - Fixes a bug where the some utility functions of theastro:i18n
virtual module would return an incorrect result whentrailingSlash
is set tonever
v5.1.9
Compare Source
Patch Changes
#12986
8911bda
Thanks @wetheredge! - Updates types and dev toolbar for ARIA 1.2 attributes and roles#12892
8f520f1
Thanks @louisescher! - Adds a more descriptive error when a content collection entry has an invalid ID.#13031
f576519
Thanks @florian-lefebvre! - Updates the server islands encoding logic to only escape the script end tag open delimiter and opening HTML comment syntax#13026
1d272f6
Thanks @ascorbic! - Fixes a regression that prevented the import of Markdown files as raw text or URLs.v5.1.8
Compare Source
Patch Changes
#12998
9ce0038
Thanks @Kynson! - Fixes the issue that audit incorrectly flag images as above the fold when the scrolling container is not body#12990
2e12f1d
Thanks @ascorbic! - Fixes a bug that caused references to be incorrectly reported as invalid#12984
2d259cf
Thanks @ascorbic! - Fixes a bug in dev where files would stop being watched if the Astro config file was edited#12984
2d259cf
Thanks @ascorbic! - Fixes a bug where the content layer would use an outdated version of the Astro config if it was edited in dev#12982
429aa75
Thanks @bluwy! - Fixes an issue where server islands do not work in projects that use an adapter but only have prerendered pages. If an adapter is added, the server island endpoint will now be added by default.#12995
78fd73a
Thanks @florian-lefebvre! - Fixes a case whereastro:actions
types would not work when usingsrc/actions.ts
#13011
cf30880
Thanks @ascorbic! - Upgrades Vite#12733
bbf1d88
Thanks @ascorbic! - Fixes a bug that caused the dev server to return an error if requesting "//"#13001
627aec3
Thanks @ascorbic! - Fixes a bug that caused Astro to attempt to inject environment variables into non-source files, causing performance problems and broken builds[`v5.1.7
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.