diff --git a/.changeset/breezy-plums-clap.md b/.changeset/breezy-plums-clap.md deleted file mode 100644 index d6d3f4b26a..0000000000 --- a/.changeset/breezy-plums-clap.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Fixes a case where the error overlay would not escape the message diff --git a/.changeset/dull-lemons-check.md b/.changeset/dull-lemons-check.md deleted file mode 100644 index c2c51c4120..0000000000 --- a/.changeset/dull-lemons-check.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -'astro': patch ---- - -Fixes a case where Astro allowed to call an action without using `Astro.callAction`. This is now invalid, and Astro will show a proper error. - -```diff ---- -import { actions } from "astro:actions"; - --const result = actions.getUser({ userId: 123 }); -+const result = Astro.callAction(actions.getUser, { userId: 123 }); ---- -``` diff --git a/.changeset/nine-mayflies-film.md b/.changeset/nine-mayflies-film.md deleted file mode 100644 index c782c73bc4..0000000000 --- a/.changeset/nine-mayflies-film.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Fixes unexpected 200 status in dev server logs for action errors and redirects. diff --git a/examples/basics/package.json b/examples/basics/package.json index 84d2260ded..9c64cd2b8b 100644 --- a/examples/basics/package.json +++ b/examples/basics/package.json @@ -11,6 +11,6 @@ "astro": "astro" }, "dependencies": { - "astro": "^4.16.10" + "astro": "^4.16.11" } } diff --git a/examples/blog/package.json b/examples/blog/package.json index 4a36ac4be1..3207e29547 100644 --- a/examples/blog/package.json +++ b/examples/blog/package.json @@ -14,6 +14,6 @@ "@astrojs/mdx": "^3.1.9", "@astrojs/rss": "^4.0.9", "@astrojs/sitemap": "^3.2.1", - "astro": "^4.16.10" + "astro": "^4.16.11" } } diff --git a/examples/component/package.json b/examples/component/package.json index b3d65ba765..00b21725de 100644 --- a/examples/component/package.json +++ b/examples/component/package.json @@ -15,7 +15,7 @@ ], "scripts": {}, "devDependencies": { - "astro": "^4.16.10" + "astro": "^4.16.11" }, "peerDependencies": { "astro": "^4.0.0" diff --git a/examples/container-with-vitest/package.json b/examples/container-with-vitest/package.json index 9b8ad347a3..209517b3c1 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.16.10", + "astro": "^4.16.11", "@astrojs/react": "^3.6.2", "react": "^18.3.1", "react-dom": "^18.3.1", diff --git a/examples/framework-alpine/package.json b/examples/framework-alpine/package.json index 63b0ab0d22..7216c73d14 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.3", - "astro": "^4.16.10" + "astro": "^4.16.11" } } diff --git a/examples/framework-lit/package.json b/examples/framework-lit/package.json index 951632a539..c57bfb792c 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.16.10", + "astro": "^4.16.11", "lit": "^3.2.1" } } diff --git a/examples/framework-multiple/package.json b/examples/framework-multiple/package.json index d742d06097..ae33ce0cff 100644 --- a/examples/framework-multiple/package.json +++ b/examples/framework-multiple/package.json @@ -18,7 +18,7 @@ "@astrojs/vue": "^4.5.2", "@types/react": "^18.3.12", "@types/react-dom": "^18.3.1", - "astro": "^4.16.10", + "astro": "^4.16.11", "preact": "^10.24.3", "react": "^18.3.1", "react-dom": "^18.3.1", diff --git a/examples/framework-preact/package.json b/examples/framework-preact/package.json index 3f0d52d1cc..6ab39cf91e 100644 --- a/examples/framework-preact/package.json +++ b/examples/framework-preact/package.json @@ -13,7 +13,7 @@ "dependencies": { "@astrojs/preact": "^3.5.3", "@preact/signals": "^1.3.0", - "astro": "^4.16.10", + "astro": "^4.16.11", "preact": "^10.24.3" } } diff --git a/examples/framework-react/package.json b/examples/framework-react/package.json index b5491d77cc..f1e5c4f217 100644 --- a/examples/framework-react/package.json +++ b/examples/framework-react/package.json @@ -14,7 +14,7 @@ "@astrojs/react": "^3.6.2", "@types/react": "^18.3.12", "@types/react-dom": "^18.3.1", - "astro": "^4.16.10", + "astro": "^4.16.11", "react": "^18.3.1", "react-dom": "^18.3.1" } diff --git a/examples/framework-solid/package.json b/examples/framework-solid/package.json index e67c3f573c..5565c2ccf0 100644 --- a/examples/framework-solid/package.json +++ b/examples/framework-solid/package.json @@ -12,7 +12,7 @@ }, "dependencies": { "@astrojs/solid-js": "^4.4.2", - "astro": "^4.16.10", + "astro": "^4.16.11", "solid-js": "^1.9.3" } } diff --git a/examples/framework-svelte/package.json b/examples/framework-svelte/package.json index 266dfb85a7..1f29535e75 100644 --- a/examples/framework-svelte/package.json +++ b/examples/framework-svelte/package.json @@ -12,7 +12,7 @@ }, "dependencies": { "@astrojs/svelte": "^5.7.3", - "astro": "^4.16.10", + "astro": "^4.16.11", "svelte": "^4.2.19" } } diff --git a/examples/framework-vue/package.json b/examples/framework-vue/package.json index 10da8e7983..a5e7b26895 100644 --- a/examples/framework-vue/package.json +++ b/examples/framework-vue/package.json @@ -12,7 +12,7 @@ }, "dependencies": { "@astrojs/vue": "^4.5.2", - "astro": "^4.16.10", + "astro": "^4.16.11", "vue": "^3.5.12" } } diff --git a/examples/hackernews/package.json b/examples/hackernews/package.json index 534898a39d..ebfff074be 100644 --- a/examples/hackernews/package.json +++ b/examples/hackernews/package.json @@ -12,6 +12,6 @@ }, "dependencies": { "@astrojs/node": "^8.3.4", - "astro": "^4.16.10" + "astro": "^4.16.11" } } diff --git a/examples/integration/package.json b/examples/integration/package.json index 63697a0e24..846ac11773 100644 --- a/examples/integration/package.json +++ b/examples/integration/package.json @@ -15,7 +15,7 @@ ], "scripts": {}, "devDependencies": { - "astro": "^4.16.10" + "astro": "^4.16.11" }, "peerDependencies": { "astro": "^4.0.0" diff --git a/examples/minimal/package.json b/examples/minimal/package.json index 5ba444a9e4..9c01f84ee7 100644 --- a/examples/minimal/package.json +++ b/examples/minimal/package.json @@ -11,6 +11,6 @@ "astro": "astro" }, "dependencies": { - "astro": "^4.16.10" + "astro": "^4.16.11" } } diff --git a/examples/portfolio/package.json b/examples/portfolio/package.json index 861fb95c69..f20d2eae91 100644 --- a/examples/portfolio/package.json +++ b/examples/portfolio/package.json @@ -11,6 +11,6 @@ "astro": "astro" }, "dependencies": { - "astro": "^4.16.10" + "astro": "^4.16.11" } } diff --git a/examples/ssr/package.json b/examples/ssr/package.json index aa06d247e2..e79a746c45 100644 --- a/examples/ssr/package.json +++ b/examples/ssr/package.json @@ -14,7 +14,7 @@ "dependencies": { "@astrojs/node": "^8.3.4", "@astrojs/svelte": "^5.7.3", - "astro": "^4.16.10", + "astro": "^4.16.11", "svelte": "^4.2.19" } } diff --git a/examples/starlog/package.json b/examples/starlog/package.json index 70106978bf..df175b24ff 100644 --- a/examples/starlog/package.json +++ b/examples/starlog/package.json @@ -10,7 +10,7 @@ "astro": "astro" }, "dependencies": { - "astro": "^4.16.10", + "astro": "^4.16.11", "sass": "^1.80.6", "sharp": "^0.33.3" } diff --git a/examples/toolbar-app/package.json b/examples/toolbar-app/package.json index 043e6a0647..1dc223fa66 100644 --- a/examples/toolbar-app/package.json +++ b/examples/toolbar-app/package.json @@ -15,6 +15,6 @@ "./app": "./dist/app.js" }, "devDependencies": { - "astro": "^4.16.10" + "astro": "^4.16.11" } } diff --git a/examples/with-markdoc/package.json b/examples/with-markdoc/package.json index fb6abf4f9b..ebe40b5895 100644 --- a/examples/with-markdoc/package.json +++ b/examples/with-markdoc/package.json @@ -12,6 +12,6 @@ }, "dependencies": { "@astrojs/markdoc": "^0.11.5", - "astro": "^4.16.10" + "astro": "^4.16.11" } } diff --git a/examples/with-mdx/package.json b/examples/with-mdx/package.json index a49d5d1292..8f486fb801 100644 --- a/examples/with-mdx/package.json +++ b/examples/with-mdx/package.json @@ -13,7 +13,7 @@ "dependencies": { "@astrojs/mdx": "^3.1.9", "@astrojs/preact": "^3.5.3", - "astro": "^4.16.10", + "astro": "^4.16.11", "preact": "^10.24.3" } } diff --git a/examples/with-nanostores/package.json b/examples/with-nanostores/package.json index dfbdf14e59..759a8e5e1c 100644 --- a/examples/with-nanostores/package.json +++ b/examples/with-nanostores/package.json @@ -13,7 +13,7 @@ "dependencies": { "@astrojs/preact": "^3.5.3", "@nanostores/preact": "^0.5.2", - "astro": "^4.16.10", + "astro": "^4.16.11", "nanostores": "^0.11.3", "preact": "^10.24.3" } diff --git a/examples/with-tailwindcss/package.json b/examples/with-tailwindcss/package.json index 85e9efa0b3..4d8860e94a 100644 --- a/examples/with-tailwindcss/package.json +++ b/examples/with-tailwindcss/package.json @@ -14,7 +14,7 @@ "@astrojs/mdx": "^3.1.9", "@astrojs/tailwind": "^5.1.2", "@types/canvas-confetti": "^1.6.4", - "astro": "^4.16.10", + "astro": "^4.16.11", "autoprefixer": "^10.4.20", "canvas-confetti": "^1.9.3", "postcss": "^8.4.47", diff --git a/examples/with-vitest/package.json b/examples/with-vitest/package.json index 4c7391979a..7778c8de2c 100644 --- a/examples/with-vitest/package.json +++ b/examples/with-vitest/package.json @@ -12,7 +12,7 @@ "test": "vitest" }, "dependencies": { - "astro": "^4.16.10", + "astro": "^4.16.11", "vitest": "^2.1.4" } } diff --git a/packages/astro/CHANGELOG.md b/packages/astro/CHANGELOG.md index d96ac516ba..50d2f42631 100644 --- a/packages/astro/CHANGELOG.md +++ b/packages/astro/CHANGELOG.md @@ -1,5 +1,24 @@ # astro +## 4.16.11 + +### Patch Changes + +- [#12305](https://github.com/withastro/astro/pull/12305) [`f5f7109`](https://github.com/withastro/astro/commit/f5f71094ec74961b4cca2ee451798abd830c617a) Thanks [@florian-lefebvre](https://github.com/florian-lefebvre)! - Fixes a case where the error overlay would not escape the message + +- [#12402](https://github.com/withastro/astro/pull/12402) [`823e73b`](https://github.com/withastro/astro/commit/823e73b164eab4115af31b1de8e978f2b4e0a95d) Thanks [@ematipico](https://github.com/ematipico)! - Fixes a case where Astro allowed to call an action without using `Astro.callAction`. This is now invalid, and Astro will show a proper error. + + ```diff + --- + import { actions } from "astro:actions"; + + -const result = actions.getUser({ userId: 123 }); + +const result = Astro.callAction(actions.getUser, { userId: 123 }); + --- + ``` + +- [#12401](https://github.com/withastro/astro/pull/12401) [`9cca108`](https://github.com/withastro/astro/commit/9cca10843912698e13d35f1bc3c493e2c96a06ee) Thanks [@bholmesdev](https://github.com/bholmesdev)! - Fixes unexpected 200 status in dev server logs for action errors and redirects. + ## 4.16.10 ### Patch Changes diff --git a/packages/astro/package.json b/packages/astro/package.json index c13e8f7fb8..4534f1ce05 100644 --- a/packages/astro/package.json +++ b/packages/astro/package.json @@ -1,6 +1,6 @@ { "name": "astro", - "version": "4.16.10", + "version": "4.16.11", "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 f21e9c712c..3d5ed93de5 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -139,7 +139,7 @@ importers: examples/basics: dependencies: astro: - specifier: ^4.16.10 + specifier: ^4.16.11 version: link:../../packages/astro examples/blog: @@ -154,13 +154,13 @@ importers: specifier: ^3.2.1 version: link:../../packages/integrations/sitemap astro: - specifier: ^4.16.10 + specifier: ^4.16.11 version: link:../../packages/astro examples/component: devDependencies: astro: - specifier: ^4.16.10 + specifier: ^4.16.11 version: link:../../packages/astro examples/container-with-vitest: @@ -169,7 +169,7 @@ importers: specifier: ^3.6.2 version: link:../../packages/integrations/react astro: - specifier: ^4.16.10 + specifier: ^4.16.11 version: link:../../packages/astro react: specifier: ^18.3.1 @@ -200,7 +200,7 @@ importers: specifier: ^3.14.3 version: 3.14.3 astro: - specifier: ^4.16.10 + specifier: ^4.16.11 version: link:../../packages/astro examples/framework-lit: @@ -212,7 +212,7 @@ importers: specifier: ^0.2.1 version: 0.2.1 astro: - specifier: ^4.16.10 + specifier: ^4.16.11 version: link:../../packages/astro lit: specifier: ^3.2.1 @@ -242,7 +242,7 @@ importers: specifier: ^18.3.1 version: 18.3.1 astro: - specifier: ^4.16.10 + specifier: ^4.16.11 version: link:../../packages/astro preact: specifier: ^10.24.3 @@ -272,7 +272,7 @@ importers: specifier: ^1.3.0 version: 1.3.0(preact@10.24.3) astro: - specifier: ^4.16.10 + specifier: ^4.16.11 version: link:../../packages/astro preact: specifier: ^10.24.3 @@ -290,7 +290,7 @@ importers: specifier: ^18.3.1 version: 18.3.1 astro: - specifier: ^4.16.10 + specifier: ^4.16.11 version: link:../../packages/astro react: specifier: ^18.3.1 @@ -305,7 +305,7 @@ importers: specifier: ^4.4.2 version: link:../../packages/integrations/solid astro: - specifier: ^4.16.10 + specifier: ^4.16.11 version: link:../../packages/astro solid-js: specifier: ^1.9.3 @@ -317,7 +317,7 @@ importers: specifier: ^5.7.3 version: link:../../packages/integrations/svelte astro: - specifier: ^4.16.10 + specifier: ^4.16.11 version: link:../../packages/astro svelte: specifier: ^4.2.19 @@ -329,7 +329,7 @@ importers: specifier: ^4.5.2 version: link:../../packages/integrations/vue astro: - specifier: ^4.16.10 + specifier: ^4.16.11 version: link:../../packages/astro vue: specifier: ^3.5.12 @@ -341,25 +341,25 @@ importers: specifier: ^8.3.4 version: 8.3.4(astro@packages+astro) astro: - specifier: ^4.16.10 + specifier: ^4.16.11 version: link:../../packages/astro examples/integration: devDependencies: astro: - specifier: ^4.16.10 + specifier: ^4.16.11 version: link:../../packages/astro examples/minimal: dependencies: astro: - specifier: ^4.16.10 + specifier: ^4.16.11 version: link:../../packages/astro examples/portfolio: dependencies: astro: - specifier: ^4.16.10 + specifier: ^4.16.11 version: link:../../packages/astro examples/ssr: @@ -371,7 +371,7 @@ importers: specifier: ^5.7.3 version: link:../../packages/integrations/svelte astro: - specifier: ^4.16.10 + specifier: ^4.16.11 version: link:../../packages/astro svelte: specifier: ^4.2.19 @@ -380,7 +380,7 @@ importers: examples/starlog: dependencies: astro: - specifier: ^4.16.10 + specifier: ^4.16.11 version: link:../../packages/astro sass: specifier: ^1.80.6 @@ -392,7 +392,7 @@ importers: examples/toolbar-app: devDependencies: astro: - specifier: ^4.16.10 + specifier: ^4.16.11 version: link:../../packages/astro examples/with-markdoc: @@ -401,7 +401,7 @@ importers: specifier: ^0.11.5 version: link:../../packages/integrations/markdoc astro: - specifier: ^4.16.10 + specifier: ^4.16.11 version: link:../../packages/astro examples/with-mdx: @@ -413,7 +413,7 @@ importers: specifier: ^3.5.3 version: link:../../packages/integrations/preact astro: - specifier: ^4.16.10 + specifier: ^4.16.11 version: link:../../packages/astro preact: specifier: ^10.24.3 @@ -428,7 +428,7 @@ importers: specifier: ^0.5.2 version: 0.5.2(nanostores@0.11.3)(preact@10.24.3) astro: - specifier: ^4.16.10 + specifier: ^4.16.11 version: link:../../packages/astro nanostores: specifier: ^0.11.3 @@ -449,7 +449,7 @@ importers: specifier: ^1.6.4 version: 1.6.4 astro: - specifier: ^4.16.10 + specifier: ^4.16.11 version: link:../../packages/astro autoprefixer: specifier: ^10.4.20 @@ -467,7 +467,7 @@ importers: examples/with-vitest: dependencies: astro: - specifier: ^4.16.10 + specifier: ^4.16.11 version: link:../../packages/astro vitest: specifier: ^2.1.4