summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.changeset/spotty-rice-shake.md7
-rw-r--r--.changeset/tasty-spoons-double.md48
-rw-r--r--.changeset/thick-cats-compete.md63
-rw-r--r--examples/basics/package.json2
-rw-r--r--examples/blog/package.json2
-rw-r--r--examples/component/package.json2
-rw-r--r--examples/container-with-vitest/package.json2
-rw-r--r--examples/framework-alpine/package.json2
-rw-r--r--examples/framework-lit/package.json2
-rw-r--r--examples/framework-multiple/package.json2
-rw-r--r--examples/framework-preact/package.json2
-rw-r--r--examples/framework-react/package.json2
-rw-r--r--examples/framework-solid/package.json2
-rw-r--r--examples/framework-svelte/package.json2
-rw-r--r--examples/framework-vue/package.json2
-rw-r--r--examples/hackernews/package.json2
-rw-r--r--examples/integration/package.json2
-rw-r--r--examples/middleware/package.json2
-rw-r--r--examples/minimal/package.json2
-rw-r--r--examples/non-html-pages/package.json2
-rw-r--r--examples/portfolio/package.json2
-rw-r--r--examples/server-islands/package.json2
-rw-r--r--examples/ssr/package.json2
-rw-r--r--examples/starlog/package.json2
-rw-r--r--examples/toolbar-app/package.json2
-rw-r--r--examples/view-transitions/package.json2
-rw-r--r--examples/with-markdoc/package.json2
-rw-r--r--examples/with-markdown-plugins/package.json2
-rw-r--r--examples/with-markdown-shiki/package.json2
-rw-r--r--examples/with-mdx/package.json2
-rw-r--r--examples/with-nanostores/package.json2
-rw-r--r--examples/with-tailwindcss/package.json2
-rw-r--r--examples/with-vitest/package.json2
-rw-r--r--packages/astro/CHANGELOG.md108
-rw-r--r--packages/astro/package.json2
-rw-r--r--pnpm-lock.yaml61
36 files changed, 169 insertions, 180 deletions
diff --git a/.changeset/spotty-rice-shake.md b/.changeset/spotty-rice-shake.md
deleted file mode 100644
index da913a320..000000000
--- a/.changeset/spotty-rice-shake.md
+++ /dev/null
@@ -1,7 +0,0 @@
----
-'astro': minor
----
-
-Adds color-coding to the console output during the build to highlight slow pages.
-
-Pages that take more than 500 milliseconds to render will have their build time logged in red. This change can help you discover pages of your site that are not performant and may need attention.
diff --git a/.changeset/tasty-spoons-double.md b/.changeset/tasty-spoons-double.md
deleted file mode 100644
index 0bacbd938..000000000
--- a/.changeset/tasty-spoons-double.md
+++ /dev/null
@@ -1,48 +0,0 @@
----
-'astro': minor
----
-
-The `experimental.contentCollectionJsonSchema` feature introduced behind a flag in [v4.5.0](https://github.com/withastro/astro/blob/main/packages/astro/CHANGELOG.md#450) is no longer experimental and is available for general use.
-
-If you are working with collections of type `data`, Astro will now auto-generate JSON schema files for your editor to get IntelliSense and type-checking. A separate file will be created for each data collection in your project based on your collections defined in `src/content/config.ts` using a library called [`zod-to-json-schema`](https://github.com/StefanTerdell/zod-to-json-schema).
-
-This feature requires you to manually set your schema's file path as the value for `$schema` in each data entry file of the collection:
-
-```json title="src/content/authors/armand.json" ins={2}
-{
- "$schema": "../../../.astro/collections/authors.schema.json",
- "name": "Armand",
- "skills": ["Astro", "Starlight"]
-}
-```
-
-Alternatively, you can set this value in your editor settings. For example, to set this value in [VSCode's `json.schemas` setting](https://code.visualstudio.com/docs/languages/json#_json-schemas-and-settings), provide the path of files to match and the location of your JSON schema:
-
-```json
-{
- "json.schemas": [
- {
- "fileMatch": [
- "/src/content/authors/**"
- ],
- "url": "./.astro/collections/authors.schema.json"
- }
- ]
-}
-```
-
-If you were previously using this feature, please remove the experimental flag from your Astro config:
-
-```diff
-import { defineConfig } from 'astro'
-
-export default defineConfig({
-- experimental: {
-- contentCollectionJsonSchema: true
-- }
-})
-```
-
-If you have been waiting for stabilization before using JSON Schema generation for content collections, you can now do so.
-
-Please see [the content collections guide](https://docs.astro.build/en/guides/content-collections/#enabling-json-schema-generation) for more about this feature.
diff --git a/.changeset/thick-cats-compete.md b/.changeset/thick-cats-compete.md
deleted file mode 100644
index 8ff59668d..000000000
--- a/.changeset/thick-cats-compete.md
+++ /dev/null
@@ -1,63 +0,0 @@
----
-'astro': minor
----
-
-The `experimental.rewriting` feature introduced behind a flag in [v4.8.0](https://github.com/withastro/astro/blob/main/packages/astro/CHANGELOG.md#480) is no longer experimental and is available for general use.
-
-`Astro.rewrite()` and `context.rewrite()` allow you to render a different page without changing the URL in the browser. Unlike using a redirect, your visitor is kept on the original page they visited.
-
-Rewrites can be useful for showing the same content at multiple paths (e.g. /products/shoes/men/ and /products/men/shoes/) without needing to maintain two identical source files.
-
-Rewrites are supported in Astro pages, endpoints, and middleware.
-
-Return `Astro.rewrite()` in the frontmatter of a `.astro` page component to display a different page's content, such as fallback localized content:
-
-```astro
----
----
-// src/pages/es-cu/articles/introduction.astro
-return Astro.rewrite("/es/articles/introduction")
----
-}
----
-```
-
-Use `context.rewrite()` in endpoints, for example to reroute to a different page:
-
-```js
-// src/pages/api.js
-export function GET(context) {
- if (!context.locals.allowed) {
- return context.rewrite('/');
- }
-}
-```
-
-The middleware `next()` function now accepts a parameter with the same type as the `rewrite()` function. For example, with `next("/")`, you can call the next middleware function with a new `Request`.
-
-```js
-// src/middleware.js
-export function onRequest(context, next) {
- if (!context.cookies.get('allowed')) {
- return next('/'); // new signature
- }
- return next();
-}
-```
-
-If you were previously using this feature, please remove the experimental flag from your Astro config:
-
-```diff
-// astro.config.mjs
-export default defineConfig({
-- experimental: {
-- rewriting: true
-- }
-})
-```
-
-If you have been waiting for stabilization before using rewrites in Astro, you can now do so.
-
-Please see [the routing guide in docs](https://docs.astro.build/en/guides/routing/#rewrites) for more about using this feature.
-
-
diff --git a/examples/basics/package.json b/examples/basics/package.json
index 65be26d35..48d27eea3 100644
--- a/examples/basics/package.json
+++ b/examples/basics/package.json
@@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
- "astro": "^4.12.3"
+ "astro": "^4.13.0"
}
}
diff --git a/examples/blog/package.json b/examples/blog/package.json
index 6f2d524dc..eda760f29 100644
--- a/examples/blog/package.json
+++ b/examples/blog/package.json
@@ -14,6 +14,6 @@
"@astrojs/mdx": "^3.1.3",
"@astrojs/rss": "^4.0.7",
"@astrojs/sitemap": "^3.1.6",
- "astro": "^4.12.3"
+ "astro": "^4.13.0"
}
}
diff --git a/examples/component/package.json b/examples/component/package.json
index 28de0116c..31b4fa680 100644
--- a/examples/component/package.json
+++ b/examples/component/package.json
@@ -15,7 +15,7 @@
],
"scripts": {},
"devDependencies": {
- "astro": "^4.12.3"
+ "astro": "^4.13.0"
},
"peerDependencies": {
"astro": "^4.0.0"
diff --git a/examples/container-with-vitest/package.json b/examples/container-with-vitest/package.json
index 8f57cd96f..ff1e06e38 100644
--- a/examples/container-with-vitest/package.json
+++ b/examples/container-with-vitest/package.json
@@ -12,7 +12,7 @@
"test": "vitest run"
},
"dependencies": {
- "astro": "^4.12.3",
+ "astro": "^4.13.0",
"@astrojs/react": "^3.6.1",
"react": "^18.3.1",
"react-dom": "^18.3.1",
diff --git a/examples/framework-alpine/package.json b/examples/framework-alpine/package.json
index 93006889f..cc182b382 100644
--- a/examples/framework-alpine/package.json
+++ b/examples/framework-alpine/package.json
@@ -14,6 +14,6 @@
"@astrojs/alpinejs": "^0.4.0",
"@types/alpinejs": "^3.13.10",
"alpinejs": "^3.14.1",
- "astro": "^4.12.3"
+ "astro": "^4.13.0"
}
}
diff --git a/examples/framework-lit/package.json b/examples/framework-lit/package.json
index 12f937ead..c9acfa337 100644
--- a/examples/framework-lit/package.json
+++ b/examples/framework-lit/package.json
@@ -13,7 +13,7 @@
"dependencies": {
"@astrojs/lit": "^4.3.0",
"@webcomponents/template-shadowroot": "^0.2.1",
- "astro": "^4.12.3",
+ "astro": "^4.13.0",
"lit": "^3.1.4"
}
}
diff --git a/examples/framework-multiple/package.json b/examples/framework-multiple/package.json
index 15cba7538..379dd08a6 100644
--- a/examples/framework-multiple/package.json
+++ b/examples/framework-multiple/package.json
@@ -18,7 +18,7 @@
"@astrojs/vue": "^4.5.0",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
- "astro": "^4.12.3",
+ "astro": "^4.13.0",
"preact": "^10.23.1",
"react": "^18.3.1",
"react-dom": "^18.3.1",
diff --git a/examples/framework-preact/package.json b/examples/framework-preact/package.json
index 44f06c758..2d54ce57f 100644
--- a/examples/framework-preact/package.json
+++ b/examples/framework-preact/package.json
@@ -13,7 +13,7 @@
"dependencies": {
"@astrojs/preact": "^3.5.1",
"@preact/signals": "^1.3.0",
- "astro": "^4.12.3",
+ "astro": "^4.13.0",
"preact": "^10.23.1"
}
}
diff --git a/examples/framework-react/package.json b/examples/framework-react/package.json
index a9fd1c301..432cc3390 100644
--- a/examples/framework-react/package.json
+++ b/examples/framework-react/package.json
@@ -14,7 +14,7 @@
"@astrojs/react": "^3.6.1",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
- "astro": "^4.12.3",
+ "astro": "^4.13.0",
"react": "^18.3.1",
"react-dom": "^18.3.1"
}
diff --git a/examples/framework-solid/package.json b/examples/framework-solid/package.json
index fd3191e5a..9ce0a490a 100644
--- a/examples/framework-solid/package.json
+++ b/examples/framework-solid/package.json
@@ -12,7 +12,7 @@
},
"dependencies": {
"@astrojs/solid-js": "^4.4.0",
- "astro": "^4.12.3",
+ "astro": "^4.13.0",
"solid-js": "^1.8.19"
}
}
diff --git a/examples/framework-svelte/package.json b/examples/framework-svelte/package.json
index 30114a6cc..2aff39cd8 100644
--- a/examples/framework-svelte/package.json
+++ b/examples/framework-svelte/package.json
@@ -12,7 +12,7 @@
},
"dependencies": {
"@astrojs/svelte": "^5.7.0",
- "astro": "^4.12.3",
+ "astro": "^4.13.0",
"svelte": "^4.2.18"
}
}
diff --git a/examples/framework-vue/package.json b/examples/framework-vue/package.json
index 715bf7479..878e5bf3b 100644
--- a/examples/framework-vue/package.json
+++ b/examples/framework-vue/package.json
@@ -12,7 +12,7 @@
},
"dependencies": {
"@astrojs/vue": "^4.5.0",
- "astro": "^4.12.3",
+ "astro": "^4.13.0",
"vue": "^3.4.35"
}
}
diff --git a/examples/hackernews/package.json b/examples/hackernews/package.json
index c753d4cae..e58eae02b 100644
--- a/examples/hackernews/package.json
+++ b/examples/hackernews/package.json
@@ -12,6 +12,6 @@
},
"dependencies": {
"@astrojs/node": "^8.3.2",
- "astro": "^4.12.3"
+ "astro": "^4.13.0"
}
}
diff --git a/examples/integration/package.json b/examples/integration/package.json
index 9ec69d7cf..24b7ec683 100644
--- a/examples/integration/package.json
+++ b/examples/integration/package.json
@@ -15,7 +15,7 @@
],
"scripts": {},
"devDependencies": {
- "astro": "^4.12.3"
+ "astro": "^4.13.0"
},
"peerDependencies": {
"astro": "^4.0.0"
diff --git a/examples/middleware/package.json b/examples/middleware/package.json
index 9bcedacd9..64308ad2b 100644
--- a/examples/middleware/package.json
+++ b/examples/middleware/package.json
@@ -13,7 +13,7 @@
},
"dependencies": {
"@astrojs/node": "^8.3.2",
- "astro": "^4.12.3",
+ "astro": "^4.13.0",
"html-minifier": "^4.0.0"
},
"devDependencies": {
diff --git a/examples/minimal/package.json b/examples/minimal/package.json
index 86e905d61..351927bdc 100644
--- a/examples/minimal/package.json
+++ b/examples/minimal/package.json
@@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
- "astro": "^4.12.3"
+ "astro": "^4.13.0"
}
}
diff --git a/examples/non-html-pages/package.json b/examples/non-html-pages/package.json
index ff69c03f7..52cd36f21 100644
--- a/examples/non-html-pages/package.json
+++ b/examples/non-html-pages/package.json
@@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
- "astro": "^4.12.3"
+ "astro": "^4.13.0"
}
}
diff --git a/examples/portfolio/package.json b/examples/portfolio/package.json
index 1dad0b570..6b989e0ea 100644
--- a/examples/portfolio/package.json
+++ b/examples/portfolio/package.json
@@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
- "astro": "^4.12.3"
+ "astro": "^4.13.0"
}
}
diff --git a/examples/server-islands/package.json b/examples/server-islands/package.json
index 8a25bec0f..6f221843c 100644
--- a/examples/server-islands/package.json
+++ b/examples/server-islands/package.json
@@ -17,7 +17,7 @@
"@tailwindcss/forms": "^0.5.7",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
- "astro": "^4.12.3",
+ "astro": "^4.13.0",
"postcss": "^8.4.40",
"react": "^18.3.1",
"react-dom": "^18.3.1",
diff --git a/examples/ssr/package.json b/examples/ssr/package.json
index e3d6d5c4d..61b0130d9 100644
--- a/examples/ssr/package.json
+++ b/examples/ssr/package.json
@@ -14,7 +14,7 @@
"dependencies": {
"@astrojs/node": "^8.3.2",
"@astrojs/svelte": "^5.7.0",
- "astro": "^4.12.3",
+ "astro": "^4.13.0",
"svelte": "^4.2.18"
}
}
diff --git a/examples/starlog/package.json b/examples/starlog/package.json
index 527df3e10..659ebb00f 100644
--- a/examples/starlog/package.json
+++ b/examples/starlog/package.json
@@ -10,7 +10,7 @@
"astro": "astro"
},
"dependencies": {
- "astro": "^4.12.3",
+ "astro": "^4.13.0",
"sass": "^1.77.8",
"sharp": "^0.33.3"
}
diff --git a/examples/toolbar-app/package.json b/examples/toolbar-app/package.json
index dfc373add..f0e8510ed 100644
--- a/examples/toolbar-app/package.json
+++ b/examples/toolbar-app/package.json
@@ -15,6 +15,6 @@
"./app": "./dist/app.js"
},
"devDependencies": {
- "astro": "^4.12.3"
+ "astro": "^4.13.0"
}
}
diff --git a/examples/view-transitions/package.json b/examples/view-transitions/package.json
index f31ddeded..94145ab51 100644
--- a/examples/view-transitions/package.json
+++ b/examples/view-transitions/package.json
@@ -12,6 +12,6 @@
"devDependencies": {
"@astrojs/tailwind": "^5.1.0",
"@astrojs/node": "^8.3.2",
- "astro": "^4.12.3"
+ "astro": "^4.13.0"
}
}
diff --git a/examples/with-markdoc/package.json b/examples/with-markdoc/package.json
index c0477420c..9107e6464 100644
--- a/examples/with-markdoc/package.json
+++ b/examples/with-markdoc/package.json
@@ -12,6 +12,6 @@
},
"dependencies": {
"@astrojs/markdoc": "^0.11.3",
- "astro": "^4.12.3"
+ "astro": "^4.13.0"
}
}
diff --git a/examples/with-markdown-plugins/package.json b/examples/with-markdown-plugins/package.json
index ed1104b7c..dcee3a066 100644
--- a/examples/with-markdown-plugins/package.json
+++ b/examples/with-markdown-plugins/package.json
@@ -12,7 +12,7 @@
},
"dependencies": {
"@astrojs/markdown-remark": "^5.2.0",
- "astro": "^4.12.3",
+ "astro": "^4.13.0",
"hast-util-select": "^6.0.2",
"rehype-autolink-headings": "^7.1.0",
"rehype-slug": "^6.0.0",
diff --git a/examples/with-markdown-shiki/package.json b/examples/with-markdown-shiki/package.json
index 7f43327a4..42b088818 100644
--- a/examples/with-markdown-shiki/package.json
+++ b/examples/with-markdown-shiki/package.json
@@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
- "astro": "^4.12.3"
+ "astro": "^4.13.0"
}
}
diff --git a/examples/with-mdx/package.json b/examples/with-mdx/package.json
index 764fa034a..dad38cb7f 100644
--- a/examples/with-mdx/package.json
+++ b/examples/with-mdx/package.json
@@ -13,7 +13,7 @@
"dependencies": {
"@astrojs/mdx": "^3.1.3",
"@astrojs/preact": "^3.5.1",
- "astro": "^4.12.3",
+ "astro": "^4.13.0",
"preact": "^10.23.1"
}
}
diff --git a/examples/with-nanostores/package.json b/examples/with-nanostores/package.json
index 4f6672b7f..6129f327d 100644
--- a/examples/with-nanostores/package.json
+++ b/examples/with-nanostores/package.json
@@ -13,7 +13,7 @@
"dependencies": {
"@astrojs/preact": "^3.5.1",
"@nanostores/preact": "^0.5.1",
- "astro": "^4.12.3",
+ "astro": "^4.13.0",
"nanostores": "^0.10.3",
"preact": "^10.23.1"
}
diff --git a/examples/with-tailwindcss/package.json b/examples/with-tailwindcss/package.json
index 771165678..837e2b4dd 100644
--- a/examples/with-tailwindcss/package.json
+++ b/examples/with-tailwindcss/package.json
@@ -14,7 +14,7 @@
"@astrojs/mdx": "^3.1.3",
"@astrojs/tailwind": "^5.1.0",
"@types/canvas-confetti": "^1.6.4",
- "astro": "^4.12.3",
+ "astro": "^4.13.0",
"autoprefixer": "^10.4.19",
"canvas-confetti": "^1.9.3",
"postcss": "^8.4.40",
diff --git a/examples/with-vitest/package.json b/examples/with-vitest/package.json
index c06cc3ac0..ae70db4b2 100644
--- a/examples/with-vitest/package.json
+++ b/examples/with-vitest/package.json
@@ -12,7 +12,7 @@
"test": "vitest"
},
"dependencies": {
- "astro": "^4.12.3",
+ "astro": "^4.13.0",
"vitest": "^2.0.5"
}
}
diff --git a/packages/astro/CHANGELOG.md b/packages/astro/CHANGELOG.md
index 527be3991..679806de3 100644
--- a/packages/astro/CHANGELOG.md
+++ b/packages/astro/CHANGELOG.md
@@ -1,5 +1,113 @@
# astro
+## 4.13.0
+
+### Minor Changes
+
+- [#11507](https://github.com/withastro/astro/pull/11507) [`a62345f`](https://github.com/withastro/astro/commit/a62345fd182ae4886d586c8406ed8f3e5f942730) Thanks [@ematipico](https://github.com/ematipico)! - Adds color-coding to the console output during the build to highlight slow pages.
+
+ Pages that take more than 500 milliseconds to render will have their build time logged in red. This change can help you discover pages of your site that are not performant and may need attention.
+
+- [#11379](https://github.com/withastro/astro/pull/11379) [`e5e2d3e`](https://github.com/withastro/astro/commit/e5e2d3ed3076f10b4645f011b13888d5fa16e92e) Thanks [@alexanderniebuhr](https://github.com/alexanderniebuhr)! - The `experimental.contentCollectionJsonSchema` feature introduced behind a flag in [v4.5.0](https://github.com/withastro/astro/blob/main/packages/astro/CHANGELOG.md#450) is no longer experimental and is available for general use.
+
+ If you are working with collections of type `data`, Astro will now auto-generate JSON schema files for your editor to get IntelliSense and type-checking. A separate file will be created for each data collection in your project based on your collections defined in `src/content/config.ts` using a library called [`zod-to-json-schema`](https://github.com/StefanTerdell/zod-to-json-schema).
+
+ This feature requires you to manually set your schema's file path as the value for `$schema` in each data entry file of the collection:
+
+ ```json title="src/content/authors/armand.json" ins={2}
+ {
+ "$schema": "../../../.astro/collections/authors.schema.json",
+ "name": "Armand",
+ "skills": ["Astro", "Starlight"]
+ }
+ ```
+
+ Alternatively, you can set this value in your editor settings. For example, to set this value in [VSCode's `json.schemas` setting](https://code.visualstudio.com/docs/languages/json#_json-schemas-and-settings), provide the path of files to match and the location of your JSON schema:
+
+ ```json
+ {
+ "json.schemas": [
+ {
+ "fileMatch": ["/src/content/authors/**"],
+ "url": "./.astro/collections/authors.schema.json"
+ }
+ ]
+ }
+ ```
+
+ If you were previously using this feature, please remove the experimental flag from your Astro config:
+
+ ```diff
+ import { defineConfig } from 'astro'
+
+ export default defineConfig({
+ - experimental: {
+ - contentCollectionJsonSchema: true
+ - }
+ })
+ ```
+
+ If you have been waiting for stabilization before using JSON Schema generation for content collections, you can now do so.
+
+ Please see [the content collections guide](https://docs.astro.build/en/guides/content-collections/#enabling-json-schema-generation) for more about this feature.
+
+- [#11542](https://github.com/withastro/astro/pull/11542) [`45ad326`](https://github.com/withastro/astro/commit/45ad326932971b44630a32d9092c9505f24f42f8) Thanks [@ematipico](https://github.com/ematipico)! - The `experimental.rewriting` feature introduced behind a flag in [v4.8.0](https://github.com/withastro/astro/blob/main/packages/astro/CHANGELOG.md#480) is no longer experimental and is available for general use.
+
+ `Astro.rewrite()` and `context.rewrite()` allow you to render a different page without changing the URL in the browser. Unlike using a redirect, your visitor is kept on the original page they visited.
+
+ Rewrites can be useful for showing the same content at multiple paths (e.g. /products/shoes/men/ and /products/men/shoes/) without needing to maintain two identical source files.
+
+ Rewrites are supported in Astro pages, endpoints, and middleware.
+
+ Return `Astro.rewrite()` in the frontmatter of a `.astro` page component to display a different page's content, such as fallback localized content:
+
+ ```astro
+ ---
+
+ ---
+
+ // src/pages/es-cu/articles/introduction.astro return Astro.rewrite("/es/articles/introduction")
+ --- } ---
+ ```
+
+ Use `context.rewrite()` in endpoints, for example to reroute to a different page:
+
+ ```js
+ // src/pages/api.js
+ export function GET(context) {
+ if (!context.locals.allowed) {
+ return context.rewrite('/');
+ }
+ }
+ ```
+
+ The middleware `next()` function now accepts a parameter with the same type as the `rewrite()` function. For example, with `next("/")`, you can call the next middleware function with a new `Request`.
+
+ ```js
+ // src/middleware.js
+ export function onRequest(context, next) {
+ if (!context.cookies.get('allowed')) {
+ return next('/'); // new signature
+ }
+ return next();
+ }
+ ```
+
+ If you were previously using this feature, please remove the experimental flag from your Astro config:
+
+ ```diff
+ // astro.config.mjs
+ export default defineConfig({
+ - experimental: {
+ - rewriting: true
+ - }
+ })
+ ```
+
+ If you have been waiting for stabilization before using rewrites in Astro, you can now do so.
+
+ Please see [the routing guide in docs](https://docs.astro.build/en/guides/routing/#rewrites) for more about using this feature.
+
## 4.12.3
### Patch Changes
diff --git a/packages/astro/package.json b/packages/astro/package.json
index e28557c4a..876b794ae 100644
--- a/packages/astro/package.json
+++ b/packages/astro/package.json
@@ -1,6 +1,6 @@
{
"name": "astro",
- "version": "4.12.3",
+ "version": "4.13.0",
"description": "Astro is a modern site builder with web best practices, performance, and DX front-of-mind.",
"type": "module",
"author": "withastro",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 578eb4e48..7257ac9b5 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -128,7 +128,7 @@ importers:
examples/basics:
dependencies:
astro:
- specifier: ^4.12.3
+ specifier: ^4.13.0
version: link:../../packages/astro
examples/blog:
@@ -143,13 +143,13 @@ importers:
specifier: ^3.1.6
version: link:../../packages/integrations/sitemap
astro:
- specifier: ^4.12.3
+ specifier: ^4.13.0
version: link:../../packages/astro
examples/component:
devDependencies:
astro:
- specifier: ^4.12.3
+ specifier: ^4.13.0
version: link:../../packages/astro
examples/container-with-vitest:
@@ -158,7 +158,7 @@ importers:
specifier: ^3.6.1
version: link:../../packages/integrations/react
astro:
- specifier: ^4.12.3
+ specifier: ^4.13.0
version: link:../../packages/astro
react:
specifier: ^18.3.1
@@ -189,7 +189,7 @@ importers:
specifier: ^3.14.1
version: 3.14.1
astro:
- specifier: ^4.12.3
+ specifier: ^4.13.0
version: link:../../packages/astro
examples/framework-lit:
@@ -201,7 +201,7 @@ importers:
specifier: ^0.2.1
version: 0.2.1
astro:
- specifier: ^4.12.3
+ specifier: ^4.13.0
version: link:../../packages/astro
lit:
specifier: ^3.1.4
@@ -231,7 +231,7 @@ importers:
specifier: ^18.3.0
version: 18.3.0
astro:
- specifier: ^4.12.3
+ specifier: ^4.13.0
version: link:../../packages/astro
preact:
specifier: ^10.23.1
@@ -261,7 +261,7 @@ importers:
specifier: ^1.3.0
version: 1.3.0(preact@10.23.1)
astro:
- specifier: ^4.12.3
+ specifier: ^4.13.0
version: link:../../packages/astro
preact:
specifier: ^10.23.1
@@ -279,7 +279,7 @@ importers:
specifier: ^18.3.0
version: 18.3.0
astro:
- specifier: ^4.12.3
+ specifier: ^4.13.0
version: link:../../packages/astro
react:
specifier: ^18.3.1
@@ -294,7 +294,7 @@ importers:
specifier: ^4.4.0
version: link:../../packages/integrations/solid
astro:
- specifier: ^4.12.3
+ specifier: ^4.13.0
version: link:../../packages/astro
solid-js:
specifier: ^1.8.19
@@ -306,7 +306,7 @@ importers:
specifier: ^5.7.0
version: link:../../packages/integrations/svelte
astro:
- specifier: ^4.12.3
+ specifier: ^4.13.0
version: link:../../packages/astro
svelte:
specifier: ^4.2.18
@@ -318,7 +318,7 @@ importers:
specifier: ^4.5.0
version: link:../../packages/integrations/vue
astro:
- specifier: ^4.12.3
+ specifier: ^4.13.0
version: link:../../packages/astro
vue:
specifier: ^3.4.35
@@ -330,13 +330,13 @@ importers:
specifier: ^8.3.2
version: link:../../packages/integrations/node
astro:
- specifier: ^4.12.3
+ specifier: ^4.13.0
version: link:../../packages/astro
examples/integration:
devDependencies:
astro:
- specifier: ^4.12.3
+ specifier: ^4.13.0
version: link:../../packages/astro
examples/middleware:
@@ -345,7 +345,7 @@ importers:
specifier: ^8.3.2
version: link:../../packages/integrations/node
astro:
- specifier: ^4.12.3
+ specifier: ^4.13.0
version: link:../../packages/astro
html-minifier:
specifier: ^4.0.0
@@ -358,19 +358,19 @@ importers:
examples/minimal:
dependencies:
astro:
- specifier: ^4.12.3
+ specifier: ^4.13.0
version: link:../../packages/astro
examples/non-html-pages:
dependencies:
astro:
- specifier: ^4.12.3
+ specifier: ^4.13.0
version: link:../../packages/astro
examples/portfolio:
dependencies:
astro:
- specifier: ^4.12.3
+ specifier: ^4.13.0
version: link:../../packages/astro
examples/server-islands:
@@ -397,7 +397,7 @@ importers:
specifier: ^18.3.0
version: 18.3.0
astro:
- specifier: ^4.12.3
+ specifier: ^4.13.0
version: link:../../packages/astro
postcss:
specifier: ^8.4.40
@@ -421,7 +421,7 @@ importers:
specifier: ^5.7.0
version: link:../../packages/integrations/svelte
astro:
- specifier: ^4.12.3
+ specifier: ^4.13.0
version: link:../../packages/astro
svelte:
specifier: ^4.2.18
@@ -430,7 +430,7 @@ importers:
examples/starlog:
dependencies:
astro:
- specifier: ^4.12.3
+ specifier: ^4.13.0
version: link:../../packages/astro
sass:
specifier: ^1.77.8
@@ -442,7 +442,7 @@ importers:
examples/toolbar-app:
devDependencies:
astro:
- specifier: ^4.12.3
+ specifier: ^4.13.0
version: link:../../packages/astro
examples/view-transitions:
@@ -454,7 +454,7 @@ importers:
specifier: ^5.1.0
version: link:../../packages/integrations/tailwind
astro:
- specifier: ^4.12.3
+ specifier: ^4.13.0
version: link:../../packages/astro
examples/with-markdoc:
@@ -463,7 +463,7 @@ importers:
specifier: ^0.11.3
version: link:../../packages/integrations/markdoc
astro:
- specifier: ^4.12.3
+ specifier: ^4.13.0
version: link:../../packages/astro
examples/with-markdown-plugins:
@@ -472,7 +472,7 @@ importers:
specifier: ^5.2.0
version: link:../../packages/markdown/remark
astro:
- specifier: ^4.12.3
+ specifier: ^4.13.0
version: link:../../packages/astro
hast-util-select:
specifier: ^6.0.2
@@ -493,7 +493,7 @@ importers:
examples/with-markdown-shiki:
dependencies:
astro:
- specifier: ^4.12.3
+ specifier: ^4.13.0
version: link:../../packages/astro
examples/with-mdx:
@@ -505,7 +505,7 @@ importers:
specifier: ^3.5.1
version: link:../../packages/integrations/preact
astro:
- specifier: ^4.12.3
+ specifier: ^4.13.0
version: link:../../packages/astro
preact:
specifier: ^10.23.1
@@ -520,7 +520,7 @@ importers:
specifier: ^0.5.1
version: 0.5.1(nanostores@0.10.3)(preact@10.23.1)
astro:
- specifier: ^4.12.3
+ specifier: ^4.13.0
version: link:../../packages/astro
nanostores:
specifier: ^0.10.3
@@ -541,7 +541,7 @@ importers:
specifier: ^1.6.4
version: 1.6.4
astro:
- specifier: ^4.12.3
+ specifier: ^4.13.0
version: link:../../packages/astro
autoprefixer:
specifier: ^10.4.19
@@ -559,7 +559,7 @@ importers:
examples/with-vitest:
dependencies:
astro:
- specifier: ^4.12.3
+ specifier: ^4.13.0
version: link:../../packages/astro
vitest:
specifier: ^2.0.5
@@ -9419,7 +9419,6 @@ packages:
libsql@0.3.12:
resolution: {integrity: sha512-to30hj8O3DjS97wpbKN6ERZ8k66MN1IaOfFLR6oHqd25GMiPJ/ZX0VaZ7w+TsPmxcFS3p71qArj/hiedCyvXCg==}
- cpu: [x64, arm64, wasm32]
os: [darwin, linux, win32]
lilconfig@2.1.0: