This repository was archived by the owner on Jun 12, 2025. It is now read-only.
Update astro monorepo (major) #16
Merged
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:
^3.1.3->^4.0.0^3.5.1->^4.0.0^5.1.0->^6.0.0^4.12.2->^5.0.0Release Notes
withastro/astro (@astrojs/mdx)
v4.0.8Compare Source
Patch Changes
db252e0]:v4.0.7Compare Source
Patch Changes
cf30880Thanks @ascorbic! - Upgrades Vitev4.0.6Compare Source
Patch Changes
3d89e62]:v4.0.5Compare Source
Patch Changes
3a267f3Thanks @bluwy! - Reverts withastro/astro@9a3b48c which caused a regression for rendering inline MDX components and MDX files from content collectionsv4.0.4Compare Source
Patch Changes
#12921
aeb7e1aThanks @ascorbic! - Fixes a bug that caused Image component to be imported on MDX pages that did not include images#12913
9a3b48cThanks @bluwy! - Makes internalcheck()function a no-op to allow faster component renders and prevent React 19 component warningsv4.0.3Compare Source
Patch Changes
739dbfbThanks @ascorbic! - Upgrades Vite to pin esbuildv4.0.2Compare Source
Patch Changes
f13417b,87231b1,a71e9b9]:v4.0.1Compare Source
Patch Changes
4f2fd0aThanks @Princesseuh! - Fixes compatibility with Astro 5v4.0.0Compare Source
Major Changes
#12231
90ae100Thanks @bluwy! - Handles the breaking change in Astro where content pages (including.mdxpages located withinsrc/pages/) no longer respond withcharset=utf-8in theContent-Typeheader.For MDX pages without layouts,
@astrojs/mdxwill automatically add the<meta charset="utf-8">tag to the page by default. This reduces the boilerplate needed to write with non-ASCII characters. If your MDX pages have a layout, the layout component should include the<meta charset="utf-8">tag.If you require
charset=utf-8to render your page correctly, make sure that your layout components have the<meta charset="utf-8">tag added.#12008
5608338Thanks @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.
Minor Changes
#12539
827093eThanks @bluwy! - Drops node 21 support#11741
6617491Thanks @bluwy! - Updates adapter server entrypoint to use@astrojs/mdx/server.jsThis is an internal change. Handling JSX in your
.mdxfiles has been moved from Astro internals and is now the responsibility of this integration. You should not notice a change in your project, and no update to your code is required.Patch Changes
#12075
a19530eThanks @bluwy! - Parses frontmatter ourselves#11861
3ab3b4eThanks @bluwy! - Updates@astrojs/markdown-remarkand handle its breaking changes#12533
1b61fdfThanks @ematipico! - Fixes a case where the MDX renderer couldn't be loaded when used as a direct dependency of an Astro integration.Updated dependencies [
3ab3b4e,5608338,560ef15,83a2a64,3ab3b4e,a19530e]:withastro/astro (@astrojs/preact)
v4.0.4Compare Source
Patch Changes
c497491Thanks @Marabyte! - Upgrades@preact/preset-vitev4.0.3Compare Source
Patch Changes
cf30880Thanks @ascorbic! - Upgrades Vitev4.0.2Compare Source
Patch Changes
ea603aeThanks @louisescher! - Adds a warning message when multiple JSX-based UI frameworks are being used without either theincludeorexcludeproperty being set on the integration.v4.0.1Compare Source
Patch Changes
739dbfbThanks @ascorbic! - Upgrades Vite to pin esbuildv4.0.0Compare Source
Major Changes
9f44019Thanks @bluwy! - Updates Vite dependency to v6 to match Astro v5Minor Changes
827093eThanks @bluwy! - Drops node 21 supportwithastro/astro (@astrojs/tailwind)
v6.0.0Compare Source
Major Changes
#13049
2ed4bd9Thanks @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/tailwindand 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.2.5Compare Source
Patch Changes
#13133
e76aa83Thanks @ematipico! - Fixes a bug where Astro was failing to build an external redirect when the middleware was triggered#13119
ac43580Thanks @Hacksore! - Adds extra guidance in the terminal when using theastro add tailwindCLI 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.4Compare Source
Patch Changes
#13130
b71bd10Thanks @ascorbic! - Fixes a bug that caused duplicate slashes inside query params to be collapsed#13131
d60c742Thanks @ascorbic! - Ignores trailing slashes for endpoints with file extensions in the routeUpdated dependencies [
b71bd10]:v5.2.3Compare Source
Patch Changes
#13113
3a26e45Thanks @unprintable123! - Fixes the bug that rewrite will pass encoded url to the dynamic routing and cause params mismatch.#13111
23978ddThanks @ascorbic! - Fixes a bug that caused injected endpoint routes to return not found when trailingSlash was set to always#13112
0fa5c82Thanks @ematipico! - Fixes a bug where the i18n middleware was blocking a server island request when theprefixDefaultLocaleoption is set totruev5.2.2Compare Source
Patch Changes
187c4d3Thanks @ascorbic! - Fixes a bug that caused peer dependency errors when runningastro add tailwindv5.2.1Compare Source
Patch Changes
740eb60Thanks @ascorbic! - Fixes a bug that caused some dev server asset requests to return 404 when trailingSlash was set to "always"v5.2.0Compare Source
Minor Changes
#12994
5361755Thanks @ascorbic! - Redirects trailing slashes for on-demand pagesWhen the
trailingSlashoption is set toalwaysornever, 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
e621712Thanks @ematipico! - Adds support for redirecting to external sites with theredirectsconfiguration option.Now, you can redirect routes either internally to another path or externally by providing a URL beginning with
httporhttps:#13084
0f3be31Thanks @ematipico! - Adds a new experimental virtual moduleastro:configthat exposes a type-safe subset of yourastro.config.mjsconfigurationThe 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.serializeManifestfeature 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
2ed4bd9Thanks @florian-lefebvre! - Updatesastro add tailwindto add the@tailwindcss/viteplugin instead of the@astrojs/tailwindintegration#12994
5361755Thanks @ascorbic! - Returns a more helpful 404 page in dev if there is a trailing slash mismatch between the route requested and thetrailingSlashconfiguration#12666
037495dThanks @Thodor12! - Added additional generated typings for the content layerUpdated dependencies [
5361755,db252e0]:v5.1.10Compare Source
Patch Changes
#13058
1a14b53Thanks @ascorbic! - Fixes broken type declaration#13059
e36837fThanks @ascorbic! - Fixes a bug that caused tsconfig path aliases to break if there was more than one wildcard pattern#13045
c7f1366Thanks @mtwilliams-code! - Fixes a bug where the some utility functions of theastro:i18nvirtual module would return an incorrect result whentrailingSlashis set toneverv5.1.9Compare Source
Patch Changes
#12986
8911bdaThanks @wetheredge! - Updates types and dev toolbar for ARIA 1.2 attributes and roles#12892
8f520f1Thanks @louisescher! - Adds a more descriptive error when a content collection entry has an invalid ID.#13031
f576519Thanks @florian-lefebvre! - Updates the server islands encoding logic to only escape the script end tag open delimiter and opening HTML comment syntax#13026
1d272f6Thanks @ascorbic! - Fixes a regression that prevented the import of Markdown files as raw text or URLs.v5.1.8Compare Source
Patch Changes
#12998
9ce0038Thanks @Kynson! - Fixes the issue that audit incorrectly flag images as above the fold when the scrolling container is not body#12990
2e12f1dThanks @ascorbic! - Fixes a bug that caused references to be incorrectly reported as invalid#12984
2d259cfThanks @ascorbic! - Fixes a bug in dev where files would stop being watched if the Astro config file was edited#12984
2d259cfThanks @ascorbic! - Fixes a bug where the content layer would use an outdated version of the Astro config if it was edited in dev#12982
429aa75Thanks @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
78fd73aThanks @florian-lefebvre! - Fixes a case whereastro:actionstypes would not work when usingsrc/actions.ts#13011
cf30880Thanks @ascorbic! - Upgrades Vite#12733
bbf1d88Thanks @ascorbic! - Fixes a bug that caused the dev server to return an error if requesting "//"#13001
627aec3Thanks @ascorbic! - Fixes a bug that caused Astro to attempt to inject environment variables into non-source files, causing performance problems and broken buildsv5.1.7Compare Source
Patch Changes
#12361
3d89e62Thanks @LunaticMuch! - Upgrades theesbuildversion to matchvite#12980
1a026afThanks @florian-lefebvre! - Fixes a case where setting the status of a page to404in development would show the default 404 page (or custom one if provided) instead of using the current page#12182
c30070bThanks @braden-w! - Improves matching of 404 and 500 routesUpdated dependencies [
3d89e62]:v5.1.6Compare Source
Patch Changes
#12956
3aff68aThanks @kaytwo! - Removes encryption of empty props to allow server island cacheability#12977
80067c0Thanks @florian-lefebvre! - Fixes a case where accessingastro:envAPIs orimport.meta.envinside the content config file would not work#12839
57be349Thanks @mtwilliams-code! - Fix Astro.currentLocale returning the incorrect locale when using fallback rewrites in SSR mode#12962
4b7a2ceThanks @ascorbic! - Skips updating content layer files if content is unchanged#12942
f00c2ddThanks @liruifengv! - Improves the session error messages#12966
d864e09Thanks @ascorbic! - Ensures old content collection entry is deleted if a markdown frontmatter slug is changed in devv5.1.5Compare Source
Patch Changes
#12934
673a518Thanks @ematipico! - Fixes a regression where the Astro Container didn't work during the build, usingpnpm#12955
db447f2Thanks @martrapp! - Lets TypeScript know about the "blocking" and "disabled" attributes of the<link>element.#12922
faf74afThanks @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
3c2292fThanks @ascorbic! - Fixes a bug that caused empty content collections when running dev with NODE_ENV setv5.1.4Compare Source
Patch Changes
#12927
ad2a752Thanks @ematipico! - Fixes a bug where Astro attempted to decode a request URL multiple times, resulting in an unexpected behaviour when decoding the character%#12912
0c0c66bThanks @florian-lefebvre! - Improves the config error for invalid combinations ofcontextandaccessproperties underenv.schema#12935
3d47e6bThanks @AirBorne04! - Fixes an issue whereAstro.localscoming from an adapter weren't available in the404.astro, when using theastro devcommand,#12925
44841fcThanks @ascorbic! - Ensures image styles are not imported unless experimental responsive images are enabled#12926
8e64bb7Thanks @oliverlynch! - Improves remote image cache efficiency by separating image data and metadata into a binary and sidecar JSON file.#12920
8b9d530Thanks @bluwy! - Processes markdown with empty body as remark and rehype plugins may add additional content or frontmatter#12918
fd12a26Thanks @lameuler! - Fixes a bug where the logged output path does not match the actual output path when usingbuild.format: 'preserve'#12676
2ffc0fcThanks @koyopro! - Allows configuring Astro modules TypeScript compilation with thevite.esbuildconfig#12938
dbb04f3Thanks @ascorbic! - Fixes a bug where content collections would sometimes appear empty when first running astro dev#12937
30edb6dThanks @ematipico! - Fixes a bug where users could useAstro.request.headersduring a rewrite inside prerendered routes. This an invalid behaviour, and now Astro will show a warning if this happens.#12937
30edb6dThanks @ematipico! - Fixes an issue where the use ofAstro.rewritewould trigger the invalid use ofAstro.request.headersv5.1.3Compare Source
Patch Changes
#12877
73a0788Thanks @bluwy! - Fixes sourcemap warning generated by theastro:server-islandsVite plugin#12906
2d89492Thanks @ascorbic! - Fixes a bug that caused pages that return an empty array from getStaticPath to match every path011fa0fThanks @florian-lefebvre! - Fixes a case whereastro:contenttypes would be erased when restarting the dev server#12907
dbf1275Thanks @florian-lefebvre! - Fixes a regression around the server islands route, which was not passed to the adaptersastro:build:donehook#12818
579bd93Thanks @ascorbic! - Fixes race condition where dev server would attempt to load collections before the content had loaded#12883
fbac92fThanks @kaytwo! - Fixes a bug where responses can be returned before session data is saved#12815
3acc654Thanks @ericswpark! - Some non-index files that were incorrectly being treated as index files are now excluded#12884
d7e97a7Thanks @ascorbic! - Addsrender()to stub content types#12883
fbac92fThanks @kaytwo! - Fixes a bug where session data could be corrupted if it is changed after calling .set()#12827
7b5dc6fThanks @sinskiy! - Fixes an issue when crawlers try to index Server Islands thinking that Server Islands are pagesv5.1.2Compare Source
Patch Changes
#12798
7b0cb85Thanks @ascorbic! - Improves warning logs for invalid content collection configuration#12781
96c4b92Thanks @ascorbic! - Fixes a regression that causeddefault()to not work withreference()#12820
892dd9fThanks @ascorbic! - Fixes a bug that caused cookies to not be deleted when destroying a session#12864
440d8a5Thanks @kaytwo! - Fixes a bug where the session ID wasn't correctly regenerated#12768
524c855Thanks @ematipico! - Fixes an issue where Astro didn't print error logs when Astro Islands were used in incorrect cases.#12814
f12f111Thanks @ematipico! - Fixes an issue where Astro didn't log anything in case a file isn't created during the build.#12875
e109002Thanks @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
524c855Thanks @ematipico! - Fixes an issue where Astro was printing the incorrect output format when running theastro buildcommand#12810
70a9f0bThanks @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
text/html, so the following will still be considered a valid header:text/html; charset=utf-8#12816
7fb2184Thanks @ematipico! - Fixes an issue where an injected route entrypoint wasn't correctly marked because the resolved file path contained a query parameter.This fixes some edge case where some injected entrypoint were not resolved when using an adapter.
v5.1.1Compare Source
Patch Changes
#12782
f3d8385Thanks @fhiromasa! - update comment in packages/astro/src/types/public/common.ts#12789
f632b94Thanks @ascorbic! - Pass raw frontmatter to remark plugins in glob loader#12799
739dbfbThanks @ascorbic! - Upgrades Vite to pin esbuildv5.1.0Compare Source
Minor Changes
#12441
b4fec3cThanks @ascorbic! - Adds experimental session supportSessions are used to store user state between requests for server-rendered pages, such as login status, shopping cart contents, or other user-specific data.
v5.0.9Compare Source
Patch Changes
95795f8Thanks @matthewp! - Remove debug logging from buildv5.0.8Compare Source
Patch Changes
039d022Thanks @matthewp! - Clean server sourcemaps from static outputv5.0.7Compare Source
Patch Changes
c879f50Thanks @matthewp! - Remove all assets created from the server buildv5.0.6Compare Source
Patch Changes
#12597
564ac6cThanks @florian-lefebvre! - Fixes an issue where image and server islands routes would not be passed to theastro:routes:resolvedhook during builds#12718
ccc5ad1Thanks @ematipico! - Fixes an issue where Astro couldn't correctly handle i18n fallback when using the i18n middleware#12728
ee66a45Thanks @argyleink! - Adds type support for theclosedbyattribute for<dialog>elements#12709
e3bfd93Thanks @mtwilliams-code! - Fixes a bug where Astro couldn't correctly parseparamsandpropswhen receiving i18n fallback URLs#12657
14dffccThanks @darkmaga! - Trailing slash support for actions#12715
029661dThanks @ascorbic! - Fixes a bug that caused errors in dev when editing sites with large numbers of MDX pages#12729
8b1cecdThanks @JoeMorgan! - "Addedinertto htmlBooleanAttributes"#12726
7c7398cThanks @florian-lefebvre! - Fixes a case where failing content entries inastro checkwould not be surfacedv5.0.5Compare Source
Patch Changes
#12705
0d1eab5Thanks @ascorbic! - Fixes a bug where MDX files with certain characters in the name would cause builds to fail#12707
2aaed2dThanks @ematipico! - Fixes a bug where the middleware was incorrectly imported during the build#12697
1c4a032Thanks @ascorbic! - Fix a bug that caused builds to fail if an image had a quote mark in its name#12694
495f46bThanks @ematipico! - Fixes a bug where the experimental featureexperimental.svgwas incorrectly used when generating ESM imagesConfiguration
📅 Schedule: Branch creation - At any time (no schedule defined), 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.