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 483a70e50..000000000 --- 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 fbbd4a522..000000000 --- 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 128d4234b..000000000 --- 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 0327d43d2..000000000 --- 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 c0de570a9..000000000 --- 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 54b660770..000000000 --- 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 2275c4804..000000000 --- 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 e7bf45e02..000000000 --- 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 e257d5e97..000000000 --- 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 7ee77abfa..000000000 --- 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 fdee84fbe..2eafc5aae 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 4ae332117..30e25ed27 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 51d48cd5a..bfa62ed34 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 1bb1ef552..1c8931b98 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 3d8030267..876860c31 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 2c51e7c56..86ce5a33f 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 a0392efba..517d370f9 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 39d0b31ae..f98b06195 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 8f6d54a78..aa194716f 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 0ba04b740..47467cbc4 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 af3e32197..18038d5f0 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 ca6761c8f..e3e2abebf 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 5916f2807..b223cf7f6 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 e1dfbfa64..4952bc151 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 370647933..cff9575e4 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 216d0777f..fec95ee79 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 46d15c8c7..b026b42f2 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 e8824e38b..352e1bdb9 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 1050654ae..e0d13eda1 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 f31392840..caa731705 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 9d956717a..25c7e25c0 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 78ac2f1d9..330fa0982 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 f740d624c..b39bf96b9 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 145236caa..2eddadd1d 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 e35300d0e..e259776ee 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 9ad0e4eb3..49da73f16 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 72379b531..3b5be7dc9 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 8dd5e4fde..e348245d5 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 73cc79c18..ccf0b7862 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 8ae781c5f..2e8ca4308 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 1801a680d..3f1f4b736 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 e97ba7140..c746b1bbb 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 6f72bc614..76ae96df8 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 9104b9003..acae2de03 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 b4d80a83f..4cf72ba5c 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 f73a9ecc4..74d4a3f33 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 b770eb630..f125e3e50 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 35538fa26..4d368c368 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 2f6893e39..21cb8021d 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 a4408fe60..53ecb8ac7 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 9b944757e..f44234380 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 8ddece204..1149083e4 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 cfb94ac16..b2e16adcc 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 4ead67050..6d62da0a8 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 b50712619..f778fd5bc 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 6e52dbc5b..d5adbfa94 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