From e30cf49ee45922e4bd4f92df7b2ea3753f1905fc Mon Sep 17 00:00:00 2001 From: "Houston (Bot)" <108291165+astrobot-houston@users.noreply.github.com> Date: Wed, 17 Jul 2024 05:47:16 -0700 Subject: [PATCH] [ci] release (#11442) Co-authored-by: github-actions[bot] --- .changeset/calm-beans-jam.md | 5 -- .changeset/chatty-spies-jog.md | 5 -- .changeset/few-candles-warn.md | 5 -- .changeset/forty-scissors-jog.md | 5 -- .changeset/giant-lies-taste.md | 5 -- .changeset/loud-socks-doubt.md | 5 -- .changeset/nasty-poems-juggle.md | 18 ----- .changeset/new-mails-prove.md | 5 -- .changeset/plenty-socks-talk.md | 5 -- .changeset/proud-singers-call.md | 5 -- .changeset/slow-roses-call.md | 23 ------ .changeset/small-vans-own.md | 29 ------- .changeset/swift-cows-walk.md | 5 -- .changeset/wise-cameras-trade.md | 5 -- examples/basics/package.json | 2 +- examples/blog/package.json | 2 +- examples/component/package.json | 2 +- examples/container-with-vitest/package.json | 2 +- examples/framework-alpine/package.json | 2 +- examples/framework-lit/package.json | 2 +- examples/framework-multiple/package.json | 4 +- examples/framework-preact/package.json | 4 +- examples/framework-react/package.json | 2 +- examples/framework-solid/package.json | 2 +- examples/framework-svelte/package.json | 2 +- examples/framework-vue/package.json | 2 +- examples/hackernews/package.json | 2 +- examples/integration/package.json | 2 +- examples/middleware/package.json | 2 +- examples/minimal/package.json | 2 +- examples/non-html-pages/package.json | 2 +- examples/portfolio/package.json | 2 +- examples/ssr/package.json | 2 +- examples/starlog/package.json | 2 +- examples/toolbar-app/package.json | 2 +- examples/view-transitions/package.json | 2 +- examples/with-markdoc/package.json | 4 +- examples/with-markdown-plugins/package.json | 2 +- examples/with-markdown-shiki/package.json | 2 +- examples/with-mdx/package.json | 4 +- examples/with-nanostores/package.json | 4 +- examples/with-tailwindcss/package.json | 2 +- examples/with-vitest/package.json | 2 +- packages/astro/CHANGELOG.md | 83 +++++++++++++++++++++ packages/astro/package.json | 2 +- packages/integrations/markdoc/CHANGELOG.md | 6 ++ packages/integrations/markdoc/package.json | 2 +- packages/integrations/preact/CHANGELOG.md | 6 ++ packages/integrations/preact/package.json | 2 +- pnpm-lock.yaml | 68 ++++++++--------- 50 files changed, 166 insertions(+), 196 deletions(-) delete mode 100644 .changeset/calm-beans-jam.md delete mode 100644 .changeset/chatty-spies-jog.md delete mode 100644 .changeset/few-candles-warn.md delete mode 100644 .changeset/forty-scissors-jog.md delete mode 100644 .changeset/giant-lies-taste.md delete mode 100644 .changeset/loud-socks-doubt.md delete mode 100644 .changeset/nasty-poems-juggle.md delete mode 100644 .changeset/new-mails-prove.md delete mode 100644 .changeset/plenty-socks-talk.md delete mode 100644 .changeset/proud-singers-call.md delete mode 100644 .changeset/slow-roses-call.md delete mode 100644 .changeset/small-vans-own.md delete mode 100644 .changeset/swift-cows-walk.md delete mode 100644 .changeset/wise-cameras-trade.md diff --git a/.changeset/calm-beans-jam.md b/.changeset/calm-beans-jam.md deleted file mode 100644 index 2fb50132e0..0000000000 --- a/.changeset/calm-beans-jam.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Fixes false positive audit warnings on elements with the role "tabpanel". diff --git a/.changeset/chatty-spies-jog.md b/.changeset/chatty-spies-jog.md deleted file mode 100644 index e95591d911..0000000000 --- a/.changeset/chatty-spies-jog.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Avoids targeting all files in the `src/` directory for eager optimization by Vite. After this change, only JSX, Vue, Svelte, and Astro components get scanned for early optimization. diff --git a/.changeset/few-candles-warn.md b/.changeset/few-candles-warn.md deleted file mode 100644 index 7dd25881e6..0000000000 --- a/.changeset/few-candles-warn.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@astrojs/preact': patch ---- - -Swap out `preact-ssr-prepass` for `renderToStringAsync` from `preact-render-to-string` diff --git a/.changeset/forty-scissors-jog.md b/.changeset/forty-scissors-jog.md deleted file mode 100644 index 3637b08025..0000000000 --- a/.changeset/forty-scissors-jog.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@astrojs/markdoc': patch ---- - -Adds support for markdown-it's typographer option diff --git a/.changeset/giant-lies-taste.md b/.changeset/giant-lies-taste.md deleted file mode 100644 index 64476edf8a..0000000000 --- a/.changeset/giant-lies-taste.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Fixes prerendering not removing unused dynamic imported chunks diff --git a/.changeset/loud-socks-doubt.md b/.changeset/loud-socks-doubt.md deleted file mode 100644 index 4af3b46077..0000000000 --- a/.changeset/loud-socks-doubt.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Fixes a case where Astro's config `experimental.env.schema` keys did not allow numbers. Numbers are still not allowed as the first character to be able to generate valid JavaScript identifiers diff --git a/.changeset/nasty-poems-juggle.md b/.changeset/nasty-poems-juggle.md deleted file mode 100644 index 74e1b176d0..0000000000 --- a/.changeset/nasty-poems-juggle.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -'astro': patch ---- - -Expands the `isInputError()` utility from `astro:actions` to accept errors of any type. This should now allow type narrowing from a try / catch block. - -```ts -// example.ts -import { actions, isInputError } from 'astro:actions'; - -try { - await actions.like(new FormData()); -} catch (error) { - if (isInputError(error)) { - console.log(error.fields); - } -} -``` diff --git a/.changeset/new-mails-prove.md b/.changeset/new-mails-prove.md deleted file mode 100644 index 06c5a36521..0000000000 --- a/.changeset/new-mails-prove.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Fixes an issue where using .nullish() in a formdata Astro action would always parse as a string diff --git a/.changeset/plenty-socks-talk.md b/.changeset/plenty-socks-talk.md deleted file mode 100644 index 2749228dd9..0000000000 --- a/.changeset/plenty-socks-talk.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Exposes utility types from `astro:actions` for the `defineAction` handler (`ActionHandler`) and the `ActionError` code (`ActionErrorCode`). diff --git a/.changeset/proud-singers-call.md b/.changeset/proud-singers-call.md deleted file mode 100644 index 8b882fb955..0000000000 --- a/.changeset/proud-singers-call.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Fixes `astro dev --open` unexpected behavior that spawns a new tab every time a config file is saved diff --git a/.changeset/slow-roses-call.md b/.changeset/slow-roses-call.md deleted file mode 100644 index 9217f96fe9..0000000000 --- a/.changeset/slow-roses-call.md +++ /dev/null @@ -1,23 +0,0 @@ ---- -'astro': patch ---- - -Adds a new property `experimental.env.validateSecrets` to allow validating private variables on the server. - -By default, this is set to `false` and only public variables are checked on start. If enabled, secrets will also be checked on start (dev/build modes). This is useful for example in some CIs to make sure all your secrets are correctly set before deploying. - -```js -// astro.config.mjs -import { defineConfig, envField } from "astro/config" - -export default defineConfig({ - experimental: { - env: { - schema: { - // ... - }, - validateSecrets: true - } - } -}) -``` diff --git a/.changeset/small-vans-own.md b/.changeset/small-vans-own.md deleted file mode 100644 index 06352e256a..0000000000 --- a/.changeset/small-vans-own.md +++ /dev/null @@ -1,29 +0,0 @@ ---- -'astro': patch ---- - -Expose new `ActionReturnType` utility from `astro:actions`. This infers the return type of an action by passing `typeof actions.name` as a type argument. This example defines a `like` action that returns `likes` as an object: - -```ts -// actions/index.ts -import { defineAction } from 'astro:actions'; - -export const server = { - like: defineAction({ - handler: () => { - /* ... */ - return { likes: 42 } - } - }) -} -``` - -In your client code, you can infer this handler return value with `ActionReturnType`: - -```ts -// client.ts -import { actions, ActionReturnType } from 'astro:actions'; - -type LikesResult = ActionReturnType; -// -> { likes: number } -``` diff --git a/.changeset/swift-cows-walk.md b/.changeset/swift-cows-walk.md deleted file mode 100644 index 212d0417e6..0000000000 --- a/.changeset/swift-cows-walk.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"astro": patch ---- - -Fixes `astro:actions` autocompletion for the `defineAction` `accept` property diff --git a/.changeset/wise-cameras-trade.md b/.changeset/wise-cameras-trade.md deleted file mode 100644 index f2c000630a..0000000000 --- a/.changeset/wise-cameras-trade.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Improves `astro:env` invalid variables errors diff --git a/examples/basics/package.json b/examples/basics/package.json index ed7f452c20..d922caebfb 100644 --- a/examples/basics/package.json +++ b/examples/basics/package.json @@ -11,6 +11,6 @@ "astro": "astro" }, "dependencies": { - "astro": "^4.11.5" + "astro": "^4.11.6" } } diff --git a/examples/blog/package.json b/examples/blog/package.json index 29d33e4f9c..6954ca7e03 100644 --- a/examples/blog/package.json +++ b/examples/blog/package.json @@ -14,6 +14,6 @@ "@astrojs/mdx": "^3.1.2", "@astrojs/rss": "^4.0.7", "@astrojs/sitemap": "^3.1.6", - "astro": "^4.11.5" + "astro": "^4.11.6" } } diff --git a/examples/component/package.json b/examples/component/package.json index dadb92b7b3..1d40ec2f12 100644 --- a/examples/component/package.json +++ b/examples/component/package.json @@ -15,7 +15,7 @@ ], "scripts": {}, "devDependencies": { - "astro": "^4.11.5" + "astro": "^4.11.6" }, "peerDependencies": { "astro": "^4.0.0" diff --git a/examples/container-with-vitest/package.json b/examples/container-with-vitest/package.json index 370b9462dd..c8aec215ff 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.11.5", + "astro": "^4.11.6", "@astrojs/react": "^3.6.0", "react": "^18.3.1", "react-dom": "^18.3.1", diff --git a/examples/framework-alpine/package.json b/examples/framework-alpine/package.json index 60d3bd5598..22d788d861 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.11.5" + "astro": "^4.11.6" } } diff --git a/examples/framework-lit/package.json b/examples/framework-lit/package.json index 701d46f235..9d4baa253e 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.11.5", + "astro": "^4.11.6", "lit": "^3.1.4" } } diff --git a/examples/framework-multiple/package.json b/examples/framework-multiple/package.json index ef70525d9c..941b714912 100644 --- a/examples/framework-multiple/package.json +++ b/examples/framework-multiple/package.json @@ -11,14 +11,14 @@ "astro": "astro" }, "dependencies": { - "@astrojs/preact": "^3.5.0", + "@astrojs/preact": "^3.5.1", "@astrojs/react": "^3.6.0", "@astrojs/solid-js": "^4.4.0", "@astrojs/svelte": "^5.6.0", "@astrojs/vue": "^4.5.0", "@types/react": "^18.3.3", "@types/react-dom": "^18.3.0", - "astro": "^4.11.5", + "astro": "^4.11.6", "preact": "^10.22.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 9e6f86023c..77a95ac08f 100644 --- a/examples/framework-preact/package.json +++ b/examples/framework-preact/package.json @@ -11,9 +11,9 @@ "astro": "astro" }, "dependencies": { - "@astrojs/preact": "^3.5.0", + "@astrojs/preact": "^3.5.1", "@preact/signals": "^1.3.0", - "astro": "^4.11.5", + "astro": "^4.11.6", "preact": "^10.22.1" } } diff --git a/examples/framework-react/package.json b/examples/framework-react/package.json index 20484e8dd1..b9d2185240 100644 --- a/examples/framework-react/package.json +++ b/examples/framework-react/package.json @@ -14,7 +14,7 @@ "@astrojs/react": "^3.6.0", "@types/react": "^18.3.3", "@types/react-dom": "^18.3.0", - "astro": "^4.11.5", + "astro": "^4.11.6", "react": "^18.3.1", "react-dom": "^18.3.1" } diff --git a/examples/framework-solid/package.json b/examples/framework-solid/package.json index 945aa99873..42a8865181 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.11.5", + "astro": "^4.11.6", "solid-js": "^1.8.18" } } diff --git a/examples/framework-svelte/package.json b/examples/framework-svelte/package.json index 60658a81a3..adb56ccb1e 100644 --- a/examples/framework-svelte/package.json +++ b/examples/framework-svelte/package.json @@ -12,7 +12,7 @@ }, "dependencies": { "@astrojs/svelte": "^5.6.0", - "astro": "^4.11.5", + "astro": "^4.11.6", "svelte": "^4.2.18" } } diff --git a/examples/framework-vue/package.json b/examples/framework-vue/package.json index 2225addab5..8632013551 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.11.5", + "astro": "^4.11.6", "vue": "^3.4.31" } } diff --git a/examples/hackernews/package.json b/examples/hackernews/package.json index fa6298bc53..f81f208c38 100644 --- a/examples/hackernews/package.json +++ b/examples/hackernews/package.json @@ -12,6 +12,6 @@ }, "dependencies": { "@astrojs/node": "^8.3.2", - "astro": "^4.11.5" + "astro": "^4.11.6" } } diff --git a/examples/integration/package.json b/examples/integration/package.json index cf3d457f73..3c80d79c2c 100644 --- a/examples/integration/package.json +++ b/examples/integration/package.json @@ -15,7 +15,7 @@ ], "scripts": {}, "devDependencies": { - "astro": "^4.11.5" + "astro": "^4.11.6" }, "peerDependencies": { "astro": "^4.0.0" diff --git a/examples/middleware/package.json b/examples/middleware/package.json index 4daf9ed748..51b813736a 100644 --- a/examples/middleware/package.json +++ b/examples/middleware/package.json @@ -13,7 +13,7 @@ }, "dependencies": { "@astrojs/node": "^8.3.2", - "astro": "^4.11.5", + "astro": "^4.11.6", "html-minifier": "^4.0.0" }, "devDependencies": { diff --git a/examples/minimal/package.json b/examples/minimal/package.json index c429098161..1203062631 100644 --- a/examples/minimal/package.json +++ b/examples/minimal/package.json @@ -11,6 +11,6 @@ "astro": "astro" }, "dependencies": { - "astro": "^4.11.5" + "astro": "^4.11.6" } } diff --git a/examples/non-html-pages/package.json b/examples/non-html-pages/package.json index 988bec0808..7485ab4191 100644 --- a/examples/non-html-pages/package.json +++ b/examples/non-html-pages/package.json @@ -11,6 +11,6 @@ "astro": "astro" }, "dependencies": { - "astro": "^4.11.5" + "astro": "^4.11.6" } } diff --git a/examples/portfolio/package.json b/examples/portfolio/package.json index 93454dcae6..9f446ac747 100644 --- a/examples/portfolio/package.json +++ b/examples/portfolio/package.json @@ -11,6 +11,6 @@ "astro": "astro" }, "dependencies": { - "astro": "^4.11.5" + "astro": "^4.11.6" } } diff --git a/examples/ssr/package.json b/examples/ssr/package.json index c59ebd382e..18bda71530 100644 --- a/examples/ssr/package.json +++ b/examples/ssr/package.json @@ -14,7 +14,7 @@ "dependencies": { "@astrojs/node": "^8.3.2", "@astrojs/svelte": "^5.6.0", - "astro": "^4.11.5", + "astro": "^4.11.6", "svelte": "^4.2.18" } } diff --git a/examples/starlog/package.json b/examples/starlog/package.json index f83fbcdac8..dd06787c1a 100644 --- a/examples/starlog/package.json +++ b/examples/starlog/package.json @@ -10,7 +10,7 @@ "astro": "astro" }, "dependencies": { - "astro": "^4.11.5", + "astro": "^4.11.6", "sass": "^1.77.8", "sharp": "^0.33.3" } diff --git a/examples/toolbar-app/package.json b/examples/toolbar-app/package.json index bb93e381a7..c34863aae3 100644 --- a/examples/toolbar-app/package.json +++ b/examples/toolbar-app/package.json @@ -15,6 +15,6 @@ "./app": "./dist/app.js" }, "devDependencies": { - "astro": "^4.11.5" + "astro": "^4.11.6" } } diff --git a/examples/view-transitions/package.json b/examples/view-transitions/package.json index c0847ef49a..1b1cb9936f 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.11.5" + "astro": "^4.11.6" } } diff --git a/examples/with-markdoc/package.json b/examples/with-markdoc/package.json index cf908daad7..f74158cb5c 100644 --- a/examples/with-markdoc/package.json +++ b/examples/with-markdoc/package.json @@ -11,7 +11,7 @@ "astro": "astro" }, "dependencies": { - "@astrojs/markdoc": "^0.11.1", - "astro": "^4.11.5" + "@astrojs/markdoc": "^0.11.2", + "astro": "^4.11.6" } } diff --git a/examples/with-markdown-plugins/package.json b/examples/with-markdown-plugins/package.json index dc53eb70d0..cacf0fdb55 100644 --- a/examples/with-markdown-plugins/package.json +++ b/examples/with-markdown-plugins/package.json @@ -12,7 +12,7 @@ }, "dependencies": { "@astrojs/markdown-remark": "^5.1.1", - "astro": "^4.11.5", + "astro": "^4.11.6", "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 2c681672de..89da7396b2 100644 --- a/examples/with-markdown-shiki/package.json +++ b/examples/with-markdown-shiki/package.json @@ -11,6 +11,6 @@ "astro": "astro" }, "dependencies": { - "astro": "^4.11.5" + "astro": "^4.11.6" } } diff --git a/examples/with-mdx/package.json b/examples/with-mdx/package.json index d3a50340be..b517d7d1d5 100644 --- a/examples/with-mdx/package.json +++ b/examples/with-mdx/package.json @@ -12,8 +12,8 @@ }, "dependencies": { "@astrojs/mdx": "^3.1.2", - "@astrojs/preact": "^3.5.0", - "astro": "^4.11.5", + "@astrojs/preact": "^3.5.1", + "astro": "^4.11.6", "preact": "^10.22.1" } } diff --git a/examples/with-nanostores/package.json b/examples/with-nanostores/package.json index c5d22c7306..a1903af8b5 100644 --- a/examples/with-nanostores/package.json +++ b/examples/with-nanostores/package.json @@ -11,9 +11,9 @@ "astro": "astro" }, "dependencies": { - "@astrojs/preact": "^3.5.0", + "@astrojs/preact": "^3.5.1", "@nanostores/preact": "^0.5.1", - "astro": "^4.11.5", + "astro": "^4.11.6", "nanostores": "^0.10.3", "preact": "^10.22.1" } diff --git a/examples/with-tailwindcss/package.json b/examples/with-tailwindcss/package.json index 22b7c8fbb1..9a8a0cea62 100644 --- a/examples/with-tailwindcss/package.json +++ b/examples/with-tailwindcss/package.json @@ -14,7 +14,7 @@ "@astrojs/mdx": "^3.1.2", "@astrojs/tailwind": "^5.1.0", "@types/canvas-confetti": "^1.6.4", - "astro": "^4.11.5", + "astro": "^4.11.6", "autoprefixer": "^10.4.19", "canvas-confetti": "^1.9.3", "postcss": "^8.4.39", diff --git a/examples/with-vitest/package.json b/examples/with-vitest/package.json index 00bb09ed95..60f1a0a9ee 100644 --- a/examples/with-vitest/package.json +++ b/examples/with-vitest/package.json @@ -12,7 +12,7 @@ "test": "vitest" }, "dependencies": { - "astro": "^4.11.5", + "astro": "^4.11.6", "vitest": "^2.0.3" } } diff --git a/packages/astro/CHANGELOG.md b/packages/astro/CHANGELOG.md index 935f0bcf39..b7c6c6df77 100644 --- a/packages/astro/CHANGELOG.md +++ b/packages/astro/CHANGELOG.md @@ -1,5 +1,88 @@ # astro +## 4.11.6 + +### Patch Changes + +- [#11459](https://github.com/withastro/astro/pull/11459) [`bc2e74d`](https://github.com/withastro/astro/commit/bc2e74de384776caa252fd47dbeda895c0488c11) Thanks [@mingjunlu](https://github.com/mingjunlu)! - Fixes false positive audit warnings on elements with the role "tabpanel". + +- [#11472](https://github.com/withastro/astro/pull/11472) [`cb4e6d0`](https://github.com/withastro/astro/commit/cb4e6d09deb7507058115a3fd2a567019a501e4d) Thanks [@delucis](https://github.com/delucis)! - Avoids targeting all files in the `src/` directory for eager optimization by Vite. After this change, only JSX, Vue, Svelte, and Astro components get scanned for early optimization. + +- [#11387](https://github.com/withastro/astro/pull/11387) [`b498461`](https://github.com/withastro/astro/commit/b498461e277bffb0abe21b59a94b1e56a8c69d47) Thanks [@bluwy](https://github.com/bluwy)! - Fixes prerendering not removing unused dynamic imported chunks + +- [#11437](https://github.com/withastro/astro/pull/11437) [`6ccb30e`](https://github.com/withastro/astro/commit/6ccb30e610eed34c2cc2c275485a8ac45c9b6b9e) Thanks [@NuroDev](https://github.com/NuroDev)! - Fixes a case where Astro's config `experimental.env.schema` keys did not allow numbers. Numbers are still not allowed as the first character to be able to generate valid JavaScript identifiers + +- [#11439](https://github.com/withastro/astro/pull/11439) [`08baf56`](https://github.com/withastro/astro/commit/08baf56f328ce4b6814a7f90089c0b3398d8bbfe) Thanks [@bholmesdev](https://github.com/bholmesdev)! - Expands the `isInputError()` utility from `astro:actions` to accept errors of any type. This should now allow type narrowing from a try / catch block. + + ```ts + // example.ts + import { actions, isInputError } from 'astro:actions'; + + try { + await actions.like(new FormData()); + } catch (error) { + if (isInputError(error)) { + console.log(error.fields); + } + } + ``` + +- [#11452](https://github.com/withastro/astro/pull/11452) [`0e66849`](https://github.com/withastro/astro/commit/0e6684983b9b24660a8fef83fe401ec1d567378a) Thanks [@FugiTech](https://github.com/FugiTech)! - Fixes an issue where using .nullish() in a formdata Astro action would always parse as a string + +- [#11438](https://github.com/withastro/astro/pull/11438) [`619f07d`](https://github.com/withastro/astro/commit/619f07db701ebab2d2f2598dd2dcf93ba1e5719c) Thanks [@bholmesdev](https://github.com/bholmesdev)! - Exposes utility types from `astro:actions` for the `defineAction` handler (`ActionHandler`) and the `ActionError` code (`ActionErrorCode`). + +- [#11456](https://github.com/withastro/astro/pull/11456) [`17e048d`](https://github.com/withastro/astro/commit/17e048de0e79d76b933d128676be2388954b419e) Thanks [@RickyC0626](https://github.com/RickyC0626)! - Fixes `astro dev --open` unexpected behavior that spawns a new tab every time a config file is saved + +- [#11337](https://github.com/withastro/astro/pull/11337) [`0a4b31f`](https://github.com/withastro/astro/commit/0a4b31ffeb41ad1dfb3141384e22787763fcae3d) Thanks [@florian-lefebvre](https://github.com/florian-lefebvre)! - Adds a new property `experimental.env.validateSecrets` to allow validating private variables on the server. + + By default, this is set to `false` and only public variables are checked on start. If enabled, secrets will also be checked on start (dev/build modes). This is useful for example in some CIs to make sure all your secrets are correctly set before deploying. + + ```js + // astro.config.mjs + import { defineConfig, envField } from 'astro/config'; + + export default defineConfig({ + experimental: { + env: { + schema: { + // ... + }, + validateSecrets: true, + }, + }, + }); + ``` + +- [#11443](https://github.com/withastro/astro/pull/11443) [`ea4bc04`](https://github.com/withastro/astro/commit/ea4bc04e9489c456e2b4b5dbd67d5e4cf3f89f97) Thanks [@bholmesdev](https://github.com/bholmesdev)! - Expose new `ActionReturnType` utility from `astro:actions`. This infers the return type of an action by passing `typeof actions.name` as a type argument. This example defines a `like` action that returns `likes` as an object: + + ```ts + // actions/index.ts + import { defineAction } from 'astro:actions'; + + export const server = { + like: defineAction({ + handler: () => { + /* ... */ + return { likes: 42 }; + }, + }), + }; + ``` + + In your client code, you can infer this handler return value with `ActionReturnType`: + + ```ts + // client.ts + import { actions, ActionReturnType } from 'astro:actions'; + + type LikesResult = ActionReturnType; + // -> { likes: number } + ``` + +- [#11436](https://github.com/withastro/astro/pull/11436) [`7dca68f`](https://github.com/withastro/astro/commit/7dca68ff2e0f089a3fd090650ee05b1942792fed) Thanks [@bholmesdev](https://github.com/bholmesdev)! - Fixes `astro:actions` autocompletion for the `defineAction` `accept` property + +- [#11455](https://github.com/withastro/astro/pull/11455) [`645e128`](https://github.com/withastro/astro/commit/645e128537f1f20da6703afc115d06371d7da5dd) Thanks [@florian-lefebvre](https://github.com/florian-lefebvre)! - Improves `astro:env` invalid variables errors + ## 4.11.5 ### Patch Changes diff --git a/packages/astro/package.json b/packages/astro/package.json index 5f2e9ecb6b..50718c9d52 100644 --- a/packages/astro/package.json +++ b/packages/astro/package.json @@ -1,6 +1,6 @@ { "name": "astro", - "version": "4.11.5", + "version": "4.11.6", "description": "Astro is a modern site builder with web best practices, performance, and DX front-of-mind.", "type": "module", "author": "withastro", diff --git a/packages/integrations/markdoc/CHANGELOG.md b/packages/integrations/markdoc/CHANGELOG.md index 8548d7faa8..db4667b09e 100644 --- a/packages/integrations/markdoc/CHANGELOG.md +++ b/packages/integrations/markdoc/CHANGELOG.md @@ -1,5 +1,11 @@ # @astrojs/markdoc +## 0.11.2 + +### Patch Changes + +- [#11450](https://github.com/withastro/astro/pull/11450) [`eb303e1`](https://github.com/withastro/astro/commit/eb303e1ad5dade7787c0d9bbb520c21292cf3950) Thanks [@schpet](https://github.com/schpet)! - Adds support for markdown-it's typographer option + ## 0.11.1 ### Patch Changes diff --git a/packages/integrations/markdoc/package.json b/packages/integrations/markdoc/package.json index 50103da19b..994f929832 100644 --- a/packages/integrations/markdoc/package.json +++ b/packages/integrations/markdoc/package.json @@ -1,7 +1,7 @@ { "name": "@astrojs/markdoc", "description": "Add support for Markdoc in your Astro site", - "version": "0.11.1", + "version": "0.11.2", "type": "module", "types": "./dist/index.d.ts", "author": "withastro", diff --git a/packages/integrations/preact/CHANGELOG.md b/packages/integrations/preact/CHANGELOG.md index 9f02be58da..e714d2471b 100644 --- a/packages/integrations/preact/CHANGELOG.md +++ b/packages/integrations/preact/CHANGELOG.md @@ -1,5 +1,11 @@ # @astrojs/preact +## 3.5.1 + +### Patch Changes + +- [#11464](https://github.com/withastro/astro/pull/11464) [`2cdb685`](https://github.com/withastro/astro/commit/2cdb685ce757fc9932b67b8a52b465296dbaedcd) Thanks [@rschristian](https://github.com/rschristian)! - Swap out `preact-ssr-prepass` for `renderToStringAsync` from `preact-render-to-string` + ## 3.5.0 ### Minor Changes diff --git a/packages/integrations/preact/package.json b/packages/integrations/preact/package.json index a267e59f7b..9ab0a4649e 100644 --- a/packages/integrations/preact/package.json +++ b/packages/integrations/preact/package.json @@ -1,7 +1,7 @@ { "name": "@astrojs/preact", "description": "Use Preact components within Astro", - "version": "3.5.0", + "version": "3.5.1", "type": "module", "types": "./dist/index.d.ts", "author": "withastro", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 061a605980..910378be0e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -128,7 +128,7 @@ importers: examples/basics: dependencies: astro: - specifier: ^4.11.5 + specifier: ^4.11.6 version: link:../../packages/astro examples/blog: @@ -143,13 +143,13 @@ importers: specifier: ^3.1.6 version: link:../../packages/integrations/sitemap astro: - specifier: ^4.11.5 + specifier: ^4.11.6 version: link:../../packages/astro examples/component: devDependencies: astro: - specifier: ^4.11.5 + specifier: ^4.11.6 version: link:../../packages/astro examples/container-with-vitest: @@ -158,7 +158,7 @@ importers: specifier: ^3.6.0 version: link:../../packages/integrations/react astro: - specifier: ^4.11.5 + specifier: ^4.11.6 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.11.5 + specifier: ^4.11.6 version: link:../../packages/astro examples/framework-lit: @@ -201,7 +201,7 @@ importers: specifier: ^0.2.1 version: 0.2.1 astro: - specifier: ^4.11.5 + specifier: ^4.11.6 version: link:../../packages/astro lit: specifier: ^3.1.4 @@ -210,7 +210,7 @@ importers: examples/framework-multiple: dependencies: '@astrojs/preact': - specifier: ^3.5.0 + specifier: ^3.5.1 version: link:../../packages/integrations/preact '@astrojs/react': specifier: ^3.6.0 @@ -231,7 +231,7 @@ importers: specifier: ^18.3.0 version: 18.3.0 astro: - specifier: ^4.11.5 + specifier: ^4.11.6 version: link:../../packages/astro preact: specifier: ^10.22.1 @@ -255,13 +255,13 @@ importers: examples/framework-preact: dependencies: '@astrojs/preact': - specifier: ^3.5.0 + specifier: ^3.5.1 version: link:../../packages/integrations/preact '@preact/signals': specifier: ^1.3.0 version: 1.3.0(preact@10.22.1) astro: - specifier: ^4.11.5 + specifier: ^4.11.6 version: link:../../packages/astro preact: specifier: ^10.22.1 @@ -279,7 +279,7 @@ importers: specifier: ^18.3.0 version: 18.3.0 astro: - specifier: ^4.11.5 + specifier: ^4.11.6 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.11.5 + specifier: ^4.11.6 version: link:../../packages/astro solid-js: specifier: ^1.8.18 @@ -306,7 +306,7 @@ importers: specifier: ^5.6.0 version: link:../../packages/integrations/svelte astro: - specifier: ^4.11.5 + specifier: ^4.11.6 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.11.5 + specifier: ^4.11.6 version: link:../../packages/astro vue: specifier: ^3.4.31 @@ -330,13 +330,13 @@ importers: specifier: ^8.3.2 version: link:../../packages/integrations/node astro: - specifier: ^4.11.5 + specifier: ^4.11.6 version: link:../../packages/astro examples/integration: devDependencies: astro: - specifier: ^4.11.5 + specifier: ^4.11.6 version: link:../../packages/astro examples/middleware: @@ -345,7 +345,7 @@ importers: specifier: ^8.3.2 version: link:../../packages/integrations/node astro: - specifier: ^4.11.5 + specifier: ^4.11.6 version: link:../../packages/astro html-minifier: specifier: ^4.0.0 @@ -358,19 +358,19 @@ importers: examples/minimal: dependencies: astro: - specifier: ^4.11.5 + specifier: ^4.11.6 version: link:../../packages/astro examples/non-html-pages: dependencies: astro: - specifier: ^4.11.5 + specifier: ^4.11.6 version: link:../../packages/astro examples/portfolio: dependencies: astro: - specifier: ^4.11.5 + specifier: ^4.11.6 version: link:../../packages/astro examples/ssr: @@ -382,7 +382,7 @@ importers: specifier: ^5.6.0 version: link:../../packages/integrations/svelte astro: - specifier: ^4.11.5 + specifier: ^4.11.6 version: link:../../packages/astro svelte: specifier: ^4.2.18 @@ -391,7 +391,7 @@ importers: examples/starlog: dependencies: astro: - specifier: ^4.11.5 + specifier: ^4.11.6 version: link:../../packages/astro sass: specifier: ^1.77.8 @@ -403,7 +403,7 @@ importers: examples/toolbar-app: devDependencies: astro: - specifier: ^4.11.5 + specifier: ^4.11.6 version: link:../../packages/astro examples/view-transitions: @@ -415,16 +415,16 @@ importers: specifier: ^5.1.0 version: link:../../packages/integrations/tailwind astro: - specifier: ^4.11.5 + specifier: ^4.11.6 version: link:../../packages/astro examples/with-markdoc: dependencies: '@astrojs/markdoc': - specifier: ^0.11.1 + specifier: ^0.11.2 version: link:../../packages/integrations/markdoc astro: - specifier: ^4.11.5 + specifier: ^4.11.6 version: link:../../packages/astro examples/with-markdown-plugins: @@ -433,7 +433,7 @@ importers: specifier: ^5.1.1 version: link:../../packages/markdown/remark astro: - specifier: ^4.11.5 + specifier: ^4.11.6 version: link:../../packages/astro hast-util-select: specifier: ^6.0.2 @@ -454,7 +454,7 @@ importers: examples/with-markdown-shiki: dependencies: astro: - specifier: ^4.11.5 + specifier: ^4.11.6 version: link:../../packages/astro examples/with-mdx: @@ -463,10 +463,10 @@ importers: specifier: ^3.1.2 version: link:../../packages/integrations/mdx '@astrojs/preact': - specifier: ^3.5.0 + specifier: ^3.5.1 version: link:../../packages/integrations/preact astro: - specifier: ^4.11.5 + specifier: ^4.11.6 version: link:../../packages/astro preact: specifier: ^10.22.1 @@ -475,13 +475,13 @@ importers: examples/with-nanostores: dependencies: '@astrojs/preact': - specifier: ^3.5.0 + specifier: ^3.5.1 version: link:../../packages/integrations/preact '@nanostores/preact': specifier: ^0.5.1 version: 0.5.1(nanostores@0.10.3)(preact@10.22.1) astro: - specifier: ^4.11.5 + specifier: ^4.11.6 version: link:../../packages/astro nanostores: specifier: ^0.10.3 @@ -502,7 +502,7 @@ importers: specifier: ^1.6.4 version: 1.6.4 astro: - specifier: ^4.11.5 + specifier: ^4.11.6 version: link:../../packages/astro autoprefixer: specifier: ^10.4.19 @@ -520,7 +520,7 @@ importers: examples/with-vitest: dependencies: astro: - specifier: ^4.11.5 + specifier: ^4.11.6 version: link:../../packages/astro vitest: specifier: ^2.0.3