From 6ead80db47aa128cb286bea9cfe9ff7635a5f4ac Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 9 Mar 2022 19:01:26 -0600 Subject: [PATCH] [ci] release (next) (#2734) Co-authored-by: github-actions[bot] --- .changeset/pre.json | 12 +++- 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-svelte/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 | 76 ++++++++++++++------- packages/astro/package.json | 2 +- 30 files changed, 91 insertions(+), 53 deletions(-) diff --git a/.changeset/pre.json b/.changeset/pre.json index 571088fc2..b653a39ad 100644 --- a/.changeset/pre.json +++ b/.changeset/pre.json @@ -45,12 +45,20 @@ "@astrojs/renderer-vue": "0.4.0", "astro-scripts": "0.0.1", "astro.build": "0.0.1", - "docs": "0.0.7" + "docs": "0.0.7", + "@astrojs/webapi": "0.11.0" }, "changesets": [ + "clean-bottles-drive", + "five-stingrays-collect", "fresh-ladybugs-think", + "giant-cycles-search", "modern-elephants-burn", + "neat-snakes-know", "new-pianos-boil", - "thick-ravens-chew" + "silver-foxes-bathe", + "sour-socks-enjoy", + "thick-ravens-chew", + "yellow-trees-clean" ] } diff --git a/examples/blog-multiple-authors/package.json b/examples/blog-multiple-authors/package.json index 2d8b33dc2..ca4ff4478 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.0-next.0", + "astro": "^0.24.0-next.1", "sass": "^1.49.8" } } diff --git a/examples/blog/package.json b/examples/blog/package.json index 737c86a51..fd9847ea9 100644 --- a/examples/blog/package.json +++ b/examples/blog/package.json @@ -9,7 +9,7 @@ "preview": "astro preview" }, "devDependencies": { - "astro": "^0.24.0-next.0", + "astro": "^0.24.0-next.1", "@astrojs/renderer-preact": "^0.5.0" } } diff --git a/examples/component/demo/package.json b/examples/component/demo/package.json index 438e6485e..673cf369f 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.0-next.0" + "astro": "^0.24.0-next.1" } } diff --git a/examples/component/package.json b/examples/component/package.json index 613eac1a9..8ed35be8c 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.0-next.0" + "astro": "^0.24.0-next.1" } } diff --git a/examples/docs/package.json b/examples/docs/package.json index 406c1f51f..ee55a0cbe 100644 --- a/examples/docs/package.json +++ b/examples/docs/package.json @@ -19,6 +19,6 @@ "devDependencies": { "@astrojs/renderer-react": "^0.5.0", "@astrojs/renderer-preact": "^0.5.0", - "astro": "^0.24.0-next.0" + "astro": "^0.24.0-next.1" } } diff --git a/examples/env-vars/package.json b/examples/env-vars/package.json index 1751b14a7..89988ba46 100644 --- a/examples/env-vars/package.json +++ b/examples/env-vars/package.json @@ -9,6 +9,6 @@ "preview": "astro preview" }, "devDependencies": { - "astro": "^0.24.0-next.0" + "astro": "^0.24.0-next.1" } } diff --git a/examples/framework-alpine/package.json b/examples/framework-alpine/package.json index 87154d440..01628b51c 100644 --- a/examples/framework-alpine/package.json +++ b/examples/framework-alpine/package.json @@ -9,6 +9,6 @@ "preview": "astro preview" }, "devDependencies": { - "astro": "^0.24.0-next.0" + "astro": "^0.24.0-next.1" } } diff --git a/examples/framework-lit/package.json b/examples/framework-lit/package.json index 61d97814e..6ada91335 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.0-next.0" + "astro": "^0.24.0-next.1" } } diff --git a/examples/framework-multiple/package.json b/examples/framework-multiple/package.json index aef07762e..8a1f4c53e 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.0-next.0" + "astro": "^0.24.0-next.1" } } diff --git a/examples/framework-preact/package.json b/examples/framework-preact/package.json index 7c946770e..134c344e6 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.0-next.0" + "astro": "^0.24.0-next.1" } } diff --git a/examples/framework-react/package.json b/examples/framework-react/package.json index 7b0d66d1a..b3001830e 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.0-next.0" + "astro": "^0.24.0-next.1" } } diff --git a/examples/framework-solid/package.json b/examples/framework-solid/package.json index c782f3533..c5eb3458c 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.0-next.0" + "astro": "^0.24.0-next.1" } } diff --git a/examples/framework-svelte/package.json b/examples/framework-svelte/package.json index 83fecfe4f..69486db33 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.0-next.0" + "astro": "^0.24.0-next.1" } } diff --git a/examples/framework-vue/package.json b/examples/framework-vue/package.json index fdce32fc4..7d31bec68 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.0-next.0" + "astro": "^0.24.0-next.1" } } diff --git a/examples/minimal/package.json b/examples/minimal/package.json index 16bea438c..06b0a60a6 100644 --- a/examples/minimal/package.json +++ b/examples/minimal/package.json @@ -9,6 +9,6 @@ "preview": "astro preview" }, "devDependencies": { - "astro": "^0.24.0-next.0" + "astro": "^0.24.0-next.1" } } diff --git a/examples/non-html-pages/package.json b/examples/non-html-pages/package.json index 837ead14b..2da0eef1b 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.0-next.0" + "astro": "^0.24.0-next.1" } } diff --git a/examples/portfolio-svelte/package.json b/examples/portfolio-svelte/package.json index b50d15131..817e71c0c 100644 --- a/examples/portfolio-svelte/package.json +++ b/examples/portfolio-svelte/package.json @@ -10,7 +10,7 @@ }, "devDependencies": { "@astrojs/renderer-svelte": "^0.5.1", - "astro": "^0.24.0-next.0", + "astro": "^0.24.0-next.1", "sass": "^1.49.9" } } diff --git a/examples/portfolio/package.json b/examples/portfolio/package.json index 88620ca72..873694c01 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.0-next.0", + "astro": "^0.24.0-next.1", "sass": "^1.49.9" } } diff --git a/examples/ssr/package.json b/examples/ssr/package.json index 0075e0f30..c76373822 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.0-next.0", + "astro": "^0.24.0-next.1", "unocss": "^0.15.5", "vite-imagetools": "^4.0.1" } diff --git a/examples/starter/package.json b/examples/starter/package.json index 963e78d53..58ce59d11 100644 --- a/examples/starter/package.json +++ b/examples/starter/package.json @@ -9,6 +9,6 @@ "preview": "astro preview" }, "devDependencies": { - "astro": "^0.24.0-next.0" + "astro": "^0.24.0-next.1" } } diff --git a/examples/subpath/package.json b/examples/subpath/package.json index 8ac5cedee..36d0c3eca 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.0-next.0", + "astro": "^0.24.0-next.1", "sass": "^1.49.9" } } diff --git a/examples/with-markdown-plugins/package.json b/examples/with-markdown-plugins/package.json index 6092c7ec3..160214805 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.1", - "astro": "^0.24.0-next.0", + "astro": "^0.24.0-next.1", "hast-util-select": "5.0.1", "rehype-autolink-headings": "^6.1.0", "rehype-slug": "^5.0.0", diff --git a/examples/with-markdown-shiki/package.json b/examples/with-markdown-shiki/package.json index 83b6a66a9..d119be591 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.1", - "astro": "^0.24.0-next.0" + "astro": "^0.24.0-next.1" } } diff --git a/examples/with-markdown/package.json b/examples/with-markdown/package.json index d5374964c..565ebdb5c 100644 --- a/examples/with-markdown/package.json +++ b/examples/with-markdown/package.json @@ -14,6 +14,6 @@ "@astrojs/renderer-svelte": "^0.5.1", "@astrojs/renderer-vue": "^0.4.0", "@astrojs/markdown-remark": "^0.6.1", - "astro": "^0.24.0-next.0" + "astro": "^0.24.0-next.1" } } diff --git a/examples/with-nanostores/package.json b/examples/with-nanostores/package.json index 405842aec..8e1496b7f 100644 --- a/examples/with-nanostores/package.json +++ b/examples/with-nanostores/package.json @@ -25,6 +25,6 @@ "@astrojs/renderer-preact": "^0.5.0", "@astrojs/renderer-solid": "^0.4.0", "@astrojs/renderer-svelte": "^0.5.1", - "astro": "^0.24.0-next.0" + "astro": "^0.24.0-next.1" } } diff --git a/examples/with-tailwindcss/package.json b/examples/with-tailwindcss/package.json index 4e99fdef6..bdfb15e1b 100644 --- a/examples/with-tailwindcss/package.json +++ b/examples/with-tailwindcss/package.json @@ -11,7 +11,7 @@ "devDependencies": { "@astrojs/renderer-preact": "^0.5.0", "postcss": "^8.3.8", - "astro": "^0.24.0-next.0", + "astro": "^0.24.0-next.1", "autoprefixer": "^10.4.0", "tailwindcss": "^3.0.5" } diff --git a/examples/with-vite-plugin-pwa/package.json b/examples/with-vite-plugin-pwa/package.json index 2c7c5d408..d54604088 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.0-next.0", + "astro": "^0.24.0-next.1", "vite-plugin-pwa": "0.11.11", "workbox-window": "^6.5.0" } diff --git a/packages/astro/CHANGELOG.md b/packages/astro/CHANGELOG.md index 17ede6e0d..f2729af88 100644 --- a/packages/astro/CHANGELOG.md +++ b/packages/astro/CHANGELOG.md @@ -1,5 +1,35 @@ # astro +## 0.24.0-next.1 + +### Minor Changes + +- [`af075d81`](https://github.com/withastro/astro/commit/af075d81579d0a77f773435bbce391e42f9dff21) Thanks [@natemoo-re](https://github.com/natemoo-re)! - Visual redesign of the `astro dev` CLI, including new `astro --help` and `astro --version` outputs. + + These changes introduce a new startup screen, make it more obvious when a file triggers in-place HMR (`update`) or a full reload (`reload`), and improve the way Astro surfaces errors during dev. + +* [#2747](https://github.com/withastro/astro/pull/2747) [`05b66bd6`](https://github.com/withastro/astro/commit/05b66bd68b173d30921c9f0565b3dc2379039fcd) Thanks [@natemoo-re](https://github.com/natemoo-re)! - Escape HTML inside of expressions by default. Please see [our migration guide](https://docs.astro.build/en/migrate/#deprecated-unescaped-html) for more details. + +### Patch Changes + +- [#2695](https://github.com/withastro/astro/pull/2695) [`ae8d9256`](https://github.com/withastro/astro/commit/ae8d925666dac0008d8a607afa5f6223f95689a4) Thanks [@natemoo-re](https://github.com/natemoo-re)! - Update `Astro.slots` API with new public `has` and `render` methods. + + This is a backwards-compatible change—`Astro.slots.default` will still be `true` if the component has been passed a `default` slot. + + ```ts + if (Astro.slots.has('default')) { + const content = await Astro.slots.render('default'); + } + ``` + +* [#2705](https://github.com/withastro/astro/pull/2705) [`72c2c86e`](https://github.com/withastro/astro/commit/72c2c86e9d7c9b2ce6be13ddb273d4b0b11a5723) Thanks [@natemoo-re](https://github.com/natemoo-re)! - Fixes the static build to write to 404.html + +- [#2737](https://github.com/withastro/astro/pull/2737) [`e8d4e568`](https://github.com/withastro/astro/commit/e8d4e56803d21cd187bd7d72899ba5d545522786) Thanks [@natemoo-re](https://github.com/natemoo-re)! - Astro's logger has been redesigned for an improved experience! In addition to deduping identical messages, we've surfaced more error details and exposed new events like `update` (for in-place HMR) and `reload` (for full-reload HMR). + +* [#2733](https://github.com/withastro/astro/pull/2733) [`6bf124fb`](https://github.com/withastro/astro/commit/6bf124fb2f8ffd3909148ccc0e253c1f72f364cb) Thanks [@FredKSchott](https://github.com/FredKSchott)! - Remove a bad dev warning + +- [#2732](https://github.com/withastro/astro/pull/2732) [`0ae96bb7`](https://github.com/withastro/astro/commit/0ae96bb7491a60eb2032bab23377ca54951a67a7) Thanks [@bholmesdev](https://github.com/bholmesdev)! - Update server start message to use localhost for local hostnames + ## 0.24.0-next.0 ### Minor Changes @@ -12,9 +42,9 @@ ```json { - "scripts": { - "build": "astro build --legacy-build" - } + "scripts": { + "build": "astro build --legacy-build" + } } ``` @@ -126,12 +156,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/', + }), + }; } ``` @@ -293,12 +323,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/', + }), + }; } ``` @@ -1653,10 +1683,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' }]], + }, }; ``` @@ -1676,10 +1706,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 d3dea5a39..c6d366c7e 100644 --- a/packages/astro/package.json +++ b/packages/astro/package.json @@ -1,6 +1,6 @@ { "name": "astro", - "version": "0.24.0-next.0", + "version": "0.24.0-next.1", "description": "Astro is a modern site builder with web best practices, performance, and DX front-of-mind.", "type": "module", "author": "withastro",