From 25659a014e0cef9bdcf821dd888caa4ae146cc39 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 4 Mar 2022 17:05:02 -0600 Subject: [PATCH] [ci] release (next) (#2721) * [ci] release (next) * chore: update changeset Co-authored-by: github-actions[bot] Co-authored-by: Nate Moore --- .changeset/new-pianos-boil.md | 7 +++ .changeset/pre.json | 7 ++- 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/fast-build/package.json | 5 +- 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 | 5 +- 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 | 6 +- examples/with-tailwindcss/package.json | 5 +- examples/with-vite-plugin-pwa/package.json | 2 +- packages/astro/CHANGELOG.md | 70 +++++++++++++++------ packages/astro/package.json | 2 +- 32 files changed, 95 insertions(+), 60 deletions(-) create mode 100644 .changeset/new-pianos-boil.md diff --git a/.changeset/new-pianos-boil.md b/.changeset/new-pianos-boil.md new file mode 100644 index 0000000000000..bb3c1a728b5e9 --- /dev/null +++ b/.changeset/new-pianos-boil.md @@ -0,0 +1,7 @@ +--- +'astro': minor +--- + +## Updated `` and `` behavior + +Since `astro@0.21`, Astro placed certain restrictions on what files could use `` or `` tags. In `astro@0.24`, the restrictions have been lifted. Astro will be able to correctly handle `` and `` tags in _any_ component, not just those in `src/pages/` or `src/layouts/`. diff --git a/.changeset/pre.json b/.changeset/pre.json index a7b439d80f599..9532184e9ad05 100644 --- a/.changeset/pre.json +++ b/.changeset/pre.json @@ -48,5 +48,10 @@ "astro.build": "0.0.1", "docs": "0.0.7" }, - "changesets": [] + "changesets": [ + "fresh-ladybugs-think", + "modern-elephants-burn", + "new-pianos-boil", + "thick-ravens-chew" + ] } diff --git a/examples/blog-multiple-authors/package.json b/examples/blog-multiple-authors/package.json index 1246009539c4e..2d8b33dc27a36 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.23.7", + "astro": "^0.24.0-next.0", "sass": "^1.49.8" } } diff --git a/examples/blog/package.json b/examples/blog/package.json index 68c0ca62c0dfb..737c86a511438 100644 --- a/examples/blog/package.json +++ b/examples/blog/package.json @@ -9,7 +9,7 @@ "preview": "astro preview" }, "devDependencies": { - "astro": "^0.23.7", + "astro": "^0.24.0-next.0", "@astrojs/renderer-preact": "^0.5.0" } } diff --git a/examples/component/demo/package.json b/examples/component/demo/package.json index 6fb878f6e3050..011b0bc2c3918 100644 --- a/examples/component/demo/package.json +++ b/examples/component/demo/package.json @@ -9,7 +9,7 @@ "preview": "astro preview" }, "devDependencies": { - "astro": "^0.23.7", + "astro": "^0.24.0-next.0", "@example/my-component": "workspace:*" } } diff --git a/examples/component/package.json b/examples/component/package.json index dc1c119cfd0f3..613eac1a91ae8 100644 --- a/examples/component/package.json +++ b/examples/component/package.json @@ -8,6 +8,6 @@ "serve": "astro --project-root demo preview" }, "devDependencies": { - "astro": "^0.23.7" + "astro": "^0.24.0-next.0" } } diff --git a/examples/docs/package.json b/examples/docs/package.json index 620bf726f9967..995c8320d8540 100644 --- a/examples/docs/package.json +++ b/examples/docs/package.json @@ -15,6 +15,6 @@ "devDependencies": { "@astrojs/renderer-react": "^0.5.0", "@astrojs/renderer-preact": "^0.5.0", - "astro": "^0.23.7" + "astro": "^0.24.0-next.0" } } diff --git a/examples/env-vars/package.json b/examples/env-vars/package.json index 5b1dc86234084..1751b14a7e226 100644 --- a/examples/env-vars/package.json +++ b/examples/env-vars/package.json @@ -9,6 +9,6 @@ "preview": "astro preview" }, "devDependencies": { - "astro": "^0.23.7" + "astro": "^0.24.0-next.0" } } diff --git a/examples/fast-build/package.json b/examples/fast-build/package.json index 1259721d0e267..cb230c8e5908f 100644 --- a/examples/fast-build/package.json +++ b/examples/fast-build/package.json @@ -12,10 +12,9 @@ "devDependencies": { "@astrojs/renderer-vue": "^0.4.0", "@astrojs/renderer-preact": "^0.5.0", - "astro": "^0.23.7", + "astro": "^0.24.0-next.0", "sass": "^1.49.8", "unocss": "^0.15.5", - "vite-imagetools": "^4.0.1", - "@astrojs/renderer-vue": "^0.4.0" + "vite-imagetools": "^4.0.1" } } diff --git a/examples/framework-alpine/package.json b/examples/framework-alpine/package.json index 49384258ae0be..87154d440a452 100644 --- a/examples/framework-alpine/package.json +++ b/examples/framework-alpine/package.json @@ -9,6 +9,6 @@ "preview": "astro preview" }, "devDependencies": { - "astro": "^0.23.7" + "astro": "^0.24.0-next.0" } } diff --git a/examples/framework-lit/package.json b/examples/framework-lit/package.json index e15c32b8e676a..61d97814e7e3c 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.23.7" + "astro": "^0.24.0-next.0" } } diff --git a/examples/framework-multiple/package.json b/examples/framework-multiple/package.json index 5b3c53da50e44..d85dd0daf07c5 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.4.0", "@astrojs/renderer-vue": "^0.4.0", - "astro": "^0.23.7" + "astro": "^0.24.0-next.0" } } diff --git a/examples/framework-preact/package.json b/examples/framework-preact/package.json index 1fa0b2a64586b..7c946770e1fea 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.23.7" + "astro": "^0.24.0-next.0" } } diff --git a/examples/framework-react/package.json b/examples/framework-react/package.json index 4d1762a87c4ca..7b0d66d1aafc6 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.23.7" + "astro": "^0.24.0-next.0" } } diff --git a/examples/framework-solid/package.json b/examples/framework-solid/package.json index 5bb22ea5535d3..c782f3533254c 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.23.7" + "astro": "^0.24.0-next.0" } } diff --git a/examples/framework-svelte/package.json b/examples/framework-svelte/package.json index 7dd4d12e20645..660435fa07cc3 100644 --- a/examples/framework-svelte/package.json +++ b/examples/framework-svelte/package.json @@ -10,6 +10,6 @@ }, "devDependencies": { "@astrojs/renderer-svelte": "^0.4.0", - "astro": "^0.23.7" + "astro": "^0.24.0-next.0" } } diff --git a/examples/framework-vue/package.json b/examples/framework-vue/package.json index 8662c303feaa2..fdce32fc4d8e8 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.23.7" + "astro": "^0.24.0-next.0" } } diff --git a/examples/minimal/package.json b/examples/minimal/package.json index aa4ce339ecdaa..16bea438c56f4 100644 --- a/examples/minimal/package.json +++ b/examples/minimal/package.json @@ -9,6 +9,6 @@ "preview": "astro preview" }, "devDependencies": { - "astro": "^0.23.7" + "astro": "^0.24.0-next.0" } } diff --git a/examples/non-html-pages/package.json b/examples/non-html-pages/package.json index 665ca4a45250c..837ead14b7271 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.23.7" + "astro": "^0.24.0-next.0" } } diff --git a/examples/portfolio-svelte/package.json b/examples/portfolio-svelte/package.json index b9c83a2e8d7a5..f6c7fe58e4c09 100644 --- a/examples/portfolio-svelte/package.json +++ b/examples/portfolio-svelte/package.json @@ -10,6 +10,6 @@ }, "devDependencies": { "@astrojs/renderer-svelte": "^0.4.0", - "astro": "^0.23.7" + "astro": "^0.24.0-next.0" } } diff --git a/examples/portfolio/package.json b/examples/portfolio/package.json index 744cfaddd5fe8..5629af7d40086 100644 --- a/examples/portfolio/package.json +++ b/examples/portfolio/package.json @@ -10,6 +10,6 @@ }, "devDependencies": { "@astrojs/renderer-preact": "^0.5.0", - "astro": "^0.23.7" + "astro": "^0.24.0-next.0" } } diff --git a/examples/ssr/package.json b/examples/ssr/package.json index 9da47f6a35b11..18a3fed472565 100644 --- a/examples/ssr/package.json +++ b/examples/ssr/package.json @@ -12,9 +12,8 @@ }, "devDependencies": { "@astrojs/renderer-svelte": "^0.4.0", - "astro": "^0.23.7", + "astro": "^0.24.0-next.0", "unocss": "^0.15.5", - "vite-imagetools": "^4.0.1", - "@astrojs/renderer-svelte": "^0.5.1" + "vite-imagetools": "^4.0.1" } } diff --git a/examples/starter/package.json b/examples/starter/package.json index 80bdb70f47827..963e78d530ecd 100644 --- a/examples/starter/package.json +++ b/examples/starter/package.json @@ -9,6 +9,6 @@ "preview": "astro preview" }, "devDependencies": { - "astro": "^0.23.7" + "astro": "^0.24.0-next.0" } } diff --git a/examples/subpath/package.json b/examples/subpath/package.json index 43b01d9f7bc40..ce84074474485 100644 --- a/examples/subpath/package.json +++ b/examples/subpath/package.json @@ -9,7 +9,7 @@ "preview": "astro preview" }, "devDependencies": { - "astro": "^0.23.7", + "astro": "^0.24.0-next.0", "@astrojs/renderer-react": "^0.5.0" } } diff --git a/examples/with-markdown-plugins/package.json b/examples/with-markdown-plugins/package.json index a275c361204f7..6092c7ec39765 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.23.7", + "astro": "^0.24.0-next.0", "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 9ec9319503167..83b6a66a909df 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.23.7" + "astro": "^0.24.0-next.0" } } diff --git a/examples/with-markdown/package.json b/examples/with-markdown/package.json index 144e8d6de13fb..cf1a00bfd144f 100644 --- a/examples/with-markdown/package.json +++ b/examples/with-markdown/package.json @@ -14,6 +14,6 @@ "@astrojs/renderer-svelte": "^0.4.0", "@astrojs/renderer-vue": "^0.4.0", "@astrojs/markdown-remark": "^0.6.1", - "astro": "^0.23.7" + "astro": "^0.24.0-next.0" } } diff --git a/examples/with-nanostores/package.json b/examples/with-nanostores/package.json index 6777c58d13d77..80be031f34e12 100644 --- a/examples/with-nanostores/package.json +++ b/examples/with-nanostores/package.json @@ -21,10 +21,6 @@ "@astrojs/renderer-vue": "^0.4.0", "@astrojs/renderer-preact": "^0.5.0", "@astrojs/renderer-solid": "^0.4.0", - "astro": "^0.23.7", - "@astrojs/renderer-preact": "^0.5.0", - "@astrojs/renderer-react": "^0.5.0", - "@astrojs/renderer-svelte": "^0.5.1", - "@astrojs/renderer-vue": "^0.4.0" + "astro": "^0.24.0-next.0" } } diff --git a/examples/with-tailwindcss/package.json b/examples/with-tailwindcss/package.json index a34e085f39270..96a2e5c7df3c2 100644 --- a/examples/with-tailwindcss/package.json +++ b/examples/with-tailwindcss/package.json @@ -10,9 +10,8 @@ }, "devDependencies": { "@astrojs/renderer-preact": "^0.5.0", - "astro": "^0.23.7", + "astro": "^0.24.0-next.0", "autoprefixer": "^10.4.0", - "tailwindcss": "^3.0.5", - "@astrojs/renderer-preact": "^0.5.0" + "tailwindcss": "^3.0.5" } } diff --git a/examples/with-vite-plugin-pwa/package.json b/examples/with-vite-plugin-pwa/package.json index 9324eef6716e4..2c7c5d408f09a 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.23.7", + "astro": "^0.24.0-next.0", "vite-plugin-pwa": "0.11.11", "workbox-window": "^6.5.0" } diff --git a/packages/astro/CHANGELOG.md b/packages/astro/CHANGELOG.md index fa4f3a6bca0f9..142756d04b9d8 100644 --- a/packages/astro/CHANGELOG.md +++ b/packages/astro/CHANGELOG.md @@ -1,5 +1,35 @@ # astro +## 0.24.0-next.0 + +### Minor Changes + +- [#2705](https://github.com/withastro/astro/pull/2705) [`8ce63ee6`](https://github.com/withastro/astro/commit/8ce63ee658677ecabcb3068f00413b51e7db30ef) Thanks [@natemoo-re](https://github.com/natemoo-re)! - New default build strategy + + This change marks the "static build" as the new default build strategy. If you are unfamiliar with this build strategy check out the [migration guide](https://docs.astro.build/en/migrate/#planned-deprecations) on how to change your code to be compatible with this new bulid strategy. + + If you'd like to keep using the old build strategy, use the flag `--legacy-build` both in your `astro dev` and `astro build` scripts, for ex: + + ```json + { + "scripts": { + "build": "astro build --legacy-build" + } + } + ``` + + Note that the legacy build _is_ deprecated and will be removed in a future version. You should only use this flag until you have the time to migration your code. + + - **Updated `` and `` behavior** + + Since `astro@0.21`, Astro placed certain restrictions on what files could use `` or `` tags. In `astro@0.24`, the restrictions have been lifted. Astro will be able to correctly handle `` and `` tags in _any_ component, not just those in `src/pages/` or `src/layouts/`. + +### Patch Changes + +- [#2705](https://github.com/withastro/astro/pull/2705) [`176d4082`](https://github.com/withastro/astro/commit/176d4082ca642e3d7b996529f1efed7048b4d04f) Thanks [@natemoo-re](https://github.com/natemoo-re)! - Fixes use of private .env variables with the static build + +* [#2705](https://github.com/withastro/astro/pull/2705) [`a483c044`](https://github.com/withastro/astro/commit/a483c0446ba222edf4258f4683cd918ea209b8f4) Thanks [@natemoo-re](https://github.com/natemoo-re)! - Replace `send` dependency with `sirv` + ## 0.23.7 ### Patch Changes @@ -96,12 +126,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/', + }), + }; } ``` @@ -263,12 +293,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/', + }), + }; } ``` @@ -1623,10 +1653,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' }]], + }, }; ``` @@ -1646,10 +1676,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 760719d8fbe5e..661c523f84a4e 100644 --- a/packages/astro/package.json +++ b/packages/astro/package.json @@ -1,6 +1,6 @@ { "name": "astro", - "version": "0.23.7", + "version": "0.24.0-next.0", "description": "Astro is a modern site builder with web best practices, performance, and DX front-of-mind.", "type": "module", "author": "withastro",