diff --git a/.changeset/early-scissors-beg.md b/.changeset/early-scissors-beg.md deleted file mode 100644 index 0b3d85e430d05..0000000000000 --- a/.changeset/early-scissors-beg.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Removes the default throw behavior in `astro:env` diff --git a/.changeset/olive-garlics-marry.md b/.changeset/olive-garlics-marry.md deleted file mode 100644 index 342db3a6f6913..0000000000000 --- a/.changeset/olive-garlics-marry.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Fixes an issue where a server island hydration script might fail case the island ID misses from the DOM. diff --git a/.changeset/six-pianos-draw.md b/.changeset/six-pianos-draw.md deleted file mode 100644 index 61a6d07eb3823..0000000000000 --- a/.changeset/six-pianos-draw.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Fixes a case where the Content Layer `glob()` loader would not update when renaming or deleting an entry diff --git a/.changeset/thick-shrimps-hammer.md b/.changeset/thick-shrimps-hammer.md deleted file mode 100644 index b46b9ad6c20f9..0000000000000 --- a/.changeset/thick-shrimps-hammer.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Fix cached image redownloading if it is the first asset diff --git a/.changeset/thin-cups-peel.md b/.changeset/thin-cups-peel.md deleted file mode 100644 index 3fc4678cb5cff..0000000000000 --- a/.changeset/thin-cups-peel.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Fixes an issue where the SSR build was emitting the `dist/server/entry.mjs` file with an incorrect import at the top of the file/ diff --git a/.changeset/warm-poems-breathe.md b/.changeset/warm-poems-breathe.md deleted file mode 100644 index e4e9acf80d525..0000000000000 --- a/.changeset/warm-poems-breathe.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Fixes an issue where `Astro.currentLocale` was not correctly returning the locale for 404 and 500 pages. diff --git a/examples/basics/package.json b/examples/basics/package.json index 932cb1c6c9804..c97f2010ed96c 100644 --- a/examples/basics/package.json +++ b/examples/basics/package.json @@ -11,6 +11,6 @@ "astro": "astro" }, "dependencies": { - "astro": "^4.16.13" + "astro": "^4.16.14" } } diff --git a/examples/blog/package.json b/examples/blog/package.json index 9983953cda520..2dea4dac49313 100644 --- a/examples/blog/package.json +++ b/examples/blog/package.json @@ -14,6 +14,6 @@ "@astrojs/mdx": "^3.1.9", "@astrojs/rss": "^4.0.9", "@astrojs/sitemap": "^3.2.1", - "astro": "^4.16.13" + "astro": "^4.16.14" } } diff --git a/examples/component/package.json b/examples/component/package.json index 9226413bf9c33..9d7678431369d 100644 --- a/examples/component/package.json +++ b/examples/component/package.json @@ -15,7 +15,7 @@ ], "scripts": {}, "devDependencies": { - "astro": "^4.16.13" + "astro": "^4.16.14" }, "peerDependencies": { "astro": "^4.0.0" diff --git a/examples/container-with-vitest/package.json b/examples/container-with-vitest/package.json index 0ab9720ad254f..ab3a295aadf7a 100644 --- a/examples/container-with-vitest/package.json +++ b/examples/container-with-vitest/package.json @@ -12,7 +12,7 @@ "test": "vitest run" }, "dependencies": { - "astro": "^4.16.13", + "astro": "^4.16.14", "@astrojs/react": "^3.6.2", "react": "^18.3.1", "react-dom": "^18.3.1", diff --git a/examples/framework-alpine/package.json b/examples/framework-alpine/package.json index 9c201175bbf00..ab1f6169e88f1 100644 --- a/examples/framework-alpine/package.json +++ b/examples/framework-alpine/package.json @@ -14,6 +14,6 @@ "@astrojs/alpinejs": "^0.4.0", "@types/alpinejs": "^3.13.10", "alpinejs": "^3.14.3", - "astro": "^4.16.13" + "astro": "^4.16.14" } } diff --git a/examples/framework-lit/package.json b/examples/framework-lit/package.json index 9da0a1332ed51..1d7b9ca948b71 100644 --- a/examples/framework-lit/package.json +++ b/examples/framework-lit/package.json @@ -13,7 +13,7 @@ "dependencies": { "@astrojs/lit": "^4.3.0", "@webcomponents/template-shadowroot": "^0.2.1", - "astro": "^4.16.13", + "astro": "^4.16.14", "lit": "^3.2.1" } } diff --git a/examples/framework-multiple/package.json b/examples/framework-multiple/package.json index d8b86a81dcf1a..d6900fff34587 100644 --- a/examples/framework-multiple/package.json +++ b/examples/framework-multiple/package.json @@ -18,7 +18,7 @@ "@astrojs/vue": "^4.5.2", "@types/react": "^18.3.12", "@types/react-dom": "^18.3.1", - "astro": "^4.16.13", + "astro": "^4.16.14", "preact": "^10.24.3", "react": "^18.3.1", "react-dom": "^18.3.1", diff --git a/examples/framework-preact/package.json b/examples/framework-preact/package.json index 7293b436cb5cb..6c822be2e4ee1 100644 --- a/examples/framework-preact/package.json +++ b/examples/framework-preact/package.json @@ -13,7 +13,7 @@ "dependencies": { "@astrojs/preact": "^3.5.3", "@preact/signals": "^1.3.0", - "astro": "^4.16.13", + "astro": "^4.16.14", "preact": "^10.24.3" } } diff --git a/examples/framework-react/package.json b/examples/framework-react/package.json index 1b7870164a726..158f03dbd9658 100644 --- a/examples/framework-react/package.json +++ b/examples/framework-react/package.json @@ -14,7 +14,7 @@ "@astrojs/react": "^3.6.2", "@types/react": "^18.3.12", "@types/react-dom": "^18.3.1", - "astro": "^4.16.13", + "astro": "^4.16.14", "react": "^18.3.1", "react-dom": "^18.3.1" } diff --git a/examples/framework-solid/package.json b/examples/framework-solid/package.json index 14037fd84488e..dc9efdb80fc23 100644 --- a/examples/framework-solid/package.json +++ b/examples/framework-solid/package.json @@ -12,7 +12,7 @@ }, "dependencies": { "@astrojs/solid-js": "^4.4.3", - "astro": "^4.16.13", + "astro": "^4.16.14", "solid-js": "^1.9.3" } } diff --git a/examples/framework-svelte/package.json b/examples/framework-svelte/package.json index 2a06f5d65c58f..2b3ea17916b5c 100644 --- a/examples/framework-svelte/package.json +++ b/examples/framework-svelte/package.json @@ -12,7 +12,7 @@ }, "dependencies": { "@astrojs/svelte": "^6.0.1", - "astro": "^4.16.13", + "astro": "^4.16.14", "svelte": "^5.1.16" } } diff --git a/examples/framework-vue/package.json b/examples/framework-vue/package.json index 153cd6a3cc1b3..d7afee280b9e0 100644 --- a/examples/framework-vue/package.json +++ b/examples/framework-vue/package.json @@ -12,7 +12,7 @@ }, "dependencies": { "@astrojs/vue": "^4.5.2", - "astro": "^4.16.13", + "astro": "^4.16.14", "vue": "^3.5.12" } } diff --git a/examples/hackernews/package.json b/examples/hackernews/package.json index e9c4d08ef9f23..7706bac81d137 100644 --- a/examples/hackernews/package.json +++ b/examples/hackernews/package.json @@ -12,6 +12,6 @@ }, "dependencies": { "@astrojs/node": "^8.3.4", - "astro": "^4.16.13" + "astro": "^4.16.14" } } diff --git a/examples/integration/package.json b/examples/integration/package.json index 394c38db51c21..4d39c18f75b48 100644 --- a/examples/integration/package.json +++ b/examples/integration/package.json @@ -15,7 +15,7 @@ ], "scripts": {}, "devDependencies": { - "astro": "^4.16.13" + "astro": "^4.16.14" }, "peerDependencies": { "astro": "^4.0.0" diff --git a/examples/minimal/package.json b/examples/minimal/package.json index 577c43e9c4ddf..dc0795709526c 100644 --- a/examples/minimal/package.json +++ b/examples/minimal/package.json @@ -11,6 +11,6 @@ "astro": "astro" }, "dependencies": { - "astro": "^4.16.13" + "astro": "^4.16.14" } } diff --git a/examples/portfolio/package.json b/examples/portfolio/package.json index a9412fd04724c..648b40582664c 100644 --- a/examples/portfolio/package.json +++ b/examples/portfolio/package.json @@ -11,6 +11,6 @@ "astro": "astro" }, "dependencies": { - "astro": "^4.16.13" + "astro": "^4.16.14" } } diff --git a/examples/ssr/package.json b/examples/ssr/package.json index 88802eada33b8..97bb22f2f234c 100644 --- a/examples/ssr/package.json +++ b/examples/ssr/package.json @@ -14,7 +14,7 @@ "dependencies": { "@astrojs/node": "^8.3.4", "@astrojs/svelte": "^6.0.1", - "astro": "^4.16.13", + "astro": "^4.16.14", "svelte": "^5.1.16" } } diff --git a/examples/starlog/package.json b/examples/starlog/package.json index 5bb986033e908..c515133a55bae 100644 --- a/examples/starlog/package.json +++ b/examples/starlog/package.json @@ -10,7 +10,7 @@ "astro": "astro" }, "dependencies": { - "astro": "^4.16.13", + "astro": "^4.16.14", "sass": "^1.80.6", "sharp": "^0.33.3" } diff --git a/examples/toolbar-app/package.json b/examples/toolbar-app/package.json index d64980b3b2b71..1462eb0989153 100644 --- a/examples/toolbar-app/package.json +++ b/examples/toolbar-app/package.json @@ -15,6 +15,6 @@ "./app": "./dist/app.js" }, "devDependencies": { - "astro": "^4.16.13" + "astro": "^4.16.14" } } diff --git a/examples/with-markdoc/package.json b/examples/with-markdoc/package.json index 4b5321bbddc0c..bd0e1cf9d04d2 100644 --- a/examples/with-markdoc/package.json +++ b/examples/with-markdoc/package.json @@ -12,6 +12,6 @@ }, "dependencies": { "@astrojs/markdoc": "^0.11.5", - "astro": "^4.16.13" + "astro": "^4.16.14" } } diff --git a/examples/with-mdx/package.json b/examples/with-mdx/package.json index d372044bd47ae..cd3fd5fec8f25 100644 --- a/examples/with-mdx/package.json +++ b/examples/with-mdx/package.json @@ -13,7 +13,7 @@ "dependencies": { "@astrojs/mdx": "^3.1.9", "@astrojs/preact": "^3.5.3", - "astro": "^4.16.13", + "astro": "^4.16.14", "preact": "^10.24.3" } } diff --git a/examples/with-nanostores/package.json b/examples/with-nanostores/package.json index 0069ff91aaf5d..66cd59afb4900 100644 --- a/examples/with-nanostores/package.json +++ b/examples/with-nanostores/package.json @@ -13,7 +13,7 @@ "dependencies": { "@astrojs/preact": "^3.5.3", "@nanostores/preact": "^0.5.2", - "astro": "^4.16.13", + "astro": "^4.16.14", "nanostores": "^0.11.3", "preact": "^10.24.3" } diff --git a/examples/with-tailwindcss/package.json b/examples/with-tailwindcss/package.json index feb9995419e38..0f4a99c373e35 100644 --- a/examples/with-tailwindcss/package.json +++ b/examples/with-tailwindcss/package.json @@ -14,7 +14,7 @@ "@astrojs/mdx": "^3.1.9", "@astrojs/tailwind": "^5.1.2", "@types/canvas-confetti": "^1.6.4", - "astro": "^4.16.13", + "astro": "^4.16.14", "autoprefixer": "^10.4.20", "canvas-confetti": "^1.9.3", "postcss": "^8.4.47", diff --git a/examples/with-vitest/package.json b/examples/with-vitest/package.json index 602430de64740..14d77f5c68e37 100644 --- a/examples/with-vitest/package.json +++ b/examples/with-vitest/package.json @@ -12,7 +12,7 @@ "test": "vitest" }, "dependencies": { - "astro": "^4.16.13", + "astro": "^4.16.14", "vitest": "^2.1.4" } } diff --git a/packages/astro/CHANGELOG.md b/packages/astro/CHANGELOG.md index 9e919f2e1b79c..c873a77d5724a 100644 --- a/packages/astro/CHANGELOG.md +++ b/packages/astro/CHANGELOG.md @@ -1,5 +1,21 @@ # astro +## 4.16.14 + +### Patch Changes + +- [#12480](https://github.com/withastro/astro/pull/12480) [`c3b7e7c`](https://github.com/withastro/astro/commit/c3b7e7cfa13603c08eb923703f31a92d514e82db) Thanks [@matthewp](https://github.com/matthewp)! - Removes the default throw behavior in `astro:env` + +- [#12444](https://github.com/withastro/astro/pull/12444) [`28dd3ce`](https://github.com/withastro/astro/commit/28dd3ce5222a667fe113238254edf59318b3fa14) Thanks [@ematipico](https://github.com/ematipico)! - Fixes an issue where a server island hydration script might fail case the island ID misses from the DOM. + +- [#12476](https://github.com/withastro/astro/pull/12476) [`80a9a52`](https://github.com/withastro/astro/commit/80a9a5299a9d51f2b09900d3200976d687feae8f) Thanks [@florian-lefebvre](https://github.com/florian-lefebvre)! - Fixes a case where the Content Layer `glob()` loader would not update when renaming or deleting an entry + +- [#12418](https://github.com/withastro/astro/pull/12418) [`25baa4e`](https://github.com/withastro/astro/commit/25baa4ed0c5f55fa85c2c7e2c15848937ed1dc9b) Thanks [@oliverlynch](https://github.com/oliverlynch)! - Fix cached image redownloading if it is the first asset + +- [#12477](https://github.com/withastro/astro/pull/12477) [`46f6b38`](https://github.com/withastro/astro/commit/46f6b386b3db6332f286d79958ef10261958cceb) Thanks [@ematipico](https://github.com/ematipico)! - Fixes an issue where the SSR build was emitting the `dist/server/entry.mjs` file with an incorrect import at the top of the file/ + +- [#12365](https://github.com/withastro/astro/pull/12365) [`a23985b`](https://github.com/withastro/astro/commit/a23985b02165c2ddce56d511b3f97b6815c452c9) Thanks [@apatel369](https://github.com/apatel369)! - Fixes an issue where `Astro.currentLocale` was not correctly returning the locale for 404 and 500 pages. + ## 4.16.13 ### Patch Changes diff --git a/packages/astro/package.json b/packages/astro/package.json index fb0440afa9a5d..0a4d34f651974 100644 --- a/packages/astro/package.json +++ b/packages/astro/package.json @@ -1,6 +1,6 @@ { "name": "astro", - "version": "4.16.13", + "version": "4.16.14", "description": "Astro is a modern site builder with web best practices, performance, and DX front-of-mind.", "type": "module", "author": "withastro", diff --git a/packages/astro/test/i18n-routing.test.js b/packages/astro/test/i18n-routing.test.js index d91a06ec3f739..8e6c672bee28b 100644 --- a/packages/astro/test/i18n-routing.test.js +++ b/packages/astro/test/i18n-routing.test.js @@ -87,13 +87,13 @@ describe('[DEV] i18n routing', () => { const response = await fixture.fetch('/es/nonexistent-page'); assert.equal(response.status, 404); assert.equal((await response.text()).includes('Current Locale: es'), true); - }); + }); - it('should return the correct locale on 404 page for non existing english locale page', async () => { + it('should return the correct locale on 404 page for non existing english locale page', async () => { const response = await fixture.fetch('/en/nonexistent-page'); assert.equal(response.status, 404); assert.equal((await response.text()).includes('Current Locale: en'), true); - }); + }); }); describe('i18n routing', () => { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 3066c199614dd..8369f257ffe61 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -142,7 +142,7 @@ importers: examples/basics: dependencies: astro: - specifier: ^4.16.13 + specifier: ^4.16.14 version: link:../../packages/astro examples/blog: @@ -157,13 +157,13 @@ importers: specifier: ^3.2.1 version: link:../../packages/integrations/sitemap astro: - specifier: ^4.16.13 + specifier: ^4.16.14 version: link:../../packages/astro examples/component: devDependencies: astro: - specifier: ^4.16.13 + specifier: ^4.16.14 version: link:../../packages/astro examples/container-with-vitest: @@ -172,7 +172,7 @@ importers: specifier: ^3.6.2 version: link:../../packages/integrations/react astro: - specifier: ^4.16.13 + specifier: ^4.16.14 version: link:../../packages/astro react: specifier: ^18.3.1 @@ -203,7 +203,7 @@ importers: specifier: ^3.14.3 version: 3.14.3 astro: - specifier: ^4.16.13 + specifier: ^4.16.14 version: link:../../packages/astro examples/framework-lit: @@ -215,7 +215,7 @@ importers: specifier: ^0.2.1 version: 0.2.1 astro: - specifier: ^4.16.13 + specifier: ^4.16.14 version: link:../../packages/astro lit: specifier: ^3.2.1 @@ -245,7 +245,7 @@ importers: specifier: ^18.3.1 version: 18.3.1 astro: - specifier: ^4.16.13 + specifier: ^4.16.14 version: link:../../packages/astro preact: specifier: ^10.24.3 @@ -275,7 +275,7 @@ importers: specifier: ^1.3.0 version: 1.3.0(preact@10.24.3) astro: - specifier: ^4.16.13 + specifier: ^4.16.14 version: link:../../packages/astro preact: specifier: ^10.24.3 @@ -293,7 +293,7 @@ importers: specifier: ^18.3.1 version: 18.3.1 astro: - specifier: ^4.16.13 + specifier: ^4.16.14 version: link:../../packages/astro react: specifier: ^18.3.1 @@ -308,7 +308,7 @@ importers: specifier: ^4.4.3 version: link:../../packages/integrations/solid astro: - specifier: ^4.16.13 + specifier: ^4.16.14 version: link:../../packages/astro solid-js: specifier: ^1.9.3 @@ -320,7 +320,7 @@ importers: specifier: ^6.0.1 version: link:../../packages/integrations/svelte astro: - specifier: ^4.16.13 + specifier: ^4.16.14 version: link:../../packages/astro svelte: specifier: ^5.1.16 @@ -332,7 +332,7 @@ importers: specifier: ^4.5.2 version: link:../../packages/integrations/vue astro: - specifier: ^4.16.13 + specifier: ^4.16.14 version: link:../../packages/astro vue: specifier: ^3.5.12 @@ -344,25 +344,25 @@ importers: specifier: ^8.3.4 version: 8.3.4(astro@packages+astro) astro: - specifier: ^4.16.13 + specifier: ^4.16.14 version: link:../../packages/astro examples/integration: devDependencies: astro: - specifier: ^4.16.13 + specifier: ^4.16.14 version: link:../../packages/astro examples/minimal: dependencies: astro: - specifier: ^4.16.13 + specifier: ^4.16.14 version: link:../../packages/astro examples/portfolio: dependencies: astro: - specifier: ^4.16.13 + specifier: ^4.16.14 version: link:../../packages/astro examples/ssr: @@ -374,7 +374,7 @@ importers: specifier: ^6.0.1 version: link:../../packages/integrations/svelte astro: - specifier: ^4.16.13 + specifier: ^4.16.14 version: link:../../packages/astro svelte: specifier: ^5.1.16 @@ -383,7 +383,7 @@ importers: examples/starlog: dependencies: astro: - specifier: ^4.16.13 + specifier: ^4.16.14 version: link:../../packages/astro sass: specifier: ^1.80.6 @@ -395,7 +395,7 @@ importers: examples/toolbar-app: devDependencies: astro: - specifier: ^4.16.13 + specifier: ^4.16.14 version: link:../../packages/astro examples/with-markdoc: @@ -404,7 +404,7 @@ importers: specifier: ^0.11.5 version: link:../../packages/integrations/markdoc astro: - specifier: ^4.16.13 + specifier: ^4.16.14 version: link:../../packages/astro examples/with-mdx: @@ -416,7 +416,7 @@ importers: specifier: ^3.5.3 version: link:../../packages/integrations/preact astro: - specifier: ^4.16.13 + specifier: ^4.16.14 version: link:../../packages/astro preact: specifier: ^10.24.3 @@ -431,7 +431,7 @@ importers: specifier: ^0.5.2 version: 0.5.2(nanostores@0.11.3)(preact@10.24.3) astro: - specifier: ^4.16.13 + specifier: ^4.16.14 version: link:../../packages/astro nanostores: specifier: ^0.11.3 @@ -452,7 +452,7 @@ importers: specifier: ^1.6.4 version: 1.6.4 astro: - specifier: ^4.16.13 + specifier: ^4.16.14 version: link:../../packages/astro autoprefixer: specifier: ^10.4.20 @@ -470,7 +470,7 @@ importers: examples/with-vitest: dependencies: astro: - specifier: ^4.16.13 + specifier: ^4.16.14 version: link:../../packages/astro vitest: specifier: ^2.1.4