From 48d53094cdbbcd4363d6c77aac13161c5cde5064 Mon Sep 17 00:00:00 2001 From: "Houston (Bot)" <108291165+astrobot-houston@users.noreply.github.com> Date: Thu, 6 Jun 2024 08:02:22 -0700 Subject: [PATCH] [ci] release (#11186) Co-authored-by: github-actions[bot] --- .changeset/brave-pots-listen.md | 5 - .changeset/dull-lizards-jog.md | 5 - .changeset/fair-singers-reflect.md | 30 ----- .changeset/gold-mayflies-beam.md | 36 ----- .changeset/nervous-pens-retire.md | 7 - .changeset/poor-berries-occur.md | 70 ---------- .changeset/sweet-trainers-eat.md | 5 - .changeset/swift-phones-rhyme.md | 5 - .changeset/tidy-days-decide.md | 5 - examples/basics/package.json | 2 +- examples/blog/package.json | 4 +- 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 | 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 | 4 +- examples/starlog/package.json | 2 +- examples/toolbar-app/package.json | 2 +- examples/view-transitions/package.json | 2 +- 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 | 140 ++++++++++++++++++++ packages/astro/package.json | 2 +- packages/integrations/lit/CHANGELOG.md | 24 ++++ packages/integrations/lit/package.json | 2 +- packages/integrations/mdx/CHANGELOG.md | 24 ++++ packages/integrations/mdx/package.json | 2 +- packages/integrations/preact/CHANGELOG.md | 24 ++++ packages/integrations/preact/package.json | 2 +- packages/integrations/react/CHANGELOG.md | 24 ++++ packages/integrations/react/package.json | 2 +- packages/integrations/solid/CHANGELOG.md | 24 ++++ packages/integrations/solid/package.json | 2 +- packages/integrations/svelte/CHANGELOG.md | 24 ++++ packages/integrations/svelte/package.json | 2 +- packages/integrations/vue/CHANGELOG.md | 24 ++++ packages/integrations/vue/package.json | 2 +- pnpm-lock.yaml | 94 ++++++------- 55 files changed, 410 insertions(+), 270 deletions(-) delete mode 100644 .changeset/brave-pots-listen.md delete mode 100644 .changeset/dull-lizards-jog.md delete mode 100644 .changeset/fair-singers-reflect.md delete mode 100644 .changeset/gold-mayflies-beam.md delete mode 100644 .changeset/nervous-pens-retire.md delete mode 100644 .changeset/poor-berries-occur.md delete mode 100644 .changeset/sweet-trainers-eat.md delete mode 100644 .changeset/swift-phones-rhyme.md delete mode 100644 .changeset/tidy-days-decide.md diff --git a/.changeset/brave-pots-listen.md b/.changeset/brave-pots-listen.md deleted file mode 100644 index bc6d589636bc..000000000000 --- a/.changeset/brave-pots-listen.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"astro": patch ---- - -Improves DX by throwing the original `AstroUserError` when an error is thrown inside a `.mdx` file. diff --git a/.changeset/dull-lizards-jog.md b/.changeset/dull-lizards-jog.md deleted file mode 100644 index 9f5d7bdb2faa..000000000000 --- a/.changeset/dull-lizards-jog.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"astro": patch ---- - -Errors that are emitted during a rewrite are now bubbled up and shown to the user. A 404 response is not returned anymore. diff --git a/.changeset/fair-singers-reflect.md b/.changeset/fair-singers-reflect.md deleted file mode 100644 index e18ec42f9cf8..000000000000 --- a/.changeset/fair-singers-reflect.md +++ /dev/null @@ -1,30 +0,0 @@ ---- -"@astrojs/preact": minor -"@astrojs/svelte": minor -"@astrojs/react": minor -"@astrojs/solid-js": minor -"@astrojs/lit": minor -"@astrojs/mdx": minor -"@astrojs/vue": minor -"astro": patch ---- - -The integration now exposes a function called `getContainerRenderer`, that can be used inside the Container APIs to load the relative renderer. - -```js -import { experimental_AstroContainer as AstroContainer } from 'astro/container'; -import ReactWrapper from '../src/components/ReactWrapper.astro'; -import { loadRenderers } from "astro:container"; -import { getContainerRenderer } from "@astrojs/react"; - -test('ReactWrapper with react renderer', async () => { - const renderers = await loadRenderers([getContainerRenderer()]) - const container = await AstroContainer.create({ - renderers, - }); - const result = await container.renderToString(ReactWrapper); - - expect(result).toContain('Counter'); - expect(result).toContain('Count: 5'); -}); -``` diff --git a/.changeset/gold-mayflies-beam.md b/.changeset/gold-mayflies-beam.md deleted file mode 100644 index d500b30b41c6..000000000000 --- a/.changeset/gold-mayflies-beam.md +++ /dev/null @@ -1,36 +0,0 @@ ---- -"astro": patch ---- - -**BREAKING CHANGE to the experimental Container API only** - -Changes the **type** of the `renderers` option of the `AstroContainer::create` function and adds a dedicated function `loadRenderers()` to load the rendering scripts from renderer integration packages (`@astrojs/react`, `@astrojs/preact`, `@astrojs/solid-js`, `@astrojs/svelte`, `@astrojs/vue`, `@astrojs/lit`, and `@astrojs/mdx`). - -You no longer need to know the individual, direct file paths to the client and server rendering scripts for each renderer integration package. Now, there is a dedicated function to load the renderer from each package, which is available from `getContainerRenderer()`: - -```diff -import { experimental_AstroContainer as AstroContainer } from 'astro/container'; -import ReactWrapper from '../src/components/ReactWrapper.astro'; -import { loadRenderers } from "astro:container"; -import { getContainerRenderer } from "@astrojs/react"; - -test('ReactWrapper with react renderer', async () => { -+ const renderers = await loadRenderers([getContainerRenderer()]) -- const renderers = [ -- { -- name: '@astrojs/react', -- clientEntrypoint: '@astrojs/react/client.js', -- serverEntrypoint: '@astrojs/react/server.js', -- }, -- ]; - const container = await AstroContainer.create({ - renderers, - }); - const result = await container.renderToString(ReactWrapper); - - expect(result).toContain('Counter'); - expect(result).toContain('Count: 5'); -}); -``` - -The new `loadRenderers()` helper function is available from `astro:container`, a virtual module that can be used when running the Astro container inside `vite`. diff --git a/.changeset/nervous-pens-retire.md b/.changeset/nervous-pens-retire.md deleted file mode 100644 index 7815d37ad17d..000000000000 --- a/.changeset/nervous-pens-retire.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"astro": patch ---- - -It's not possible anymore to use `Astro.rewrite("/404")` inside static pages. This isn't counterproductive because Astro will end-up emitting a page that contains the HTML of 404 error page. - -It's still possible to use `Astro.rewrite("/404")` inside on-demand pages, or pages that opt-out from prerendering. diff --git a/.changeset/poor-berries-occur.md b/.changeset/poor-berries-occur.md deleted file mode 100644 index 49b3c75ecdd7..000000000000 --- a/.changeset/poor-berries-occur.md +++ /dev/null @@ -1,70 +0,0 @@ ---- -"astro": minor ---- - -Adds experimental support for the `astro:env` API. - -The `astro:env` API lets you configure a type-safe schema for your environment variables, and indicate whether they should be available on the server or the client. Import and use your defined variables from the appropriate `/client` or `/server` module: - -```astro ---- -import { PUBLIC_APP_ID } from "astro:env/client" -import { PUBLIC_API_URL, getSecret } from "astro:env/server" -const API_TOKEN = getSecret("API_TOKEN") - -const data = await fetch(`${PUBLIC_API_URL}/users`, { - method: "POST", - headers: { - "Content-Type": "application/json", - "Authorization": `Bearer ${API_TOKEN}` - }, - body: JSON.stringify({ appId: PUBLIC_APP_ID }) -}) ---- -``` - -To define the data type and properties of your environment variables, declare a schema in your Astro config in `experimental.env.schema`. The `envField` helper allows you define your variable as a string, number, or boolean and pass properties in an object: - -```js -// astro.config.mjs -import { defineConfig, envField } from "astro/config" - -export default defineConfig({ - experimental: { - env: { - schema: { - PUBLIC_API_URL: envField.string({ context: "client", access: "public", optional: true }), - PUBLIC_PORT: envField.number({ context: "server", access: "public", default: 4321 }), - API_SECRET: envField.string({ context: "server", access: "secret" }), - } - } - } -}) -``` - -There are three kinds of environment variables, determined by the combination of `context` (`client` or `server`) and `access` (`private` or `public`) settings defined in your [`env.schema`](#experimentalenvschema): - -- **Public client variables**: These variables end up in both your final client and server bundles, and can be accessed from both client and server through the `astro:env/client` module: - - ```js - import { PUBLIC_API_URL } from "astro:env/client" - ``` - -- **Public server variables**: These variables end up in your final server bundle and can be accessed on the server through the `astro:env/server` module: - - ```js - import { PUBLIC_PORT } from "astro:env/server" - ``` - -- **Secret server variables**: These variables are not part of your final bundle and can be accessed on the server through the `getSecret()` helper function available from the `astro:env/server` module: - - ```js - import { getSecret } from "astro:env/server" - - const API_SECRET = getSecret("API_SECRET") // typed - const SECRET_NOT_IN_SCHEMA = getSecret("SECRET_NOT_IN_SCHEMA") // string | undefined - ``` - -**Note:** Secret client variables are not supported because there is no safe way to send this data to the client. Therefore, it is not possible to configure both `context: "client"` and `access: "secret"` in your schema. - -To learn more, check out [the documentation](https://docs.astro.build/en/reference/configuration-reference/#experimentalenv). \ No newline at end of file diff --git a/.changeset/sweet-trainers-eat.md b/.changeset/sweet-trainers-eat.md deleted file mode 100644 index 7a094fc48d1c..000000000000 --- a/.changeset/sweet-trainers-eat.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"astro": patch ---- - -Fixes a case where `Astro.url` would be incorrect when having `build.format` set to `'preserve'` in the Astro config diff --git a/.changeset/swift-phones-rhyme.md b/.changeset/swift-phones-rhyme.md deleted file mode 100644 index 3675fac14df6..000000000000 --- a/.changeset/swift-phones-rhyme.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Fixes an issue where `Astro.rewrite` wasn't carrying over the body of a `Request` in on-demand pages. diff --git a/.changeset/tidy-days-decide.md b/.changeset/tidy-days-decide.md deleted file mode 100644 index 53398e057fc9..000000000000 --- a/.changeset/tidy-days-decide.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Fixes an issue where the function `getViteConfig` wasn't returning the correct merged Astro configuration diff --git a/examples/basics/package.json b/examples/basics/package.json index 49ba9ebfc312..58f9736c922c 100644 --- a/examples/basics/package.json +++ b/examples/basics/package.json @@ -11,6 +11,6 @@ "astro": "astro" }, "dependencies": { - "astro": "^4.9.3" + "astro": "^4.10.0" } } diff --git a/examples/blog/package.json b/examples/blog/package.json index ea21241249e9..165307c74a00 100644 --- a/examples/blog/package.json +++ b/examples/blog/package.json @@ -11,9 +11,9 @@ "astro": "astro" }, "dependencies": { - "@astrojs/mdx": "^3.0.1", + "@astrojs/mdx": "^3.1.0", "@astrojs/rss": "^4.0.6", "@astrojs/sitemap": "^3.1.5", - "astro": "^4.9.3" + "astro": "^4.10.0" } } diff --git a/examples/component/package.json b/examples/component/package.json index a070ba39eade..6e2198c01422 100644 --- a/examples/component/package.json +++ b/examples/component/package.json @@ -15,7 +15,7 @@ ], "scripts": {}, "devDependencies": { - "astro": "^4.9.3" + "astro": "^4.10.0" }, "peerDependencies": { "astro": "^4.0.0" diff --git a/examples/container-with-vitest/package.json b/examples/container-with-vitest/package.json index e8cb1536a96c..0af9d580a6b3 100644 --- a/examples/container-with-vitest/package.json +++ b/examples/container-with-vitest/package.json @@ -12,8 +12,8 @@ "test": "vitest run" }, "dependencies": { - "astro": "experimental--container", - "@astrojs/react": "experimental--container", + "astro": "^4.10.0", + "@astrojs/react": "^3.5.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 ae436efbd95c..ce91b78d5447 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.9.3" + "astro": "^4.10.0" } } diff --git a/examples/framework-lit/package.json b/examples/framework-lit/package.json index 2a3f5de0bfc9..6b3aa5fd74c0 100644 --- a/examples/framework-lit/package.json +++ b/examples/framework-lit/package.json @@ -11,9 +11,9 @@ "astro": "astro" }, "dependencies": { - "@astrojs/lit": "^4.1.0", + "@astrojs/lit": "^4.2.0", "@webcomponents/template-shadowroot": "^0.2.1", - "astro": "^4.9.3", + "astro": "^4.10.0", "lit": "^3.1.3" } } diff --git a/examples/framework-multiple/package.json b/examples/framework-multiple/package.json index c0dfa0d100ba..7444cc9dbf69 100644 --- a/examples/framework-multiple/package.json +++ b/examples/framework-multiple/package.json @@ -11,14 +11,14 @@ "astro": "astro" }, "dependencies": { - "@astrojs/preact": "^3.3.0", - "@astrojs/react": "^3.4.0", - "@astrojs/solid-js": "^4.2.0", - "@astrojs/svelte": "^5.4.0", - "@astrojs/vue": "^4.3.0", + "@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", "@types/react": "^18.3.3", "@types/react-dom": "^18.3.0", - "astro": "^4.9.3", + "astro": "^4.10.0", "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 e24ab9ecc9f9..1d889b1daf29 100644 --- a/examples/framework-preact/package.json +++ b/examples/framework-preact/package.json @@ -11,9 +11,9 @@ "astro": "astro" }, "dependencies": { - "@astrojs/preact": "^3.3.0", + "@astrojs/preact": "^3.4.0", "@preact/signals": "^1.2.3", - "astro": "^4.9.3", + "astro": "^4.10.0", "preact": "^10.22.0" } } diff --git a/examples/framework-react/package.json b/examples/framework-react/package.json index 903956effe86..478c9382d3f6 100644 --- a/examples/framework-react/package.json +++ b/examples/framework-react/package.json @@ -11,10 +11,10 @@ "astro": "astro" }, "dependencies": { - "@astrojs/react": "^3.4.0", + "@astrojs/react": "^3.5.0", "@types/react": "^18.3.3", "@types/react-dom": "^18.3.0", - "astro": "^4.9.3", + "astro": "^4.10.0", "react": "^18.3.1", "react-dom": "^18.3.1" } diff --git a/examples/framework-solid/package.json b/examples/framework-solid/package.json index 90025d189a73..71f6611333fb 100644 --- a/examples/framework-solid/package.json +++ b/examples/framework-solid/package.json @@ -11,8 +11,8 @@ "astro": "astro" }, "dependencies": { - "@astrojs/solid-js": "^4.2.0", - "astro": "^4.9.3", + "@astrojs/solid-js": "^4.3.0", + "astro": "^4.10.0", "solid-js": "^1.8.17" } } diff --git a/examples/framework-svelte/package.json b/examples/framework-svelte/package.json index da9437fbec9e..81c5086a6d5b 100644 --- a/examples/framework-svelte/package.json +++ b/examples/framework-svelte/package.json @@ -11,8 +11,8 @@ "astro": "astro" }, "dependencies": { - "@astrojs/svelte": "^5.4.0", - "astro": "^4.9.3", + "@astrojs/svelte": "^5.5.0", + "astro": "^4.10.0", "svelte": "^4.2.17" } } diff --git a/examples/framework-vue/package.json b/examples/framework-vue/package.json index aa001bd41b68..6809a6821243 100644 --- a/examples/framework-vue/package.json +++ b/examples/framework-vue/package.json @@ -11,8 +11,8 @@ "astro": "astro" }, "dependencies": { - "@astrojs/vue": "^4.3.0", - "astro": "^4.9.3", + "@astrojs/vue": "^4.4.0", + "astro": "^4.10.0", "vue": "^3.4.27" } } diff --git a/examples/hackernews/package.json b/examples/hackernews/package.json index 315ec73495da..b925f797e2ac 100644 --- a/examples/hackernews/package.json +++ b/examples/hackernews/package.json @@ -12,6 +12,6 @@ }, "dependencies": { "@astrojs/node": "^8.2.5", - "astro": "^4.9.3" + "astro": "^4.10.0" } } diff --git a/examples/integration/package.json b/examples/integration/package.json index 7fe8b5265623..457b15a9374c 100644 --- a/examples/integration/package.json +++ b/examples/integration/package.json @@ -15,7 +15,7 @@ ], "scripts": {}, "devDependencies": { - "astro": "^4.9.3" + "astro": "^4.10.0" }, "peerDependencies": { "astro": "^4.0.0" diff --git a/examples/middleware/package.json b/examples/middleware/package.json index e28abd8bd39a..630802b4b78d 100644 --- a/examples/middleware/package.json +++ b/examples/middleware/package.json @@ -13,7 +13,7 @@ }, "dependencies": { "@astrojs/node": "^8.2.5", - "astro": "^4.9.3", + "astro": "^4.10.0", "html-minifier": "^4.0.0" }, "devDependencies": { diff --git a/examples/minimal/package.json b/examples/minimal/package.json index 83287fd162d4..26364aeb6e98 100644 --- a/examples/minimal/package.json +++ b/examples/minimal/package.json @@ -11,6 +11,6 @@ "astro": "astro" }, "dependencies": { - "astro": "^4.9.3" + "astro": "^4.10.0" } } diff --git a/examples/non-html-pages/package.json b/examples/non-html-pages/package.json index 89a5a0c4c28e..0175b0e461ee 100644 --- a/examples/non-html-pages/package.json +++ b/examples/non-html-pages/package.json @@ -11,6 +11,6 @@ "astro": "astro" }, "dependencies": { - "astro": "^4.9.3" + "astro": "^4.10.0" } } diff --git a/examples/portfolio/package.json b/examples/portfolio/package.json index 4a9fc19ffff2..8d4596277d82 100644 --- a/examples/portfolio/package.json +++ b/examples/portfolio/package.json @@ -11,6 +11,6 @@ "astro": "astro" }, "dependencies": { - "astro": "^4.9.3" + "astro": "^4.10.0" } } diff --git a/examples/ssr/package.json b/examples/ssr/package.json index 101d8bf41056..3dd8c20a3c7b 100644 --- a/examples/ssr/package.json +++ b/examples/ssr/package.json @@ -13,8 +13,8 @@ }, "dependencies": { "@astrojs/node": "^8.2.5", - "@astrojs/svelte": "^5.4.0", - "astro": "^4.9.3", + "@astrojs/svelte": "^5.5.0", + "astro": "^4.10.0", "svelte": "^4.2.17" } } diff --git a/examples/starlog/package.json b/examples/starlog/package.json index 9ecdb568f2a6..a13f6c3f6cdb 100644 --- a/examples/starlog/package.json +++ b/examples/starlog/package.json @@ -10,7 +10,7 @@ "astro": "astro" }, "dependencies": { - "astro": "^4.9.3", + "astro": "^4.10.0", "sass": "^1.77.3", "sharp": "^0.33.3" } diff --git a/examples/toolbar-app/package.json b/examples/toolbar-app/package.json index 664491e50ddf..5390ad6f8c5c 100644 --- a/examples/toolbar-app/package.json +++ b/examples/toolbar-app/package.json @@ -15,6 +15,6 @@ "./app": "./dist/app.js" }, "devDependencies": { - "astro": "^4.9.3" + "astro": "^4.10.0" } } diff --git a/examples/view-transitions/package.json b/examples/view-transitions/package.json index fb10ef7ac004..9f58bf4aa276 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.2.5", - "astro": "^4.9.3" + "astro": "^4.10.0" } } diff --git a/examples/with-markdoc/package.json b/examples/with-markdoc/package.json index 0bd9241cd25f..642796a2e566 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.9.3" + "astro": "^4.10.0" } } diff --git a/examples/with-markdown-plugins/package.json b/examples/with-markdown-plugins/package.json index 8d68ac1a72fa..8ddb5d75ded1 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.9.3", + "astro": "^4.10.0", "hast-util-select": "^6.0.2", "rehype-autolink-headings": "^7.1.0", "rehype-slug": "^6.0.0", diff --git a/examples/with-markdown-shiki/package.json b/examples/with-markdown-shiki/package.json index ba442d30596f..606682919d53 100644 --- a/examples/with-markdown-shiki/package.json +++ b/examples/with-markdown-shiki/package.json @@ -11,6 +11,6 @@ "astro": "astro" }, "dependencies": { - "astro": "^4.9.3" + "astro": "^4.10.0" } } diff --git a/examples/with-mdx/package.json b/examples/with-mdx/package.json index 25b387a71e09..7811abe1136f 100644 --- a/examples/with-mdx/package.json +++ b/examples/with-mdx/package.json @@ -11,9 +11,9 @@ "astro": "astro" }, "dependencies": { - "@astrojs/mdx": "^3.0.1", - "@astrojs/preact": "^3.3.0", - "astro": "^4.9.3", + "@astrojs/mdx": "^3.1.0", + "@astrojs/preact": "^3.4.0", + "astro": "^4.10.0", "preact": "^10.22.0" } } diff --git a/examples/with-nanostores/package.json b/examples/with-nanostores/package.json index 147fbe0ca709..adae5b01d67a 100644 --- a/examples/with-nanostores/package.json +++ b/examples/with-nanostores/package.json @@ -11,9 +11,9 @@ "astro": "astro" }, "dependencies": { - "@astrojs/preact": "^3.3.0", + "@astrojs/preact": "^3.4.0", "@nanostores/preact": "^0.5.1", - "astro": "^4.9.3", + "astro": "^4.10.0", "nanostores": "^0.10.3", "preact": "^10.22.0" } diff --git a/examples/with-tailwindcss/package.json b/examples/with-tailwindcss/package.json index 471147a0bacb..19e695fe9230 100644 --- a/examples/with-tailwindcss/package.json +++ b/examples/with-tailwindcss/package.json @@ -11,10 +11,10 @@ "astro": "astro" }, "dependencies": { - "@astrojs/mdx": "^3.0.1", + "@astrojs/mdx": "^3.1.0", "@astrojs/tailwind": "^5.1.0", "@types/canvas-confetti": "^1.6.4", - "astro": "^4.9.3", + "astro": "^4.10.0", "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 e04fcc3db444..4c92bae80d86 100644 --- a/examples/with-vitest/package.json +++ b/examples/with-vitest/package.json @@ -12,7 +12,7 @@ "test": "vitest" }, "dependencies": { - "astro": "^4.9.3", + "astro": "^4.10.0", "vitest": "^1.6.0" } } diff --git a/packages/astro/CHANGELOG.md b/packages/astro/CHANGELOG.md index c212b66367f2..c8e2d8cf18db 100644 --- a/packages/astro/CHANGELOG.md +++ b/packages/astro/CHANGELOG.md @@ -1,5 +1,145 @@ # astro +## 4.10.0 + +### Minor Changes + +- [#10974](https://github.com/withastro/astro/pull/10974) [`2668ef9`](https://github.com/withastro/astro/commit/2668ef984104574f25f29ef75e2572a0745d1666) Thanks [@florian-lefebvre](https://github.com/florian-lefebvre)! - Adds experimental support for the `astro:env` API. + + The `astro:env` API lets you configure a type-safe schema for your environment variables, and indicate whether they should be available on the server or the client. Import and use your defined variables from the appropriate `/client` or `/server` module: + + ```astro + --- + import { PUBLIC_APP_ID } from 'astro:env/client'; + import { PUBLIC_API_URL, getSecret } from 'astro:env/server'; + const API_TOKEN = getSecret('API_TOKEN'); + + const data = await fetch(`${PUBLIC_API_URL}/users`, { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + Authorization: `Bearer ${API_TOKEN}`, + }, + body: JSON.stringify({ appId: PUBLIC_APP_ID }), + }); + --- + ``` + + To define the data type and properties of your environment variables, declare a schema in your Astro config in `experimental.env.schema`. The `envField` helper allows you define your variable as a string, number, or boolean and pass properties in an object: + + ```js + // astro.config.mjs + import { defineConfig, envField } from 'astro/config'; + + export default defineConfig({ + experimental: { + env: { + schema: { + PUBLIC_API_URL: envField.string({ context: 'client', access: 'public', optional: true }), + PUBLIC_PORT: envField.number({ context: 'server', access: 'public', default: 4321 }), + API_SECRET: envField.string({ context: 'server', access: 'secret' }), + }, + }, + }, + }); + ``` + + There are three kinds of environment variables, determined by the combination of `context` (`client` or `server`) and `access` (`private` or `public`) settings defined in your [`env.schema`](#experimentalenvschema): + + - **Public client variables**: These variables end up in both your final client and server bundles, and can be accessed from both client and server through the `astro:env/client` module: + + ```js + import { PUBLIC_API_URL } from 'astro:env/client'; + ``` + + - **Public server variables**: These variables end up in your final server bundle and can be accessed on the server through the `astro:env/server` module: + + ```js + import { PUBLIC_PORT } from 'astro:env/server'; + ``` + + - **Secret server variables**: These variables are not part of your final bundle and can be accessed on the server through the `getSecret()` helper function available from the `astro:env/server` module: + + ```js + import { getSecret } from 'astro:env/server'; + + const API_SECRET = getSecret('API_SECRET'); // typed + const SECRET_NOT_IN_SCHEMA = getSecret('SECRET_NOT_IN_SCHEMA'); // string | undefined + ``` + + **Note:** Secret client variables are not supported because there is no safe way to send this data to the client. Therefore, it is not possible to configure both `context: "client"` and `access: "secret"` in your schema. + + To learn more, check out [the documentation](https://docs.astro.build/en/reference/configuration-reference/#experimentalenv). + +### Patch Changes + +- [#11192](https://github.com/withastro/astro/pull/11192) [`58b10a0`](https://github.com/withastro/astro/commit/58b10a073192030a251cff8ad706ab5b015180c9) Thanks [@liruifengv](https://github.com/liruifengv)! - Improves DX by throwing the original `AstroUserError` when an error is thrown inside a `.mdx` file. + +- [#11136](https://github.com/withastro/astro/pull/11136) [`35ef53c`](https://github.com/withastro/astro/commit/35ef53c0897c0d360efc086a71c5f4406721d2fe) Thanks [@ematipico](https://github.com/ematipico)! - Errors that are emitted during a rewrite are now bubbled up and shown to the user. A 404 response is not returned anymore. + +- [#11144](https://github.com/withastro/astro/pull/11144) [`803dd80`](https://github.com/withastro/astro/commit/803dd8061df02138b4928442bcb76e77dcf6f5e7) Thanks [@ematipico](https://github.com/ematipico)! - The integration now exposes a function called `getContainerRenderer`, that can be used inside the Container APIs to load the relative renderer. + + ```js + import { experimental_AstroContainer as AstroContainer } from 'astro/container'; + import ReactWrapper from '../src/components/ReactWrapper.astro'; + import { loadRenderers } from 'astro:container'; + import { getContainerRenderer } from '@astrojs/react'; + + test('ReactWrapper with react renderer', async () => { + const renderers = await loadRenderers([getContainerRenderer()]); + const container = await AstroContainer.create({ + renderers, + }); + const result = await container.renderToString(ReactWrapper); + + expect(result).toContain('Counter'); + expect(result).toContain('Count: 5'); + }); + ``` + +- [#11144](https://github.com/withastro/astro/pull/11144) [`803dd80`](https://github.com/withastro/astro/commit/803dd8061df02138b4928442bcb76e77dcf6f5e7) Thanks [@ematipico](https://github.com/ematipico)! - **BREAKING CHANGE to the experimental Container API only** + + Changes the **type** of the `renderers` option of the `AstroContainer::create` function and adds a dedicated function `loadRenderers()` to load the rendering scripts from renderer integration packages (`@astrojs/react`, `@astrojs/preact`, `@astrojs/solid-js`, `@astrojs/svelte`, `@astrojs/vue`, `@astrojs/lit`, and `@astrojs/mdx`). + + You no longer need to know the individual, direct file paths to the client and server rendering scripts for each renderer integration package. Now, there is a dedicated function to load the renderer from each package, which is available from `getContainerRenderer()`: + + ```diff + import { experimental_AstroContainer as AstroContainer } from 'astro/container'; + import ReactWrapper from '../src/components/ReactWrapper.astro'; + import { loadRenderers } from "astro:container"; + import { getContainerRenderer } from "@astrojs/react"; + + test('ReactWrapper with react renderer', async () => { + + const renderers = await loadRenderers([getContainerRenderer()]) + - const renderers = [ + - { + - name: '@astrojs/react', + - clientEntrypoint: '@astrojs/react/client.js', + - serverEntrypoint: '@astrojs/react/server.js', + - }, + - ]; + const container = await AstroContainer.create({ + renderers, + }); + const result = await container.renderToString(ReactWrapper); + + expect(result).toContain('Counter'); + expect(result).toContain('Count: 5'); + }); + ``` + + The new `loadRenderers()` helper function is available from `astro:container`, a virtual module that can be used when running the Astro container inside `vite`. + +- [#11136](https://github.com/withastro/astro/pull/11136) [`35ef53c`](https://github.com/withastro/astro/commit/35ef53c0897c0d360efc086a71c5f4406721d2fe) Thanks [@ematipico](https://github.com/ematipico)! - It's not possible anymore to use `Astro.rewrite("/404")` inside static pages. This isn't counterproductive because Astro will end-up emitting a page that contains the HTML of 404 error page. + + It's still possible to use `Astro.rewrite("/404")` inside on-demand pages, or pages that opt-out from prerendering. + +- [#11191](https://github.com/withastro/astro/pull/11191) [`6e29a17`](https://github.com/withastro/astro/commit/6e29a172f153d15fac07320488fae01dece71748) Thanks [@matthewp](https://github.com/matthewp)! - Fixes a case where `Astro.url` would be incorrect when having `build.format` set to `'preserve'` in the Astro config + +- [#11182](https://github.com/withastro/astro/pull/11182) [`40b0b4d`](https://github.com/withastro/astro/commit/40b0b4d1e4ef1aa95d5e9011652444b855ab0b9c) Thanks [@ematipico](https://github.com/ematipico)! - Fixes an issue where `Astro.rewrite` wasn't carrying over the body of a `Request` in on-demand pages. + +- [#11194](https://github.com/withastro/astro/pull/11194) [`97fbe93`](https://github.com/withastro/astro/commit/97fbe938a9b07d52d61011da4bd5a8b5ad85a700) Thanks [@ematipico](https://github.com/ematipico)! - Fixes an issue where the function `getViteConfig` wasn't returning the correct merged Astro configuration + ## 4.9.3 ### Patch Changes diff --git a/packages/astro/package.json b/packages/astro/package.json index aaace9469906..fca84cc51bd5 100644 --- a/packages/astro/package.json +++ b/packages/astro/package.json @@ -1,6 +1,6 @@ { "name": "astro", - "version": "4.9.3", + "version": "4.10.0", "description": "Astro is a modern site builder with web best practices, performance, and DX front-of-mind.", "type": "module", "author": "withastro", diff --git a/packages/integrations/lit/CHANGELOG.md b/packages/integrations/lit/CHANGELOG.md index 4f3dced399cb..e133dde5df26 100644 --- a/packages/integrations/lit/CHANGELOG.md +++ b/packages/integrations/lit/CHANGELOG.md @@ -1,5 +1,29 @@ # @astrojs/lit +## 4.2.0 + +### Minor Changes + +- [#11144](https://github.com/withastro/astro/pull/11144) [`803dd80`](https://github.com/withastro/astro/commit/803dd8061df02138b4928442bcb76e77dcf6f5e7) Thanks [@ematipico](https://github.com/ematipico)! - The integration now exposes a function called `getContainerRenderer`, that can be used inside the Container APIs to load the relative renderer. + + ```js + import { experimental_AstroContainer as AstroContainer } from 'astro/container'; + import ReactWrapper from '../src/components/ReactWrapper.astro'; + import { loadRenderers } from 'astro:container'; + import { getContainerRenderer } from '@astrojs/react'; + + test('ReactWrapper with react renderer', async () => { + const renderers = await loadRenderers([getContainerRenderer()]); + const container = await AstroContainer.create({ + renderers, + }); + const result = await container.renderToString(ReactWrapper); + + expect(result).toContain('Counter'); + expect(result).toContain('Count: 5'); + }); + ``` + ## 4.1.0 ### Minor Changes diff --git a/packages/integrations/lit/package.json b/packages/integrations/lit/package.json index 51e38a690669..fc6444bada70 100644 --- a/packages/integrations/lit/package.json +++ b/packages/integrations/lit/package.json @@ -1,6 +1,6 @@ { "name": "@astrojs/lit", - "version": "4.1.0", + "version": "4.2.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 060c391bdea3..d2b38eda2a35 100644 --- a/packages/integrations/mdx/CHANGELOG.md +++ b/packages/integrations/mdx/CHANGELOG.md @@ -1,5 +1,29 @@ # @astrojs/mdx +## 3.1.0 + +### Minor Changes + +- [#11144](https://github.com/withastro/astro/pull/11144) [`803dd80`](https://github.com/withastro/astro/commit/803dd8061df02138b4928442bcb76e77dcf6f5e7) Thanks [@ematipico](https://github.com/ematipico)! - The integration now exposes a function called `getContainerRenderer`, that can be used inside the Container APIs to load the relative renderer. + + ```js + import { experimental_AstroContainer as AstroContainer } from 'astro/container'; + import ReactWrapper from '../src/components/ReactWrapper.astro'; + import { loadRenderers } from 'astro:container'; + import { getContainerRenderer } from '@astrojs/react'; + + test('ReactWrapper with react renderer', async () => { + const renderers = await loadRenderers([getContainerRenderer()]); + const container = await AstroContainer.create({ + renderers, + }); + const result = await container.renderToString(ReactWrapper); + + expect(result).toContain('Counter'); + expect(result).toContain('Count: 5'); + }); + ``` + ## 3.0.1 ### Patch Changes diff --git a/packages/integrations/mdx/package.json b/packages/integrations/mdx/package.json index 6c358b9f4ea6..2ce5724238e8 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.0.1", + "version": "3.1.0", "type": "module", "types": "./dist/index.d.ts", "author": "withastro", diff --git a/packages/integrations/preact/CHANGELOG.md b/packages/integrations/preact/CHANGELOG.md index 9c9298db45c7..45100dd44e28 100644 --- a/packages/integrations/preact/CHANGELOG.md +++ b/packages/integrations/preact/CHANGELOG.md @@ -1,5 +1,29 @@ # @astrojs/preact +## 3.4.0 + +### Minor Changes + +- [#11144](https://github.com/withastro/astro/pull/11144) [`803dd80`](https://github.com/withastro/astro/commit/803dd8061df02138b4928442bcb76e77dcf6f5e7) Thanks [@ematipico](https://github.com/ematipico)! - The integration now exposes a function called `getContainerRenderer`, that can be used inside the Container APIs to load the relative renderer. + + ```js + import { experimental_AstroContainer as AstroContainer } from 'astro/container'; + import ReactWrapper from '../src/components/ReactWrapper.astro'; + import { loadRenderers } from 'astro:container'; + import { getContainerRenderer } from '@astrojs/react'; + + test('ReactWrapper with react renderer', async () => { + const renderers = await loadRenderers([getContainerRenderer()]); + const container = await AstroContainer.create({ + renderers, + }); + const result = await container.renderToString(ReactWrapper); + + expect(result).toContain('Counter'); + expect(result).toContain('Count: 5'); + }); + ``` + ## 3.3.0 ### Minor Changes diff --git a/packages/integrations/preact/package.json b/packages/integrations/preact/package.json index 951df6a4a397..917351c7537f 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.3.0", + "version": "3.4.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 707cbe033e2c..0b76191ca6c4 100644 --- a/packages/integrations/react/CHANGELOG.md +++ b/packages/integrations/react/CHANGELOG.md @@ -1,5 +1,29 @@ # @astrojs/react +## 3.5.0 + +### Minor Changes + +- [#11144](https://github.com/withastro/astro/pull/11144) [`803dd80`](https://github.com/withastro/astro/commit/803dd8061df02138b4928442bcb76e77dcf6f5e7) Thanks [@ematipico](https://github.com/ematipico)! - The integration now exposes a function called `getContainerRenderer`, that can be used inside the Container APIs to load the relative renderer. + + ```js + import { experimental_AstroContainer as AstroContainer } from 'astro/container'; + import ReactWrapper from '../src/components/ReactWrapper.astro'; + import { loadRenderers } from 'astro:container'; + import { getContainerRenderer } from '@astrojs/react'; + + test('ReactWrapper with react renderer', async () => { + const renderers = await loadRenderers([getContainerRenderer()]); + const container = await AstroContainer.create({ + renderers, + }); + const result = await container.renderToString(ReactWrapper); + + expect(result).toContain('Counter'); + expect(result).toContain('Count: 5'); + }); + ``` + ## 3.4.0 ### Minor Changes diff --git a/packages/integrations/react/package.json b/packages/integrations/react/package.json index f62b6ebe09ab..b6dc82f104c6 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.4.0", + "version": "3.5.0", "type": "module", "types": "./dist/index.d.ts", "author": "withastro", diff --git a/packages/integrations/solid/CHANGELOG.md b/packages/integrations/solid/CHANGELOG.md index 5643e2163b2f..5ba28e4c8611 100644 --- a/packages/integrations/solid/CHANGELOG.md +++ b/packages/integrations/solid/CHANGELOG.md @@ -1,5 +1,29 @@ # @astrojs/solid-js +## 4.3.0 + +### Minor Changes + +- [#11144](https://github.com/withastro/astro/pull/11144) [`803dd80`](https://github.com/withastro/astro/commit/803dd8061df02138b4928442bcb76e77dcf6f5e7) Thanks [@ematipico](https://github.com/ematipico)! - The integration now exposes a function called `getContainerRenderer`, that can be used inside the Container APIs to load the relative renderer. + + ```js + import { experimental_AstroContainer as AstroContainer } from 'astro/container'; + import ReactWrapper from '../src/components/ReactWrapper.astro'; + import { loadRenderers } from 'astro:container'; + import { getContainerRenderer } from '@astrojs/react'; + + test('ReactWrapper with react renderer', async () => { + const renderers = await loadRenderers([getContainerRenderer()]); + const container = await AstroContainer.create({ + renderers, + }); + const result = await container.renderToString(ReactWrapper); + + expect(result).toContain('Counter'); + expect(result).toContain('Count: 5'); + }); + ``` + ## 4.2.0 ### Minor Changes diff --git a/packages/integrations/solid/package.json b/packages/integrations/solid/package.json index c3add4f2d2bf..71519582a97a 100644 --- a/packages/integrations/solid/package.json +++ b/packages/integrations/solid/package.json @@ -1,6 +1,6 @@ { "name": "@astrojs/solid-js", - "version": "4.2.0", + "version": "4.3.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 1a033facea34..c68d06228927 100644 --- a/packages/integrations/svelte/CHANGELOG.md +++ b/packages/integrations/svelte/CHANGELOG.md @@ -1,5 +1,29 @@ # @astrojs/svelte +## 5.5.0 + +### Minor Changes + +- [#11144](https://github.com/withastro/astro/pull/11144) [`803dd80`](https://github.com/withastro/astro/commit/803dd8061df02138b4928442bcb76e77dcf6f5e7) Thanks [@ematipico](https://github.com/ematipico)! - The integration now exposes a function called `getContainerRenderer`, that can be used inside the Container APIs to load the relative renderer. + + ```js + import { experimental_AstroContainer as AstroContainer } from 'astro/container'; + import ReactWrapper from '../src/components/ReactWrapper.astro'; + import { loadRenderers } from 'astro:container'; + import { getContainerRenderer } from '@astrojs/react'; + + test('ReactWrapper with react renderer', async () => { + const renderers = await loadRenderers([getContainerRenderer()]); + const container = await AstroContainer.create({ + renderers, + }); + const result = await container.renderToString(ReactWrapper); + + expect(result).toContain('Counter'); + expect(result).toContain('Count: 5'); + }); + ``` + ## 5.4.0 ### Minor Changes diff --git a/packages/integrations/svelte/package.json b/packages/integrations/svelte/package.json index b654dcef9536..8295b6ed928a 100644 --- a/packages/integrations/svelte/package.json +++ b/packages/integrations/svelte/package.json @@ -1,6 +1,6 @@ { "name": "@astrojs/svelte", - "version": "5.4.0", + "version": "5.5.0", "description": "Use Svelte components within Astro", "type": "module", "types": "./dist/index.d.ts", diff --git a/packages/integrations/vue/CHANGELOG.md b/packages/integrations/vue/CHANGELOG.md index acef2a55e91d..d509141d18ea 100644 --- a/packages/integrations/vue/CHANGELOG.md +++ b/packages/integrations/vue/CHANGELOG.md @@ -1,5 +1,29 @@ # @astrojs/vue +## 4.4.0 + +### Minor Changes + +- [#11144](https://github.com/withastro/astro/pull/11144) [`803dd80`](https://github.com/withastro/astro/commit/803dd8061df02138b4928442bcb76e77dcf6f5e7) Thanks [@ematipico](https://github.com/ematipico)! - The integration now exposes a function called `getContainerRenderer`, that can be used inside the Container APIs to load the relative renderer. + + ```js + import { experimental_AstroContainer as AstroContainer } from 'astro/container'; + import ReactWrapper from '../src/components/ReactWrapper.astro'; + import { loadRenderers } from 'astro:container'; + import { getContainerRenderer } from '@astrojs/react'; + + test('ReactWrapper with react renderer', async () => { + const renderers = await loadRenderers([getContainerRenderer()]); + const container = await AstroContainer.create({ + renderers, + }); + const result = await container.renderToString(ReactWrapper); + + expect(result).toContain('Counter'); + expect(result).toContain('Count: 5'); + }); + ``` + ## 4.3.0 ### Minor Changes diff --git a/packages/integrations/vue/package.json b/packages/integrations/vue/package.json index f38d767a94e8..73dc6376ce30 100644 --- a/packages/integrations/vue/package.json +++ b/packages/integrations/vue/package.json @@ -1,6 +1,6 @@ { "name": "@astrojs/vue", - "version": "4.3.0", + "version": "4.4.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 02bc89d0d683..0dd872519d86 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -128,13 +128,13 @@ importers: examples/basics: dependencies: astro: - specifier: ^4.9.3 + specifier: ^4.10.0 version: link:../../packages/astro examples/blog: dependencies: '@astrojs/mdx': - specifier: ^3.0.1 + specifier: ^3.1.0 version: link:../../packages/integrations/mdx '@astrojs/rss': specifier: ^4.0.6 @@ -143,22 +143,22 @@ importers: specifier: ^3.1.5 version: link:../../packages/integrations/sitemap astro: - specifier: ^4.9.3 + specifier: ^4.10.0 version: link:../../packages/astro examples/component: devDependencies: astro: - specifier: ^4.9.3 + specifier: ^4.10.0 version: link:../../packages/astro examples/container-with-vitest: dependencies: '@astrojs/react': - specifier: experimental--container + specifier: ^3.5.0 version: link:../../packages/integrations/react astro: - specifier: experimental--container + specifier: ^4.10.0 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.9.3 + specifier: ^4.10.0 version: link:../../packages/astro examples/framework-lit: dependencies: '@astrojs/lit': - specifier: ^4.1.0 + specifier: ^4.2.0 version: link:../../packages/integrations/lit '@webcomponents/template-shadowroot': specifier: ^0.2.1 version: 0.2.1 astro: - specifier: ^4.9.3 + specifier: ^4.10.0 version: link:../../packages/astro lit: specifier: ^3.1.3 @@ -210,19 +210,19 @@ importers: examples/framework-multiple: dependencies: '@astrojs/preact': - specifier: ^3.3.0 + specifier: ^3.4.0 version: link:../../packages/integrations/preact '@astrojs/react': - specifier: ^3.4.0 + specifier: ^3.5.0 version: link:../../packages/integrations/react '@astrojs/solid-js': - specifier: ^4.2.0 + specifier: ^4.3.0 version: link:../../packages/integrations/solid '@astrojs/svelte': - specifier: ^5.4.0 + specifier: ^5.5.0 version: link:../../packages/integrations/svelte '@astrojs/vue': - specifier: ^4.3.0 + specifier: ^4.4.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.9.3 + specifier: ^4.10.0 version: link:../../packages/astro preact: specifier: ^10.22.0 @@ -255,13 +255,13 @@ importers: examples/framework-preact: dependencies: '@astrojs/preact': - specifier: ^3.3.0 + specifier: ^3.4.0 version: link:../../packages/integrations/preact '@preact/signals': specifier: ^1.2.3 version: 1.2.3(preact@10.22.0) astro: - specifier: ^4.9.3 + specifier: ^4.10.0 version: link:../../packages/astro preact: specifier: ^10.22.0 @@ -270,7 +270,7 @@ importers: examples/framework-react: dependencies: '@astrojs/react': - specifier: ^3.4.0 + specifier: ^3.5.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.9.3 + specifier: ^4.10.0 version: link:../../packages/astro react: specifier: ^18.3.1 @@ -291,10 +291,10 @@ importers: examples/framework-solid: dependencies: '@astrojs/solid-js': - specifier: ^4.2.0 + specifier: ^4.3.0 version: link:../../packages/integrations/solid astro: - specifier: ^4.9.3 + specifier: ^4.10.0 version: link:../../packages/astro solid-js: specifier: ^1.8.17 @@ -303,10 +303,10 @@ importers: examples/framework-svelte: dependencies: '@astrojs/svelte': - specifier: ^5.4.0 + specifier: ^5.5.0 version: link:../../packages/integrations/svelte astro: - specifier: ^4.9.3 + specifier: ^4.10.0 version: link:../../packages/astro svelte: specifier: ^4.2.17 @@ -315,10 +315,10 @@ importers: examples/framework-vue: dependencies: '@astrojs/vue': - specifier: ^4.3.0 + specifier: ^4.4.0 version: link:../../packages/integrations/vue astro: - specifier: ^4.9.3 + specifier: ^4.10.0 version: link:../../packages/astro vue: specifier: ^3.4.27 @@ -330,13 +330,13 @@ importers: specifier: ^8.2.5 version: link:../../packages/integrations/node astro: - specifier: ^4.9.3 + specifier: ^4.10.0 version: link:../../packages/astro examples/integration: devDependencies: astro: - specifier: ^4.9.3 + specifier: ^4.10.0 version: link:../../packages/astro examples/middleware: @@ -345,7 +345,7 @@ importers: specifier: ^8.2.5 version: link:../../packages/integrations/node astro: - specifier: ^4.9.3 + specifier: ^4.10.0 version: link:../../packages/astro html-minifier: specifier: ^4.0.0 @@ -358,19 +358,19 @@ importers: examples/minimal: dependencies: astro: - specifier: ^4.9.3 + specifier: ^4.10.0 version: link:../../packages/astro examples/non-html-pages: dependencies: astro: - specifier: ^4.9.3 + specifier: ^4.10.0 version: link:../../packages/astro examples/portfolio: dependencies: astro: - specifier: ^4.9.3 + specifier: ^4.10.0 version: link:../../packages/astro examples/ssr: @@ -379,10 +379,10 @@ importers: specifier: ^8.2.5 version: link:../../packages/integrations/node '@astrojs/svelte': - specifier: ^5.4.0 + specifier: ^5.5.0 version: link:../../packages/integrations/svelte astro: - specifier: ^4.9.3 + specifier: ^4.10.0 version: link:../../packages/astro svelte: specifier: ^4.2.17 @@ -391,7 +391,7 @@ importers: examples/starlog: dependencies: astro: - specifier: ^4.9.3 + specifier: ^4.10.0 version: link:../../packages/astro sass: specifier: ^1.77.3 @@ -403,7 +403,7 @@ importers: examples/toolbar-app: devDependencies: astro: - specifier: ^4.9.3 + specifier: ^4.10.0 version: link:../../packages/astro examples/view-transitions: @@ -415,7 +415,7 @@ importers: specifier: ^5.1.0 version: link:../../packages/integrations/tailwind astro: - specifier: ^4.9.3 + specifier: ^4.10.0 version: link:../../packages/astro examples/with-markdoc: @@ -424,7 +424,7 @@ importers: specifier: ^0.11.0 version: link:../../packages/integrations/markdoc astro: - specifier: ^4.9.3 + specifier: ^4.10.0 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.9.3 + specifier: ^4.10.0 version: link:../../packages/astro hast-util-select: specifier: ^6.0.2 @@ -454,19 +454,19 @@ importers: examples/with-markdown-shiki: dependencies: astro: - specifier: ^4.9.3 + specifier: ^4.10.0 version: link:../../packages/astro examples/with-mdx: dependencies: '@astrojs/mdx': - specifier: ^3.0.1 + specifier: ^3.1.0 version: link:../../packages/integrations/mdx '@astrojs/preact': - specifier: ^3.3.0 + specifier: ^3.4.0 version: link:../../packages/integrations/preact astro: - specifier: ^4.9.3 + specifier: ^4.10.0 version: link:../../packages/astro preact: specifier: ^10.22.0 @@ -475,13 +475,13 @@ importers: examples/with-nanostores: dependencies: '@astrojs/preact': - specifier: ^3.3.0 + specifier: ^3.4.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.9.3 + specifier: ^4.10.0 version: link:../../packages/astro nanostores: specifier: ^0.10.3 @@ -493,7 +493,7 @@ importers: examples/with-tailwindcss: dependencies: '@astrojs/mdx': - specifier: ^3.0.1 + specifier: ^3.1.0 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.9.3 + specifier: ^4.10.0 version: link:../../packages/astro autoprefixer: specifier: ^10.4.19 @@ -520,7 +520,7 @@ importers: examples/with-vitest: dependencies: astro: - specifier: ^4.9.3 + specifier: ^4.10.0 version: link:../../packages/astro vitest: specifier: ^1.6.0