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 571088fc25..b653a39adf 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 2d8b33dc27..ca4ff44784 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 737c86a511..fd9847ea97 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 438e6485e4..673cf369f0 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 613eac1a91..8ed35be8c0 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 406c1f51fe..ee55a0cbef 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 1751b14a7e..89988ba466 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 87154d440a..01628b51c7 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 61d97814e7..6ada91335f 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 aef07762e9..8a1f4c53ef 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 7c946770e1..134c344e6d 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 7b0d66d1aa..b3001830e9 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 c782f35332..c5eb3458c7 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 83fecfe4fc..69486db33a 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 fdce32fc4d..7d31bec681 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 16bea438c5..06b0a60a6a 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 837ead14b7..2da0eef1be 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 b50d15131d..817e71c0cd 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 88620ca720..873694c01d 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 0075e0f30f..c763738222 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 963e78d530..58ce59d111 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 8ac5cedee0..36d0c3eca4 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 6092c7ec39..160214805a 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 83b6a66a90..d119be591f 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 d5374964c3..565ebdb5c7 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 405842aec5..8e1496b7f1 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 4e99fdef63..bdfb15e1b9 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 2c7c5d408f..d546040889 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 17ede6e0d1..f2729af88a 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 d3dea5a39b..c6d366c7e4 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",