From 52980389f875467f2adb27d716fedd286dfd98ac Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 4 Oct 2024 15:11:47 +0000 Subject: [PATCH] [ci] release (beta) --- .changeset/pre.json | 13 ++- examples/basics/package.json | 2 +- examples/blog/package.json | 4 +- examples/component/package.json | 2 +- examples/container-with-vitest/package.json | 2 +- examples/framework-alpine/package.json | 2 +- examples/framework-multiple/package.json | 4 +- 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 | 4 +- examples/hackernews/package.json | 2 +- examples/integration/package.json | 2 +- examples/middleware/package.json | 2 +- examples/minimal/package.json | 2 +- examples/non-html-pages/package.json | 2 +- examples/portfolio/package.json | 2 +- examples/server-islands/package.json | 2 +- examples/ssr/package.json | 2 +- examples/starlog/package.json | 2 +- examples/toolbar-app/package.json | 2 +- examples/view-transitions/package.json | 2 +- examples/with-markdoc/package.json | 2 +- examples/with-markdown-plugins/package.json | 2 +- examples/with-markdown-shiki/package.json | 2 +- examples/with-mdx/package.json | 2 +- examples/with-nanostores/package.json | 2 +- examples/with-tailwindcss/package.json | 2 +- examples/with-vitest/package.json | 2 +- packages/astro/CHANGELOG.md | 92 +++++++++++++++++++++ packages/astro/package.json | 2 +- packages/astro/src/content/utils.ts | 2 +- packages/astro/src/core/config/schema.ts | 5 +- packages/astro/src/core/create-vite.ts | 2 +- packages/create-astro/CHANGELOG.md | 6 ++ packages/create-astro/package.json | 2 +- packages/db/CHANGELOG.md | 9 ++ packages/db/package.json | 2 +- packages/integrations/vue/CHANGELOG.md | 6 ++ packages/integrations/vue/package.json | 2 +- packages/upgrade/CHANGELOG.md | 6 ++ packages/upgrade/package.json | 2 +- pnpm-lock.yaml | 64 +++++++------- 44 files changed, 203 insertions(+), 76 deletions(-) diff --git a/.changeset/pre.json b/.changeset/pre.json index b87fb4c01e5f8..6835dad26d78c 100644 --- a/.changeset/pre.json +++ b/.changeset/pre.json @@ -32,6 +32,8 @@ }, "changesets": [ "afraid-apricots-buy", + "beige-rice-tap", + "beige-students-compete", "blue-boats-relax", "blue-sloths-stare", "brave-elephants-fly", @@ -62,6 +64,7 @@ "hot-camels-move", "hungry-jokes-try", "itchy-toys-march", + "large-phones-compare", "large-zebras-sniff", "long-lions-do", "long-months-rule", @@ -72,6 +75,8 @@ "moody-waves-think", "nasty-crabs-worry", "neat-dots-hear", + "neat-queens-learn", + "ninety-monkeys-complain", "old-zebras-teach", "perfect-fans-fly", "pink-yaks-exercise", @@ -80,6 +85,7 @@ "poor-frogs-dream", "poor-seals-clap", "quick-ads-exercise", + "quick-onions-leave", "rotten-phones-scream", "selfish-cats-crash", "selfish-impalas-grin", @@ -90,16 +96,21 @@ "small-ties-sort", "smooth-panthers-heal", "spotty-garlics-cheat", + "strange-cats-notice", "strange-sheep-film", "sweet-timers-smash", + "swift-snakes-hope", "tame-pumpkins-swim", "ten-students-repair", "ten-walls-tap", + "thin-trains-fold", "three-olives-reflect", "twelve-comics-march", "twenty-cobras-push", "unlucky-bobcats-sit", "violet-goats-grab", - "wise-carrots-float" + "wet-foxes-walk", + "wise-carrots-float", + "wise-pumas-fry" ] } diff --git a/examples/basics/package.json b/examples/basics/package.json index ff1d15e724b2b..27d211e970c67 100644 --- a/examples/basics/package.json +++ b/examples/basics/package.json @@ -11,6 +11,6 @@ "astro": "astro" }, "dependencies": { - "astro": "^5.0.0-beta.3" + "astro": "^5.0.0-beta.4" } } diff --git a/examples/blog/package.json b/examples/blog/package.json index 16ca3bd40fb50..96344bcd73a8d 100644 --- a/examples/blog/package.json +++ b/examples/blog/package.json @@ -13,7 +13,7 @@ "dependencies": { "@astrojs/mdx": "^4.0.0-beta.2", "@astrojs/rss": "^4.0.7", - "@astrojs/sitemap": "^3.1.6", - "astro": "^5.0.0-beta.3" + "@astrojs/sitemap": "^3.2.0", + "astro": "^5.0.0-beta.4" } } diff --git a/examples/component/package.json b/examples/component/package.json index d42e8d92c9e48..d28ce97c9fd0b 100644 --- a/examples/component/package.json +++ b/examples/component/package.json @@ -15,7 +15,7 @@ ], "scripts": {}, "devDependencies": { - "astro": "^5.0.0-beta.3" + "astro": "^5.0.0-beta.4" }, "peerDependencies": { "astro": "^4.0.0 || ^5.0.0" diff --git a/examples/container-with-vitest/package.json b/examples/container-with-vitest/package.json index a917974b02378..c04be797c65ba 100644 --- a/examples/container-with-vitest/package.json +++ b/examples/container-with-vitest/package.json @@ -12,7 +12,7 @@ "test": "vitest run" }, "dependencies": { - "astro": "^5.0.0-beta.3", + "astro": "^5.0.0-beta.4", "@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 c34bdc468d872..ad0a384007745 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.1", - "astro": "^5.0.0-beta.3" + "astro": "^5.0.0-beta.4" } } diff --git a/examples/framework-multiple/package.json b/examples/framework-multiple/package.json index ed371aa864d99..a28775aa83907 100644 --- a/examples/framework-multiple/package.json +++ b/examples/framework-multiple/package.json @@ -15,10 +15,10 @@ "@astrojs/react": "^3.6.2", "@astrojs/solid-js": "^4.4.2", "@astrojs/svelte": "^6.0.0-beta.0", - "@astrojs/vue": "^5.0.0-beta.0", + "@astrojs/vue": "^5.0.0-beta.1", "@types/react": "^18.3.10", "@types/react-dom": "^18.3.0", - "astro": "^5.0.0-beta.3", + "astro": "^5.0.0-beta.4", "preact": "^10.24.1", "react": "^18.3.1", "react-dom": "^18.3.1", diff --git a/examples/framework-preact/package.json b/examples/framework-preact/package.json index 2d8bacc93031c..2d5a263962c06 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": "^5.0.0-beta.3", + "astro": "^5.0.0-beta.4", "preact": "^10.24.1" } } diff --git a/examples/framework-react/package.json b/examples/framework-react/package.json index cfbabde90c309..c507ca5e8f74d 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.10", "@types/react-dom": "^18.3.0", - "astro": "^5.0.0-beta.3", + "astro": "^5.0.0-beta.4", "react": "^18.3.1", "react-dom": "^18.3.1" } diff --git a/examples/framework-solid/package.json b/examples/framework-solid/package.json index 4663c6c35426f..b3463d85e2e91 100644 --- a/examples/framework-solid/package.json +++ b/examples/framework-solid/package.json @@ -12,7 +12,7 @@ }, "dependencies": { "@astrojs/solid-js": "^4.4.2", - "astro": "^5.0.0-beta.3", + "astro": "^5.0.0-beta.4", "solid-js": "^1.9.1" } } diff --git a/examples/framework-svelte/package.json b/examples/framework-svelte/package.json index 707f215d4ed3f..009729a84f1c2 100644 --- a/examples/framework-svelte/package.json +++ b/examples/framework-svelte/package.json @@ -12,7 +12,7 @@ }, "dependencies": { "@astrojs/svelte": "^6.0.0-beta.0", - "astro": "^5.0.0-beta.3", + "astro": "^5.0.0-beta.4", "svelte": "^4.2.19" } } diff --git a/examples/framework-vue/package.json b/examples/framework-vue/package.json index 78339a31ec936..8ff39a36b3911 100644 --- a/examples/framework-vue/package.json +++ b/examples/framework-vue/package.json @@ -11,8 +11,8 @@ "astro": "astro" }, "dependencies": { - "@astrojs/vue": "^5.0.0-beta.0", - "astro": "^5.0.0-beta.3", + "@astrojs/vue": "^5.0.0-beta.1", + "astro": "^5.0.0-beta.4", "vue": "^3.5.10" } } diff --git a/examples/hackernews/package.json b/examples/hackernews/package.json index 2f16c714151db..d0658a4763234 100644 --- a/examples/hackernews/package.json +++ b/examples/hackernews/package.json @@ -12,6 +12,6 @@ }, "dependencies": { "@astrojs/node": "^9.0.0-alpha.1", - "astro": "^5.0.0-beta.3" + "astro": "^5.0.0-beta.4" } } diff --git a/examples/integration/package.json b/examples/integration/package.json index 21c2d13c3a7e8..a9fbf4bcaf45c 100644 --- a/examples/integration/package.json +++ b/examples/integration/package.json @@ -15,7 +15,7 @@ ], "scripts": {}, "devDependencies": { - "astro": "^5.0.0-beta.3" + "astro": "^5.0.0-beta.4" }, "peerDependencies": { "astro": "^4.0.0" diff --git a/examples/middleware/package.json b/examples/middleware/package.json index f024ab936d96d..efc809518d216 100644 --- a/examples/middleware/package.json +++ b/examples/middleware/package.json @@ -13,7 +13,7 @@ }, "dependencies": { "@astrojs/node": "^9.0.0-alpha.1", - "astro": "^5.0.0-beta.3", + "astro": "^5.0.0-beta.4", "html-minifier": "^4.0.0" }, "devDependencies": { diff --git a/examples/minimal/package.json b/examples/minimal/package.json index 956c8e4e1b5af..570b2c53c107c 100644 --- a/examples/minimal/package.json +++ b/examples/minimal/package.json @@ -11,6 +11,6 @@ "astro": "astro" }, "dependencies": { - "astro": "^5.0.0-beta.3" + "astro": "^5.0.0-beta.4" } } diff --git a/examples/non-html-pages/package.json b/examples/non-html-pages/package.json index dc312cb7460e3..f5d0094ceaed3 100644 --- a/examples/non-html-pages/package.json +++ b/examples/non-html-pages/package.json @@ -11,6 +11,6 @@ "astro": "astro" }, "dependencies": { - "astro": "^5.0.0-beta.3" + "astro": "^5.0.0-beta.4" } } diff --git a/examples/portfolio/package.json b/examples/portfolio/package.json index 80b3dae3db34d..5d16b614a37e7 100644 --- a/examples/portfolio/package.json +++ b/examples/portfolio/package.json @@ -11,6 +11,6 @@ "astro": "astro" }, "dependencies": { - "astro": "^5.0.0-beta.3" + "astro": "^5.0.0-beta.4" } } diff --git a/examples/server-islands/package.json b/examples/server-islands/package.json index d0dc4cd688854..c44de0485846c 100644 --- a/examples/server-islands/package.json +++ b/examples/server-islands/package.json @@ -17,7 +17,7 @@ "@tailwindcss/forms": "^0.5.9", "@types/react": "^18.3.10", "@types/react-dom": "^18.3.0", - "astro": "^5.0.0-beta.3", + "astro": "^5.0.0-beta.4", "postcss": "^8.4.47", "react": "^18.3.1", "react-dom": "^18.3.1", diff --git a/examples/ssr/package.json b/examples/ssr/package.json index 7b070418a0933..f0409d23355ce 100644 --- a/examples/ssr/package.json +++ b/examples/ssr/package.json @@ -14,7 +14,7 @@ "dependencies": { "@astrojs/node": "^9.0.0-alpha.1", "@astrojs/svelte": "^6.0.0-beta.0", - "astro": "^5.0.0-beta.3", + "astro": "^5.0.0-beta.4", "svelte": "^4.2.19" } } diff --git a/examples/starlog/package.json b/examples/starlog/package.json index 83b7c916fd360..d75504a5b4d0f 100644 --- a/examples/starlog/package.json +++ b/examples/starlog/package.json @@ -10,7 +10,7 @@ "astro": "astro" }, "dependencies": { - "astro": "^5.0.0-beta.3", + "astro": "^5.0.0-beta.4", "sass": "^1.79.4", "sharp": "^0.33.3" } diff --git a/examples/toolbar-app/package.json b/examples/toolbar-app/package.json index c5a1fa7079cdc..c17e1e500e494 100644 --- a/examples/toolbar-app/package.json +++ b/examples/toolbar-app/package.json @@ -15,6 +15,6 @@ "./app": "./dist/app.js" }, "devDependencies": { - "astro": "^5.0.0-beta.3" + "astro": "^5.0.0-beta.4" } } diff --git a/examples/view-transitions/package.json b/examples/view-transitions/package.json index b11c893156af9..8414460b018d8 100644 --- a/examples/view-transitions/package.json +++ b/examples/view-transitions/package.json @@ -12,6 +12,6 @@ "devDependencies": { "@astrojs/tailwind": "^5.1.1", "@astrojs/node": "^9.0.0-alpha.1", - "astro": "^5.0.0-beta.3" + "astro": "^5.0.0-beta.4" } } diff --git a/examples/with-markdoc/package.json b/examples/with-markdoc/package.json index f57b1bab015c2..d481315613b1a 100644 --- a/examples/with-markdoc/package.json +++ b/examples/with-markdoc/package.json @@ -12,6 +12,6 @@ }, "dependencies": { "@astrojs/markdoc": "^0.11.5-beta.1", - "astro": "^5.0.0-beta.3" + "astro": "^5.0.0-beta.4" } } diff --git a/examples/with-markdown-plugins/package.json b/examples/with-markdown-plugins/package.json index b7dcdb8559a3d..a3fc9a5f00b68 100644 --- a/examples/with-markdown-plugins/package.json +++ b/examples/with-markdown-plugins/package.json @@ -12,7 +12,7 @@ }, "dependencies": { "@astrojs/markdown-remark": "^6.0.0-beta.2", - "astro": "^5.0.0-beta.3", + "astro": "^5.0.0-beta.4", "hast-util-select": "^6.0.2", "rehype-autolink-headings": "^7.1.0", "rehype-slug": "^6.0.0", diff --git a/examples/with-markdown-shiki/package.json b/examples/with-markdown-shiki/package.json index 23f01df6df93a..f6ce177a28552 100644 --- a/examples/with-markdown-shiki/package.json +++ b/examples/with-markdown-shiki/package.json @@ -11,6 +11,6 @@ "astro": "astro" }, "dependencies": { - "astro": "^5.0.0-beta.3" + "astro": "^5.0.0-beta.4" } } diff --git a/examples/with-mdx/package.json b/examples/with-mdx/package.json index 5a33449cfb0b2..ff61f19c80ecf 100644 --- a/examples/with-mdx/package.json +++ b/examples/with-mdx/package.json @@ -13,7 +13,7 @@ "dependencies": { "@astrojs/mdx": "^4.0.0-beta.2", "@astrojs/preact": "^3.5.3", - "astro": "^5.0.0-beta.3", + "astro": "^5.0.0-beta.4", "preact": "^10.24.1" } } diff --git a/examples/with-nanostores/package.json b/examples/with-nanostores/package.json index e12d13f096801..6b71a347a22b3 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": "^5.0.0-beta.3", + "astro": "^5.0.0-beta.4", "nanostores": "^0.11.3", "preact": "^10.24.1" } diff --git a/examples/with-tailwindcss/package.json b/examples/with-tailwindcss/package.json index e4608e842b2e7..b85fb5d7195d3 100644 --- a/examples/with-tailwindcss/package.json +++ b/examples/with-tailwindcss/package.json @@ -14,7 +14,7 @@ "@astrojs/mdx": "^4.0.0-beta.2", "@astrojs/tailwind": "^5.1.1", "@types/canvas-confetti": "^1.6.4", - "astro": "^5.0.0-beta.3", + "astro": "^5.0.0-beta.4", "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 c82281a0488a9..0efdaa51ab75f 100644 --- a/examples/with-vitest/package.json +++ b/examples/with-vitest/package.json @@ -12,7 +12,7 @@ "test": "vitest" }, "dependencies": { - "astro": "^5.0.0-beta.3", + "astro": "^5.0.0-beta.4", "vitest": "^2.1.1" } } diff --git a/packages/astro/CHANGELOG.md b/packages/astro/CHANGELOG.md index 34d032f32c47c..a32edda3b5e91 100644 --- a/packages/astro/CHANGELOG.md +++ b/packages/astro/CHANGELOG.md @@ -1,5 +1,97 @@ # astro +## 5.0.0-beta.4 + +### Major Changes + +- [#11979](https://github.com/withastro/astro/pull/11979) [`423dfc1`](https://github.com/withastro/astro/commit/423dfc19ad83661b71151f8cec40701c7ced557b) Thanks [@bluwy](https://github.com/bluwy)! - Bumps `vite` dependency to v6.0.0-beta.2. The version is pinned and will be updated as new Vite versions publish to prevent unhandled breaking changes. For the full list of Vite-specific changes, see [its changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md). + +- [#12079](https://github.com/withastro/astro/pull/12079) [`7febf1f`](https://github.com/withastro/astro/commit/7febf1f6b58f2ed014df617bd7162c854cadd230) Thanks [@ematipico](https://github.com/ematipico)! - `params` passed in `getStaticPaths` are no longer automatically decoded. + + ### [changed]: `params` aren't decoded anymore. + + In Astro v4.x, `params` in were automatically decoded using `decodeURIComponent`. + + Astro v5.0 doesn't automatically decode `params` in `getStaticPaths` anymore, so you'll need to manually decode them yourself if needed + + #### What should I do? + + If you were relying on the automatic decode, you'll need to manually decode it using `decodeURI`. + + Note that the use of [`decodeURIComponent`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/decodeURIComponent)) is discouraged for `getStaticPaths` because it decodes more characters than it should, for example `/`, `?`, `#` and more. + + ```diff + --- + export function getStaticPaths() { + return [ + + { params: { id: decodeURI("%5Bpage%5D") } }, + - { params: { id: "%5Bpage%5D" } }, + ] + } + + const { id } = Astro.params; + --- + ``` + +### Patch Changes + +- [#12121](https://github.com/withastro/astro/pull/12121) [`2490ceb`](https://github.com/withastro/astro/commit/2490cebdb93f13ee552cffa72b2e274d64e6b4a7) Thanks [@ascorbic](https://github.com/ascorbic)! - Support passing the values `Infinity` and `-Infinity` as island props. + +- [#12118](https://github.com/withastro/astro/pull/12118) [`f47b347`](https://github.com/withastro/astro/commit/f47b347da899c6e1dcd0b2e7887f7fce6ec8e270) Thanks [@Namchee](https://github.com/Namchee)! - Removes the `strip-ansi` dependency in favor of the native Node API + +- [#12126](https://github.com/withastro/astro/pull/12126) [`6e1dfeb`](https://github.com/withastro/astro/commit/6e1dfeb76bec09d24928bab798c6ad3280f42e84) Thanks [@ascorbic](https://github.com/ascorbic)! - Clear content layer cache when astro version changes + +- [#11976](https://github.com/withastro/astro/pull/11976) [`4d590a2`](https://github.com/withastro/astro/commit/4d590a2b879b2470d5a6e6a70dd6e2112ca3367e) Thanks [@ascorbic](https://github.com/ascorbic)! - Refactors legacy `content` and `data` collections to use the Content Layer API `glob()` loader for better performance and to support backwards compatibility. Also introduces the `legacy.collections` flag for projects that are unable to update to the new behavior immediately. + + :warning: **BREAKING CHANGE FOR LEGACY CONTENT COLLECTIONS** :warning: + + By default, collections that use the old types (`content` or `data`) and do not define a `loader` are now implemented under the hood using the Content Layer API's built-in `glob()` loader, with extra backward-compatibility handling. + + In order to achieve backwards compatibility with existing `content` collections, the following have been implemented: + + - a `glob` loader collection is defined, with patterns that match the previous handling (matches `src/content//**/*.md` and other content extensions depending on installed integrations, with underscore-prefixed files and folders ignored) + - When used in the runtime, the entries have an ID based on the filename in the same format as legacy collections + - A `slug` field is added with the same format as before + - A `render()` method is added to the entry, so they can be called using `entry.render()` + - `getEntryBySlug` is supported + + In order to achieve backwards compatibility with existing `data` collections, the following have been implemented: + + - a `glob` loader collection is defined, with patterns that match the previous handling (matches `src/content//**/*{.json,.yaml}` and other data extensions, with underscore-prefixed files and folders ignored) + - Entries have an ID that is not slugified + - `getDataEntryById` is supported + + While this backwards compatibility implementation is able to emulate most of the features of legacy collections, **there are some differences and limitations that may cause breaking changes to existing collections**: + + - In previous versions of Astro, collections would be generated for all folders in `src/content/`, even if they were not defined in `src/content/config.ts`. This behavior is now deprecated, and collections should always be defined in `src/content/config.ts`. For existing collections, these can just be empty declarations (e.g. `const blog = defineCollection({})`) and Astro will implicitly define your legacy collection for you in a way that is compatible with the new loading behavior. + - The special `layout` field is not supported in Markdown collection entries. This property is intended only for standalone page files located in `src/pages/` and not likely to be in your collection entries. However, if you were using this property, you must now create dynamic routes that include your page styling. + - Sort order of generated collections is non-deterministic and platform-dependent. This means that if you are calling `getCollection()`, the order in which entries are returned may be different than before. If you need a specific order, you should sort the collection entries yourself. + - `image().refine()` is not supported. If you need to validate the properties of an image you will need to do this at runtime in your page or component. + - the `key` argument of `getEntry(collection, key)` is typed as `string`, rather than having types for every entry. + + A new legacy configuration flag `legacy.collections` is added for users that want to keep their current legacy (content and data) collections behavior (available in Astro v2 - v4), or who are not yet ready to update their projects: + + ```js + // astro.config.mjs + import { defineConfig } from 'astro/config'; + + export default defineConfig({ + legacy: { + collections: true, + }, + }); + ``` + + When set, no changes to your existing collections are necessary, and the restrictions on storing both new and old collections continue to exist: legacy collections (only) must continue to remain in `src/content/`, while new collections using a loader from the Content Layer API are forbidden in that folder. + +- [#12117](https://github.com/withastro/astro/pull/12117) [`a46839a`](https://github.com/withastro/astro/commit/a46839a5c818b7de63c36d0c7e27f1a8f3b773dc) Thanks [@ArmandPhilippot](https://github.com/ArmandPhilippot)! - Updates Vite links to use their new domain + +- [#12124](https://github.com/withastro/astro/pull/12124) [`499fbc9`](https://github.com/withastro/astro/commit/499fbc91a6bdad8c86ff13a8caf1fa09433796b9) Thanks [@ascorbic](https://github.com/ascorbic)! - Allows special characters in Action names + +- [#12123](https://github.com/withastro/astro/pull/12123) [`b8673df`](https://github.com/withastro/astro/commit/b8673df51c6cc4ce6a288f8eb609b7a438a07d82) Thanks [@Princesseuh](https://github.com/Princesseuh)! - Fixes missing `body` property on CollectionEntry types for content layer entries + +- [#12113](https://github.com/withastro/astro/pull/12113) [`a54e520`](https://github.com/withastro/astro/commit/a54e520d3c139fa123e7029c5933951b5c7f5a39) Thanks [@ascorbic](https://github.com/ascorbic)! - Adds a helpful error when attempting to render an undefined collection entry + ## 5.0.0-beta.3 ### Minor Changes diff --git a/packages/astro/package.json b/packages/astro/package.json index c8bc887677129..c5c806dd6f000 100644 --- a/packages/astro/package.json +++ b/packages/astro/package.json @@ -1,6 +1,6 @@ { "name": "astro", - "version": "5.0.0-beta.3", + "version": "5.0.0-beta.4", "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/src/content/utils.ts b/packages/astro/src/content/utils.ts index 164e357deef84..05c712be5c13a 100644 --- a/packages/astro/src/content/utils.ts +++ b/packages/astro/src/content/utils.ts @@ -3,6 +3,7 @@ import path from 'node:path'; import { fileURLToPath, pathToFileURL } from 'node:url'; import { parseFrontmatter } from '@astrojs/markdown-remark'; import { slug as githubSlug } from 'github-slugger'; +import { green } from 'kleur/colors'; import type { PluginContext } from 'rollup'; import type { ViteDevServer } from 'vite'; import xxhash from 'xxhash-wasm'; @@ -25,7 +26,6 @@ import { } from './consts.js'; import { glob } from './loaders/glob.js'; import { createImage } from './runtime-assets.js'; -import { green } from 'kleur/colors'; /** * Amap from a collection + slug to the local file path. * This is used internally to resolve entry imports when using `getEntry()`. diff --git a/packages/astro/src/core/config/schema.ts b/packages/astro/src/core/config/schema.ts index fc201841484cd..eec3d869d3035 100644 --- a/packages/astro/src/core/config/schema.ts +++ b/packages/astro/src/core/config/schema.ts @@ -526,10 +526,7 @@ export const AstroConfigSchema = z.object({ .default({}), legacy: z .object({ - collections: z - .boolean() - .optional() - .default(ASTRO_CONFIG_DEFAULTS.legacy.collections), + collections: z.boolean().optional().default(ASTRO_CONFIG_DEFAULTS.legacy.collections), }) .default({}), }); diff --git a/packages/astro/src/core/create-vite.ts b/packages/astro/src/core/create-vite.ts index 8e4806ead11b7..f388efb7e7083 100644 --- a/packages/astro/src/core/create-vite.ts +++ b/packages/astro/src/core/create-vite.ts @@ -25,6 +25,7 @@ import configAliasVitePlugin from '../vite-plugin-config-alias/index.js'; import envVitePlugin from '../vite-plugin-env/index.js'; import vitePluginFileURL from '../vite-plugin-fileurl/index.js'; import astroHeadPlugin from '../vite-plugin-head/index.js'; +import astroHmrReloadPlugin from '../vite-plugin-hmr-reload/index.js'; import htmlVitePlugin from '../vite-plugin-html/index.js'; import astroIntegrationsContainerPlugin from '../vite-plugin-integrations-container/index.js'; import astroLoadFallbackPlugin from '../vite-plugin-load-fallback/index.js'; @@ -40,7 +41,6 @@ import { vitePluginMiddleware } from './middleware/vite-plugin.js'; import { joinPaths } from './path.js'; import { vitePluginServerIslands } from './server-islands/vite-plugin-server-islands.js'; import { isObject } from './util.js'; -import astroHmrReloadPlugin from '../vite-plugin-hmr-reload/index.js'; type CreateViteOptions = { settings: AstroSettings; diff --git a/packages/create-astro/CHANGELOG.md b/packages/create-astro/CHANGELOG.md index 9d91eab2a6cec..15f24eedef0c8 100644 --- a/packages/create-astro/CHANGELOG.md +++ b/packages/create-astro/CHANGELOG.md @@ -1,5 +1,11 @@ # create-astro +## 4.9.1-beta.0 + +### Patch Changes + +- [#12118](https://github.com/withastro/astro/pull/12118) [`f47b347`](https://github.com/withastro/astro/commit/f47b347da899c6e1dcd0b2e7887f7fce6ec8e270) Thanks [@Namchee](https://github.com/Namchee)! - Removes the `strip-ansi` dependency in favor of the native Node API + ## 4.9.0 ### Minor Changes diff --git a/packages/create-astro/package.json b/packages/create-astro/package.json index d48c7065d294e..5c81665691cbc 100644 --- a/packages/create-astro/package.json +++ b/packages/create-astro/package.json @@ -1,6 +1,6 @@ { "name": "create-astro", - "version": "4.9.0", + "version": "4.9.1-beta.0", "type": "module", "author": "withastro", "license": "MIT", diff --git a/packages/db/CHANGELOG.md b/packages/db/CHANGELOG.md index 029e663bb07ce..7d4e68cd1ebba 100644 --- a/packages/db/CHANGELOG.md +++ b/packages/db/CHANGELOG.md @@ -1,5 +1,14 @@ # @astrojs/db +## 0.14.0-beta.3 + +### Patch Changes + +- [#12118](https://github.com/withastro/astro/pull/12118) [`f47b347`](https://github.com/withastro/astro/commit/f47b347da899c6e1dcd0b2e7887f7fce6ec8e270) Thanks [@Namchee](https://github.com/Namchee)! - Removes the `strip-ansi` dependency in favor of the native Node API + +- Updated dependencies []: + - @astrojs/studio@0.1.2-beta.0 + ## 0.14.0-beta.2 ### Patch Changes diff --git a/packages/db/package.json b/packages/db/package.json index 56b129f4113e2..555275c1fff37 100644 --- a/packages/db/package.json +++ b/packages/db/package.json @@ -1,6 +1,6 @@ { "name": "@astrojs/db", - "version": "0.14.0-beta.2", + "version": "0.14.0-beta.3", "description": "Add libSQL and Astro Studio support to your Astro site", "license": "MIT", "repository": { diff --git a/packages/integrations/vue/CHANGELOG.md b/packages/integrations/vue/CHANGELOG.md index 1c1468b9bc0e3..ede263740e1b9 100644 --- a/packages/integrations/vue/CHANGELOG.md +++ b/packages/integrations/vue/CHANGELOG.md @@ -1,5 +1,11 @@ # @astrojs/vue +## 5.0.0-beta.1 + +### Patch Changes + +- [#12112](https://github.com/withastro/astro/pull/12112) [`f9dd942`](https://github.com/withastro/astro/commit/f9dd9428c6cd1c9d23488ea4645f186b4a4ad4b2) Thanks [@florian-lefebvre](https://github.com/florian-lefebvre)! - Fixes a case where IDs generated by `useId()` (introduced in Vue 3.5) would not be unique between islands + ## 5.0.0-beta.0 ### Major Changes diff --git a/packages/integrations/vue/package.json b/packages/integrations/vue/package.json index 1e0154df2fc7c..bf91eb40debe9 100644 --- a/packages/integrations/vue/package.json +++ b/packages/integrations/vue/package.json @@ -1,6 +1,6 @@ { "name": "@astrojs/vue", - "version": "5.0.0-beta.0", + "version": "5.0.0-beta.1", "description": "Use Vue components within Astro", "type": "module", "types": "./dist/index.d.ts", diff --git a/packages/upgrade/CHANGELOG.md b/packages/upgrade/CHANGELOG.md index 2156497a79098..3b646a2581557 100644 --- a/packages/upgrade/CHANGELOG.md +++ b/packages/upgrade/CHANGELOG.md @@ -1,5 +1,11 @@ # @astrojs/upgrade +## 0.3.4-beta.0 + +### Patch Changes + +- [#12118](https://github.com/withastro/astro/pull/12118) [`f47b347`](https://github.com/withastro/astro/commit/f47b347da899c6e1dcd0b2e7887f7fce6ec8e270) Thanks [@Namchee](https://github.com/Namchee)! - Removes the `strip-ansi` dependency in favor of the native Node API + ## 0.3.3 ### Patch Changes diff --git a/packages/upgrade/package.json b/packages/upgrade/package.json index c036f8366a748..98015229be9cb 100644 --- a/packages/upgrade/package.json +++ b/packages/upgrade/package.json @@ -1,6 +1,6 @@ { "name": "@astrojs/upgrade", - "version": "0.3.3", + "version": "0.3.4-beta.0", "type": "module", "author": "withastro", "license": "MIT", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 0b51a09ab5a5d..3f08b80d16d70 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -117,7 +117,7 @@ importers: examples/basics: dependencies: astro: - specifier: ^5.0.0-beta.3 + specifier: ^5.0.0-beta.4 version: link:../../packages/astro examples/blog: @@ -129,16 +129,16 @@ importers: specifier: ^4.0.7 version: link:../../packages/astro-rss '@astrojs/sitemap': - specifier: ^3.1.6 + specifier: ^3.2.0 version: link:../../packages/integrations/sitemap astro: - specifier: ^5.0.0-beta.3 + specifier: ^5.0.0-beta.4 version: link:../../packages/astro examples/component: devDependencies: astro: - specifier: ^5.0.0-beta.3 + specifier: ^5.0.0-beta.4 version: link:../../packages/astro examples/container-with-vitest: @@ -147,7 +147,7 @@ importers: specifier: ^3.6.2 version: link:../../packages/integrations/react astro: - specifier: ^5.0.0-beta.3 + specifier: ^5.0.0-beta.4 version: link:../../packages/astro react: specifier: ^18.3.1 @@ -178,7 +178,7 @@ importers: specifier: ^3.14.1 version: 3.14.1 astro: - specifier: ^5.0.0-beta.3 + specifier: ^5.0.0-beta.4 version: link:../../packages/astro examples/framework-multiple: @@ -196,7 +196,7 @@ importers: specifier: ^6.0.0-beta.0 version: link:../../packages/integrations/svelte '@astrojs/vue': - specifier: ^5.0.0-beta.0 + specifier: ^5.0.0-beta.1 version: link:../../packages/integrations/vue '@types/react': specifier: ^18.3.10 @@ -205,7 +205,7 @@ importers: specifier: ^18.3.0 version: 18.3.0 astro: - specifier: ^5.0.0-beta.3 + specifier: ^5.0.0-beta.4 version: link:../../packages/astro preact: specifier: ^10.24.1 @@ -235,7 +235,7 @@ importers: specifier: ^1.3.0 version: 1.3.0(preact@10.24.1) astro: - specifier: ^5.0.0-beta.3 + specifier: ^5.0.0-beta.4 version: link:../../packages/astro preact: specifier: ^10.24.1 @@ -253,7 +253,7 @@ importers: specifier: ^18.3.0 version: 18.3.0 astro: - specifier: ^5.0.0-beta.3 + specifier: ^5.0.0-beta.4 version: link:../../packages/astro react: specifier: ^18.3.1 @@ -268,7 +268,7 @@ importers: specifier: ^4.4.2 version: link:../../packages/integrations/solid astro: - specifier: ^5.0.0-beta.3 + specifier: ^5.0.0-beta.4 version: link:../../packages/astro solid-js: specifier: ^1.9.1 @@ -280,7 +280,7 @@ importers: specifier: ^6.0.0-beta.0 version: link:../../packages/integrations/svelte astro: - specifier: ^5.0.0-beta.3 + specifier: ^5.0.0-beta.4 version: link:../../packages/astro svelte: specifier: ^4.2.19 @@ -289,10 +289,10 @@ importers: examples/framework-vue: dependencies: '@astrojs/vue': - specifier: ^5.0.0-beta.0 + specifier: ^5.0.0-beta.1 version: link:../../packages/integrations/vue astro: - specifier: ^5.0.0-beta.3 + specifier: ^5.0.0-beta.4 version: link:../../packages/astro vue: specifier: ^3.5.10 @@ -304,13 +304,13 @@ importers: specifier: ^9.0.0-alpha.1 version: 9.0.0-alpha.1(astro@packages+astro) astro: - specifier: ^5.0.0-beta.3 + specifier: ^5.0.0-beta.4 version: link:../../packages/astro examples/integration: devDependencies: astro: - specifier: ^5.0.0-beta.3 + specifier: ^5.0.0-beta.4 version: link:../../packages/astro examples/middleware: @@ -319,7 +319,7 @@ importers: specifier: ^9.0.0-alpha.1 version: 9.0.0-alpha.1(astro@packages+astro) astro: - specifier: ^5.0.0-beta.3 + specifier: ^5.0.0-beta.4 version: link:../../packages/astro html-minifier: specifier: ^4.0.0 @@ -332,19 +332,19 @@ importers: examples/minimal: dependencies: astro: - specifier: ^5.0.0-beta.3 + specifier: ^5.0.0-beta.4 version: link:../../packages/astro examples/non-html-pages: dependencies: astro: - specifier: ^5.0.0-beta.3 + specifier: ^5.0.0-beta.4 version: link:../../packages/astro examples/portfolio: dependencies: astro: - specifier: ^5.0.0-beta.3 + specifier: ^5.0.0-beta.4 version: link:../../packages/astro examples/server-islands: @@ -371,7 +371,7 @@ importers: specifier: ^18.3.0 version: 18.3.0 astro: - specifier: ^5.0.0-beta.3 + specifier: ^5.0.0-beta.4 version: link:../../packages/astro postcss: specifier: ^8.4.47 @@ -395,7 +395,7 @@ importers: specifier: ^6.0.0-beta.0 version: link:../../packages/integrations/svelte astro: - specifier: ^5.0.0-beta.3 + specifier: ^5.0.0-beta.4 version: link:../../packages/astro svelte: specifier: ^4.2.19 @@ -404,7 +404,7 @@ importers: examples/starlog: dependencies: astro: - specifier: ^5.0.0-beta.3 + specifier: ^5.0.0-beta.4 version: link:../../packages/astro sass: specifier: ^1.79.4 @@ -416,7 +416,7 @@ importers: examples/toolbar-app: devDependencies: astro: - specifier: ^5.0.0-beta.3 + specifier: ^5.0.0-beta.4 version: link:../../packages/astro examples/view-transitions: @@ -428,7 +428,7 @@ importers: specifier: ^5.1.1 version: link:../../packages/integrations/tailwind astro: - specifier: ^5.0.0-beta.3 + specifier: ^5.0.0-beta.4 version: link:../../packages/astro examples/with-markdoc: @@ -437,7 +437,7 @@ importers: specifier: ^0.11.5-beta.1 version: link:../../packages/integrations/markdoc astro: - specifier: ^5.0.0-beta.3 + specifier: ^5.0.0-beta.4 version: link:../../packages/astro examples/with-markdown-plugins: @@ -446,7 +446,7 @@ importers: specifier: ^6.0.0-beta.2 version: link:../../packages/markdown/remark astro: - specifier: ^5.0.0-beta.3 + specifier: ^5.0.0-beta.4 version: link:../../packages/astro hast-util-select: specifier: ^6.0.2 @@ -467,7 +467,7 @@ importers: examples/with-markdown-shiki: dependencies: astro: - specifier: ^5.0.0-beta.3 + specifier: ^5.0.0-beta.4 version: link:../../packages/astro examples/with-mdx: @@ -479,7 +479,7 @@ importers: specifier: ^3.5.3 version: link:../../packages/integrations/preact astro: - specifier: ^5.0.0-beta.3 + specifier: ^5.0.0-beta.4 version: link:../../packages/astro preact: specifier: ^10.24.1 @@ -494,7 +494,7 @@ importers: specifier: ^0.5.2 version: 0.5.2(nanostores@0.11.3)(preact@10.24.1) astro: - specifier: ^5.0.0-beta.3 + specifier: ^5.0.0-beta.4 version: link:../../packages/astro nanostores: specifier: ^0.11.3 @@ -515,7 +515,7 @@ importers: specifier: ^1.6.4 version: 1.6.4 astro: - specifier: ^5.0.0-beta.3 + specifier: ^5.0.0-beta.4 version: link:../../packages/astro autoprefixer: specifier: ^10.4.20 @@ -533,7 +533,7 @@ importers: examples/with-vitest: dependencies: astro: - specifier: ^5.0.0-beta.3 + specifier: ^5.0.0-beta.4 version: link:../../packages/astro vitest: specifier: ^2.1.1