diff --git a/.changeset/thin-birds-rescue.md b/.changeset/thin-birds-rescue.md deleted file mode 100644 index 9cc6ea398..000000000 --- a/.changeset/thin-birds-rescue.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Fix HMR regression related to fine-grained `.astro` HMR. This fixes HMR for Tailwind and CSS styles when `.astro` files are edited. diff --git a/examples/blog-multiple-authors/package.json b/examples/blog-multiple-authors/package.json index 6be98433f..c8b56ca1f 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.2", + "astro": "^0.23.3", "sass": "^1.49.8" } } diff --git a/examples/blog/package.json b/examples/blog/package.json index 5b4c73ac1..bcc854f14 100644 --- a/examples/blog/package.json +++ b/examples/blog/package.json @@ -9,6 +9,6 @@ "preview": "astro preview" }, "devDependencies": { - "astro": "^0.23.2" + "astro": "^0.23.3" } } diff --git a/examples/component/demo/package.json b/examples/component/demo/package.json index 6182a4b8d..7154d0167 100644 --- a/examples/component/demo/package.json +++ b/examples/component/demo/package.json @@ -9,6 +9,6 @@ "preview": "astro preview" }, "devDependencies": { - "astro": "^0.23.2" + "astro": "^0.23.3" } } diff --git a/examples/component/package.json b/examples/component/package.json index 15854fcf5..259f6db06 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.2" + "astro": "^0.23.3" } } diff --git a/examples/docs/package.json b/examples/docs/package.json index 9fc608fb9..c6b3f1330 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.2" + "astro": "^0.23.3" } } diff --git a/examples/env-vars/package.json b/examples/env-vars/package.json index 909928449..466ed9326 100644 --- a/examples/env-vars/package.json +++ b/examples/env-vars/package.json @@ -9,6 +9,6 @@ "preview": "astro preview" }, "devDependencies": { - "astro": "^0.23.2" + "astro": "^0.23.3" } } diff --git a/examples/fast-build/package.json b/examples/fast-build/package.json index 660a1aeb5..104db2512 100644 --- a/examples/fast-build/package.json +++ b/examples/fast-build/package.json @@ -10,7 +10,7 @@ "preview": "astro preview" }, "devDependencies": { - "astro": "^0.23.2", + "astro": "^0.23.3", "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 2de6d3ced..b6c1657ba 100644 --- a/examples/framework-alpine/package.json +++ b/examples/framework-alpine/package.json @@ -9,6 +9,6 @@ "preview": "astro preview" }, "devDependencies": { - "astro": "^0.23.2" + "astro": "^0.23.3" } } diff --git a/examples/framework-lit/package.json b/examples/framework-lit/package.json index 1275c5efd..c21a80d3d 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.2" + "astro": "^0.23.3" } } diff --git a/examples/framework-multiple/package.json b/examples/framework-multiple/package.json index 7a0290074..23deb45ae 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.2" + "astro": "^0.23.3" } } diff --git a/examples/framework-preact/package.json b/examples/framework-preact/package.json index fa59c96da..d33b8c571 100644 --- a/examples/framework-preact/package.json +++ b/examples/framework-preact/package.json @@ -9,6 +9,6 @@ "preview": "astro preview" }, "devDependencies": { - "astro": "^0.23.2" + "astro": "^0.23.3" } } diff --git a/examples/framework-react/package.json b/examples/framework-react/package.json index e2ed1260d..0aa9c66d1 100644 --- a/examples/framework-react/package.json +++ b/examples/framework-react/package.json @@ -9,6 +9,6 @@ "preview": "astro preview" }, "devDependencies": { - "astro": "^0.23.2" + "astro": "^0.23.3" } } diff --git a/examples/framework-solid/package.json b/examples/framework-solid/package.json index 5a81465f3..6dd380421 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.2" + "astro": "^0.23.3" } } diff --git a/examples/framework-svelte/package.json b/examples/framework-svelte/package.json index 7f6cd170c..a3b9a2c39 100644 --- a/examples/framework-svelte/package.json +++ b/examples/framework-svelte/package.json @@ -9,6 +9,6 @@ "preview": "astro preview" }, "devDependencies": { - "astro": "^0.23.2" + "astro": "^0.23.3" } } diff --git a/examples/framework-vue/package.json b/examples/framework-vue/package.json index cea9acb9d..f624272cd 100644 --- a/examples/framework-vue/package.json +++ b/examples/framework-vue/package.json @@ -9,6 +9,6 @@ "preview": "astro preview" }, "devDependencies": { - "astro": "^0.23.2" + "astro": "^0.23.3" } } diff --git a/examples/minimal/package.json b/examples/minimal/package.json index c1928559d..10fa6ada9 100644 --- a/examples/minimal/package.json +++ b/examples/minimal/package.json @@ -9,6 +9,6 @@ "preview": "astro preview" }, "devDependencies": { - "astro": "^0.23.2" + "astro": "^0.23.3" } } diff --git a/examples/non-html-pages/package.json b/examples/non-html-pages/package.json index a63925e32..80403b325 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.2" + "astro": "^0.23.3" } } diff --git a/examples/portfolio-svelte/package.json b/examples/portfolio-svelte/package.json index 1cc8629ff..689efa71b 100644 --- a/examples/portfolio-svelte/package.json +++ b/examples/portfolio-svelte/package.json @@ -9,6 +9,6 @@ "preview": "astro preview" }, "devDependencies": { - "astro": "^0.23.2" + "astro": "^0.23.3" } } diff --git a/examples/portfolio/package.json b/examples/portfolio/package.json index 7eb70c1cf..79b91bd80 100644 --- a/examples/portfolio/package.json +++ b/examples/portfolio/package.json @@ -9,6 +9,6 @@ "preview": "astro preview" }, "devDependencies": { - "astro": "^0.23.2" + "astro": "^0.23.3" } } diff --git a/examples/ssr/package.json b/examples/ssr/package.json index 586b0a0fc..659f730f6 100644 --- a/examples/ssr/package.json +++ b/examples/ssr/package.json @@ -11,7 +11,7 @@ "server": "node server/server.mjs" }, "devDependencies": { - "astro": "^0.23.2", + "astro": "^0.23.3", "unocss": "^0.15.5", "vite-imagetools": "^4.0.1" }, diff --git a/examples/starter/package.json b/examples/starter/package.json index af9dc745a..6e656672d 100644 --- a/examples/starter/package.json +++ b/examples/starter/package.json @@ -9,6 +9,6 @@ "preview": "astro preview" }, "devDependencies": { - "astro": "^0.23.2" + "astro": "^0.23.3" } } diff --git a/examples/subpath/package.json b/examples/subpath/package.json index 354737b84..86f807248 100644 --- a/examples/subpath/package.json +++ b/examples/subpath/package.json @@ -9,6 +9,6 @@ "preview": "astro preview" }, "devDependencies": { - "astro": "^0.23.2" + "astro": "^0.23.3" } } diff --git a/examples/with-markdown-plugins/package.json b/examples/with-markdown-plugins/package.json index e8b0e60fe..a81b4586e 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.2", + "astro": "^0.23.3", "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 f05245d66..fd823b1c1 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.2" + "astro": "^0.23.3" } } diff --git a/examples/with-markdown/package.json b/examples/with-markdown/package.json index d95b12b86..e09a78826 100644 --- a/examples/with-markdown/package.json +++ b/examples/with-markdown/package.json @@ -9,6 +9,6 @@ "preview": "astro preview" }, "devDependencies": { - "astro": "^0.23.2" + "astro": "^0.23.3" } } diff --git a/examples/with-nanostores/package.json b/examples/with-nanostores/package.json index 68d461c17..0dc1e27ae 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.2" + "astro": "^0.23.3" } } diff --git a/examples/with-tailwindcss/package.json b/examples/with-tailwindcss/package.json index 6699dd907..05719fac4 100644 --- a/examples/with-tailwindcss/package.json +++ b/examples/with-tailwindcss/package.json @@ -9,7 +9,7 @@ "preview": "astro preview" }, "devDependencies": { - "astro": "^0.23.2", + "astro": "^0.23.3", "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 0000b5784..e81f9d18c 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.2", + "astro": "^0.23.3", "vite-plugin-pwa": "0.11.5" } } diff --git a/packages/astro/CHANGELOG.md b/packages/astro/CHANGELOG.md index c1eb7934b..a2a4d0495 100644 --- a/packages/astro/CHANGELOG.md +++ b/packages/astro/CHANGELOG.md @@ -1,5 +1,11 @@ # astro +## 0.23.3 + +### Patch Changes + +- [#2681](https://github.com/withastro/astro/pull/2681) [`046af364`](https://github.com/withastro/astro/commit/046af364750ffc29c68a93c024045228aa16a5ab) Thanks [@natemoo-re](https://github.com/natemoo-re)! - Fix HMR regression related to fine-grained `.astro` HMR. This fixes HMR for Tailwind and CSS styles when `.astro` files are edited. + ## 0.23.2 ### Patch Changes @@ -54,12 +60,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/', + }), + }; } ``` @@ -221,12 +227,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/', + }), + }; } ``` @@ -1581,10 +1587,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' }]], + }, }; ``` @@ -1604,10 +1610,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 7e1e2908f..bc57827a8 100644 --- a/packages/astro/package.json +++ b/packages/astro/package.json @@ -1,6 +1,6 @@ { "name": "astro", - "version": "0.23.2", + "version": "0.23.3", "description": "Astro is a modern site builder with web best practices, performance, and DX front-of-mind.", "type": "module", "author": "withastro",