diff --git a/.changeset/good-carpets-confess.md b/.changeset/good-carpets-confess.md deleted file mode 100644 index c7095d3aa..000000000 --- a/.changeset/good-carpets-confess.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Do not add base path to a hoisted script body diff --git a/.changeset/mean-knives-smash.md b/.changeset/mean-knives-smash.md deleted file mode 100644 index 4c4c4d85e..000000000 --- a/.changeset/mean-knives-smash.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Add preact and sitemap integration to config load external list diff --git a/.changeset/stupid-shoes-complain.md b/.changeset/stupid-shoes-complain.md deleted file mode 100644 index 09669cf15..000000000 --- a/.changeset/stupid-shoes-complain.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'astro': minor ---- - -Correctly handle spaces and capitalization in `src/content/` file names. This introduces github-slugger for slug generation to ensure slugs are usable by `getStaticPaths`. Changes: -- Resolve spaces and capitalization: `collection/Entry With Spaces.md` becomes `collection/entry-with-spaces`. -- Truncate `/index` paths to base URL: `collection/index.md` becomes `collection` diff --git a/.changeset/yellow-gifts-complain.md b/.changeset/yellow-gifts-complain.md deleted file mode 100644 index f220d26c8..000000000 --- a/.changeset/yellow-gifts-complain.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Fix `import.meta.env.DEV` always being set to `true` when using Content Collections diff --git a/examples/basics/package.json b/examples/basics/package.json index 7d2592edd..c8c19c62e 100644 --- a/examples/basics/package.json +++ b/examples/basics/package.json @@ -11,6 +11,6 @@ "astro": "astro" }, "dependencies": { - "astro": "^1.8.0" + "astro": "^1.9.0" } } diff --git a/examples/blog/package.json b/examples/blog/package.json index c1e8393ad..ac30b5213 100644 --- a/examples/blog/package.json +++ b/examples/blog/package.json @@ -11,7 +11,7 @@ "astro": "astro" }, "dependencies": { - "astro": "^1.8.0", + "astro": "^1.9.0", "@astrojs/mdx": "^0.14.0", "@astrojs/rss": "^2.0.0", "@astrojs/sitemap": "^1.0.0" diff --git a/examples/component/package.json b/examples/component/package.json index 4e2d706b9..55e4a6dd8 100644 --- a/examples/component/package.json +++ b/examples/component/package.json @@ -15,7 +15,7 @@ ], "scripts": {}, "devDependencies": { - "astro": "^1.8.0" + "astro": "^1.9.0" }, "peerDependencies": { "astro": "^1.7.2" diff --git a/examples/deno/package.json b/examples/deno/package.json index a8f641333..402a1e990 100644 --- a/examples/deno/package.json +++ b/examples/deno/package.json @@ -10,7 +10,7 @@ "astro": "astro" }, "dependencies": { - "astro": "^1.8.0" + "astro": "^1.9.0" }, "devDependencies": { "@astrojs/deno": "^3.0.0" diff --git a/examples/docs/package.json b/examples/docs/package.json index da2bf808e..f9b87df31 100644 --- a/examples/docs/package.json +++ b/examples/docs/package.json @@ -12,7 +12,7 @@ "astro": "astro" }, "dependencies": { - "astro": "^1.8.0", + "astro": "^1.9.0", "preact": "^10.7.3", "react": "^18.1.0", "react-dom": "^18.1.0", diff --git a/examples/framework-alpine/package.json b/examples/framework-alpine/package.json index b2fcaebe2..991cc918e 100644 --- a/examples/framework-alpine/package.json +++ b/examples/framework-alpine/package.json @@ -11,7 +11,7 @@ "astro": "astro" }, "dependencies": { - "astro": "^1.8.0", + "astro": "^1.9.0", "alpinejs": "^3.10.2", "@astrojs/alpinejs": "^0.1.2", "@types/alpinejs": "^3.7.0" diff --git a/examples/framework-lit/package.json b/examples/framework-lit/package.json index 8b7100286..b933e7766 100644 --- a/examples/framework-lit/package.json +++ b/examples/framework-lit/package.json @@ -11,7 +11,7 @@ "astro": "astro" }, "dependencies": { - "astro": "^1.8.0", + "astro": "^1.9.0", "lit": "^2.2.5", "@astrojs/lit": "^1.0.0", "@webcomponents/template-shadowroot": "^0.1.0" diff --git a/examples/framework-multiple/package.json b/examples/framework-multiple/package.json index f069ed750..c21335947 100644 --- a/examples/framework-multiple/package.json +++ b/examples/framework-multiple/package.json @@ -11,7 +11,7 @@ "astro": "astro" }, "dependencies": { - "astro": "^1.8.0", + "astro": "^1.9.0", "preact": "^10.7.3", "react": "^18.1.0", "react-dom": "^18.1.0", diff --git a/examples/framework-preact/package.json b/examples/framework-preact/package.json index fec717fb2..cbb556326 100644 --- a/examples/framework-preact/package.json +++ b/examples/framework-preact/package.json @@ -11,7 +11,7 @@ "astro": "astro" }, "dependencies": { - "astro": "^1.8.0", + "astro": "^1.9.0", "preact": "^10.7.3", "@astrojs/preact": "^1.2.0", "@preact/signals": "^1.1.0" diff --git a/examples/framework-react/package.json b/examples/framework-react/package.json index 116ebf378..a4ff3b4d8 100644 --- a/examples/framework-react/package.json +++ b/examples/framework-react/package.json @@ -11,7 +11,7 @@ "astro": "astro" }, "dependencies": { - "astro": "^1.8.0", + "astro": "^1.9.0", "react": "^18.1.0", "react-dom": "^18.1.0", "@astrojs/react": "^1.2.2", diff --git a/examples/framework-solid/package.json b/examples/framework-solid/package.json index 782a34f8d..c679a7ed5 100644 --- a/examples/framework-solid/package.json +++ b/examples/framework-solid/package.json @@ -11,7 +11,7 @@ "astro": "astro" }, "dependencies": { - "astro": "^1.8.0", + "astro": "^1.9.0", "solid-js": "^1.4.3", "@astrojs/solid-js": "^1.2.3" } diff --git a/examples/framework-svelte/package.json b/examples/framework-svelte/package.json index 9401fc119..ca1bd5f8b 100644 --- a/examples/framework-svelte/package.json +++ b/examples/framework-svelte/package.json @@ -13,6 +13,6 @@ "dependencies": { "svelte": "^3.48.0", "@astrojs/svelte": "^1.0.2", - "astro": "^1.8.0" + "astro": "^1.9.0" } } diff --git a/examples/framework-vue/package.json b/examples/framework-vue/package.json index d5edc7cdf..04d55915b 100644 --- a/examples/framework-vue/package.json +++ b/examples/framework-vue/package.json @@ -11,7 +11,7 @@ "astro": "astro" }, "dependencies": { - "astro": "^1.8.0", + "astro": "^1.9.0", "vue": "^3.2.37", "@astrojs/vue": "^1.2.2" } diff --git a/examples/hackernews/package.json b/examples/hackernews/package.json index 568ca9a6b..98cbcd067 100644 --- a/examples/hackernews/package.json +++ b/examples/hackernews/package.json @@ -13,6 +13,6 @@ }, "dependencies": { "@astrojs/node": "^4.0.0", - "astro": "^1.8.0" + "astro": "^1.9.0" } } diff --git a/examples/integration/package.json b/examples/integration/package.json index 35b81fe81..75dfac09c 100644 --- a/examples/integration/package.json +++ b/examples/integration/package.json @@ -15,7 +15,7 @@ ], "scripts": {}, "devDependencies": { - "astro": "^1.8.0" + "astro": "^1.9.0" }, "peerDependencies": { "astro": "^1.7.2" diff --git a/examples/minimal/package.json b/examples/minimal/package.json index 3747f2b27..7f0e17aec 100644 --- a/examples/minimal/package.json +++ b/examples/minimal/package.json @@ -11,6 +11,6 @@ "astro": "astro" }, "dependencies": { - "astro": "^1.8.0" + "astro": "^1.9.0" } } diff --git a/examples/non-html-pages/package.json b/examples/non-html-pages/package.json index 1edf36958..f37872df2 100644 --- a/examples/non-html-pages/package.json +++ b/examples/non-html-pages/package.json @@ -11,6 +11,6 @@ "astro": "astro" }, "dependencies": { - "astro": "^1.8.0" + "astro": "^1.9.0" } } diff --git a/examples/portfolio/package.json b/examples/portfolio/package.json index a3698d8c7..9e97536e8 100644 --- a/examples/portfolio/package.json +++ b/examples/portfolio/package.json @@ -11,6 +11,6 @@ "astro": "astro" }, "dependencies": { - "astro": "^1.8.0" + "astro": "^1.9.0" } } diff --git a/examples/ssr/package.json b/examples/ssr/package.json index 8e89ae0df..4f8d88c15 100644 --- a/examples/ssr/package.json +++ b/examples/ssr/package.json @@ -12,7 +12,7 @@ "server": "node dist/server/entry.mjs" }, "dependencies": { - "astro": "^1.8.0", + "astro": "^1.9.0", "svelte": "^3.48.0", "@astrojs/svelte": "^1.0.2", "@astrojs/node": "^4.0.0", diff --git a/examples/with-content/package.json b/examples/with-content/package.json index cb41f9524..4793db5b9 100644 --- a/examples/with-content/package.json +++ b/examples/with-content/package.json @@ -11,7 +11,7 @@ "astro": "astro" }, "dependencies": { - "astro": "^1.8.0", + "astro": "^1.9.0", "@astrojs/mdx": "^0.14.0", "@astrojs/sitemap": "^1.0.0" } diff --git a/examples/with-markdown-plugins/package.json b/examples/with-markdown-plugins/package.json index 479624b11..606a457e2 100644 --- a/examples/with-markdown-plugins/package.json +++ b/examples/with-markdown-plugins/package.json @@ -11,7 +11,7 @@ "astro": "astro" }, "dependencies": { - "astro": "^1.8.0", + "astro": "^1.9.0", "@astrojs/markdown-remark": "^1.2.0", "hast-util-select": "5.0.1", "rehype-autolink-headings": "^6.1.1", diff --git a/examples/with-markdown-shiki/package.json b/examples/with-markdown-shiki/package.json index ea1ddd4fd..29277f9a4 100644 --- a/examples/with-markdown-shiki/package.json +++ b/examples/with-markdown-shiki/package.json @@ -11,6 +11,6 @@ "astro": "astro" }, "dependencies": { - "astro": "^1.8.0" + "astro": "^1.9.0" } } diff --git a/examples/with-mdx/package.json b/examples/with-mdx/package.json index 6bb3cca75..d1668bd4c 100644 --- a/examples/with-mdx/package.json +++ b/examples/with-mdx/package.json @@ -11,7 +11,7 @@ "astro": "astro" }, "dependencies": { - "astro": "^1.8.0", + "astro": "^1.9.0", "preact": "^10.6.5", "@astrojs/preact": "^1.2.0", "@astrojs/mdx": "^0.14.0" diff --git a/examples/with-nanostores/package.json b/examples/with-nanostores/package.json index e6c1bb9c8..12eabda76 100644 --- a/examples/with-nanostores/package.json +++ b/examples/with-nanostores/package.json @@ -11,7 +11,7 @@ "astro": "astro" }, "dependencies": { - "astro": "^1.8.0", + "astro": "^1.9.0", "preact": "^10.7.3", "@astrojs/preact": "^1.2.0", "nanostores": "^0.5.12", diff --git a/examples/with-tailwindcss/package.json b/examples/with-tailwindcss/package.json index 5dfdac321..c206be0c3 100644 --- a/examples/with-tailwindcss/package.json +++ b/examples/with-tailwindcss/package.json @@ -14,7 +14,7 @@ "@astrojs/mdx": "^0.14.0", "@astrojs/tailwind": "^2.1.3", "@types/canvas-confetti": "^1.4.3", - "astro": "^1.8.0", + "astro": "^1.9.0", "autoprefixer": "^10.4.7", "canvas-confetti": "^1.5.1", "postcss": "^8.4.14", diff --git a/examples/with-vite-plugin-pwa/package.json b/examples/with-vite-plugin-pwa/package.json index 8b844b3c0..ecba711b1 100644 --- a/examples/with-vite-plugin-pwa/package.json +++ b/examples/with-vite-plugin-pwa/package.json @@ -11,7 +11,7 @@ "astro": "astro" }, "dependencies": { - "astro": "^1.8.0", + "astro": "^1.9.0", "vite-plugin-pwa": "0.11.11", "workbox-window": "^6.5.3" } diff --git a/examples/with-vitest/package.json b/examples/with-vitest/package.json index 2024205f0..de8e5520f 100644 --- a/examples/with-vitest/package.json +++ b/examples/with-vitest/package.json @@ -12,7 +12,7 @@ "test": "vitest" }, "dependencies": { - "astro": "^1.8.0", + "astro": "^1.9.0", "vitest": "^0.20.3" } } diff --git a/packages/astro/CHANGELOG.md b/packages/astro/CHANGELOG.md index 71ae2a732..2998942d1 100644 --- a/packages/astro/CHANGELOG.md +++ b/packages/astro/CHANGELOG.md @@ -1,5 +1,21 @@ # astro +## 1.9.0 + +### Minor Changes + +- [#5666](https://github.com/withastro/astro/pull/5666) [`bf210f784`](https://github.com/withastro/astro/commit/bf210f7841711439f7db6c2b1f369e54a70b03d3) Thanks [@bholmesdev](https://github.com/bholmesdev)! - Correctly handle spaces and capitalization in `src/content/` file names. This introduces github-slugger for slug generation to ensure slugs are usable by `getStaticPaths`. Changes: + - Resolve spaces and capitalization: `collection/Entry With Spaces.md` becomes `collection/entry-with-spaces`. + - Truncate `/index` paths to base URL: `collection/index.md` becomes `collection` + +### Patch Changes + +- [#5720](https://github.com/withastro/astro/pull/5720) [`fe316be86`](https://github.com/withastro/astro/commit/fe316be86f4dfecff78effbecdc10f7348406d27) Thanks [@umarov](https://github.com/umarov)! - Do not add base path to a hoisted script body + +- [#5706](https://github.com/withastro/astro/pull/5706) [`c2844a79c`](https://github.com/withastro/astro/commit/c2844a79c8c94466481f5f3a37af259bb4cbf276) Thanks [@bluwy](https://github.com/bluwy)! - Add preact and sitemap integration to config load external list + +- [#5700](https://github.com/withastro/astro/pull/5700) [`3aa3e00a6`](https://github.com/withastro/astro/commit/3aa3e00a63b63ae443f824f11cffde2a194ea4bf) Thanks [@bholmesdev](https://github.com/bholmesdev)! - Fix `import.meta.env.DEV` always being set to `true` when using Content Collections + ## 1.8.0 ### Minor Changes diff --git a/packages/astro/package.json b/packages/astro/package.json index 395e43260..946c4f277 100644 --- a/packages/astro/package.json +++ b/packages/astro/package.json @@ -1,6 +1,6 @@ { "name": "astro", - "version": "1.8.0", + "version": "1.9.0", "description": "Astro is a modern site builder with web best practices, performance, and DX front-of-mind.", "type": "module", "author": "withastro", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 9f88b60b5..76741d9b1 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -63,7 +63,7 @@ importers: examples/basics: specifiers: - astro: ^1.8.0 + astro: ^1.9.0 dependencies: astro: link:../../packages/astro @@ -72,7 +72,7 @@ importers: '@astrojs/mdx': ^0.14.0 '@astrojs/rss': ^2.0.0 '@astrojs/sitemap': ^1.0.0 - astro: ^1.8.0 + astro: ^1.9.0 dependencies: '@astrojs/mdx': link:../../packages/integrations/mdx '@astrojs/rss': link:../../packages/astro-rss @@ -81,14 +81,14 @@ importers: examples/component: specifiers: - astro: ^1.8.0 + astro: ^1.9.0 devDependencies: astro: link:../../packages/astro examples/deno: specifiers: '@astrojs/deno': ^3.0.0 - astro: ^1.8.0 + astro: ^1.9.0 dependencies: astro: link:../../packages/astro devDependencies: @@ -104,7 +104,7 @@ importers: '@types/node': ^18.0.0 '@types/react': ^17.0.45 '@types/react-dom': ^18.0.0 - astro: ^1.8.0 + astro: ^1.9.0 html-escaper: ^3.0.3 preact: ^10.7.3 react: ^18.1.0 @@ -130,7 +130,7 @@ importers: '@astrojs/alpinejs': ^0.1.2 '@types/alpinejs': ^3.7.0 alpinejs: ^3.10.2 - astro: ^1.8.0 + astro: ^1.9.0 dependencies: '@astrojs/alpinejs': link:../../packages/integrations/alpinejs '@types/alpinejs': 3.7.1 @@ -141,7 +141,7 @@ importers: specifiers: '@astrojs/lit': ^1.0.0 '@webcomponents/template-shadowroot': ^0.1.0 - astro: ^1.8.0 + astro: ^1.9.0 lit: ^2.2.5 dependencies: '@astrojs/lit': link:../../packages/integrations/lit @@ -156,7 +156,7 @@ importers: '@astrojs/solid-js': ^1.2.3 '@astrojs/svelte': ^1.0.2 '@astrojs/vue': ^1.2.2 - astro: ^1.8.0 + astro: ^1.9.0 preact: ^10.7.3 react: ^18.1.0 react-dom: ^18.1.0 @@ -181,7 +181,7 @@ importers: specifiers: '@astrojs/preact': ^1.2.0 '@preact/signals': ^1.1.0 - astro: ^1.8.0 + astro: ^1.9.0 preact: ^10.7.3 dependencies: '@astrojs/preact': link:../../packages/integrations/preact @@ -194,7 +194,7 @@ importers: '@astrojs/react': ^1.2.2 '@types/react': ^18.0.10 '@types/react-dom': ^18.0.5 - astro: ^1.8.0 + astro: ^1.9.0 react: ^18.1.0 react-dom: ^18.1.0 dependencies: @@ -208,7 +208,7 @@ importers: examples/framework-solid: specifiers: '@astrojs/solid-js': ^1.2.3 - astro: ^1.8.0 + astro: ^1.9.0 solid-js: ^1.4.3 dependencies: '@astrojs/solid-js': link:../../packages/integrations/solid @@ -218,7 +218,7 @@ importers: examples/framework-svelte: specifiers: '@astrojs/svelte': ^1.0.2 - astro: ^1.8.0 + astro: ^1.9.0 svelte: ^3.48.0 dependencies: '@astrojs/svelte': link:../../packages/integrations/svelte @@ -228,7 +228,7 @@ importers: examples/framework-vue: specifiers: '@astrojs/vue': ^1.2.2 - astro: ^1.8.0 + astro: ^1.9.0 vue: ^3.2.37 dependencies: '@astrojs/vue': link:../../packages/integrations/vue @@ -238,32 +238,32 @@ importers: examples/hackernews: specifiers: '@astrojs/node': ^4.0.0 - astro: ^1.8.0 + astro: ^1.9.0 dependencies: '@astrojs/node': link:../../packages/integrations/node astro: link:../../packages/astro examples/integration: specifiers: - astro: ^1.8.0 + astro: ^1.9.0 devDependencies: astro: link:../../packages/astro examples/minimal: specifiers: - astro: ^1.8.0 + astro: ^1.9.0 dependencies: astro: link:../../packages/astro examples/non-html-pages: specifiers: - astro: ^1.8.0 + astro: ^1.9.0 dependencies: astro: link:../../packages/astro examples/portfolio: specifiers: - astro: ^1.8.0 + astro: ^1.9.0 dependencies: astro: link:../../packages/astro @@ -271,7 +271,7 @@ importers: specifiers: '@astrojs/node': ^4.0.0 '@astrojs/svelte': ^1.0.2 - astro: ^1.8.0 + astro: ^1.9.0 concurrently: ^7.2.1 svelte: ^3.48.0 unocss: ^0.15.6 @@ -289,7 +289,7 @@ importers: specifiers: '@astrojs/mdx': ^0.14.0 '@astrojs/sitemap': ^1.0.0 - astro: ^1.8.0 + astro: ^1.9.0 dependencies: '@astrojs/mdx': link:../../packages/integrations/mdx '@astrojs/sitemap': link:../../packages/integrations/sitemap @@ -298,7 +298,7 @@ importers: examples/with-markdown-plugins: specifiers: '@astrojs/markdown-remark': ^1.2.0 - astro: ^1.8.0 + astro: ^1.9.0 hast-util-select: 5.0.1 rehype-autolink-headings: ^6.1.1 rehype-slug: ^5.0.1 @@ -315,7 +315,7 @@ importers: examples/with-markdown-shiki: specifiers: - astro: ^1.8.0 + astro: ^1.9.0 dependencies: astro: link:../../packages/astro @@ -323,7 +323,7 @@ importers: specifiers: '@astrojs/mdx': ^0.14.0 '@astrojs/preact': ^1.2.0 - astro: ^1.8.0 + astro: ^1.9.0 preact: ^10.6.5 dependencies: '@astrojs/mdx': link:../../packages/integrations/mdx @@ -335,7 +335,7 @@ importers: specifiers: '@astrojs/preact': ^1.2.0 '@nanostores/preact': ^0.1.3 - astro: ^1.8.0 + astro: ^1.9.0 nanostores: ^0.5.12 preact: ^10.7.3 dependencies: @@ -350,7 +350,7 @@ importers: '@astrojs/mdx': ^0.14.0 '@astrojs/tailwind': ^2.1.3 '@types/canvas-confetti': ^1.4.3 - astro: ^1.8.0 + astro: ^1.9.0 autoprefixer: ^10.4.7 canvas-confetti: ^1.5.1 postcss: ^8.4.14 @@ -367,7 +367,7 @@ importers: examples/with-vite-plugin-pwa: specifiers: - astro: ^1.8.0 + astro: ^1.9.0 vite-plugin-pwa: 0.11.11 workbox-window: ^6.5.3 dependencies: @@ -377,7 +377,7 @@ importers: examples/with-vitest: specifiers: - astro: ^1.8.0 + astro: ^1.9.0 vitest: ^0.20.3 dependencies: astro: link:../../packages/astro