This repository was archived by the owner on Jun 12, 2025. It is now read-only.
Update astro monorepo #18
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:
12.2.1->12.5.44.0.8->4.3.02.1.3->2.1.44.0.4->4.1.04.0.11->4.0.123.2.1->3.4.16.0.0->6.0.25.2.5->5.9.2Release Notes
withastro/astro (@astrojs/cloudflare)
v12.5.4Compare Source
Patch Changes
#13817
b7258f1Thanks @yanthomasdev! - Clarifies and reduces a few logs when starting the dev server with@astrojs/cloudflare.Warnings about sharp support will now be suppressed when you have explicitly set an
imageServiceoption.Updated dependencies []:
v12.5.3Compare Source
Patch Changes
#13792
7910feaThanks @alexeyzimarev! - Unify imported images detection across adaptersUpdated dependencies []:
v12.5.2Compare Source
Patch Changes
#13731
c3e80c2Thanks @jsparkdev! - update vite to latest version for fixing CVEUpdated dependencies []:
v12.5.1Compare Source
Patch Changes
#13591
5dd2d3fThanks @florian-lefebvre! - Removes unused codeUpdated dependencies [
5dd2d3f]:v12.5.0Compare Source
Minor Changes
#13527
2fd6a6bThanks @ascorbic! - The experimental session API introduced in Astro 5.1 is now stable and ready for production use.Sessions are used to store user state between requests for on-demand rendered pages. You can use them to store user data, such as authentication tokens, shopping cart contents, or any other data that needs to persist across requests:
v12.4.1Compare Source
Patch Changes
#13596
3752519Thanks @jsparkdev! - update vite to latest version to fix CVE#13547
360cb91Thanks @jsparkdev! - Updates vite to the latest versionUpdated dependencies []:
v12.4.0Compare Source
Minor Changes
#13514
a9aafecThanks @ascorbic! - Automatically configures Cloudflare KV storage when experimental sessions are enabledIf the
experimental.sessionflag is enabled when using the Cloudflare adapter, Astro will automatically configure the session storage using the Cloudflare KV 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. If you want to use sessions, you will need to create the KV namespace and declare it in your wrangler config. You can do this using the Wrangler CLI:This will log the id of the created namespace. You can then add it to your
wrangler.json/wrangler.tomlfile like this:By default it uses the binding name
SESSION, but if you want to use a different binding name you can do so by passing thesessionKVBindingNameoption to the adapter. For example:See the Cloudflare KV docs for more details on setting up KV namespaces.
See the experimental session docs for more information on configuring session storage.
Patch Changes
#13526
ff9d69eThanks @jsparkdev! - updateviteto the latest versionUpdated dependencies []:
v12.3.1Compare Source
Patch Changes
#13505
a98ae5bThanks @ematipico! - Updates the dependencyviteto the latest.Updated dependencies []:
v12.3.0Compare Source
Minor Changes
#13444
9721f4aThanks @florian-lefebvre! - Adds globalastro:envsupportCloudflare workers now support importing
envin the global scope. Until now, callingastro:envAPIs had to be done within request scope or the values wereundefined.With this release, they can be called anywhere server-side, like any other official adapter.
Patch Changes
#13463
d5ad591Thanks @ascorbic! - Fixes a bug that caused builds to fail when a base directory is configuredUpdated dependencies []:
v12.2.4Compare Source
Patch Changes
042d1de]:v12.2.3Compare Source
Patch Changes
#13323
80926faThanks @ematipico! - Updatesesbuildandviteto the latest to avoid false positives audits warnings caused byesbuild.Updated dependencies [
1e11f5e]:v12.2.2Patch Changes
#13304
6efd57dThanks @ematipico! - Fixes a small issue where the package was pulling an outdated version of its internal dependencies.#13201
065157cThanks @ekwoka! - Includes onerror passthrough param for Cloudflare Image Service#13299
2e1321eThanks @bluwy! - Usestinyglobbyfor globbing filesUpdated dependencies []:
withastro/astro (@astrojs/mdx)
v4.3.0Compare Source
Minor Changes
#13809
3c3b492Thanks @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.
Patch Changes
v4.2.6Compare Source
Patch Changes
c3e80c2Thanks @jsparkdev! - update vite to latest version for fixing CVEv4.2.5Compare Source
Patch Changes
5dd2d3fThanks @florian-lefebvre! - Removes unused codev4.2.4Compare Source
Patch Changes
#13596
3752519Thanks @jsparkdev! - update vite to latest version to fix CVE#13547
360cb91Thanks @jsparkdev! - Updates vite to the latest versionv4.2.3Compare Source
Patch Changes
ff9d69eThanks @jsparkdev! - updateviteto the latest versionv4.2.2Patch Changes
a98ae5bThanks @ematipico! - Updates the dependencyviteto the latest.v4.2.1Patch Changes
#13448
91c9503Thanks @ematipico! - Upgrade to shiki v3Updated dependencies [
91c9503]:v4.2.0Compare Source
Minor Changes
#13352
cb886dcThanks @delucis! - Adds support for a newexperimental.headingIdCompatflagBy default, Astro removes a trailing
-from the end of IDs it generates for headings ending withspecial characters. This differs from the behavior of common Markdown processors.
You can now disable this behavior with a new configuration flag:
This can be useful when heading IDs and anchor links need to behave consistently across your site
and other platforms such as GitHub and npm.
If you are using the
rehypeHeadingIdsplugin directly, you can also pass this new option:Patch Changes
cb886dc,a3327ff]:v4.1.1Compare Source
Patch Changes
v4.1.0Compare Source
Minor Changes
#13254
1e11f5eThanks @p0lyw0lf! - Adds the ability to process and optimize remote images in Markdown syntax in MDX files.Previously, Astro only allowed local images to be optimized when included using
![]()syntax. 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 JSX
<img/>tag instead. Note that images located in yourpublic/folder are still never processed.Patch Changes
1e11f5e]:withastro/astro (@astrojs/partytown)
v2.1.4Compare Source
Patch Changes
#13109
5c0e0eaThanks @arnottferels! - Adds support forconfig.lib, which allows changing the destination of the files:export default defineConfig({ integrations: [partytown({ config: { + lib: '/assets/lib/~partytown/'; } })] })withastro/astro (@astrojs/preact)
v4.1.0Compare Source
Minor Changes
#13809
3c3b492Thanks @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.0.11Compare Source
Patch Changes
c3e80c2Thanks @jsparkdev! - update vite to latest version for fixing CVEv4.0.10Compare Source
Patch Changes
5dd2d3fThanks @florian-lefebvre! - Removes unused codev4.0.9Compare Source
Patch Changes
#13596
3752519Thanks @jsparkdev! - update vite to latest version to fix CVE#13547
360cb91Thanks @jsparkdev! - Updates vite to the latest versionv4.0.8Compare Source
Patch Changes
ff9d69eThanks @jsparkdev! - updateviteto the latest versionv4.0.7Compare Source
Patch Changes
a98ae5bThanks @ematipico! - Updates the dependencyviteto the latest.v4.0.6Compare Source
Patch Changes
ecadb6bThanks @ascorbic! - Hides fallback content when renderingclient:onlyislandv4.0.5Compare Source
Patch Changes
80926faThanks @ematipico! - Updatesesbuildandviteto the latest to avoid false positives audits warnings caused byesbuild.withastro/astro (@astrojs/rss)
v4.0.12Compare Source
Patch Changes
c947c28Thanks @Adriel-M! - Fixes a missing type attribute when providing a XSLT stylesheetwithastro/astro (@astrojs/sitemap)
v3.4.1Compare Source
Patch Changes
8a1e849Thanks @blimmer! - Uncaught errors in thefiltermethod will now bubble, causing the astro build to fail.v3.4.0Compare Source
Minor Changes
#13753
90293deThanks @mattyoho! - Customize the filenames of sitemap XML files generated by the@astro/sitemapintegration by settingfilenameBasein the integration configuration settings. This may be useful when deploying an Astro site at a path on a domain with preexisting sitemap files.Generated sitemap files will appear at
/sitemap-0.xmland/sitemap-index.xmlby default, which may conflict with preexisting files. SetfilenameBaseto a custom value to avoid that if so:This will yield sitemap and index files as
https://example.com/astronomy-sitemap-0.xmlandhttps://example.com/astronomy-sitemap-index.xml.v3.3.1Patch Changes
5dd2d3fThanks @florian-lefebvre! - Removes unused codev3.3.0Minor Changes
91c9503Thanks @ematipico! - Add support for XSL in sitemap-index.xmlwithastro/astro (@astrojs/tailwind)
v6.0.2Compare Source
Patch Changes
a98ae5bThanks @ematipico! - Updates the dependencyviteto the latest.v6.0.1Compare Source
Patch Changes
020c542Thanks @delucis! - Updates the README to indicate that the Tailwind integration is deprecatedwithastro/astro (astro)
v5.9.2Compare Source
Patch Changes
#13919
423fe60Thanks @ematipico! - Fixes a bug where Astro added quotes to the CSP resources.Only certain resources require quotes (e.g.
'self'but nothttps://cdn.example.com), so Astro no longer adds quotes to any resources. You must now provide the quotes yourself for resources such as'self'when necessary:export default defineConfig({ experimental: { csp: { styleDirective: { resources: [ - "self", + "'self'", "https://cdn.example.com" ] } } } })#13914
76c5480Thanks @ematipico! - BREAKING CHANGE to the experimental Content Security Policy feature onlyRemoves support for experimental Content Security Policy (CSP) when using the
<ClientRouter />component for view transitions.It is no longer possible to enable experimental CSP while using Astro's view transitions. Support was already unstable with the
<ClientRouter />because CSP required making its underlying implementation asynchronous. This caused breaking changes for several users and therefore, this PR removes support completely.If you are currently using the component for view transitions, please remove the experimental CSP flag as they cannot be used together.
import { defineConfig } from 'astro/config'; export default defineConfig({ experimental: { - csp: true } });Alternatively, to continue using experimental CSP in your project, you can consider migrating to the browser native View Transition API and remove the
<ClientRouter />from your project. You may be able to achieve similar results if you are not using Astro's enhancements to the native View Transitions and Navigation APIs.Support might be reintroduced in future releases. You can follow this experimental feature's development in the CSP RFC.
v5.9.1Compare Source
Patch Changes
#13899
7a1303dThanks @reknih! - Fix bug where error pages would return invalid bodies if the upstream response was compressed#13902
051bc30Thanks @arHSM! - Fixes a bug where vite virtual module ids were incorrectly added in the dev server#13905
81f71caThanks @jsparkdev! - Fixes wrong contents in CSP meta tag.#13907
8246bccThanks @martrapp! - Fixes a bug that caused view transition names to be lost.#13901
37fa0a2Thanks @ansg191! - fix fallback not being removed when server island is renderedv5.9.0Compare Source
Minor Changes
#13802
0eafe14Thanks @ematipico! - Adds experimental Content Security Policy (CSP) supportCSP is an important feature to provide fine-grained control over resources that can or cannot be downloaded and executed by a document. In particular, it can help protect against cross-site scripting (XSS) attacks.
Enabling this feature adds additional security to Astro's handling of processed and bundled scripts and styles by default, and allows you to further configure these, and additional, content types. This new experimental feature has been designed to work in every Astro rendering environment (static pages, dynamic pages and single page applications), while giving you maximum flexibility and with type-safety in mind.
It is compatible with most of Astro's features such as client islands, and server islands, although Astro's view transitions using the
<ClientRouter />are not yet fully supported. Inline scripts are not supported out of the box, but you can provide your own hashes for external and inline scripts.To enable this feature, add the experimental flag in your Astro config:
For more information on enabling and using this feature in your project, see the Experimental CSP docs.
For a complete overview, and to give feedback on this experimental API, see the Content Security Policy RFC.
#13850
1766d22Thanks @ascorbic! - Provides a Markdown renderer to content loadersWhen creating a content loader, you will now have access to a
renderMarkdownfunction that allows you to render Markdown content directly within your loaders. It uses the same settings and plugins as the renderer used for Markdown files in Astro, and follows any Markdown settings you have configured in your Astro project.This allows you to render Markdown content from various sources, such as a CMS or other data sources, directly in your loaders without needing to preprocess the Markdown content separately.
The return value of
renderMarkdownis an object with two properties:htmlandmetadata. These match therenderedproperty of content entries in content collections, so you can use them to render the content in your components or pages.v5.8.2Compare Source
Patch Changes
#13877
5a7797fThanks @yuhang-dong! - Fixes a bug that causedAstro.rewriteto fail when used insequenced middleware#13872
442b841Thanks @isVivek99! - Fixes rendering of thedownloadattribute when it has a boolean valuev5.8.1Compare Source
Patch Changes
#13037
de2fc9bThanks @nanarino! - Fixes rendering of thepopoverattribute when it has a boolean value#13851
45ae95aThanks @ascorbic! - Allows disabling default styles for responsive imagesThis change adds a new
image.experimentalDefaultStylesoption that allows you to disable the default styles applied to responsive images.When using experimental responsive images, Astro applies default styles to ensure the images resize correctly. In most cases this is what you want – and they are applied with low specificity so your own styles override them. However in some cases you may want to disable these default styles entirely. This is particularly useful when using Tailwind 4, because it uses CSS cascade layers to apply styles, making it difficult to override the default styles.
image.experimentalDefaultStylesis a boolean option that defaults totrue, so you can change it in your Astro config file like this:#13858
cb1a168Thanks @florian-lefebvre! - Fixes the warning shown when client directives are used on Astro components#12574
da266d0Thanks @apatel369! - Allows using server islands in mdx files#13843
fbcfa68Thanks @z1haze! - Export typeAstroSessionto allow use in explicitly typed safe code.v5.8.0Compare Source
Minor Changes
#13809
3c3b492Thanks @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.
Patch Changes
3c3b492]:v5.7.14Compare Source
Patch Changes
#13773
3aa5337Thanks @sijad! - Ignores lightningcss unsupported pseudo-class warning.#13833
5a6d2aeThanks @ascorbic! - Fixes an issue where session modules would fail to resolve in Node.js < 20.6#13383
f7f712cThanks @Haberkamp! - Stop toolbar settings from overflowing#13794
85b19d8Thanks @alexcarpenter! - Exclude pre tags froma11y-no-noninteractive-tabindexaudit check.#13373
50ef568Thanks @jpwienekus! - Fixes a bug where highlights and tooltips render over the audit list window.#13769
e9fc456Thanks @romanstetsyk! - Expand ActionError codes to include all IANA-registered HTTP error codes.#13668
866285aThanks @sapphi-red! - Replaces internal CSS chunking behavior for Astro components' scoped styles to use Vite'scssScopeTofeature. The feature is a port of Astro's implementation so this should not change the behavior.v5.7.13Compare Source
Patch Changes
#13761
a2e8463Thanks @jp-knj! - Adds new content collections errors#13788
7d0b7acThanks @florian-lefebvre! - Fixes a case where an error would not be thrown when using the<Font />component from the experimental fonts API without adding fonts in the Astro config#13784
d7a1889Thanks @florian-lefebvre! - Fixes the experimental fonts APConfiguration
📅 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.