fix(deps): update astro monorepo (major) #161
Open
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.2.0
->^6.0.0
^3.3.0
->^4.0.0
^5.1.0
->^6.0.0
^4.16.18
->^5.0.0
Release Notes
withastro/astro (@astrojs/netlify)
v6.2.0
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
v6.1.0
Minor Changes
4b5cd22
Thanks @florian-lefebvre! - Stabilizesastro:env
secrets supportPatch Changes
#454
83cedad
Thanks @alexanderniebuhr! - Improves Astro 5 support#501
012b31d
Thanks @florian-lefebvre! - Refactor of the redirects logicv6.0.1
Patch Changes
#481
9d98b8a
Thanks @ascorbic! - Fixes an error where edge middleware would incorrectly assign locals#488
f3739be
Thanks @ascorbic! - Correctly pass Netlify context in edge middlewarev6.0.0
Major Changes
#367
e02b54a
Thanks @alexanderniebuhr! - Removed support for the Squoosh image service. As the underlying librarylibsquoosh
is no longer maintained, and the image service sees very little usage we have decided to remove it from Astro.Our recommendation is to use the base Sharp image service, which is more powerful, faster, and more actively maintained.
If you are using this service, and cannot migrate to the base Sharp image service, a third-party extraction of the previous service is available here: https://github.com/Princesseuh/astro-image-service-squoosh
#367
e02b54a
Thanks @alexanderniebuhr! - Deprecates thefunctionPerRoute
optionThis option is now deprecated, and will be removed entirely in Astro v5.0. We suggest removing this option from your configuration as soon as you are able to:
import { defineConfig } from 'astro/config'; import vercel from '@​astrojs/vercel/serverless'; export default defineConfig({ // ... output: 'server', adapter: vercel({ - functionPerRoute: true, }), });
#375
e7881f7
Thanks @Princesseuh! - Updates internal code to works with Astro 5 changes to hybrid rendering. No changes are necessary to your project, apart from using Astro 5#397
776a266
Thanks @Princesseuh! - Welcome to the Astro 5 beta! This release has no changes from the latest alpha of this package, but it does bring us one step closer to the final, stable release.Starting from this release, no breaking changes will be introduced unless absolutely necessary.
To learn how to upgrade, check out the Astro v5.0 upgrade guide in our beta docs site.
#451
f248546
Thanks @ematipico! - Updates esbuild dependency to v0.24.0#392
3a49eb7
Thanks @Princesseuh! - Updates internal code for Astro 5 changes. No changes is required to your project, apart from using Astro 5Minor Changes
bb725b7
Thanks @florian-lefebvre! - Cleans upastro:env
supportwithastro/astro (@astrojs/react)
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/tailwind)
v6.0.0
Compare Source
Major Changes
#13049
2ed4bd9
Thanks @florian-lefebvre! - Deprecates the integrationTailwind CSS now offers a Vite plugin which is the preferred way to use Tailwind 4 in Astro. Please uninstall
@astrojs/tailwind
and follow the Tailwind documentation for manual installation.This updated major version is only provided as a convenience for existing projects until they are able to migrate to the new plugin. It offers no additional functionality and is no longer recommended, but may continue to be used in your projects until it is removed entirely.
withastro/astro (astro)
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 buildsv5.1.7
Compare Source
Patch Changes
#12361
3d89e62
Thanks @LunaticMuch! - Upgrades theesbuild
version to matchvite
#12980
1a026af
Thanks @florian-lefebvre! - Fixes a case where setting the status of a page to404
in development would show the default 404 page (or custom one if provided) instead of using the current page#12182
c30070b
Thanks @braden-w! - Improves matching of 404 and 500 routesUpdated dependencies [
3d89e62
]:v5.1.6
Compare Source
Patch Changes
#12956
3aff68a
Thanks @kaytwo! - Removes encryption of empty props to allow server island cacheability#12977
80067c0
Thanks @florian-lefebvre! - Fixes a case where accessingastro:env
APIs orimport.meta.env
inside the content config file would not work#12839
57be349
Thanks @mtwilliams-code! - Fix Astro.currentLocale returning the incorrect locale when using fallback rewrites in SSR mode#12962
4b7a2ce
Thanks @ascorbic! - Skips updating content layer files if content is unchanged#12942
f00c2dd
Thanks @liruifengv! - Improves the session error messages#12966
d864e09
Thanks @ascorbic! - Ensures old content collection entry is deleted if a markdown frontmatter slug is changed in devv5.1.5
Compare Source
Patch Changes
#12934
673a518
Thanks @ematipico! - Fixes a regression where the Astro Container didn't work during the build, usingpnpm
#12955
db447f2
Thanks @martrapp! - Lets TypeScript know about the "blocking" and "disabled" attributes of the<link>
element.#12922
faf74af
Thanks @adamchal! - Improves performance of static asset generation by fixing a bug that caused image transforms to be performed serially. This fix ensures that processing uses all CPUs when running in a multi-core environment.#12947
3c2292f
Thanks @ascorbic! - Fixes a bug that caused empty content collections when running dev with NODE_ENV setv5.1.4
Compare Source
Patch Changes
#12927
ad2a752
Thanks @ematipico! - Fixes a bug where Astro attempted to decode a request URL multiple times, resulting in an unexpected behaviour when decoding the character%
#12912
0c0c66b
Thanks @florian-lefebvre! - Improves the config error for invalid combinations ofcontext
andaccess
properties underenv.schema
#12935
3d47e6b
Thanks @AirBorne04! - Fixes an issue whereAstro.locals
coming from an adapter weren't available in the404.astro
, when using theastro dev
command,#12925
44841fc
Thanks @ascorbic! - Ensures image styles are not imported unless experimental responsive images are enabled#12926
8e64bb7
Thanks @oliverlynch! - Improves remote image cache efficiency by separating image data and metadata into a binary and sidecar JSON file.#12920
8b9d530
Thanks @bluwy! - Processes markdown with empty body as remark and rehype plugins may add additional content or frontmatter#12918
fd12a26
Thanks @lameuler! - Fixes a bug where the logged output path does not match the actual output path when usingbuild.format: 'preserve'
#12676
2ffc0fc
Thanks @koyopro! - Allows configuring Astro modules TypeScript compilation with thevite.esbuild
config#12938
dbb04f3
Thanks @ascorbic! - Fixes a bug where content collections would sometimes appear empty when first running astro dev#12937
30edb6d
Thanks @ematipico! - Fixes a bug where users could useAstro.request.headers
during a rewrite inside prerendered routes. This an invalid behaviour, and now Astro will show a warning if this happens.#12937
30edb6d
Thanks @ematipico! - Fixes an issue where the use ofAstro.rewrite
would trigger the invalid use ofAstro.request.headers
v5.1.3
Compare Source
Patch Changes
#12877
73a0788
Thanks @bluwy! - Fixes sourcemap warning generated by theastro:server-islands
Vite plugin#12906
2d89492
Thanks @ascorbic! - Fixes a bug that caused pages that return an empty array from getStaticPath to match every path011fa0f
Thanks @florian-lefebvre! - Fixes a case whereastro:content
types would be erased when restarting the dev server#12907
dbf1275
Thanks @florian-lefebvre! - Fixes a regression around the server islands route, which was not passed to the adaptersastro:build:done
hook#12818
579bd93
Thanks @ascorbic! - Fixes race condition where dev server would attempt to load collections before the content had loaded#12883
fbac92f
Thanks @kaytwo! - Fixes a bug where responses can be returned before session data is saved#12815
3acc654
Thanks @ericswpark! - Some non-index files that were incorrectly being treated as index files are now excluded#12884
d7e97a7
Thanks @ascorbic! - Addsrender()
to stub content types#12883
fbac92f
Thanks @kaytwo! - Fixes a bug where session data could be corrupted if it is changed after calling .set()#12827
7b5dc6f
Thanks @sinskiy! - Fixes an issue when crawlers try to index Server Islands thinking that Server Islands are pagesv5.1.2
Compare Source
Patch Changes
#12798
7b0cb85
Thanks @ascorbic! - Improves warning logs for invalid content collection configuration#12781
96c4b92
Thanks @ascorbic! - Fixes a regression that causeddefault()
to not work withreference()
#12820
892dd9f
Thanks @ascorbic! - Fixes a bug that caused cookies to not be deleted when destroying a session#12864
440d8a5
Thanks @kaytwo! - Fixes a bug where the session ID wasn't correctly regenerated#12768
524c855
Thanks @ematipico! - Fixes an issue where Astro didn't print error logs when Astro Islands were used in incorrect cases.#12814
f12f111
Thanks @ematipico! - Fixes an issue where Astro didn't log anything in case a file isn't created during the build.#12875
e109002
Thanks @ascorbic! - Fixes a bug in emulated legacy collections where the entry passed to the getCollection filter function did not include the legacy entry fields.#12768
524c855
Thanks @ematipico! - Fixes an issue where Astro was printing the incorrect output format when running theastro build
command#12810
70a9f0b
Thanks @louisescher! - Fixes server islands failing to check content-type header under certain circumstancesSometimes a reverse proxy or similar service might modify the content-type header to include the charset or other parameters in the media type of the response. This previously wasn't handled by the client-side server island script and thus removed the script without actually placing the requested content in the DOM. This fix makes it so the script checks if the header starts with the proper content type instead of exactly matching
Configuration
📅 Schedule: Branch creation - "* 0-3 * * 1" (UTC), 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.
👻 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.