From b36d16eb8f9ab9b9ec5cc8173d83222815446909 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 15 Mar 2022 17:06:40 -0500 Subject: [PATCH] [ci] release (#2802) Co-authored-by: github-actions[bot] --- .changeset/modern-feet-lay.md | 5 -- .changeset/pink-stingrays-swim.md | 5 -- .changeset/quick-islands-call.md | 15 ---- .changeset/tasty-beers-sit.md | 5 -- examples/blog-multiple-authors/package.json | 2 +- examples/blog/package.json | 2 +- examples/component/demo/package.json | 2 +- examples/component/package.json | 2 +- examples/docs/package.json | 2 +- examples/env-vars/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/minimal/package.json | 2 +- examples/non-html-pages/package.json | 2 +- examples/portfolio/package.json | 2 +- examples/ssr/package.json | 2 +- examples/starter/package.json | 2 +- examples/subpath/package.json | 2 +- examples/with-markdown-plugins/package.json | 2 +- examples/with-markdown-shiki/package.json | 2 +- examples/with-markdown/package.json | 2 +- examples/with-nanostores/package.json | 2 +- examples/with-tailwindcss/package.json | 2 +- examples/with-vite-plugin-pwa/package.json | 2 +- packages/astro/CHANGELOG.md | 78 +++++++++++++-------- packages/astro/package.json | 2 +- 32 files changed, 77 insertions(+), 85 deletions(-) delete mode 100644 .changeset/modern-feet-lay.md delete mode 100644 .changeset/pink-stingrays-swim.md delete mode 100644 .changeset/quick-islands-call.md delete mode 100644 .changeset/tasty-beers-sit.md diff --git a/.changeset/modern-feet-lay.md b/.changeset/modern-feet-lay.md deleted file mode 100644 index f72cb4658..000000000 --- a/.changeset/modern-feet-lay.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"astro": patch ---- - -Fix: Handle CLI output in a cross-compat way diff --git a/.changeset/pink-stingrays-swim.md b/.changeset/pink-stingrays-swim.md deleted file mode 100644 index 0a750d10d..000000000 --- a/.changeset/pink-stingrays-swim.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Fix HTML double-escaping issue diff --git a/.changeset/quick-islands-call.md b/.changeset/quick-islands-call.md deleted file mode 100644 index 305e5a382..000000000 --- a/.changeset/quick-islands-call.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -'astro': patch ---- - -Add an `astro/config` entrypoint with a `defineConfig` utility. - -Config files can now be easily benefit from Intellisense using the following approach: - -```js -import { defineConfig } from 'astro/config'; - -export default defineConfig({ - renderers: [] -}) -``` diff --git a/.changeset/tasty-beers-sit.md b/.changeset/tasty-beers-sit.md deleted file mode 100644 index bce2b8741..000000000 --- a/.changeset/tasty-beers-sit.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Fix missing styles on initial dev server load (ex. Tailwind styles) diff --git a/examples/blog-multiple-authors/package.json b/examples/blog-multiple-authors/package.json index 171cdf8ee..d4b6f5fec 100644 --- a/examples/blog-multiple-authors/package.json +++ b/examples/blog-multiple-authors/package.json @@ -10,7 +10,7 @@ }, "devDependencies": { "@astrojs/renderer-preact": "^0.5.0", - "astro": "^0.24.1", + "astro": "^0.24.2", "sass": "^1.49.9" } } diff --git a/examples/blog/package.json b/examples/blog/package.json index c48200d2a..66f9e4e2f 100644 --- a/examples/blog/package.json +++ b/examples/blog/package.json @@ -9,7 +9,7 @@ "preview": "astro preview" }, "devDependencies": { - "astro": "^0.24.1", + "astro": "^0.24.2", "@astrojs/renderer-preact": "^0.5.0" } } diff --git a/examples/component/demo/package.json b/examples/component/demo/package.json index c8c539973..3d7248c35 100644 --- a/examples/component/demo/package.json +++ b/examples/component/demo/package.json @@ -10,6 +10,6 @@ }, "devDependencies": { "@example/my-component": "workspace:*", - "astro": "^0.24.1" + "astro": "^0.24.2" } } diff --git a/examples/component/package.json b/examples/component/package.json index 4b62c6cfe..f920add4e 100644 --- a/examples/component/package.json +++ b/examples/component/package.json @@ -8,6 +8,6 @@ "serve": "astro --project-root demo preview" }, "devDependencies": { - "astro": "^0.24.1" + "astro": "^0.24.2" } } diff --git a/examples/docs/package.json b/examples/docs/package.json index 020231e10..07ed416b9 100644 --- a/examples/docs/package.json +++ b/examples/docs/package.json @@ -19,6 +19,6 @@ "devDependencies": { "@astrojs/renderer-preact": "^0.5.0", "@astrojs/renderer-react": "^0.5.0", - "astro": "^0.24.1" + "astro": "^0.24.2" } } diff --git a/examples/env-vars/package.json b/examples/env-vars/package.json index 6473defcd..52c383e6f 100644 --- a/examples/env-vars/package.json +++ b/examples/env-vars/package.json @@ -9,6 +9,6 @@ "preview": "astro preview" }, "devDependencies": { - "astro": "^0.24.1" + "astro": "^0.24.2" } } diff --git a/examples/framework-alpine/package.json b/examples/framework-alpine/package.json index 66aa4d11e..2ccd76235 100644 --- a/examples/framework-alpine/package.json +++ b/examples/framework-alpine/package.json @@ -9,6 +9,6 @@ "preview": "astro preview" }, "devDependencies": { - "astro": "^0.24.1" + "astro": "^0.24.2" } } diff --git a/examples/framework-lit/package.json b/examples/framework-lit/package.json index 3333395fe..d4d22dba4 100644 --- a/examples/framework-lit/package.json +++ b/examples/framework-lit/package.json @@ -10,6 +10,6 @@ }, "devDependencies": { "@astrojs/renderer-lit": "^0.4.0", - "astro": "^0.24.1" + "astro": "^0.24.2" } } diff --git a/examples/framework-multiple/package.json b/examples/framework-multiple/package.json index 3856d695d..d4d9392d4 100644 --- a/examples/framework-multiple/package.json +++ b/examples/framework-multiple/package.json @@ -15,6 +15,6 @@ "@astrojs/renderer-solid": "^0.4.0", "@astrojs/renderer-svelte": "^0.5.1", "@astrojs/renderer-vue": "^0.4.0", - "astro": "^0.24.1" + "astro": "^0.24.2" } } diff --git a/examples/framework-preact/package.json b/examples/framework-preact/package.json index 08827806b..15c9996c5 100644 --- a/examples/framework-preact/package.json +++ b/examples/framework-preact/package.json @@ -10,6 +10,6 @@ }, "devDependencies": { "@astrojs/renderer-preact": "^0.5.0", - "astro": "^0.24.1" + "astro": "^0.24.2" } } diff --git a/examples/framework-react/package.json b/examples/framework-react/package.json index 0f4d77a05..579c21692 100644 --- a/examples/framework-react/package.json +++ b/examples/framework-react/package.json @@ -10,6 +10,6 @@ }, "devDependencies": { "@astrojs/renderer-react": "^0.5.0", - "astro": "^0.24.1" + "astro": "^0.24.2" } } diff --git a/examples/framework-solid/package.json b/examples/framework-solid/package.json index 8069a3109..d07ddb4c1 100644 --- a/examples/framework-solid/package.json +++ b/examples/framework-solid/package.json @@ -10,6 +10,6 @@ }, "devDependencies": { "@astrojs/renderer-solid": "^0.4.0", - "astro": "^0.24.1" + "astro": "^0.24.2" } } diff --git a/examples/framework-svelte/package.json b/examples/framework-svelte/package.json index 6333d9335..991ed5393 100644 --- a/examples/framework-svelte/package.json +++ b/examples/framework-svelte/package.json @@ -10,6 +10,6 @@ }, "devDependencies": { "@astrojs/renderer-svelte": "^0.5.1", - "astro": "^0.24.1" + "astro": "^0.24.2" } } diff --git a/examples/framework-vue/package.json b/examples/framework-vue/package.json index 6eb9ea7bd..3ed3d9a42 100644 --- a/examples/framework-vue/package.json +++ b/examples/framework-vue/package.json @@ -10,6 +10,6 @@ }, "devDependencies": { "@astrojs/renderer-vue": "^0.4.0", - "astro": "^0.24.1" + "astro": "^0.24.2" } } diff --git a/examples/minimal/package.json b/examples/minimal/package.json index 69ea50fb6..8dfb4150b 100644 --- a/examples/minimal/package.json +++ b/examples/minimal/package.json @@ -9,6 +9,6 @@ "preview": "astro preview" }, "devDependencies": { - "astro": "^0.24.1" + "astro": "^0.24.2" } } diff --git a/examples/non-html-pages/package.json b/examples/non-html-pages/package.json index d466e74a4..f1eece9b9 100644 --- a/examples/non-html-pages/package.json +++ b/examples/non-html-pages/package.json @@ -9,6 +9,6 @@ "preview": "astro preview" }, "devDependencies": { - "astro": "^0.24.1" + "astro": "^0.24.2" } } diff --git a/examples/portfolio/package.json b/examples/portfolio/package.json index 637ef99f6..ff9d69628 100644 --- a/examples/portfolio/package.json +++ b/examples/portfolio/package.json @@ -10,7 +10,7 @@ }, "devDependencies": { "@astrojs/renderer-preact": "^0.5.0", - "astro": "^0.24.1", + "astro": "^0.24.2", "sass": "^1.49.9" } } diff --git a/examples/ssr/package.json b/examples/ssr/package.json index 380fa7a16..5af30d29f 100644 --- a/examples/ssr/package.json +++ b/examples/ssr/package.json @@ -12,7 +12,7 @@ }, "devDependencies": { "@astrojs/renderer-svelte": "^0.5.1", - "astro": "^0.24.1", + "astro": "^0.24.2", "unocss": "^0.15.6", "vite-imagetools": "^4.0.3" } diff --git a/examples/starter/package.json b/examples/starter/package.json index 157984983..5c84b1adb 100644 --- a/examples/starter/package.json +++ b/examples/starter/package.json @@ -9,6 +9,6 @@ "preview": "astro preview" }, "devDependencies": { - "astro": "^0.24.1" + "astro": "^0.24.2" } } diff --git a/examples/subpath/package.json b/examples/subpath/package.json index 41083af49..87ed54e95 100644 --- a/examples/subpath/package.json +++ b/examples/subpath/package.json @@ -10,7 +10,7 @@ }, "devDependencies": { "@astrojs/renderer-react": "^0.5.0", - "astro": "^0.24.1", + "astro": "^0.24.2", "sass": "^1.49.9" } } diff --git a/examples/with-markdown-plugins/package.json b/examples/with-markdown-plugins/package.json index c40239e71..436e55b07 100644 --- a/examples/with-markdown-plugins/package.json +++ b/examples/with-markdown-plugins/package.json @@ -10,7 +10,7 @@ }, "devDependencies": { "@astrojs/markdown-remark": "^0.6.4", - "astro": "^0.24.1", + "astro": "^0.24.2", "hast-util-select": "5.0.1", "rehype-autolink-headings": "^6.1.1", "rehype-slug": "^5.0.1", diff --git a/examples/with-markdown-shiki/package.json b/examples/with-markdown-shiki/package.json index 6d3cd5a91..86ba8f8ab 100644 --- a/examples/with-markdown-shiki/package.json +++ b/examples/with-markdown-shiki/package.json @@ -10,6 +10,6 @@ }, "devDependencies": { "@astrojs/markdown-remark": "^0.6.4", - "astro": "^0.24.1" + "astro": "^0.24.2" } } diff --git a/examples/with-markdown/package.json b/examples/with-markdown/package.json index d3529fbee..6cc66d005 100644 --- a/examples/with-markdown/package.json +++ b/examples/with-markdown/package.json @@ -14,6 +14,6 @@ "@astrojs/renderer-react": "^0.5.0", "@astrojs/renderer-svelte": "^0.5.1", "@astrojs/renderer-vue": "^0.4.0", - "astro": "^0.24.1" + "astro": "^0.24.2" } } diff --git a/examples/with-nanostores/package.json b/examples/with-nanostores/package.json index be04644fb..62d372e5c 100644 --- a/examples/with-nanostores/package.json +++ b/examples/with-nanostores/package.json @@ -25,6 +25,6 @@ "@astrojs/renderer-solid": "^0.4.0", "@astrojs/renderer-svelte": "^0.5.1", "@astrojs/renderer-vue": "^0.4.0", - "astro": "^0.24.1" + "astro": "^0.24.2" } } diff --git a/examples/with-tailwindcss/package.json b/examples/with-tailwindcss/package.json index 1fc8c036e..78d2aeb18 100644 --- a/examples/with-tailwindcss/package.json +++ b/examples/with-tailwindcss/package.json @@ -10,7 +10,7 @@ }, "devDependencies": { "@astrojs/renderer-preact": "^0.5.0", - "astro": "^0.24.1", + "astro": "^0.24.2", "autoprefixer": "^10.4.2", "postcss": "^8.4.8", "tailwindcss": "^3.0.23" diff --git a/examples/with-vite-plugin-pwa/package.json b/examples/with-vite-plugin-pwa/package.json index 70b889cb7..b64f25302 100644 --- a/examples/with-vite-plugin-pwa/package.json +++ b/examples/with-vite-plugin-pwa/package.json @@ -9,7 +9,7 @@ "preview": "astro preview" }, "devDependencies": { - "astro": "^0.24.1", + "astro": "^0.24.2", "vite-plugin-pwa": "0.11.11", "workbox-window": "^6.5.1" } diff --git a/packages/astro/CHANGELOG.md b/packages/astro/CHANGELOG.md index eca1f6bb5..4165aff5c 100644 --- a/packages/astro/CHANGELOG.md +++ b/packages/astro/CHANGELOG.md @@ -1,5 +1,27 @@ # astro +## 0.24.2 + +### Patch Changes + +- [#2801](https://github.com/withastro/astro/pull/2801) [`11fb3745`](https://github.com/withastro/astro/commit/11fb3745dd548c6a8fa94c6a29e0ee89bac591aa) Thanks [@FredKSchott](https://github.com/FredKSchott)! - Fix: Handle CLI output in a cross-compat way + +* [#2793](https://github.com/withastro/astro/pull/2793) [`6eb49479`](https://github.com/withastro/astro/commit/6eb494796e5144a4f2c12a6cce3fb2345c9b4e4e) Thanks [@FredKSchott](https://github.com/FredKSchott)! - Fix HTML double-escaping issue + +- [#2803](https://github.com/withastro/astro/pull/2803) [`2b76ee8d`](https://github.com/withastro/astro/commit/2b76ee8d75d44492af18b9ead35293da7178930a) Thanks [@natemoo-re](https://github.com/natemoo-re)! - Add an `astro/config` entrypoint with a `defineConfig` utility. + + Config files can now be easily benefit from Intellisense using the following approach: + + ```js + import { defineConfig } from 'astro/config'; + + export default defineConfig({ + renderers: [], + }); + ``` + +* [#2791](https://github.com/withastro/astro/pull/2791) [`2d95541b`](https://github.com/withastro/astro/commit/2d95541b52118f787144720cb28cdd64644b903a) Thanks [@bholmesdev](https://github.com/bholmesdev)! - Fix missing styles on initial dev server load (ex. Tailwind styles) + ## 0.24.1 ### Patch Changes @@ -32,9 +54,9 @@ ```json { - "scripts": { - "build": "astro build --legacy-build" - } + "scripts": { + "build": "astro build --legacy-build" + } } ``` @@ -54,7 +76,7 @@ ```ts if (Astro.slots.has('default')) { - const content = await Astro.slots.render('default'); + const content = await Astro.slots.render('default'); } ``` @@ -138,7 +160,7 @@ ```ts if (Astro.slots.has('default')) { - const content = await Astro.slots.render('default'); + const content = await Astro.slots.render('default'); } ``` @@ -162,9 +184,9 @@ ```json { - "scripts": { - "build": "astro build --legacy-build" - } + "scripts": { + "build": "astro build --legacy-build" + } } ``` @@ -276,12 +298,12 @@ ```typescript // src/pages/company.json.ts export async function get() { - return { - body: JSON.stringify({ - name: 'Astro Technology Company', - url: 'https://astro.build/', - }), - }; + return { + body: JSON.stringify({ + name: 'Astro Technology Company', + url: 'https://astro.build/', + }), + }; } ``` @@ -443,12 +465,12 @@ ```typescript // src/pages/company.json.ts export async function get() { - return { - body: JSON.stringify({ - name: 'Astro Technology Company', - url: 'https://astro.build/', - }), - }; + return { + body: JSON.stringify({ + name: 'Astro Technology Company', + url: 'https://astro.build/', + }), + }; } ``` @@ -1803,10 +1825,10 @@ For convenience, you may now also move your `astro.config.js` file to a top-leve ```js export default { - markdownOptions: { - remarkPlugins: ['remark-slug', ['remark-autolink-headings', { behavior: 'prepend' }]], - rehypePlugins: ['rehype-slug', ['rehype-autolink-headings', { behavior: 'prepend' }]], - }, + markdownOptions: { + remarkPlugins: ['remark-slug', ['remark-autolink-headings', { behavior: 'prepend' }]], + rehypePlugins: ['rehype-slug', ['rehype-autolink-headings', { behavior: 'prepend' }]], + }, }; ``` @@ -1826,10 +1848,10 @@ For convenience, you may now also move your `astro.config.js` file to a top-leve ```js export default { - name: '@matthewp/my-renderer', - server: './server.js', - client: './client.js', - hydrationPolyfills: ['./my-polyfill.js'], + name: '@matthewp/my-renderer', + server: './server.js', + client: './client.js', + hydrationPolyfills: ['./my-polyfill.js'], }; ``` diff --git a/packages/astro/package.json b/packages/astro/package.json index 656b309c3..7db88fcd2 100644 --- a/packages/astro/package.json +++ b/packages/astro/package.json @@ -1,6 +1,6 @@ { "name": "astro", - "version": "0.24.1", + "version": "0.24.2", "description": "Astro is a modern site builder with web best practices, performance, and DX front-of-mind.", "type": "module", "author": "withastro",