diff --git a/.changeset/pre.json b/.changeset/pre.json index a7b439d80f59..067daddb5c04 100644 --- a/.changeset/pre.json +++ b/.changeset/pre.json @@ -48,5 +48,9 @@ "astro.build": "0.0.1", "docs": "0.0.7" }, - "changesets": [] + "changesets": [ + "fresh-ladybugs-think", + "modern-elephants-burn", + "thick-ravens-chew" + ] } diff --git a/examples/blog-multiple-authors/package.json b/examples/blog-multiple-authors/package.json index 1b8a12903f07..5a7d8ef737bb 100644 --- a/examples/blog-multiple-authors/package.json +++ b/examples/blog-multiple-authors/package.json @@ -9,7 +9,7 @@ "preview": "astro preview" }, "devDependencies": { - "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 d54d2c995404..1140e944ff6a 100644 --- a/examples/blog/package.json +++ b/examples/blog/package.json @@ -9,6 +9,6 @@ "preview": "astro preview" }, "devDependencies": { - "astro": "^0.23.7" + "astro": "^0.24.0-next.0" } } diff --git a/examples/component/demo/package.json b/examples/component/demo/package.json index 72b9c72e0d1b..36c6c494dd2d 100644 --- a/examples/component/demo/package.json +++ b/examples/component/demo/package.json @@ -9,6 +9,6 @@ "preview": "astro preview" }, "devDependencies": { - "astro": "^0.23.7" + "astro": "^0.24.0-next.0" } } diff --git a/examples/component/package.json b/examples/component/package.json index 605c2dd86f03..fc9f97bbae38 100644 --- a/examples/component/package.json +++ b/examples/component/package.json @@ -12,6 +12,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 5125ebc8413d..c2cb26d6b055 100644 --- a/examples/docs/package.json +++ b/examples/docs/package.json @@ -12,6 +12,6 @@ "@docsearch/react": "^1.0.0-alpha.28" }, "devDependencies": { - "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 5b1dc8623408..1751b14a7e22 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 533e32062007..e50a4c4a8e2e 100644 --- a/examples/fast-build/package.json +++ b/examples/fast-build/package.json @@ -10,7 +10,7 @@ "preview": "astro preview" }, "devDependencies": { - "astro": "^0.23.7", + "astro": "^0.24.0-next.0", "preact": "~10.6.5", "unocss": "^0.15.5", "vite-imagetools": "^4.0.1" diff --git a/examples/framework-alpine/package.json b/examples/framework-alpine/package.json index 49384258ae0b..87154d440a45 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 e15c32b8e676..61d97814e7e3 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 0f3f9e0b5b10..cfa8727c8633 100644 --- a/examples/framework-multiple/package.json +++ b/examples/framework-multiple/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-preact/package.json b/examples/framework-preact/package.json index 159fd0838e7c..d5da2ddd7ffe 100644 --- a/examples/framework-preact/package.json +++ b/examples/framework-preact/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-react/package.json b/examples/framework-react/package.json index f07b3d6f16e0..9751ba81e998 100644 --- a/examples/framework-react/package.json +++ b/examples/framework-react/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-solid/package.json b/examples/framework-solid/package.json index 5bb22ea5535d..c782f3533254 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 136436ae98fd..e2ff6d7939cc 100644 --- a/examples/framework-svelte/package.json +++ b/examples/framework-svelte/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-vue/package.json b/examples/framework-vue/package.json index 5ed84800f56d..27b97f6dccd1 100644 --- a/examples/framework-vue/package.json +++ b/examples/framework-vue/package.json @@ -9,6 +9,6 @@ "preview": "astro preview" }, "devDependencies": { - "astro": "^0.23.7" + "astro": "^0.24.0-next.0" } } diff --git a/examples/minimal/package.json b/examples/minimal/package.json index aa4ce339ecda..16bea438c56f 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 665ca4a45250..837ead14b727 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 0ea6e4cc57e7..bc5755f2e49f 100644 --- a/examples/portfolio-svelte/package.json +++ b/examples/portfolio-svelte/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/package.json b/examples/portfolio/package.json index cb04abf0a184..3e5358492d1d 100644 --- a/examples/portfolio/package.json +++ b/examples/portfolio/package.json @@ -9,6 +9,6 @@ "preview": "astro preview" }, "devDependencies": { - "astro": "^0.23.7" + "astro": "^0.24.0-next.0" } } diff --git a/examples/ssr/package.json b/examples/ssr/package.json index 35cabd062138..125dad5ec4db 100644 --- a/examples/ssr/package.json +++ b/examples/ssr/package.json @@ -11,7 +11,7 @@ "server": "node server/server.mjs" }, "devDependencies": { - "astro": "^0.23.7", + "astro": "^0.24.0-next.0", "unocss": "^0.15.5", "vite-imagetools": "^4.0.1" }, diff --git a/examples/starter/package.json b/examples/starter/package.json index 80bdb70f4782..963e78d530ec 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 5610f1ce888f..117f60106341 100644 --- a/examples/subpath/package.json +++ b/examples/subpath/package.json @@ -9,6 +9,6 @@ "preview": "astro preview" }, "devDependencies": { - "astro": "^0.23.7" + "astro": "^0.24.0-next.0" } } diff --git a/examples/with-markdown-plugins/package.json b/examples/with-markdown-plugins/package.json index ebf90ac6bf05..6e1ecda98dfc 100644 --- a/examples/with-markdown-plugins/package.json +++ b/examples/with-markdown-plugins/package.json @@ -9,7 +9,7 @@ "preview": "astro preview" }, "devDependencies": { - "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 a4d8d0bf6356..7c75363dcfa1 100644 --- a/examples/with-markdown-shiki/package.json +++ b/examples/with-markdown-shiki/package.json @@ -9,6 +9,6 @@ "preview": "astro preview" }, "devDependencies": { - "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 2e30af40c428..1719c423b8e1 100644 --- a/examples/with-markdown/package.json +++ b/examples/with-markdown/package.json @@ -9,6 +9,6 @@ "preview": "astro preview" }, "devDependencies": { - "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 5fc8799e7013..1dc0c660719f 100644 --- a/examples/with-nanostores/package.json +++ b/examples/with-nanostores/package.json @@ -17,6 +17,6 @@ }, "devDependencies": { "@astrojs/renderer-solid": "^0.4.0", - "astro": "^0.23.7" + "astro": "^0.24.0-next.0" } } diff --git a/examples/with-tailwindcss/package.json b/examples/with-tailwindcss/package.json index ffe2fc7a157e..6cf6c975adbb 100644 --- a/examples/with-tailwindcss/package.json +++ b/examples/with-tailwindcss/package.json @@ -9,7 +9,7 @@ "preview": "astro preview" }, "devDependencies": { - "astro": "^0.23.7", + "astro": "^0.24.0-next.0", "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 8c779d4d17a3..12ad017827d5 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.5" } } diff --git a/packages/astro/CHANGELOG.md b/packages/astro/CHANGELOG.md index fa4f3a6bca0f..c53559eff4b0 100644 --- a/packages/astro/CHANGELOG.md +++ b/packages/astro/CHANGELOG.md @@ -1,5 +1,32 @@ # 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. + +### 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 +123,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 +290,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 +1650,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 +1673,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 3f77d5a9b674..302ac256086c 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",