From 83c565b36c7a5bf8fbc6cc37934109b74ed43ba5 Mon Sep 17 00:00:00 2001 From: "Houston (Bot)" <108291165+astrobot-houston@users.noreply.github.com> Date: Mon, 17 Jun 2024 06:39:57 -0700 Subject: [PATCH] [ci] release (#11233) Co-authored-by: github-actions[bot] --- .changeset/clever-jars-trade.md | 5 - .changeset/dirty-rabbits-act.md | 15 --- .changeset/dull-carpets-breathe.md | 42 -------- .changeset/early-spies-bow.md | 5 - .changeset/fair-wasps-hunt.md | 5 - .changeset/fifty-clouds-clean.md | 5 - .changeset/healthy-oranges-report.md | 5 - .changeset/honest-ravens-double.md | 5 - .changeset/nice-pillows-teach.md | 5 - .changeset/olive-feet-eat.md | 9 -- .changeset/pink-experts-count.md | 5 - .changeset/serious-humans-obey.md | 6 -- .changeset/shaggy-camels-dream.md | 5 - .changeset/thin-icons-yell.md | 7 -- .changeset/three-boxes-sniff.md | 5 - examples/basics/package.json | 2 +- examples/blog/package.json | 6 +- examples/component/package.json | 2 +- examples/container-with-vitest/package.json | 4 +- examples/framework-alpine/package.json | 2 +- examples/framework-lit/package.json | 4 +- examples/framework-multiple/package.json | 12 +-- examples/framework-preact/package.json | 4 +- examples/framework-react/package.json | 4 +- examples/framework-solid/package.json | 4 +- examples/framework-svelte/package.json | 4 +- examples/framework-vue/package.json | 4 +- examples/hackernews/package.json | 4 +- examples/integration/package.json | 2 +- examples/middleware/package.json | 4 +- examples/minimal/package.json | 2 +- examples/non-html-pages/package.json | 2 +- examples/portfolio/package.json | 2 +- examples/ssr/package.json | 6 +- examples/starlog/package.json | 2 +- examples/toolbar-app/package.json | 2 +- examples/view-transitions/package.json | 4 +- examples/with-markdoc/package.json | 2 +- examples/with-markdown-plugins/package.json | 2 +- examples/with-markdown-shiki/package.json | 2 +- examples/with-mdx/package.json | 6 +- examples/with-nanostores/package.json | 4 +- examples/with-tailwindcss/package.json | 4 +- examples/with-vitest/package.json | 2 +- packages/astro/CHANGELOG.md | 71 +++++++++++++ packages/astro/package.json | 2 +- packages/db/CHANGELOG.md | 9 ++ packages/db/package.json | 2 +- packages/integrations/lit/CHANGELOG.md | 37 +++++++ packages/integrations/lit/package.json | 2 +- packages/integrations/mdx/CHANGELOG.md | 6 ++ packages/integrations/mdx/package.json | 2 +- packages/integrations/node/CHANGELOG.md | 8 ++ packages/integrations/node/package.json | 2 +- packages/integrations/preact/CHANGELOG.md | 37 +++++++ packages/integrations/preact/package.json | 2 +- packages/integrations/react/CHANGELOG.md | 37 +++++++ packages/integrations/react/package.json | 2 +- packages/integrations/sitemap/CHANGELOG.md | 6 ++ packages/integrations/sitemap/package.json | 2 +- packages/integrations/solid/CHANGELOG.md | 37 +++++++ packages/integrations/solid/package.json | 2 +- packages/integrations/svelte/CHANGELOG.md | 37 +++++++ packages/integrations/svelte/package.json | 2 +- packages/integrations/vercel/CHANGELOG.md | 8 ++ packages/integrations/vercel/package.json | 2 +- packages/integrations/vue/CHANGELOG.md | 37 +++++++ packages/integrations/vue/package.json | 2 +- pnpm-lock.yaml | 105 ++++++++++---------- 69 files changed, 446 insertions(+), 246 deletions(-) delete mode 100644 .changeset/clever-jars-trade.md delete mode 100644 .changeset/dirty-rabbits-act.md delete mode 100644 .changeset/dull-carpets-breathe.md delete mode 100644 .changeset/early-spies-bow.md delete mode 100644 .changeset/fair-wasps-hunt.md delete mode 100644 .changeset/fifty-clouds-clean.md delete mode 100644 .changeset/healthy-oranges-report.md delete mode 100644 .changeset/honest-ravens-double.md delete mode 100644 .changeset/nice-pillows-teach.md delete mode 100644 .changeset/olive-feet-eat.md delete mode 100644 .changeset/pink-experts-count.md delete mode 100644 .changeset/serious-humans-obey.md delete mode 100644 .changeset/shaggy-camels-dream.md delete mode 100644 .changeset/thin-icons-yell.md delete mode 100644 .changeset/three-boxes-sniff.md diff --git a/.changeset/clever-jars-trade.md b/.changeset/clever-jars-trade.md deleted file mode 100644 index 8a632d3f96eb..000000000000 --- a/.changeset/clever-jars-trade.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Removes the `PUBLIC_` prefix constraint for `astro:env` public variables diff --git a/.changeset/dirty-rabbits-act.md b/.changeset/dirty-rabbits-act.md deleted file mode 100644 index 65c8ab542dd2..000000000000 --- a/.changeset/dirty-rabbits-act.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -'astro': patch ---- - -**BREAKING CHANGE to the experimental `astro:env` feature only** - -Server secrets specified in the schema must now be imported from `astro:env/server`. Using `getSecret()` is no longer required to use these environment variables in your schema: - -```diff -- import { getSecret } from 'astro:env/server' -- const API_SECRET = getSecret("API_SECRET") -+ import { API_SECRET } from 'astro:env/server' -``` - -Note that using `getSecret()` with these keys is still possible, but no longer involves any special handling and the raw value will be returned, just like retrieving secrets not specified in your schema. diff --git a/.changeset/dull-carpets-breathe.md b/.changeset/dull-carpets-breathe.md deleted file mode 100644 index 1c2302286693..000000000000 --- a/.changeset/dull-carpets-breathe.md +++ /dev/null @@ -1,42 +0,0 @@ ---- -'astro': patch -'@astrojs/preact': minor -'@astrojs/svelte': minor -'@astrojs/react': minor -'@astrojs/solid-js': minor -'@astrojs/lit': minor -'@astrojs/vue': minor ---- - -Adds a new function called `addServerRenderer` to the Container API. Use this function to manually store renderers inside the instance of your container. - -This new function should be preferred when using the Container API in environments like on-demand pages: - -```ts -import type {APIRoute} from "astro"; -import { experimental_AstroContainer } from "astro/container"; -import reactRenderer from '@astrojs/react/server.js'; -import vueRenderer from '@astrojs/vue/server.js'; -import ReactComponent from "../components/button.jsx" -import VueComponent from "../components/button.vue" - -// MDX runtime is contained inside the Astro core -import mdxRenderer from "astro/jsx/server.js" - -// In case you need to import a custom renderer -import customRenderer from "../renderers/customRenderer.js"; - -export const GET: APIRoute = async (ctx) => { - const container = await experimental_AstroContainer.create(); - container.addServerRenderer({ renderer: reactRenderer }); - container.addServerRenderer({ renderer: vueRenderer }); - container.addServerRenderer({ renderer: customRenderer }); - // You can pass a custom name too - container.addServerRenderer({ - name: "customRenderer", - renderer: customRenderer - }) - const vueComponent = await container.renderToString(VueComponent) - return await container.renderToResponse(Component); -} -``` diff --git a/.changeset/early-spies-bow.md b/.changeset/early-spies-bow.md deleted file mode 100644 index 8141484cc079..000000000000 --- a/.changeset/early-spies-bow.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Fixes a performance issue with JSON schema generation diff --git a/.changeset/fair-wasps-hunt.md b/.changeset/fair-wasps-hunt.md deleted file mode 100644 index 174ce02f8fd2..000000000000 --- a/.changeset/fair-wasps-hunt.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Fixes a case where the virtual module `astro:container` wasn't resolved diff --git a/.changeset/fifty-clouds-clean.md b/.changeset/fifty-clouds-clean.md deleted file mode 100644 index b792135334d9..000000000000 --- a/.changeset/fifty-clouds-clean.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Fixes a case where symlinked content collection directories were not correctly resolved diff --git a/.changeset/healthy-oranges-report.md b/.changeset/healthy-oranges-report.md deleted file mode 100644 index f7c62749ca28..000000000000 --- a/.changeset/healthy-oranges-report.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Adds a new error `RewriteWithBodyUsed` that throws when `Astro.rewrite` is used after the request body has already been read. diff --git a/.changeset/honest-ravens-double.md b/.changeset/honest-ravens-double.md deleted file mode 100644 index 2b917b223452..000000000000 --- a/.changeset/honest-ravens-double.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"astro": patch ---- - -Fixes a prerendering issue for libraries in `node_modules` when a folder with an underscore is in the path. diff --git a/.changeset/nice-pillows-teach.md b/.changeset/nice-pillows-teach.md deleted file mode 100644 index 4a5ea7265d99..000000000000 --- a/.changeset/nice-pillows-teach.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@astrojs/db': patch ---- - -Import type `Database` from correct file diff --git a/.changeset/olive-feet-eat.md b/.changeset/olive-feet-eat.md deleted file mode 100644 index 6984b29563b7..000000000000 --- a/.changeset/olive-feet-eat.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -'astro': patch ---- - -Improves the developer experience of the custom `500.astro` page in development mode. - -Before, in development, an error thrown during the rendering phase would display the default error overlay, even when users had the `500.astro` page. - -Now, the development server will display the `500.astro` and the original error is logged in the console. diff --git a/.changeset/pink-experts-count.md b/.changeset/pink-experts-count.md deleted file mode 100644 index 3ebbfc6b759d..000000000000 --- a/.changeset/pink-experts-count.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Ignores query strings in module identifiers when matching ".astro" file extensions in Vite plugin diff --git a/.changeset/serious-humans-obey.md b/.changeset/serious-humans-obey.md deleted file mode 100644 index 4cd6e4d69ab6..000000000000 --- a/.changeset/serious-humans-obey.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@astrojs/vercel': patch -'@astrojs/node': patch ---- - -Fix backwards compat with Astro <= 4.9 diff --git a/.changeset/shaggy-camels-dream.md b/.changeset/shaggy-camels-dream.md deleted file mode 100644 index daeaeb5eec90..000000000000 --- a/.changeset/shaggy-camels-dream.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@astrojs/vercel': patch ---- - -In Vercel Edge, include cookies set by Astro.cookies.set diff --git a/.changeset/thin-icons-yell.md b/.changeset/thin-icons-yell.md deleted file mode 100644 index af1042907333..000000000000 --- a/.changeset/thin-icons-yell.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@astrojs/sitemap': patch -'@astrojs/node': patch -'@astrojs/mdx': patch ---- - -Refactor to use Astro's integration logger for logging diff --git a/.changeset/three-boxes-sniff.md b/.changeset/three-boxes-sniff.md deleted file mode 100644 index 50b99c08d242..000000000000 --- a/.changeset/three-boxes-sniff.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"astro": patch ---- - -Refactors prerendering chunk handling to correctly remove unused code during the SSR runtime diff --git a/examples/basics/package.json b/examples/basics/package.json index 3de898e9a31f..e3d952e50dd8 100644 --- a/examples/basics/package.json +++ b/examples/basics/package.json @@ -11,6 +11,6 @@ "astro": "astro" }, "dependencies": { - "astro": "^4.10.2" + "astro": "^4.10.3" } } diff --git a/examples/blog/package.json b/examples/blog/package.json index adefd958f4ca..6db52dae240e 100644 --- a/examples/blog/package.json +++ b/examples/blog/package.json @@ -11,9 +11,9 @@ "astro": "astro" }, "dependencies": { - "@astrojs/mdx": "^3.1.0", + "@astrojs/mdx": "^3.1.1", "@astrojs/rss": "^4.0.6", - "@astrojs/sitemap": "^3.1.5", - "astro": "^4.10.2" + "@astrojs/sitemap": "^3.1.6", + "astro": "^4.10.3" } } diff --git a/examples/component/package.json b/examples/component/package.json index 59603bbaa9e1..0a53d80c9665 100644 --- a/examples/component/package.json +++ b/examples/component/package.json @@ -15,7 +15,7 @@ ], "scripts": {}, "devDependencies": { - "astro": "^4.10.2" + "astro": "^4.10.3" }, "peerDependencies": { "astro": "^4.0.0" diff --git a/examples/container-with-vitest/package.json b/examples/container-with-vitest/package.json index 3227ef773931..38e2543fd4e8 100644 --- a/examples/container-with-vitest/package.json +++ b/examples/container-with-vitest/package.json @@ -12,8 +12,8 @@ "test": "vitest run" }, "dependencies": { - "astro": "^4.10.2", - "@astrojs/react": "^3.5.0", + "astro": "^4.10.3", + "@astrojs/react": "^3.6.0", "react": "^18.3.1", "react-dom": "^18.3.1", "vitest": "^1.6.0" diff --git a/examples/framework-alpine/package.json b/examples/framework-alpine/package.json index 05bc7d58e6f6..aca1189f145d 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.0", - "astro": "^4.10.2" + "astro": "^4.10.3" } } diff --git a/examples/framework-lit/package.json b/examples/framework-lit/package.json index c465b84ab8a7..81467a629f83 100644 --- a/examples/framework-lit/package.json +++ b/examples/framework-lit/package.json @@ -11,9 +11,9 @@ "astro": "astro" }, "dependencies": { - "@astrojs/lit": "^4.2.0", + "@astrojs/lit": "^4.3.0", "@webcomponents/template-shadowroot": "^0.2.1", - "astro": "^4.10.2", + "astro": "^4.10.3", "lit": "^3.1.4" } } diff --git a/examples/framework-multiple/package.json b/examples/framework-multiple/package.json index 66fd1d69925a..31bd9c9c9590 100644 --- a/examples/framework-multiple/package.json +++ b/examples/framework-multiple/package.json @@ -11,14 +11,14 @@ "astro": "astro" }, "dependencies": { - "@astrojs/preact": "^3.4.0", - "@astrojs/react": "^3.5.0", - "@astrojs/solid-js": "^4.3.0", - "@astrojs/svelte": "^5.5.0", - "@astrojs/vue": "^4.4.0", + "@astrojs/preact": "^3.5.0", + "@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.10.2", + "astro": "^4.10.3", "preact": "^10.22.0", "react": "^18.3.1", "react-dom": "^18.3.1", diff --git a/examples/framework-preact/package.json b/examples/framework-preact/package.json index a59dbc6eb243..1938295a736f 100644 --- a/examples/framework-preact/package.json +++ b/examples/framework-preact/package.json @@ -11,9 +11,9 @@ "astro": "astro" }, "dependencies": { - "@astrojs/preact": "^3.4.0", + "@astrojs/preact": "^3.5.0", "@preact/signals": "^1.2.3", - "astro": "^4.10.2", + "astro": "^4.10.3", "preact": "^10.22.0" } } diff --git a/examples/framework-react/package.json b/examples/framework-react/package.json index 8756f639f9ec..65ac56ac6dfa 100644 --- a/examples/framework-react/package.json +++ b/examples/framework-react/package.json @@ -11,10 +11,10 @@ "astro": "astro" }, "dependencies": { - "@astrojs/react": "^3.5.0", + "@astrojs/react": "^3.6.0", "@types/react": "^18.3.3", "@types/react-dom": "^18.3.0", - "astro": "^4.10.2", + "astro": "^4.10.3", "react": "^18.3.1", "react-dom": "^18.3.1" } diff --git a/examples/framework-solid/package.json b/examples/framework-solid/package.json index de5973085f61..330c43201142 100644 --- a/examples/framework-solid/package.json +++ b/examples/framework-solid/package.json @@ -11,8 +11,8 @@ "astro": "astro" }, "dependencies": { - "@astrojs/solid-js": "^4.3.0", - "astro": "^4.10.2", + "@astrojs/solid-js": "^4.4.0", + "astro": "^4.10.3", "solid-js": "^1.8.17" } } diff --git a/examples/framework-svelte/package.json b/examples/framework-svelte/package.json index 21d1f85d5860..e6d4ab8e8316 100644 --- a/examples/framework-svelte/package.json +++ b/examples/framework-svelte/package.json @@ -11,8 +11,8 @@ "astro": "astro" }, "dependencies": { - "@astrojs/svelte": "^5.5.0", - "astro": "^4.10.2", + "@astrojs/svelte": "^5.6.0", + "astro": "^4.10.3", "svelte": "^4.2.18" } } diff --git a/examples/framework-vue/package.json b/examples/framework-vue/package.json index 896ed5ab9c6f..9b2cbbb8b9f2 100644 --- a/examples/framework-vue/package.json +++ b/examples/framework-vue/package.json @@ -11,8 +11,8 @@ "astro": "astro" }, "dependencies": { - "@astrojs/vue": "^4.4.0", - "astro": "^4.10.2", + "@astrojs/vue": "^4.5.0", + "astro": "^4.10.3", "vue": "^3.4.29" } } diff --git a/examples/hackernews/package.json b/examples/hackernews/package.json index 29fd443a1549..85221d768a09 100644 --- a/examples/hackernews/package.json +++ b/examples/hackernews/package.json @@ -11,7 +11,7 @@ "astro": "astro" }, "dependencies": { - "@astrojs/node": "^8.3.0", - "astro": "^4.10.2" + "@astrojs/node": "^8.3.1", + "astro": "^4.10.3" } } diff --git a/examples/integration/package.json b/examples/integration/package.json index 9a6c59d0d776..d474df38c2b8 100644 --- a/examples/integration/package.json +++ b/examples/integration/package.json @@ -15,7 +15,7 @@ ], "scripts": {}, "devDependencies": { - "astro": "^4.10.2" + "astro": "^4.10.3" }, "peerDependencies": { "astro": "^4.0.0" diff --git a/examples/middleware/package.json b/examples/middleware/package.json index c217ba972673..5c49204258d4 100644 --- a/examples/middleware/package.json +++ b/examples/middleware/package.json @@ -12,8 +12,8 @@ "server": "node dist/server/entry.mjs" }, "dependencies": { - "@astrojs/node": "^8.3.0", - "astro": "^4.10.2", + "@astrojs/node": "^8.3.1", + "astro": "^4.10.3", "html-minifier": "^4.0.0" }, "devDependencies": { diff --git a/examples/minimal/package.json b/examples/minimal/package.json index fd3d6f217db3..f21a2648c3e5 100644 --- a/examples/minimal/package.json +++ b/examples/minimal/package.json @@ -11,6 +11,6 @@ "astro": "astro" }, "dependencies": { - "astro": "^4.10.2" + "astro": "^4.10.3" } } diff --git a/examples/non-html-pages/package.json b/examples/non-html-pages/package.json index 910adc06f585..9e8b3fa0a685 100644 --- a/examples/non-html-pages/package.json +++ b/examples/non-html-pages/package.json @@ -11,6 +11,6 @@ "astro": "astro" }, "dependencies": { - "astro": "^4.10.2" + "astro": "^4.10.3" } } diff --git a/examples/portfolio/package.json b/examples/portfolio/package.json index 9211eacac9a4..87302014de35 100644 --- a/examples/portfolio/package.json +++ b/examples/portfolio/package.json @@ -11,6 +11,6 @@ "astro": "astro" }, "dependencies": { - "astro": "^4.10.2" + "astro": "^4.10.3" } } diff --git a/examples/ssr/package.json b/examples/ssr/package.json index c7c4db63bfca..98e6446738f3 100644 --- a/examples/ssr/package.json +++ b/examples/ssr/package.json @@ -12,9 +12,9 @@ "server": "node dist/server/entry.mjs" }, "dependencies": { - "@astrojs/node": "^8.3.0", - "@astrojs/svelte": "^5.5.0", - "astro": "^4.10.2", + "@astrojs/node": "^8.3.1", + "@astrojs/svelte": "^5.6.0", + "astro": "^4.10.3", "svelte": "^4.2.18" } } diff --git a/examples/starlog/package.json b/examples/starlog/package.json index b190ede981c7..b3ec85ebaa53 100644 --- a/examples/starlog/package.json +++ b/examples/starlog/package.json @@ -10,7 +10,7 @@ "astro": "astro" }, "dependencies": { - "astro": "^4.10.2", + "astro": "^4.10.3", "sass": "^1.77.5", "sharp": "^0.33.3" } diff --git a/examples/toolbar-app/package.json b/examples/toolbar-app/package.json index d6da3166cea7..29cbbbb5e5fb 100644 --- a/examples/toolbar-app/package.json +++ b/examples/toolbar-app/package.json @@ -15,6 +15,6 @@ "./app": "./dist/app.js" }, "devDependencies": { - "astro": "^4.10.2" + "astro": "^4.10.3" } } diff --git a/examples/view-transitions/package.json b/examples/view-transitions/package.json index 48c75f8dd996..f9437e2737a6 100644 --- a/examples/view-transitions/package.json +++ b/examples/view-transitions/package.json @@ -11,7 +11,7 @@ }, "devDependencies": { "@astrojs/tailwind": "^5.1.0", - "@astrojs/node": "^8.3.0", - "astro": "^4.10.2" + "@astrojs/node": "^8.3.1", + "astro": "^4.10.3" } } diff --git a/examples/with-markdoc/package.json b/examples/with-markdoc/package.json index 28de557fda3f..4c1ca16f6e35 100644 --- a/examples/with-markdoc/package.json +++ b/examples/with-markdoc/package.json @@ -12,6 +12,6 @@ }, "dependencies": { "@astrojs/markdoc": "^0.11.0", - "astro": "^4.10.2" + "astro": "^4.10.3" } } diff --git a/examples/with-markdown-plugins/package.json b/examples/with-markdown-plugins/package.json index 85fe65e7cc1f..519743eed031 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.0", - "astro": "^4.10.2", + "astro": "^4.10.3", "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 84a86a66717d..51c40eee2ed5 100644 --- a/examples/with-markdown-shiki/package.json +++ b/examples/with-markdown-shiki/package.json @@ -11,6 +11,6 @@ "astro": "astro" }, "dependencies": { - "astro": "^4.10.2" + "astro": "^4.10.3" } } diff --git a/examples/with-mdx/package.json b/examples/with-mdx/package.json index 2ee456e03b81..0a0958837176 100644 --- a/examples/with-mdx/package.json +++ b/examples/with-mdx/package.json @@ -11,9 +11,9 @@ "astro": "astro" }, "dependencies": { - "@astrojs/mdx": "^3.1.0", - "@astrojs/preact": "^3.4.0", - "astro": "^4.10.2", + "@astrojs/mdx": "^3.1.1", + "@astrojs/preact": "^3.5.0", + "astro": "^4.10.3", "preact": "^10.22.0" } } diff --git a/examples/with-nanostores/package.json b/examples/with-nanostores/package.json index 99a78eb9f0f9..57a6581c9cd4 100644 --- a/examples/with-nanostores/package.json +++ b/examples/with-nanostores/package.json @@ -11,9 +11,9 @@ "astro": "astro" }, "dependencies": { - "@astrojs/preact": "^3.4.0", + "@astrojs/preact": "^3.5.0", "@nanostores/preact": "^0.5.1", - "astro": "^4.10.2", + "astro": "^4.10.3", "nanostores": "^0.10.3", "preact": "^10.22.0" } diff --git a/examples/with-tailwindcss/package.json b/examples/with-tailwindcss/package.json index d3389d98cbc2..bbb4eb46cdd0 100644 --- a/examples/with-tailwindcss/package.json +++ b/examples/with-tailwindcss/package.json @@ -11,10 +11,10 @@ "astro": "astro" }, "dependencies": { - "@astrojs/mdx": "^3.1.0", + "@astrojs/mdx": "^3.1.1", "@astrojs/tailwind": "^5.1.0", "@types/canvas-confetti": "^1.6.4", - "astro": "^4.10.2", + "astro": "^4.10.3", "autoprefixer": "^10.4.19", "canvas-confetti": "^1.9.3", "postcss": "^8.4.38", diff --git a/examples/with-vitest/package.json b/examples/with-vitest/package.json index d935109e9a19..ed6a7500b456 100644 --- a/examples/with-vitest/package.json +++ b/examples/with-vitest/package.json @@ -12,7 +12,7 @@ "test": "vitest" }, "dependencies": { - "astro": "^4.10.2", + "astro": "^4.10.3", "vitest": "^1.6.0" } } diff --git a/packages/astro/CHANGELOG.md b/packages/astro/CHANGELOG.md index 9a27726079ff..0552d97580e6 100644 --- a/packages/astro/CHANGELOG.md +++ b/packages/astro/CHANGELOG.md @@ -1,5 +1,76 @@ # astro +## 4.10.3 + +### Patch Changes + +- [#11213](https://github.com/withastro/astro/pull/11213) [`94ac7ef`](https://github.com/withastro/astro/commit/94ac7efd70fd264b10887805a02d5d1877af8701) Thanks [@florian-lefebvre](https://github.com/florian-lefebvre)! - Removes the `PUBLIC_` prefix constraint for `astro:env` public variables + +- [#11213](https://github.com/withastro/astro/pull/11213) [`94ac7ef`](https://github.com/withastro/astro/commit/94ac7efd70fd264b10887805a02d5d1877af8701) Thanks [@florian-lefebvre](https://github.com/florian-lefebvre)! - **BREAKING CHANGE to the experimental `astro:env` feature only** + + Server secrets specified in the schema must now be imported from `astro:env/server`. Using `getSecret()` is no longer required to use these environment variables in your schema: + + ```diff + - import { getSecret } from 'astro:env/server' + - const API_SECRET = getSecret("API_SECRET") + + import { API_SECRET } from 'astro:env/server' + ``` + + Note that using `getSecret()` with these keys is still possible, but no longer involves any special handling and the raw value will be returned, just like retrieving secrets not specified in your schema. + +- [#11234](https://github.com/withastro/astro/pull/11234) [`4385bf7`](https://github.com/withastro/astro/commit/4385bf7a4dc9c65bff53a30c660f7a909fcabfc9) Thanks [@ematipico](https://github.com/ematipico)! - Adds a new function called `addServerRenderer` to the Container API. Use this function to manually store renderers inside the instance of your container. + + This new function should be preferred when using the Container API in environments like on-demand pages: + + ```ts + import type { APIRoute } from 'astro'; + import { experimental_AstroContainer } from 'astro/container'; + import reactRenderer from '@astrojs/react/server.js'; + import vueRenderer from '@astrojs/vue/server.js'; + import ReactComponent from '../components/button.jsx'; + import VueComponent from '../components/button.vue'; + + // MDX runtime is contained inside the Astro core + import mdxRenderer from 'astro/jsx/server.js'; + + // In case you need to import a custom renderer + import customRenderer from '../renderers/customRenderer.js'; + + export const GET: APIRoute = async (ctx) => { + const container = await experimental_AstroContainer.create(); + container.addServerRenderer({ renderer: reactRenderer }); + container.addServerRenderer({ renderer: vueRenderer }); + container.addServerRenderer({ renderer: customRenderer }); + // You can pass a custom name too + container.addServerRenderer({ + name: 'customRenderer', + renderer: customRenderer, + }); + const vueComponent = await container.renderToString(VueComponent); + return await container.renderToResponse(Component); + }; + ``` + +- [#11249](https://github.com/withastro/astro/pull/11249) [`de60c69`](https://github.com/withastro/astro/commit/de60c69aa06c41f76a5510cc1d0bee4c8a5326a5) Thanks [@markgaze](https://github.com/markgaze)! - Fixes a performance issue with JSON schema generation + +- [#11242](https://github.com/withastro/astro/pull/11242) [`e4fc2a0`](https://github.com/withastro/astro/commit/e4fc2a0bafb4723566552d0c5954b25447890f51) Thanks [@ematipico](https://github.com/ematipico)! - Fixes a case where the virtual module `astro:container` wasn't resolved + +- [#11236](https://github.com/withastro/astro/pull/11236) [`39bc3a5`](https://github.com/withastro/astro/commit/39bc3a5e8161232d6fdc6cc52b1f246083966d8e) Thanks [@ascorbic](https://github.com/ascorbic)! - Fixes a case where symlinked content collection directories were not correctly resolved + +- [#11258](https://github.com/withastro/astro/pull/11258) [`d996db6`](https://github.com/withastro/astro/commit/d996db6f0bf361ebd84b23d022db7bb10fb316e6) Thanks [@ascorbic](https://github.com/ascorbic)! - Adds a new error `RewriteWithBodyUsed` that throws when `Astro.rewrite` is used after the request body has already been read. + +- [#11243](https://github.com/withastro/astro/pull/11243) [`ba2b14c`](https://github.com/withastro/astro/commit/ba2b14cc28bd219c241313cdf142b736e7442014) Thanks [@V3RON](https://github.com/V3RON)! - Fixes a prerendering issue for libraries in `node_modules` when a folder with an underscore is in the path. + +- [#11244](https://github.com/withastro/astro/pull/11244) [`d07d2f7`](https://github.com/withastro/astro/commit/d07d2f7ac9d87af907beaca700ba4116dc1d6f37) Thanks [@ematipico](https://github.com/ematipico)! - Improves the developer experience of the custom `500.astro` page in development mode. + + Before, in development, an error thrown during the rendering phase would display the default error overlay, even when users had the `500.astro` page. + + Now, the development server will display the `500.astro` and the original error is logged in the console. + +- [#11240](https://github.com/withastro/astro/pull/11240) [`2851b0a`](https://github.com/withastro/astro/commit/2851b0aa2e2abe80ea603b53c67770e94980a8d3) Thanks [@ascorbic](https://github.com/ascorbic)! - Ignores query strings in module identifiers when matching ".astro" file extensions in Vite plugin + +- [#11245](https://github.com/withastro/astro/pull/11245) [`e22be22`](https://github.com/withastro/astro/commit/e22be22e5729e60220726e92b52d2833c937fd1c) Thanks [@bluwy](https://github.com/bluwy)! - Refactors prerendering chunk handling to correctly remove unused code during the SSR runtime + ## 4.10.2 ### Patch Changes diff --git a/packages/astro/package.json b/packages/astro/package.json index 2aaa58531123..7f043f29696a 100644 --- a/packages/astro/package.json +++ b/packages/astro/package.json @@ -1,6 +1,6 @@ { "name": "astro", - "version": "4.10.2", + "version": "4.10.3", "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/db/CHANGELOG.md b/packages/db/CHANGELOG.md index 7ee2e00ef0d2..0d637523e1dc 100644 --- a/packages/db/CHANGELOG.md +++ b/packages/db/CHANGELOG.md @@ -1,5 +1,14 @@ # @astrojs/db +## 0.11.6 + +### Patch Changes + +- [#11262](https://github.com/withastro/astro/pull/11262) [`9b03023`](https://github.com/withastro/astro/commit/9b030239cb4db4e51a8a1da638743b60837f7e1a) Thanks [@nezouse](https://github.com/nezouse)! - Import type `Database` from correct file + +- Updated dependencies []: + - @astrojs/studio@0.1.0 + ## 0.11.5 ### Patch Changes diff --git a/packages/db/package.json b/packages/db/package.json index 21363873f80d..1703c812aafb 100644 --- a/packages/db/package.json +++ b/packages/db/package.json @@ -1,6 +1,6 @@ { "name": "@astrojs/db", - "version": "0.11.5", + "version": "0.11.6", "description": "Add libSQL and Astro Studio support to your Astro site", "license": "MIT", "repository": { diff --git a/packages/integrations/lit/CHANGELOG.md b/packages/integrations/lit/CHANGELOG.md index e133dde5df26..0aa8f4f71177 100644 --- a/packages/integrations/lit/CHANGELOG.md +++ b/packages/integrations/lit/CHANGELOG.md @@ -1,5 +1,42 @@ # @astrojs/lit +## 4.3.0 + +### Minor Changes + +- [#11234](https://github.com/withastro/astro/pull/11234) [`4385bf7`](https://github.com/withastro/astro/commit/4385bf7a4dc9c65bff53a30c660f7a909fcabfc9) Thanks [@ematipico](https://github.com/ematipico)! - Adds a new function called `addServerRenderer` to the Container API. Use this function to manually store renderers inside the instance of your container. + + This new function should be preferred when using the Container API in environments like on-demand pages: + + ```ts + import type { APIRoute } from 'astro'; + import { experimental_AstroContainer } from 'astro/container'; + import reactRenderer from '@astrojs/react/server.js'; + import vueRenderer from '@astrojs/vue/server.js'; + import ReactComponent from '../components/button.jsx'; + import VueComponent from '../components/button.vue'; + + // MDX runtime is contained inside the Astro core + import mdxRenderer from 'astro/jsx/server.js'; + + // In case you need to import a custom renderer + import customRenderer from '../renderers/customRenderer.js'; + + export const GET: APIRoute = async (ctx) => { + const container = await experimental_AstroContainer.create(); + container.addServerRenderer({ renderer: reactRenderer }); + container.addServerRenderer({ renderer: vueRenderer }); + container.addServerRenderer({ renderer: customRenderer }); + // You can pass a custom name too + container.addServerRenderer({ + name: 'customRenderer', + renderer: customRenderer, + }); + const vueComponent = await container.renderToString(VueComponent); + return await container.renderToResponse(Component); + }; + ``` + ## 4.2.0 ### Minor Changes diff --git a/packages/integrations/lit/package.json b/packages/integrations/lit/package.json index 677cba4ea1cb..714dbce5560a 100644 --- a/packages/integrations/lit/package.json +++ b/packages/integrations/lit/package.json @@ -1,6 +1,6 @@ { "name": "@astrojs/lit", - "version": "4.2.0", + "version": "4.3.0", "description": "Use Lit components within Astro", "type": "module", "types": "./dist/index.d.ts", diff --git a/packages/integrations/mdx/CHANGELOG.md b/packages/integrations/mdx/CHANGELOG.md index d2b38eda2a35..0b12f7bc167d 100644 --- a/packages/integrations/mdx/CHANGELOG.md +++ b/packages/integrations/mdx/CHANGELOG.md @@ -1,5 +1,11 @@ # @astrojs/mdx +## 3.1.1 + +### Patch Changes + +- [#11263](https://github.com/withastro/astro/pull/11263) [`7d59750`](https://github.com/withastro/astro/commit/7d597506615fa5a34327304e8321be7b9c4b799d) Thanks [@wackbyte](https://github.com/wackbyte)! - Refactor to use Astro's integration logger for logging + ## 3.1.0 ### Minor Changes diff --git a/packages/integrations/mdx/package.json b/packages/integrations/mdx/package.json index 1d11d68ffc4b..88543ea90265 100644 --- a/packages/integrations/mdx/package.json +++ b/packages/integrations/mdx/package.json @@ -1,7 +1,7 @@ { "name": "@astrojs/mdx", "description": "Add support for MDX pages in your Astro site", - "version": "3.1.0", + "version": "3.1.1", "type": "module", "types": "./dist/index.d.ts", "author": "withastro", diff --git a/packages/integrations/node/CHANGELOG.md b/packages/integrations/node/CHANGELOG.md index 67f5c1cd05b7..45ea0192303f 100644 --- a/packages/integrations/node/CHANGELOG.md +++ b/packages/integrations/node/CHANGELOG.md @@ -1,5 +1,13 @@ # @astrojs/node +## 8.3.1 + +### Patch Changes + +- [#11261](https://github.com/withastro/astro/pull/11261) [`f5f8ed2`](https://github.com/withastro/astro/commit/f5f8ed275b76adfb11b7c3c1e800753a25416498) Thanks [@matthewp](https://github.com/matthewp)! - Fix backwards compat with Astro <= 4.9 + +- [#11263](https://github.com/withastro/astro/pull/11263) [`7d59750`](https://github.com/withastro/astro/commit/7d597506615fa5a34327304e8321be7b9c4b799d) Thanks [@wackbyte](https://github.com/wackbyte)! - Refactor to use Astro's integration logger for logging + ## 8.3.0 ### Minor Changes diff --git a/packages/integrations/node/package.json b/packages/integrations/node/package.json index a156194458df..53b4b5d7b870 100644 --- a/packages/integrations/node/package.json +++ b/packages/integrations/node/package.json @@ -1,7 +1,7 @@ { "name": "@astrojs/node", "description": "Deploy your site to a Node.js server", - "version": "8.3.0", + "version": "8.3.1", "type": "module", "types": "./dist/index.d.ts", "author": "withastro", diff --git a/packages/integrations/preact/CHANGELOG.md b/packages/integrations/preact/CHANGELOG.md index 45100dd44e28..9f02be58da74 100644 --- a/packages/integrations/preact/CHANGELOG.md +++ b/packages/integrations/preact/CHANGELOG.md @@ -1,5 +1,42 @@ # @astrojs/preact +## 3.5.0 + +### Minor Changes + +- [#11234](https://github.com/withastro/astro/pull/11234) [`4385bf7`](https://github.com/withastro/astro/commit/4385bf7a4dc9c65bff53a30c660f7a909fcabfc9) Thanks [@ematipico](https://github.com/ematipico)! - Adds a new function called `addServerRenderer` to the Container API. Use this function to manually store renderers inside the instance of your container. + + This new function should be preferred when using the Container API in environments like on-demand pages: + + ```ts + import type { APIRoute } from 'astro'; + import { experimental_AstroContainer } from 'astro/container'; + import reactRenderer from '@astrojs/react/server.js'; + import vueRenderer from '@astrojs/vue/server.js'; + import ReactComponent from '../components/button.jsx'; + import VueComponent from '../components/button.vue'; + + // MDX runtime is contained inside the Astro core + import mdxRenderer from 'astro/jsx/server.js'; + + // In case you need to import a custom renderer + import customRenderer from '../renderers/customRenderer.js'; + + export const GET: APIRoute = async (ctx) => { + const container = await experimental_AstroContainer.create(); + container.addServerRenderer({ renderer: reactRenderer }); + container.addServerRenderer({ renderer: vueRenderer }); + container.addServerRenderer({ renderer: customRenderer }); + // You can pass a custom name too + container.addServerRenderer({ + name: 'customRenderer', + renderer: customRenderer, + }); + const vueComponent = await container.renderToString(VueComponent); + return await container.renderToResponse(Component); + }; + ``` + ## 3.4.0 ### Minor Changes diff --git a/packages/integrations/preact/package.json b/packages/integrations/preact/package.json index 57ea1c1fe388..f791ec3f4a2a 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.4.0", + "version": "3.5.0", "type": "module", "types": "./dist/index.d.ts", "author": "withastro", diff --git a/packages/integrations/react/CHANGELOG.md b/packages/integrations/react/CHANGELOG.md index 0b76191ca6c4..2bebccb85b6b 100644 --- a/packages/integrations/react/CHANGELOG.md +++ b/packages/integrations/react/CHANGELOG.md @@ -1,5 +1,42 @@ # @astrojs/react +## 3.6.0 + +### Minor Changes + +- [#11234](https://github.com/withastro/astro/pull/11234) [`4385bf7`](https://github.com/withastro/astro/commit/4385bf7a4dc9c65bff53a30c660f7a909fcabfc9) Thanks [@ematipico](https://github.com/ematipico)! - Adds a new function called `addServerRenderer` to the Container API. Use this function to manually store renderers inside the instance of your container. + + This new function should be preferred when using the Container API in environments like on-demand pages: + + ```ts + import type { APIRoute } from 'astro'; + import { experimental_AstroContainer } from 'astro/container'; + import reactRenderer from '@astrojs/react/server.js'; + import vueRenderer from '@astrojs/vue/server.js'; + import ReactComponent from '../components/button.jsx'; + import VueComponent from '../components/button.vue'; + + // MDX runtime is contained inside the Astro core + import mdxRenderer from 'astro/jsx/server.js'; + + // In case you need to import a custom renderer + import customRenderer from '../renderers/customRenderer.js'; + + export const GET: APIRoute = async (ctx) => { + const container = await experimental_AstroContainer.create(); + container.addServerRenderer({ renderer: reactRenderer }); + container.addServerRenderer({ renderer: vueRenderer }); + container.addServerRenderer({ renderer: customRenderer }); + // You can pass a custom name too + container.addServerRenderer({ + name: 'customRenderer', + renderer: customRenderer, + }); + const vueComponent = await container.renderToString(VueComponent); + return await container.renderToResponse(Component); + }; + ``` + ## 3.5.0 ### Minor Changes diff --git a/packages/integrations/react/package.json b/packages/integrations/react/package.json index 53b72421a98e..8f4dcf9f0860 100644 --- a/packages/integrations/react/package.json +++ b/packages/integrations/react/package.json @@ -1,7 +1,7 @@ { "name": "@astrojs/react", "description": "Use React components within Astro", - "version": "3.5.0", + "version": "3.6.0", "type": "module", "types": "./dist/index.d.ts", "author": "withastro", diff --git a/packages/integrations/sitemap/CHANGELOG.md b/packages/integrations/sitemap/CHANGELOG.md index 2d103456457a..c498b97cc677 100644 --- a/packages/integrations/sitemap/CHANGELOG.md +++ b/packages/integrations/sitemap/CHANGELOG.md @@ -1,5 +1,11 @@ # @astrojs/sitemap +## 3.1.6 + +### Patch Changes + +- [#11263](https://github.com/withastro/astro/pull/11263) [`7d59750`](https://github.com/withastro/astro/commit/7d597506615fa5a34327304e8321be7b9c4b799d) Thanks [@wackbyte](https://github.com/wackbyte)! - Refactor to use Astro's integration logger for logging + ## 3.1.5 ### Patch Changes diff --git a/packages/integrations/sitemap/package.json b/packages/integrations/sitemap/package.json index 7a137cbdc422..c97800a9b5f3 100644 --- a/packages/integrations/sitemap/package.json +++ b/packages/integrations/sitemap/package.json @@ -1,7 +1,7 @@ { "name": "@astrojs/sitemap", "description": "Generate a sitemap for your Astro site", - "version": "3.1.5", + "version": "3.1.6", "type": "module", "types": "./dist/index.d.ts", "author": "withastro", diff --git a/packages/integrations/solid/CHANGELOG.md b/packages/integrations/solid/CHANGELOG.md index 5ba28e4c8611..33c902ab4aab 100644 --- a/packages/integrations/solid/CHANGELOG.md +++ b/packages/integrations/solid/CHANGELOG.md @@ -1,5 +1,42 @@ # @astrojs/solid-js +## 4.4.0 + +### Minor Changes + +- [#11234](https://github.com/withastro/astro/pull/11234) [`4385bf7`](https://github.com/withastro/astro/commit/4385bf7a4dc9c65bff53a30c660f7a909fcabfc9) Thanks [@ematipico](https://github.com/ematipico)! - Adds a new function called `addServerRenderer` to the Container API. Use this function to manually store renderers inside the instance of your container. + + This new function should be preferred when using the Container API in environments like on-demand pages: + + ```ts + import type { APIRoute } from 'astro'; + import { experimental_AstroContainer } from 'astro/container'; + import reactRenderer from '@astrojs/react/server.js'; + import vueRenderer from '@astrojs/vue/server.js'; + import ReactComponent from '../components/button.jsx'; + import VueComponent from '../components/button.vue'; + + // MDX runtime is contained inside the Astro core + import mdxRenderer from 'astro/jsx/server.js'; + + // In case you need to import a custom renderer + import customRenderer from '../renderers/customRenderer.js'; + + export const GET: APIRoute = async (ctx) => { + const container = await experimental_AstroContainer.create(); + container.addServerRenderer({ renderer: reactRenderer }); + container.addServerRenderer({ renderer: vueRenderer }); + container.addServerRenderer({ renderer: customRenderer }); + // You can pass a custom name too + container.addServerRenderer({ + name: 'customRenderer', + renderer: customRenderer, + }); + const vueComponent = await container.renderToString(VueComponent); + return await container.renderToResponse(Component); + }; + ``` + ## 4.3.0 ### Minor Changes diff --git a/packages/integrations/solid/package.json b/packages/integrations/solid/package.json index d13f4f68f5af..023dd0d66ce6 100644 --- a/packages/integrations/solid/package.json +++ b/packages/integrations/solid/package.json @@ -1,6 +1,6 @@ { "name": "@astrojs/solid-js", - "version": "4.3.0", + "version": "4.4.0", "description": "Use Solid components within Astro", "type": "module", "types": "./dist/index.d.ts", diff --git a/packages/integrations/svelte/CHANGELOG.md b/packages/integrations/svelte/CHANGELOG.md index c68d06228927..408dc3a09bf5 100644 --- a/packages/integrations/svelte/CHANGELOG.md +++ b/packages/integrations/svelte/CHANGELOG.md @@ -1,5 +1,42 @@ # @astrojs/svelte +## 5.6.0 + +### Minor Changes + +- [#11234](https://github.com/withastro/astro/pull/11234) [`4385bf7`](https://github.com/withastro/astro/commit/4385bf7a4dc9c65bff53a30c660f7a909fcabfc9) Thanks [@ematipico](https://github.com/ematipico)! - Adds a new function called `addServerRenderer` to the Container API. Use this function to manually store renderers inside the instance of your container. + + This new function should be preferred when using the Container API in environments like on-demand pages: + + ```ts + import type { APIRoute } from 'astro'; + import { experimental_AstroContainer } from 'astro/container'; + import reactRenderer from '@astrojs/react/server.js'; + import vueRenderer from '@astrojs/vue/server.js'; + import ReactComponent from '../components/button.jsx'; + import VueComponent from '../components/button.vue'; + + // MDX runtime is contained inside the Astro core + import mdxRenderer from 'astro/jsx/server.js'; + + // In case you need to import a custom renderer + import customRenderer from '../renderers/customRenderer.js'; + + export const GET: APIRoute = async (ctx) => { + const container = await experimental_AstroContainer.create(); + container.addServerRenderer({ renderer: reactRenderer }); + container.addServerRenderer({ renderer: vueRenderer }); + container.addServerRenderer({ renderer: customRenderer }); + // You can pass a custom name too + container.addServerRenderer({ + name: 'customRenderer', + renderer: customRenderer, + }); + const vueComponent = await container.renderToString(VueComponent); + return await container.renderToResponse(Component); + }; + ``` + ## 5.5.0 ### Minor Changes diff --git a/packages/integrations/svelte/package.json b/packages/integrations/svelte/package.json index fc472507dcca..dc73dd7743f2 100644 --- a/packages/integrations/svelte/package.json +++ b/packages/integrations/svelte/package.json @@ -1,6 +1,6 @@ { "name": "@astrojs/svelte", - "version": "5.5.0", + "version": "5.6.0", "description": "Use Svelte components within Astro", "type": "module", "types": "./dist/index.d.ts", diff --git a/packages/integrations/vercel/CHANGELOG.md b/packages/integrations/vercel/CHANGELOG.md index 1c2d3358df10..74733e8612a7 100644 --- a/packages/integrations/vercel/CHANGELOG.md +++ b/packages/integrations/vercel/CHANGELOG.md @@ -1,5 +1,13 @@ # @astrojs/vercel +## 7.7.1 + +### Patch Changes + +- [#11261](https://github.com/withastro/astro/pull/11261) [`f5f8ed2`](https://github.com/withastro/astro/commit/f5f8ed275b76adfb11b7c3c1e800753a25416498) Thanks [@matthewp](https://github.com/matthewp)! - Fix backwards compat with Astro <= 4.9 + +- [#11227](https://github.com/withastro/astro/pull/11227) [`24ce898`](https://github.com/withastro/astro/commit/24ce8983e1e1b3c8ebebf2ac4de7bbf21a586e2e) Thanks [@matthewp](https://github.com/matthewp)! - In Vercel Edge, include cookies set by Astro.cookies.set + ## 7.7.0 ### Minor Changes diff --git a/packages/integrations/vercel/package.json b/packages/integrations/vercel/package.json index 81ca7dd6ffed..f4968b5b7afa 100644 --- a/packages/integrations/vercel/package.json +++ b/packages/integrations/vercel/package.json @@ -1,7 +1,7 @@ { "name": "@astrojs/vercel", "description": "Deploy your site to Vercel", - "version": "7.7.0", + "version": "7.7.1", "type": "module", "author": "withastro", "license": "MIT", diff --git a/packages/integrations/vue/CHANGELOG.md b/packages/integrations/vue/CHANGELOG.md index d509141d18ea..fd9c71e04162 100644 --- a/packages/integrations/vue/CHANGELOG.md +++ b/packages/integrations/vue/CHANGELOG.md @@ -1,5 +1,42 @@ # @astrojs/vue +## 4.5.0 + +### Minor Changes + +- [#11234](https://github.com/withastro/astro/pull/11234) [`4385bf7`](https://github.com/withastro/astro/commit/4385bf7a4dc9c65bff53a30c660f7a909fcabfc9) Thanks [@ematipico](https://github.com/ematipico)! - Adds a new function called `addServerRenderer` to the Container API. Use this function to manually store renderers inside the instance of your container. + + This new function should be preferred when using the Container API in environments like on-demand pages: + + ```ts + import type { APIRoute } from 'astro'; + import { experimental_AstroContainer } from 'astro/container'; + import reactRenderer from '@astrojs/react/server.js'; + import vueRenderer from '@astrojs/vue/server.js'; + import ReactComponent from '../components/button.jsx'; + import VueComponent from '../components/button.vue'; + + // MDX runtime is contained inside the Astro core + import mdxRenderer from 'astro/jsx/server.js'; + + // In case you need to import a custom renderer + import customRenderer from '../renderers/customRenderer.js'; + + export const GET: APIRoute = async (ctx) => { + const container = await experimental_AstroContainer.create(); + container.addServerRenderer({ renderer: reactRenderer }); + container.addServerRenderer({ renderer: vueRenderer }); + container.addServerRenderer({ renderer: customRenderer }); + // You can pass a custom name too + container.addServerRenderer({ + name: 'customRenderer', + renderer: customRenderer, + }); + const vueComponent = await container.renderToString(VueComponent); + return await container.renderToResponse(Component); + }; + ``` + ## 4.4.0 ### Minor Changes diff --git a/packages/integrations/vue/package.json b/packages/integrations/vue/package.json index f2cac8d340b6..5cfacf4e2ddf 100644 --- a/packages/integrations/vue/package.json +++ b/packages/integrations/vue/package.json @@ -1,6 +1,6 @@ { "name": "@astrojs/vue", - "version": "4.4.0", + "version": "4.5.0", "description": "Use Vue components within Astro", "type": "module", "types": "./dist/index.d.ts", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index b5aadde6d54a..1b6d6f1b8c45 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -128,37 +128,37 @@ importers: examples/basics: dependencies: astro: - specifier: ^4.10.2 + specifier: ^4.10.3 version: link:../../packages/astro examples/blog: dependencies: '@astrojs/mdx': - specifier: ^3.1.0 + specifier: ^3.1.1 version: link:../../packages/integrations/mdx '@astrojs/rss': specifier: ^4.0.6 version: link:../../packages/astro-rss '@astrojs/sitemap': - specifier: ^3.1.5 + specifier: ^3.1.6 version: link:../../packages/integrations/sitemap astro: - specifier: ^4.10.2 + specifier: ^4.10.3 version: link:../../packages/astro examples/component: devDependencies: astro: - specifier: ^4.10.2 + specifier: ^4.10.3 version: link:../../packages/astro examples/container-with-vitest: dependencies: '@astrojs/react': - specifier: ^3.5.0 + specifier: ^3.6.0 version: link:../../packages/integrations/react astro: - specifier: ^4.10.2 + specifier: ^4.10.3 version: link:../../packages/astro react: specifier: ^18.3.1 @@ -189,19 +189,19 @@ importers: specifier: ^3.14.0 version: 3.14.0 astro: - specifier: ^4.10.2 + specifier: ^4.10.3 version: link:../../packages/astro examples/framework-lit: dependencies: '@astrojs/lit': - specifier: ^4.2.0 + specifier: ^4.3.0 version: link:../../packages/integrations/lit '@webcomponents/template-shadowroot': specifier: ^0.2.1 version: 0.2.1 astro: - specifier: ^4.10.2 + specifier: ^4.10.3 version: link:../../packages/astro lit: specifier: ^3.1.4 @@ -210,19 +210,19 @@ importers: examples/framework-multiple: dependencies: '@astrojs/preact': - specifier: ^3.4.0 + specifier: ^3.5.0 version: link:../../packages/integrations/preact '@astrojs/react': - specifier: ^3.5.0 + specifier: ^3.6.0 version: link:../../packages/integrations/react '@astrojs/solid-js': - specifier: ^4.3.0 + specifier: ^4.4.0 version: link:../../packages/integrations/solid '@astrojs/svelte': - specifier: ^5.5.0 + specifier: ^5.6.0 version: link:../../packages/integrations/svelte '@astrojs/vue': - specifier: ^4.4.0 + specifier: ^4.5.0 version: link:../../packages/integrations/vue '@types/react': specifier: ^18.3.3 @@ -231,7 +231,7 @@ importers: specifier: ^18.3.0 version: 18.3.0 astro: - specifier: ^4.10.2 + specifier: ^4.10.3 version: link:../../packages/astro preact: specifier: ^10.22.0 @@ -255,13 +255,13 @@ importers: examples/framework-preact: dependencies: '@astrojs/preact': - specifier: ^3.4.0 + specifier: ^3.5.0 version: link:../../packages/integrations/preact '@preact/signals': specifier: ^1.2.3 version: 1.2.3(preact@10.22.0) astro: - specifier: ^4.10.2 + specifier: ^4.10.3 version: link:../../packages/astro preact: specifier: ^10.22.0 @@ -270,7 +270,7 @@ importers: examples/framework-react: dependencies: '@astrojs/react': - specifier: ^3.5.0 + specifier: ^3.6.0 version: link:../../packages/integrations/react '@types/react': specifier: ^18.3.3 @@ -279,7 +279,7 @@ importers: specifier: ^18.3.0 version: 18.3.0 astro: - specifier: ^4.10.2 + specifier: ^4.10.3 version: link:../../packages/astro react: specifier: ^18.3.1 @@ -291,10 +291,10 @@ importers: examples/framework-solid: dependencies: '@astrojs/solid-js': - specifier: ^4.3.0 + specifier: ^4.4.0 version: link:../../packages/integrations/solid astro: - specifier: ^4.10.2 + specifier: ^4.10.3 version: link:../../packages/astro solid-js: specifier: ^1.8.17 @@ -303,10 +303,10 @@ importers: examples/framework-svelte: dependencies: '@astrojs/svelte': - specifier: ^5.5.0 + specifier: ^5.6.0 version: link:../../packages/integrations/svelte astro: - specifier: ^4.10.2 + specifier: ^4.10.3 version: link:../../packages/astro svelte: specifier: ^4.2.18 @@ -315,10 +315,10 @@ importers: examples/framework-vue: dependencies: '@astrojs/vue': - specifier: ^4.4.0 + specifier: ^4.5.0 version: link:../../packages/integrations/vue astro: - specifier: ^4.10.2 + specifier: ^4.10.3 version: link:../../packages/astro vue: specifier: ^3.4.29 @@ -327,25 +327,25 @@ importers: examples/hackernews: dependencies: '@astrojs/node': - specifier: ^8.3.0 + specifier: ^8.3.1 version: link:../../packages/integrations/node astro: - specifier: ^4.10.2 + specifier: ^4.10.3 version: link:../../packages/astro examples/integration: devDependencies: astro: - specifier: ^4.10.2 + specifier: ^4.10.3 version: link:../../packages/astro examples/middleware: dependencies: '@astrojs/node': - specifier: ^8.3.0 + specifier: ^8.3.1 version: link:../../packages/integrations/node astro: - specifier: ^4.10.2 + specifier: ^4.10.3 version: link:../../packages/astro html-minifier: specifier: ^4.0.0 @@ -358,31 +358,31 @@ importers: examples/minimal: dependencies: astro: - specifier: ^4.10.2 + specifier: ^4.10.3 version: link:../../packages/astro examples/non-html-pages: dependencies: astro: - specifier: ^4.10.2 + specifier: ^4.10.3 version: link:../../packages/astro examples/portfolio: dependencies: astro: - specifier: ^4.10.2 + specifier: ^4.10.3 version: link:../../packages/astro examples/ssr: dependencies: '@astrojs/node': - specifier: ^8.3.0 + specifier: ^8.3.1 version: link:../../packages/integrations/node '@astrojs/svelte': - specifier: ^5.5.0 + specifier: ^5.6.0 version: link:../../packages/integrations/svelte astro: - specifier: ^4.10.2 + specifier: ^4.10.3 version: link:../../packages/astro svelte: specifier: ^4.2.18 @@ -391,7 +391,7 @@ importers: examples/starlog: dependencies: astro: - specifier: ^4.10.2 + specifier: ^4.10.3 version: link:../../packages/astro sass: specifier: ^1.77.5 @@ -403,19 +403,19 @@ importers: examples/toolbar-app: devDependencies: astro: - specifier: ^4.10.2 + specifier: ^4.10.3 version: link:../../packages/astro examples/view-transitions: devDependencies: '@astrojs/node': - specifier: ^8.3.0 + specifier: ^8.3.1 version: link:../../packages/integrations/node '@astrojs/tailwind': specifier: ^5.1.0 version: link:../../packages/integrations/tailwind astro: - specifier: ^4.10.2 + specifier: ^4.10.3 version: link:../../packages/astro examples/with-markdoc: @@ -424,7 +424,7 @@ importers: specifier: ^0.11.0 version: link:../../packages/integrations/markdoc astro: - specifier: ^4.10.2 + specifier: ^4.10.3 version: link:../../packages/astro examples/with-markdown-plugins: @@ -433,7 +433,7 @@ importers: specifier: ^5.1.0 version: link:../../packages/markdown/remark astro: - specifier: ^4.10.2 + specifier: ^4.10.3 version: link:../../packages/astro hast-util-select: specifier: ^6.0.2 @@ -454,19 +454,19 @@ importers: examples/with-markdown-shiki: dependencies: astro: - specifier: ^4.10.2 + specifier: ^4.10.3 version: link:../../packages/astro examples/with-mdx: dependencies: '@astrojs/mdx': - specifier: ^3.1.0 + specifier: ^3.1.1 version: link:../../packages/integrations/mdx '@astrojs/preact': - specifier: ^3.4.0 + specifier: ^3.5.0 version: link:../../packages/integrations/preact astro: - specifier: ^4.10.2 + specifier: ^4.10.3 version: link:../../packages/astro preact: specifier: ^10.22.0 @@ -475,13 +475,13 @@ importers: examples/with-nanostores: dependencies: '@astrojs/preact': - specifier: ^3.4.0 + specifier: ^3.5.0 version: link:../../packages/integrations/preact '@nanostores/preact': specifier: ^0.5.1 version: 0.5.1(nanostores@0.10.3)(preact@10.22.0) astro: - specifier: ^4.10.2 + specifier: ^4.10.3 version: link:../../packages/astro nanostores: specifier: ^0.10.3 @@ -493,7 +493,7 @@ importers: examples/with-tailwindcss: dependencies: '@astrojs/mdx': - specifier: ^3.1.0 + specifier: ^3.1.1 version: link:../../packages/integrations/mdx '@astrojs/tailwind': specifier: ^5.1.0 @@ -502,7 +502,7 @@ importers: specifier: ^1.6.4 version: 1.6.4 astro: - specifier: ^4.10.2 + specifier: ^4.10.3 version: link:../../packages/astro autoprefixer: specifier: ^10.4.19 @@ -520,7 +520,7 @@ importers: examples/with-vitest: dependencies: astro: - specifier: ^4.10.2 + specifier: ^4.10.3 version: link:../../packages/astro vitest: specifier: ^1.6.0 @@ -9498,7 +9498,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: