From af108e4b4a69138eb6bc3de81c015a2e3d9437a5 Mon Sep 17 00:00:00 2001 From: "Houston (Bot)" <108291165+astrobot-houston@users.noreply.github.com> Date: Tue, 28 Mar 2023 10:17:46 -0700 Subject: [PATCH] [ci] release (#6652) Co-authored-by: github-actions[bot] --- .changeset/bright-apricots-kiss.md | 5 -- .changeset/chilly-dingos-eat.md | 5 -- .changeset/flat-baboons-nail.md | 5 -- .changeset/funny-pets-walk.md | 5 -- .changeset/hip-avocados-grow.md | 5 -- .changeset/lovely-owls-sniff.md | 6 -- .changeset/metal-cameras-bow.md | 42 -------------- .changeset/perfect-rabbits-repair.md | 5 -- .changeset/small-knives-sparkle.md | 5 -- .changeset/thick-penguins-turn.md | 5 -- examples/basics/package.json | 2 +- examples/blog/package.json | 2 +- examples/component/package.json | 2 +- examples/deno/package.json | 2 +- examples/docs/package.json | 2 +- examples/framework-alpine/package.json | 2 +- examples/framework-lit/package.json | 2 +- examples/framework-multiple/package.json | 2 +- examples/framework-preact/package.json | 2 +- examples/framework-react/package.json | 2 +- examples/framework-solid/package.json | 2 +- examples/framework-svelte/package.json | 2 +- examples/framework-vue/package.json | 2 +- examples/hackernews/package.json | 2 +- examples/integration/package.json | 2 +- examples/minimal/package.json | 2 +- examples/non-html-pages/package.json | 2 +- examples/portfolio/package.json | 2 +- examples/ssr/package.json | 2 +- examples/with-markdoc/package.json | 4 +- examples/with-markdown-plugins/package.json | 2 +- examples/with-markdown-shiki/package.json | 2 +- examples/with-mdx/package.json | 2 +- examples/with-nanostores/package.json | 2 +- examples/with-tailwindcss/package.json | 2 +- examples/with-vite-plugin-pwa/package.json | 2 +- examples/with-vitest/package.json | 2 +- packages/astro/CHANGELOG.md | 56 +++++++++++++++++++ packages/astro/package.json | 2 +- packages/create-astro/CHANGELOG.md | 6 ++ packages/create-astro/package.json | 2 +- packages/integrations/cloudflare/package.json | 2 +- packages/integrations/deno/package.json | 2 +- packages/integrations/image/CHANGELOG.md | 9 +++ packages/integrations/image/package.json | 4 +- packages/integrations/markdoc/CHANGELOG.md | 47 ++++++++++++++++ packages/integrations/markdoc/package.json | 4 +- packages/integrations/netlify/package.json | 2 +- packages/integrations/node/package.json | 2 +- packages/integrations/partytown/CHANGELOG.md | 6 ++ packages/integrations/partytown/package.json | 2 +- packages/integrations/svelte/package.json | 2 +- packages/integrations/tailwind/package.json | 2 +- packages/integrations/vercel/package.json | 2 +- packages/integrations/vue/package.json | 2 +- pnpm-lock.yaml | 56 +++++++++---------- 56 files changed, 195 insertions(+), 159 deletions(-) delete mode 100644 .changeset/bright-apricots-kiss.md delete mode 100644 .changeset/chilly-dingos-eat.md delete mode 100644 .changeset/flat-baboons-nail.md delete mode 100644 .changeset/funny-pets-walk.md delete mode 100644 .changeset/hip-avocados-grow.md delete mode 100644 .changeset/lovely-owls-sniff.md delete mode 100644 .changeset/metal-cameras-bow.md delete mode 100644 .changeset/perfect-rabbits-repair.md delete mode 100644 .changeset/small-knives-sparkle.md delete mode 100644 .changeset/thick-penguins-turn.md diff --git a/.changeset/bright-apricots-kiss.md b/.changeset/bright-apricots-kiss.md deleted file mode 100644 index 483a70e5067f..000000000000 --- a/.changeset/bright-apricots-kiss.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'create-astro': patch ---- - -Fix: Log an error when passing a `--template` that does not exist diff --git a/.changeset/chilly-dingos-eat.md b/.changeset/chilly-dingos-eat.md deleted file mode 100644 index fbbd4a522d31..000000000000 --- a/.changeset/chilly-dingos-eat.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@astrojs/partytown': minor ---- - -Expose more partytown config properties diff --git a/.changeset/flat-baboons-nail.md b/.changeset/flat-baboons-nail.md deleted file mode 100644 index 128d4234baef..000000000000 --- a/.changeset/flat-baboons-nail.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Prevent frontmatter errors from crashing the dev server diff --git a/.changeset/funny-pets-walk.md b/.changeset/funny-pets-walk.md deleted file mode 100644 index 0327d43d2c3e..000000000000 --- a/.changeset/funny-pets-walk.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Add a additional check for `null` on the `req.body` check in `NodeApp.render`. diff --git a/.changeset/hip-avocados-grow.md b/.changeset/hip-avocados-grow.md deleted file mode 100644 index c0de570a95a4..000000000000 --- a/.changeset/hip-avocados-grow.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -add new flag with open for dev and preview diff --git a/.changeset/lovely-owls-sniff.md b/.changeset/lovely-owls-sniff.md deleted file mode 100644 index 54b660770e25..000000000000 --- a/.changeset/lovely-owls-sniff.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'astro': patch -'@astrojs/image': patch ---- - -Invalidates cache when changing serviceEntryPoint diff --git a/.changeset/metal-cameras-bow.md b/.changeset/metal-cameras-bow.md deleted file mode 100644 index 2275c4804ddb..000000000000 --- a/.changeset/metal-cameras-bow.md +++ /dev/null @@ -1,42 +0,0 @@ ---- -'@astrojs/markdoc': minor -'astro': patch ---- - -Simplify Markdoc configuration with a new `markdoc.config.mjs` file. This lets you import Astro components directly to render as Markdoc tags and nodes, without the need for the previous `components` property. This new configuration also unlocks passing variables to your Markdoc from the `Content` component ([see the new docs](https://docs.astro.build/en/guides/integrations-guide/markdoc/#pass-markdoc-variables)). - -## Migration - -Move any existing Markdoc config from your `astro.config` to a new `markdoc.config.mjs` file at the root of your project. This should be applied as a default export, with the optional `defineMarkdocConfig()` helper for autocomplete in your editor. - -This example configures an `aside` Markdoc tag. Note that components should be imported and applied to the `render` attribute _directly,_ instead of passing the name as a string: - -```js -// markdoc.config.mjs -import { defineMarkdocConfig } from '@astrojs/markdoc/config'; -import Aside from './src/components/Aside.astro'; - -export default defineMarkdocConfig({ - tags: { - aside: { - render: Aside, - } - } -}); -``` - -You should also remove the `components` prop from your `Content` components. Since components are imported into your config directly, this is no longer needed. - -```diff ---- -- import Aside from '../components/Aside.astro'; -import { getEntryBySlug } from 'astro:content'; - -const entry = await getEntryBySlug('docs', 'why-markdoc'); -const { Content } = await entry.render(); ---- - - -``` diff --git a/.changeset/perfect-rabbits-repair.md b/.changeset/perfect-rabbits-repair.md deleted file mode 100644 index e7bf45e02cdb..000000000000 --- a/.changeset/perfect-rabbits-repair.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Fixes an attribute naming mismatch in the definition for elements in astro.JSX diff --git a/.changeset/small-knives-sparkle.md b/.changeset/small-knives-sparkle.md deleted file mode 100644 index e257d5e97edb..000000000000 --- a/.changeset/small-knives-sparkle.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Throw better error when a dynamic endpoint without additional extensions is prerendered with `undefined` params. diff --git a/.changeset/thick-penguins-turn.md b/.changeset/thick-penguins-turn.md deleted file mode 100644 index 7ee77abfaedc..000000000000 --- a/.changeset/thick-penguins-turn.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Fix images not having the proper path when using `base` diff --git a/examples/basics/package.json b/examples/basics/package.json index fdee84fbea3d..2eafc5aae405 100644 --- a/examples/basics/package.json +++ b/examples/basics/package.json @@ -11,6 +11,6 @@ "astro": "astro" }, "dependencies": { - "astro": "^2.1.7" + "astro": "^2.1.8" } } diff --git a/examples/blog/package.json b/examples/blog/package.json index 4ae33211769e..30e25ed27ac2 100644 --- a/examples/blog/package.json +++ b/examples/blog/package.json @@ -11,7 +11,7 @@ "astro": "astro" }, "dependencies": { - "astro": "^2.1.7", + "astro": "^2.1.8", "@astrojs/mdx": "^0.18.2", "@astrojs/rss": "^2.3.1", "@astrojs/sitemap": "^1.2.1" diff --git a/examples/component/package.json b/examples/component/package.json index 51d48cd5a64f..bfa62ed349c1 100644 --- a/examples/component/package.json +++ b/examples/component/package.json @@ -15,7 +15,7 @@ ], "scripts": {}, "devDependencies": { - "astro": "^2.1.7" + "astro": "^2.1.8" }, "peerDependencies": { "astro": "^2.0.0-beta.0" diff --git a/examples/deno/package.json b/examples/deno/package.json index 1bb1ef552963..1c8931b98fe8 100644 --- a/examples/deno/package.json +++ b/examples/deno/package.json @@ -10,7 +10,7 @@ "astro": "astro" }, "dependencies": { - "astro": "^2.1.7" + "astro": "^2.1.8" }, "devDependencies": { "@astrojs/deno": "^4.1.0" diff --git a/examples/docs/package.json b/examples/docs/package.json index 3d8030267fe0..876860c312b7 100644 --- a/examples/docs/package.json +++ b/examples/docs/package.json @@ -11,7 +11,7 @@ "astro": "astro" }, "dependencies": { - "astro": "^2.1.7", + "astro": "^2.1.8", "preact": "^10.7.3", "react": "^18.1.0", "react-dom": "^18.1.0", diff --git a/examples/framework-alpine/package.json b/examples/framework-alpine/package.json index 2c51e7c568a5..86ce5a33f823 100644 --- a/examples/framework-alpine/package.json +++ b/examples/framework-alpine/package.json @@ -11,7 +11,7 @@ "astro": "astro" }, "dependencies": { - "astro": "^2.1.7", + "astro": "^2.1.8", "alpinejs": "^3.10.2", "@astrojs/alpinejs": "^0.2.1", "@types/alpinejs": "^3.7.0" diff --git a/examples/framework-lit/package.json b/examples/framework-lit/package.json index a0392efba51c..517d370f9e8b 100644 --- a/examples/framework-lit/package.json +++ b/examples/framework-lit/package.json @@ -11,7 +11,7 @@ "astro": "astro" }, "dependencies": { - "astro": "^2.1.7", + "astro": "^2.1.8", "lit": "^2.2.5", "@astrojs/lit": "^1.3.0", "@webcomponents/template-shadowroot": "^0.1.0" diff --git a/examples/framework-multiple/package.json b/examples/framework-multiple/package.json index 39d0b31ae1f3..f98b0619510c 100644 --- a/examples/framework-multiple/package.json +++ b/examples/framework-multiple/package.json @@ -11,7 +11,7 @@ "astro": "astro" }, "dependencies": { - "astro": "^2.1.7", + "astro": "^2.1.8", "preact": "^10.7.3", "react": "^18.1.0", "react-dom": "^18.1.0", diff --git a/examples/framework-preact/package.json b/examples/framework-preact/package.json index 8f6d54a78e7d..aa194716f083 100644 --- a/examples/framework-preact/package.json +++ b/examples/framework-preact/package.json @@ -11,7 +11,7 @@ "astro": "astro" }, "dependencies": { - "astro": "^2.1.7", + "astro": "^2.1.8", "preact": "^10.7.3", "@astrojs/preact": "^2.1.0", "@preact/signals": "^1.1.0" diff --git a/examples/framework-react/package.json b/examples/framework-react/package.json index 0ba04b740fed..47467cbc4f56 100644 --- a/examples/framework-react/package.json +++ b/examples/framework-react/package.json @@ -11,7 +11,7 @@ "astro": "astro" }, "dependencies": { - "astro": "^2.1.7", + "astro": "^2.1.8", "react": "^18.1.0", "react-dom": "^18.1.0", "@astrojs/react": "^2.1.0", diff --git a/examples/framework-solid/package.json b/examples/framework-solid/package.json index af3e32197b13..18038d5f0102 100644 --- a/examples/framework-solid/package.json +++ b/examples/framework-solid/package.json @@ -11,7 +11,7 @@ "astro": "astro" }, "dependencies": { - "astro": "^2.1.7", + "astro": "^2.1.8", "solid-js": "^1.4.3", "@astrojs/solid-js": "^2.1.0" } diff --git a/examples/framework-svelte/package.json b/examples/framework-svelte/package.json index ca6761c8ff76..e3e2abebfa78 100644 --- a/examples/framework-svelte/package.json +++ b/examples/framework-svelte/package.json @@ -13,6 +13,6 @@ "dependencies": { "svelte": "^3.48.0", "@astrojs/svelte": "^2.1.0", - "astro": "^2.1.7" + "astro": "^2.1.8" } } diff --git a/examples/framework-vue/package.json b/examples/framework-vue/package.json index 5916f2807bdb..b223cf7f69cc 100644 --- a/examples/framework-vue/package.json +++ b/examples/framework-vue/package.json @@ -11,7 +11,7 @@ "astro": "astro" }, "dependencies": { - "astro": "^2.1.7", + "astro": "^2.1.8", "vue": "^3.2.37", "@astrojs/vue": "^2.1.0" } diff --git a/examples/hackernews/package.json b/examples/hackernews/package.json index e1dfbfa6472d..4952bc151215 100644 --- a/examples/hackernews/package.json +++ b/examples/hackernews/package.json @@ -12,6 +12,6 @@ }, "dependencies": { "@astrojs/node": "^5.1.0", - "astro": "^2.1.7" + "astro": "^2.1.8" } } diff --git a/examples/integration/package.json b/examples/integration/package.json index 370647933856..cff9575e4b10 100644 --- a/examples/integration/package.json +++ b/examples/integration/package.json @@ -15,7 +15,7 @@ ], "scripts": {}, "devDependencies": { - "astro": "^2.1.7" + "astro": "^2.1.8" }, "peerDependencies": { "astro": "^2.0.0-beta.0" diff --git a/examples/minimal/package.json b/examples/minimal/package.json index 216d0777f51e..fec95ee7989f 100644 --- a/examples/minimal/package.json +++ b/examples/minimal/package.json @@ -11,6 +11,6 @@ "astro": "astro" }, "dependencies": { - "astro": "^2.1.7" + "astro": "^2.1.8" } } diff --git a/examples/non-html-pages/package.json b/examples/non-html-pages/package.json index 46d15c8c718b..b026b42f2f6f 100644 --- a/examples/non-html-pages/package.json +++ b/examples/non-html-pages/package.json @@ -11,6 +11,6 @@ "astro": "astro" }, "dependencies": { - "astro": "^2.1.7" + "astro": "^2.1.8" } } diff --git a/examples/portfolio/package.json b/examples/portfolio/package.json index e8824e38b4c9..352e1bdb953a 100644 --- a/examples/portfolio/package.json +++ b/examples/portfolio/package.json @@ -11,6 +11,6 @@ "astro": "astro" }, "dependencies": { - "astro": "^2.1.7" + "astro": "^2.1.8" } } diff --git a/examples/ssr/package.json b/examples/ssr/package.json index 1050654aea62..e0d13eda1032 100644 --- a/examples/ssr/package.json +++ b/examples/ssr/package.json @@ -12,7 +12,7 @@ "server": "node dist/server/entry.mjs" }, "dependencies": { - "astro": "^2.1.7", + "astro": "^2.1.8", "svelte": "^3.48.0", "@astrojs/svelte": "^2.1.0", "@astrojs/node": "^5.1.0", diff --git a/examples/with-markdoc/package.json b/examples/with-markdoc/package.json index f3139284042a..caa731705204 100644 --- a/examples/with-markdoc/package.json +++ b/examples/with-markdoc/package.json @@ -11,8 +11,8 @@ "astro": "astro" }, "dependencies": { - "@astrojs/markdoc": "^0.0.5", - "astro": "^2.1.7", + "@astrojs/markdoc": "^0.1.0", + "astro": "^2.1.8", "kleur": "^4.1.5" } } diff --git a/examples/with-markdown-plugins/package.json b/examples/with-markdown-plugins/package.json index 9d956717a6ff..25c7e25c0206 100644 --- a/examples/with-markdown-plugins/package.json +++ b/examples/with-markdown-plugins/package.json @@ -11,7 +11,7 @@ "astro": "astro" }, "dependencies": { - "astro": "^2.1.7", + "astro": "^2.1.8", "@astrojs/markdown-remark": "^2.1.2", "hast-util-select": "5.0.1", "rehype-autolink-headings": "^6.1.1", diff --git a/examples/with-markdown-shiki/package.json b/examples/with-markdown-shiki/package.json index 78ac2f1d9de2..330fa0982912 100644 --- a/examples/with-markdown-shiki/package.json +++ b/examples/with-markdown-shiki/package.json @@ -11,6 +11,6 @@ "astro": "astro" }, "dependencies": { - "astro": "^2.1.7" + "astro": "^2.1.8" } } diff --git a/examples/with-mdx/package.json b/examples/with-mdx/package.json index f740d624cc30..b39bf96b908f 100644 --- a/examples/with-mdx/package.json +++ b/examples/with-mdx/package.json @@ -11,7 +11,7 @@ "astro": "astro" }, "dependencies": { - "astro": "^2.1.7", + "astro": "^2.1.8", "preact": "^10.6.5", "@astrojs/preact": "^2.1.0", "@astrojs/mdx": "^0.18.2" diff --git a/examples/with-nanostores/package.json b/examples/with-nanostores/package.json index 145236caaf5e..2eddadd1dd5b 100644 --- a/examples/with-nanostores/package.json +++ b/examples/with-nanostores/package.json @@ -11,7 +11,7 @@ "astro": "astro" }, "dependencies": { - "astro": "^2.1.7", + "astro": "^2.1.8", "preact": "^10.7.3", "@astrojs/preact": "^2.1.0", "nanostores": "^0.5.12", diff --git a/examples/with-tailwindcss/package.json b/examples/with-tailwindcss/package.json index e35300d0e651..e259776ee126 100644 --- a/examples/with-tailwindcss/package.json +++ b/examples/with-tailwindcss/package.json @@ -14,7 +14,7 @@ "@astrojs/mdx": "^0.18.2", "@astrojs/tailwind": "^3.1.1", "@types/canvas-confetti": "^1.4.3", - "astro": "^2.1.7", + "astro": "^2.1.8", "autoprefixer": "^10.4.7", "canvas-confetti": "^1.5.1", "postcss": "^8.4.14", diff --git a/examples/with-vite-plugin-pwa/package.json b/examples/with-vite-plugin-pwa/package.json index 9ad0e4eb3273..49da73f1649e 100644 --- a/examples/with-vite-plugin-pwa/package.json +++ b/examples/with-vite-plugin-pwa/package.json @@ -11,7 +11,7 @@ "astro": "astro" }, "dependencies": { - "astro": "^2.1.7", + "astro": "^2.1.8", "vite-plugin-pwa": "0.11.11", "workbox-window": "^6.5.3" } diff --git a/examples/with-vitest/package.json b/examples/with-vitest/package.json index 72379b531442..3b5be7dc98be 100644 --- a/examples/with-vitest/package.json +++ b/examples/with-vitest/package.json @@ -12,7 +12,7 @@ "test": "vitest" }, "dependencies": { - "astro": "^2.1.7", + "astro": "^2.1.8", "vitest": "^0.20.3" } } diff --git a/packages/astro/CHANGELOG.md b/packages/astro/CHANGELOG.md index 8dd5e4fde554..e348245d5e96 100644 --- a/packages/astro/CHANGELOG.md +++ b/packages/astro/CHANGELOG.md @@ -1,5 +1,61 @@ # astro +## 2.1.8 + +### Patch Changes + +- [#6675](https://github.com/withastro/astro/pull/6675) [`1f783e320`](https://github.com/withastro/astro/commit/1f783e32075c20b13063599696644f5d47b75d8d) Thanks [@matthewp](https://github.com/matthewp)! - Prevent frontmatter errors from crashing the dev server + +- [#6688](https://github.com/withastro/astro/pull/6688) [`2e92e9aa9`](https://github.com/withastro/astro/commit/2e92e9aa976735c3ddb647152bb9c4850136e386) Thanks [@JohannesKlauss](https://github.com/JohannesKlauss)! - Add a additional check for `null` on the `req.body` check in `NodeApp.render`. + +- [#6578](https://github.com/withastro/astro/pull/6578) [`adecda7d6`](https://github.com/withastro/astro/commit/adecda7d6009793c5d20519a997e3b7afb08ad57) Thanks [@wulinsheng123](https://github.com/wulinsheng123)! - add new flag with open for dev and preview + +- [#6680](https://github.com/withastro/astro/pull/6680) [`386336441`](https://github.com/withastro/astro/commit/386336441ad70017eea22db0683591126131db21) Thanks [@koriwi](https://github.com/koriwi)! - Invalidates cache when changing serviceEntryPoint + +- [#6653](https://github.com/withastro/astro/pull/6653) [`7c439868a`](https://github.com/withastro/astro/commit/7c439868a3bc7d466418da9af669966014f3d9fe) Thanks [@bholmesdev](https://github.com/bholmesdev)! - Simplify Markdoc configuration with a new `markdoc.config.mjs` file. This lets you import Astro components directly to render as Markdoc tags and nodes, without the need for the previous `components` property. This new configuration also unlocks passing variables to your Markdoc from the `Content` component ([see the new docs](https://docs.astro.build/en/guides/integrations-guide/markdoc/#pass-markdoc-variables)). + + ## Migration + + Move any existing Markdoc config from your `astro.config` to a new `markdoc.config.mjs` file at the root of your project. This should be applied as a default export, with the optional `defineMarkdocConfig()` helper for autocomplete in your editor. + + This example configures an `aside` Markdoc tag. Note that components should be imported and applied to the `render` attribute _directly,_ instead of passing the name as a string: + + ```js + // markdoc.config.mjs + import { defineMarkdocConfig } from '@astrojs/markdoc/config'; + import Aside from './src/components/Aside.astro'; + + export default defineMarkdocConfig({ + tags: { + aside: { + render: Aside, + }, + }, + }); + ``` + + You should also remove the `components` prop from your `Content` components. Since components are imported into your config directly, this is no longer needed. + + ```diff + --- + - import Aside from '../components/Aside.astro'; + import { getEntryBySlug } from 'astro:content'; + + const entry = await getEntryBySlug('docs', 'why-markdoc'); + const { Content } = await entry.render(); + --- + + + ``` + +- [#6639](https://github.com/withastro/astro/pull/6639) [`25cd3e574`](https://github.com/withastro/astro/commit/25cd3e574999c1c7294a089ad8c39df27ccdbf17) Thanks [@tony-sull](https://github.com/tony-sull)! - Fixes an attribute naming mismatch in the definition for elements in astro.JSX + +- [#6353](https://github.com/withastro/astro/pull/6353) [`4bf87c64f`](https://github.com/withastro/astro/commit/4bf87c64ff7e9ca49e0f5c27e06bd49faaf60542) Thanks [@wulinsheng123](https://github.com/wulinsheng123)! - Throw better error when a dynamic endpoint without additional extensions is prerendered with `undefined` params. + +- [#6643](https://github.com/withastro/astro/pull/6643) [`fc0ed9c53`](https://github.com/withastro/astro/commit/fc0ed9c53cd374860bbdb2503318a55ca09a2662) Thanks [@Princesseuh](https://github.com/Princesseuh)! - Fix images not having the proper path when using `base` + ## 2.1.7 ### Patch Changes diff --git a/packages/astro/package.json b/packages/astro/package.json index 73cc79c1833c..ccf0b786298b 100644 --- a/packages/astro/package.json +++ b/packages/astro/package.json @@ -1,6 +1,6 @@ { "name": "astro", - "version": "2.1.7", + "version": "2.1.8", "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/create-astro/CHANGELOG.md b/packages/create-astro/CHANGELOG.md index 8ae781c5f9f4..2e8ca430853c 100644 --- a/packages/create-astro/CHANGELOG.md +++ b/packages/create-astro/CHANGELOG.md @@ -1,5 +1,11 @@ # create-astro +## 3.1.2 + +### Patch Changes + +- [#6677](https://github.com/withastro/astro/pull/6677) [`4a3262060`](https://github.com/withastro/astro/commit/4a32620600966ea89ddb5e1669d89a53e85ccf9a) Thanks [@bholmesdev](https://github.com/bholmesdev)! - Fix: Log an error when passing a `--template` that does not exist + ## 3.1.1 ### Patch Changes diff --git a/packages/create-astro/package.json b/packages/create-astro/package.json index 1801a680d321..3f1f4b736dce 100644 --- a/packages/create-astro/package.json +++ b/packages/create-astro/package.json @@ -1,6 +1,6 @@ { "name": "create-astro", - "version": "3.1.1", + "version": "3.1.2", "type": "module", "author": "withastro", "license": "MIT", diff --git a/packages/integrations/cloudflare/package.json b/packages/integrations/cloudflare/package.json index e97ba7140262..c746b1bbbc94 100644 --- a/packages/integrations/cloudflare/package.json +++ b/packages/integrations/cloudflare/package.json @@ -38,7 +38,7 @@ "tiny-glob": "^0.2.9" }, "peerDependencies": { - "astro": "workspace:^2.1.7" + "astro": "workspace:^2.1.8" }, "devDependencies": { "astro": "workspace:*", diff --git a/packages/integrations/deno/package.json b/packages/integrations/deno/package.json index 6f72bc614fce..76ae96df81b5 100644 --- a/packages/integrations/deno/package.json +++ b/packages/integrations/deno/package.json @@ -33,7 +33,7 @@ "esbuild": "^0.15.18" }, "peerDependencies": { - "astro": "workspace:^2.1.7" + "astro": "workspace:^2.1.8" }, "devDependencies": { "astro": "workspace:*", diff --git a/packages/integrations/image/CHANGELOG.md b/packages/integrations/image/CHANGELOG.md index 9104b9003957..acae2de03a8a 100644 --- a/packages/integrations/image/CHANGELOG.md +++ b/packages/integrations/image/CHANGELOG.md @@ -1,5 +1,14 @@ # @astrojs/image +## 0.16.3 + +### Patch Changes + +- [#6680](https://github.com/withastro/astro/pull/6680) [`386336441`](https://github.com/withastro/astro/commit/386336441ad70017eea22db0683591126131db21) Thanks [@koriwi](https://github.com/koriwi)! - Invalidates cache when changing serviceEntryPoint + +- Updated dependencies [[`1f783e320`](https://github.com/withastro/astro/commit/1f783e32075c20b13063599696644f5d47b75d8d), [`2e92e9aa9`](https://github.com/withastro/astro/commit/2e92e9aa976735c3ddb647152bb9c4850136e386), [`adecda7d6`](https://github.com/withastro/astro/commit/adecda7d6009793c5d20519a997e3b7afb08ad57), [`386336441`](https://github.com/withastro/astro/commit/386336441ad70017eea22db0683591126131db21), [`7c439868a`](https://github.com/withastro/astro/commit/7c439868a3bc7d466418da9af669966014f3d9fe), [`25cd3e574`](https://github.com/withastro/astro/commit/25cd3e574999c1c7294a089ad8c39df27ccdbf17), [`4bf87c64f`](https://github.com/withastro/astro/commit/4bf87c64ff7e9ca49e0f5c27e06bd49faaf60542), [`fc0ed9c53`](https://github.com/withastro/astro/commit/fc0ed9c53cd374860bbdb2503318a55ca09a2662)]: + - astro@2.1.8 + ## 0.16.2 ### Patch Changes diff --git a/packages/integrations/image/package.json b/packages/integrations/image/package.json index b4d80a83f14b..4cf72ba5cf18 100644 --- a/packages/integrations/image/package.json +++ b/packages/integrations/image/package.json @@ -1,7 +1,7 @@ { "name": "@astrojs/image", "description": "Load and transform images in your Astro site", - "version": "0.16.2", + "version": "0.16.3", "type": "module", "types": "./dist/index.d.ts", "author": "withastro", @@ -63,7 +63,7 @@ "vite": "^4.1.2" }, "peerDependencies": { - "astro": "workspace:^2.1.7", + "astro": "workspace:^2.1.8", "sharp": ">=0.31.0" }, "peerDependenciesMeta": { diff --git a/packages/integrations/markdoc/CHANGELOG.md b/packages/integrations/markdoc/CHANGELOG.md index f73a9ecc4437..74d4a3f3300a 100644 --- a/packages/integrations/markdoc/CHANGELOG.md +++ b/packages/integrations/markdoc/CHANGELOG.md @@ -1,5 +1,52 @@ # @astrojs/markdoc +## 0.1.0 + +### Minor Changes + +- [#6653](https://github.com/withastro/astro/pull/6653) [`7c439868a`](https://github.com/withastro/astro/commit/7c439868a3bc7d466418da9af669966014f3d9fe) Thanks [@bholmesdev](https://github.com/bholmesdev)! - Simplify Markdoc configuration with a new `markdoc.config.mjs` file. This lets you import Astro components directly to render as Markdoc tags and nodes, without the need for the previous `components` property. This new configuration also unlocks passing variables to your Markdoc from the `Content` component ([see the new docs](https://docs.astro.build/en/guides/integrations-guide/markdoc/#pass-markdoc-variables)). + + ## Migration + + Move any existing Markdoc config from your `astro.config` to a new `markdoc.config.mjs` file at the root of your project. This should be applied as a default export, with the optional `defineMarkdocConfig()` helper for autocomplete in your editor. + + This example configures an `aside` Markdoc tag. Note that components should be imported and applied to the `render` attribute _directly,_ instead of passing the name as a string: + + ```js + // markdoc.config.mjs + import { defineMarkdocConfig } from '@astrojs/markdoc/config'; + import Aside from './src/components/Aside.astro'; + + export default defineMarkdocConfig({ + tags: { + aside: { + render: Aside, + }, + }, + }); + ``` + + You should also remove the `components` prop from your `Content` components. Since components are imported into your config directly, this is no longer needed. + + ```diff + --- + - import Aside from '../components/Aside.astro'; + import { getEntryBySlug } from 'astro:content'; + + const entry = await getEntryBySlug('docs', 'why-markdoc'); + const { Content } = await entry.render(); + --- + + + ``` + +### Patch Changes + +- Updated dependencies [[`1f783e320`](https://github.com/withastro/astro/commit/1f783e32075c20b13063599696644f5d47b75d8d), [`2e92e9aa9`](https://github.com/withastro/astro/commit/2e92e9aa976735c3ddb647152bb9c4850136e386), [`adecda7d6`](https://github.com/withastro/astro/commit/adecda7d6009793c5d20519a997e3b7afb08ad57), [`386336441`](https://github.com/withastro/astro/commit/386336441ad70017eea22db0683591126131db21), [`7c439868a`](https://github.com/withastro/astro/commit/7c439868a3bc7d466418da9af669966014f3d9fe), [`25cd3e574`](https://github.com/withastro/astro/commit/25cd3e574999c1c7294a089ad8c39df27ccdbf17), [`4bf87c64f`](https://github.com/withastro/astro/commit/4bf87c64ff7e9ca49e0f5c27e06bd49faaf60542), [`fc0ed9c53`](https://github.com/withastro/astro/commit/fc0ed9c53cd374860bbdb2503318a55ca09a2662)]: + - astro@2.1.8 + ## 0.0.5 ### Patch Changes diff --git a/packages/integrations/markdoc/package.json b/packages/integrations/markdoc/package.json index b770eb630b13..f125e3e50845 100644 --- a/packages/integrations/markdoc/package.json +++ b/packages/integrations/markdoc/package.json @@ -1,7 +1,7 @@ { "name": "@astrojs/markdoc", "description": "Add support for Markdoc pages in your Astro site", - "version": "0.0.5", + "version": "0.1.0", "type": "module", "types": "./dist/index.d.ts", "author": "withastro", @@ -41,7 +41,7 @@ "zod": "^3.17.3" }, "peerDependencies": { - "astro": "workspace:^2.1.0" + "astro": "workspace:^2.1.8" }, "devDependencies": { "@types/chai": "^4.3.1", diff --git a/packages/integrations/netlify/package.json b/packages/integrations/netlify/package.json index 35538fa2613a..4d368c368047 100644 --- a/packages/integrations/netlify/package.json +++ b/packages/integrations/netlify/package.json @@ -39,7 +39,7 @@ "esbuild": "^0.15.18" }, "peerDependencies": { - "astro": "workspace:^2.1.7" + "astro": "workspace:^2.1.8" }, "devDependencies": { "@netlify/edge-handler-types": "^0.34.1", diff --git a/packages/integrations/node/package.json b/packages/integrations/node/package.json index 2f6893e39d39..21cb8021d789 100644 --- a/packages/integrations/node/package.json +++ b/packages/integrations/node/package.json @@ -35,7 +35,7 @@ "server-destroy": "^1.0.1" }, "peerDependencies": { - "astro": "workspace:^2.1.7" + "astro": "workspace:^2.1.8" }, "devDependencies": { "@types/send": "^0.17.1", diff --git a/packages/integrations/partytown/CHANGELOG.md b/packages/integrations/partytown/CHANGELOG.md index a4408fe601ad..53ecb8ac79fe 100644 --- a/packages/integrations/partytown/CHANGELOG.md +++ b/packages/integrations/partytown/CHANGELOG.md @@ -1,5 +1,11 @@ # @astrojs/partytown +## 1.2.0 + +### Minor Changes + +- [#6667](https://github.com/withastro/astro/pull/6667) [`aff53c109`](https://github.com/withastro/astro/commit/aff53c109c4f7b08b6b80e58e9ca5cb481131eb5) Thanks [@thebinarymutant](https://github.com/thebinarymutant)! - Expose more partytown config properties + ## 1.1.1 ### Patch Changes diff --git a/packages/integrations/partytown/package.json b/packages/integrations/partytown/package.json index 9b944757ea37..f44234380637 100644 --- a/packages/integrations/partytown/package.json +++ b/packages/integrations/partytown/package.json @@ -1,7 +1,7 @@ { "name": "@astrojs/partytown", "description": "Use Partytown to move scripts into a web worker in your Astro project", - "version": "1.1.1", + "version": "1.2.0", "type": "module", "types": "./dist/index.d.ts", "author": "withastro", diff --git a/packages/integrations/svelte/package.json b/packages/integrations/svelte/package.json index 8ddece2049ab..1149083e4808 100644 --- a/packages/integrations/svelte/package.json +++ b/packages/integrations/svelte/package.json @@ -43,7 +43,7 @@ "vite": "^4.1.2" }, "peerDependencies": { - "astro": "workspace:^2.1.7", + "astro": "workspace:^2.1.8", "svelte": "^3.54.0" }, "engines": { diff --git a/packages/integrations/tailwind/package.json b/packages/integrations/tailwind/package.json index cfb94ac16665..b2e16adcc24d 100644 --- a/packages/integrations/tailwind/package.json +++ b/packages/integrations/tailwind/package.json @@ -40,7 +40,7 @@ "vite": "^4.1.2" }, "peerDependencies": { - "astro": "workspace:^2.1.7", + "astro": "workspace:^2.1.8", "tailwindcss": "^3.0.24" }, "pnpm": { diff --git a/packages/integrations/vercel/package.json b/packages/integrations/vercel/package.json index 4ead67050eb9..6d62da0a8775 100644 --- a/packages/integrations/vercel/package.json +++ b/packages/integrations/vercel/package.json @@ -53,7 +53,7 @@ "web-vitals": "^3.1.1" }, "peerDependencies": { - "astro": "workspace:^2.1.7" + "astro": "workspace:^2.1.8" }, "devDependencies": { "@types/set-cookie-parser": "^2.4.2", diff --git a/packages/integrations/vue/package.json b/packages/integrations/vue/package.json index b507126197a1..f778fd5bcbd1 100644 --- a/packages/integrations/vue/package.json +++ b/packages/integrations/vue/package.json @@ -50,7 +50,7 @@ "vue": "^3.2.37" }, "peerDependencies": { - "astro": "workspace:^2.1.7", + "astro": "workspace:^2.1.8", "vue": "^3.2.30" }, "engines": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 6e52dbc5b2b9..d5adbfa94a77 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -104,7 +104,7 @@ importers: examples/basics: specifiers: - astro: ^2.1.7 + astro: ^2.1.8 dependencies: astro: link:../../packages/astro @@ -113,7 +113,7 @@ importers: '@astrojs/mdx': ^0.18.2 '@astrojs/rss': ^2.3.1 '@astrojs/sitemap': ^1.2.1 - astro: ^2.1.7 + astro: ^2.1.8 dependencies: '@astrojs/mdx': link:../../packages/integrations/mdx '@astrojs/rss': link:../../packages/astro-rss @@ -122,14 +122,14 @@ importers: examples/component: specifiers: - astro: ^2.1.7 + astro: ^2.1.8 devDependencies: astro: link:../../packages/astro examples/deno: specifiers: '@astrojs/deno': ^4.1.0 - astro: ^2.1.7 + astro: ^2.1.8 dependencies: astro: link:../../packages/astro devDependencies: @@ -145,7 +145,7 @@ importers: '@types/node': ^18.0.0 '@types/react': ^17.0.45 '@types/react-dom': ^18.0.0 - astro: ^2.1.7 + astro: ^2.1.8 html-escaper: ^3.0.3 preact: ^10.7.3 react: ^18.1.0 @@ -171,7 +171,7 @@ importers: '@astrojs/alpinejs': ^0.2.1 '@types/alpinejs': ^3.7.0 alpinejs: ^3.10.2 - astro: ^2.1.7 + astro: ^2.1.8 dependencies: '@astrojs/alpinejs': link:../../packages/integrations/alpinejs '@types/alpinejs': 3.7.1 @@ -182,7 +182,7 @@ importers: specifiers: '@astrojs/lit': ^1.3.0 '@webcomponents/template-shadowroot': ^0.1.0 - astro: ^2.1.7 + astro: ^2.1.8 lit: ^2.2.5 dependencies: '@astrojs/lit': link:../../packages/integrations/lit @@ -197,7 +197,7 @@ importers: '@astrojs/solid-js': ^2.1.0 '@astrojs/svelte': ^2.1.0 '@astrojs/vue': ^2.1.0 - astro: ^2.1.7 + astro: ^2.1.8 preact: ^10.7.3 react: ^18.1.0 react-dom: ^18.1.0 @@ -222,7 +222,7 @@ importers: specifiers: '@astrojs/preact': ^2.1.0 '@preact/signals': ^1.1.0 - astro: ^2.1.7 + astro: ^2.1.8 preact: ^10.7.3 dependencies: '@astrojs/preact': link:../../packages/integrations/preact @@ -235,7 +235,7 @@ importers: '@astrojs/react': ^2.1.0 '@types/react': ^18.0.10 '@types/react-dom': ^18.0.5 - astro: ^2.1.7 + astro: ^2.1.8 react: ^18.1.0 react-dom: ^18.1.0 dependencies: @@ -249,7 +249,7 @@ importers: examples/framework-solid: specifiers: '@astrojs/solid-js': ^2.1.0 - astro: ^2.1.7 + astro: ^2.1.8 solid-js: ^1.4.3 dependencies: '@astrojs/solid-js': link:../../packages/integrations/solid @@ -259,7 +259,7 @@ importers: examples/framework-svelte: specifiers: '@astrojs/svelte': ^2.1.0 - astro: ^2.1.7 + astro: ^2.1.8 svelte: ^3.48.0 dependencies: '@astrojs/svelte': link:../../packages/integrations/svelte @@ -269,7 +269,7 @@ importers: examples/framework-vue: specifiers: '@astrojs/vue': ^2.1.0 - astro: ^2.1.7 + astro: ^2.1.8 vue: ^3.2.37 dependencies: '@astrojs/vue': link:../../packages/integrations/vue @@ -279,32 +279,32 @@ importers: examples/hackernews: specifiers: '@astrojs/node': ^5.1.0 - astro: ^2.1.7 + astro: ^2.1.8 dependencies: '@astrojs/node': link:../../packages/integrations/node astro: link:../../packages/astro examples/integration: specifiers: - astro: ^2.1.7 + astro: ^2.1.8 devDependencies: astro: link:../../packages/astro examples/minimal: specifiers: - astro: ^2.1.7 + astro: ^2.1.8 dependencies: astro: link:../../packages/astro examples/non-html-pages: specifiers: - astro: ^2.1.7 + astro: ^2.1.8 dependencies: astro: link:../../packages/astro examples/portfolio: specifiers: - astro: ^2.1.7 + astro: ^2.1.8 dependencies: astro: link:../../packages/astro @@ -312,7 +312,7 @@ importers: specifiers: '@astrojs/node': ^5.1.0 '@astrojs/svelte': ^2.1.0 - astro: ^2.1.7 + astro: ^2.1.8 concurrently: ^7.2.1 svelte: ^3.48.0 unocss: ^0.15.6 @@ -328,8 +328,8 @@ importers: examples/with-markdoc: specifiers: - '@astrojs/markdoc': ^0.0.5 - astro: ^2.1.7 + '@astrojs/markdoc': ^0.1.0 + astro: ^2.1.8 kleur: ^4.1.5 dependencies: '@astrojs/markdoc': link:../../packages/integrations/markdoc @@ -339,7 +339,7 @@ importers: examples/with-markdown-plugins: specifiers: '@astrojs/markdown-remark': ^2.1.2 - astro: ^2.1.7 + astro: ^2.1.8 hast-util-select: 5.0.1 rehype-autolink-headings: ^6.1.1 rehype-slug: ^5.0.1 @@ -356,7 +356,7 @@ importers: examples/with-markdown-shiki: specifiers: - astro: ^2.1.7 + astro: ^2.1.8 dependencies: astro: link:../../packages/astro @@ -364,7 +364,7 @@ importers: specifiers: '@astrojs/mdx': ^0.18.2 '@astrojs/preact': ^2.1.0 - astro: ^2.1.7 + astro: ^2.1.8 preact: ^10.6.5 dependencies: '@astrojs/mdx': link:../../packages/integrations/mdx @@ -376,7 +376,7 @@ importers: specifiers: '@astrojs/preact': ^2.1.0 '@nanostores/preact': ^0.1.3 - astro: ^2.1.7 + astro: ^2.1.8 nanostores: ^0.5.12 preact: ^10.7.3 dependencies: @@ -391,7 +391,7 @@ importers: '@astrojs/mdx': ^0.18.2 '@astrojs/tailwind': ^3.1.1 '@types/canvas-confetti': ^1.4.3 - astro: ^2.1.7 + astro: ^2.1.8 autoprefixer: ^10.4.7 canvas-confetti: ^1.5.1 postcss: ^8.4.14 @@ -408,7 +408,7 @@ importers: examples/with-vite-plugin-pwa: specifiers: - astro: ^2.1.7 + astro: ^2.1.8 vite-plugin-pwa: 0.11.11 workbox-window: ^6.5.3 dependencies: @@ -418,7 +418,7 @@ importers: examples/with-vitest: specifiers: - astro: ^2.1.7 + astro: ^2.1.8 vitest: ^0.20.3 dependencies: astro: link:../../packages/astro