summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Houston (Bot) <108291165+astrobot-houston@users.noreply.github.com> 2024-10-07 06:56:30 -0700
committerGravatar GitHub <noreply@github.com> 2024-10-07 15:56:30 +0200
commit676b2c66ee5d991bfb8ea85ca466be690cf0e5b9 (patch)
tree07752133b43edb48ed567cd68c3d2e379fefbe24
parentb75758f88389ff77072719e8e35604a5d2e9ad70 (diff)
downloadastro-@astrojs/svelte@6.0.0-beta.1.tar.gz
astro-@astrojs/svelte@6.0.0-beta.1.tar.zst
astro-@astrojs/svelte@6.0.0-beta.1.zip
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
-rw-r--r--.changeset/pre.json5
-rw-r--r--examples/basics/package.json2
-rw-r--r--examples/blog/package.json2
-rw-r--r--examples/component/package.json2
-rw-r--r--examples/container-with-vitest/package.json2
-rw-r--r--examples/framework-alpine/package.json2
-rw-r--r--examples/framework-multiple/package.json4
-rw-r--r--examples/framework-preact/package.json2
-rw-r--r--examples/framework-react/package.json2
-rw-r--r--examples/framework-solid/package.json2
-rw-r--r--examples/framework-svelte/package.json4
-rw-r--r--examples/framework-vue/package.json2
-rw-r--r--examples/hackernews/package.json2
-rw-r--r--examples/integration/package.json2
-rw-r--r--examples/middleware/package.json2
-rw-r--r--examples/minimal/package.json2
-rw-r--r--examples/non-html-pages/package.json2
-rw-r--r--examples/portfolio/package.json2
-rw-r--r--examples/server-islands/package.json2
-rw-r--r--examples/ssr/package.json4
-rw-r--r--examples/starlog/package.json2
-rw-r--r--examples/toolbar-app/package.json2
-rw-r--r--examples/view-transitions/package.json2
-rw-r--r--examples/with-markdoc/package.json2
-rw-r--r--examples/with-markdown-plugins/package.json2
-rw-r--r--examples/with-markdown-shiki/package.json2
-rw-r--r--examples/with-mdx/package.json2
-rw-r--r--examples/with-nanostores/package.json2
-rw-r--r--examples/with-tailwindcss/package.json2
-rw-r--r--examples/with-vitest/package.json2
-rw-r--r--packages/astro/CHANGELOG.md80
-rw-r--r--packages/astro/package.json2
-rw-r--r--packages/astro/src/content/utils.ts2
-rw-r--r--packages/astro/src/core/config/schema.ts5
-rw-r--r--packages/astro/src/core/create-vite.ts2
-rw-r--r--packages/integrations/svelte/CHANGELOG.md6
-rw-r--r--packages/integrations/svelte/package.json2
-rw-r--r--pnpm-lock.yaml64
38 files changed, 160 insertions, 72 deletions
diff --git a/.changeset/pre.json b/.changeset/pre.json
index b87fb4c01..dbc514123 100644
--- a/.changeset/pre.json
+++ b/.changeset/pre.json
@@ -46,9 +46,11 @@
"curvy-walls-kneel",
"dry-lamps-smile",
"dry-worms-knock",
+ "dull-moles-talk",
"eight-days-sort",
"eighty-bags-cross",
"eighty-boxes-applaud",
+ "eighty-ligers-punch",
"five-jars-hear",
"fluffy-jars-live",
"fresh-pandas-drive",
@@ -72,6 +74,7 @@
"moody-waves-think",
"nasty-crabs-worry",
"neat-dots-hear",
+ "neat-queens-learn",
"old-zebras-teach",
"perfect-fans-fly",
"pink-yaks-exercise",
@@ -80,6 +83,7 @@
"poor-frogs-dream",
"poor-seals-clap",
"quick-ads-exercise",
+ "quick-onions-leave",
"rotten-phones-scream",
"selfish-cats-crash",
"selfish-impalas-grin",
@@ -100,6 +104,7 @@
"twenty-cobras-push",
"unlucky-bobcats-sit",
"violet-goats-grab",
+ "wet-foxes-walk",
"wise-carrots-float"
]
}
diff --git a/examples/basics/package.json b/examples/basics/package.json
index ff1d15e72..27d211e97 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 fa56ba8e3..96344bcd7 100644
--- a/examples/blog/package.json
+++ b/examples/blog/package.json
@@ -14,6 +14,6 @@
"@astrojs/mdx": "^4.0.0-beta.2",
"@astrojs/rss": "^4.0.7",
"@astrojs/sitemap": "^3.2.0",
- "astro": "^5.0.0-beta.3"
+ "astro": "^5.0.0-beta.4"
}
}
diff --git a/examples/component/package.json b/examples/component/package.json
index d42e8d92c..d28ce97c9 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 6bfb5d119..c81900dbb 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 c34bdc468..ad0a38400 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 68aad2554..3e615d8d5 100644
--- a/examples/framework-multiple/package.json
+++ b/examples/framework-multiple/package.json
@@ -14,11 +14,11 @@
"@astrojs/preact": "^3.5.3",
"@astrojs/react": "^3.6.2",
"@astrojs/solid-js": "^4.4.2",
- "@astrojs/svelte": "^6.0.0-beta.0",
+ "@astrojs/svelte": "^6.0.0-beta.1",
"@astrojs/vue": "^5.0.0-beta.0",
"@types/react": "^18.3.11",
"@types/react-dom": "^18.3.0",
- "astro": "^5.0.0-beta.3",
+ "astro": "^5.0.0-beta.4",
"preact": "^10.24.2",
"react": "^18.3.1",
"react-dom": "^18.3.1",
diff --git a/examples/framework-preact/package.json b/examples/framework-preact/package.json
index a5b1758ca..0a9ff29dc 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.2"
}
}
diff --git a/examples/framework-react/package.json b/examples/framework-react/package.json
index 80c53e4ed..801a2577f 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.11",
"@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 4663c6c35..b3463d85e 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 707f215d4..43a6d0b35 100644
--- a/examples/framework-svelte/package.json
+++ b/examples/framework-svelte/package.json
@@ -11,8 +11,8 @@
"astro": "astro"
},
"dependencies": {
- "@astrojs/svelte": "^6.0.0-beta.0",
- "astro": "^5.0.0-beta.3",
+ "@astrojs/svelte": "^6.0.0-beta.1",
+ "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 f7ab9d093..e86c7aa08 100644
--- a/examples/framework-vue/package.json
+++ b/examples/framework-vue/package.json
@@ -12,7 +12,7 @@
},
"dependencies": {
"@astrojs/vue": "^5.0.0-beta.0",
- "astro": "^5.0.0-beta.3",
+ "astro": "^5.0.0-beta.4",
"vue": "^3.5.11"
}
}
diff --git a/examples/hackernews/package.json b/examples/hackernews/package.json
index 2f16c7141..d0658a476 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 21c2d13c3..a9fbf4bca 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 f024ab936..efc809518 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 956c8e4e1..570b2c53c 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 dc312cb74..f5d0094ce 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 80b3dae3d..5d16b614a 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 e20baee1c..9b05f38de 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.11",
"@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 7b070418a..58d581073 100644
--- a/examples/ssr/package.json
+++ b/examples/ssr/package.json
@@ -13,8 +13,8 @@
},
"dependencies": {
"@astrojs/node": "^9.0.0-alpha.1",
- "@astrojs/svelte": "^6.0.0-beta.0",
- "astro": "^5.0.0-beta.3",
+ "@astrojs/svelte": "^6.0.0-beta.1",
+ "astro": "^5.0.0-beta.4",
"svelte": "^4.2.19"
}
}
diff --git a/examples/starlog/package.json b/examples/starlog/package.json
index 83b7c916f..d75504a5b 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 c5a1fa707..c17e1e500 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 b11c89315..8414460b0 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 f57b1bab0..d48131561 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 b7dcdb855..a3fc9a5f0 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 23f01df6d..f6ce177a2 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 f4c0c2512..8af8de316 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.2"
}
}
diff --git a/examples/with-nanostores/package.json b/examples/with-nanostores/package.json
index e6f8a356a..c54f2ab15 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.2"
}
diff --git a/examples/with-tailwindcss/package.json b/examples/with-tailwindcss/package.json
index e4608e842..b85fb5d71 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 8fdc441ed..8aee00807 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.2"
}
}
diff --git a/packages/astro/CHANGELOG.md b/packages/astro/CHANGELOG.md
index 7ce1abcde..a7ad85484 100644
--- a/packages/astro/CHANGELOG.md
+++ b/packages/astro/CHANGELOG.md
@@ -1,5 +1,85 @@
# 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).
+
+- [#12100](https://github.com/withastro/astro/pull/12100) [`abf9a89`](https://github.com/withastro/astro/commit/abf9a89ac1eaec9a8934a68aeebe3c502a3b47eb) Thanks [@astrobot-houston](https://github.com/astrobot-houston)! - 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/<collection name>/**/*.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/<collection name>/**/*{.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.
+
+- [#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
+
+- [#12127](https://github.com/withastro/astro/pull/12127) [`55e9cd8`](https://github.com/withastro/astro/commit/55e9cd88551ac56ec4cab9a9f3fd9ba49b8934b9) Thanks [@ascorbic](https://github.com/ascorbic)! - Prevents Vite emitting an error when restarting itself
+
## 5.0.0-beta.3
### Minor Changes
diff --git a/packages/astro/package.json b/packages/astro/package.json
index c169e0f37..a50d3f7c6 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 164e357de..05c712be5 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 fc2018414..eec3d869d 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 8e4806ead..f388efb7e 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/integrations/svelte/CHANGELOG.md b/packages/integrations/svelte/CHANGELOG.md
index ad175da74..074bf2f60 100644
--- a/packages/integrations/svelte/CHANGELOG.md
+++ b/packages/integrations/svelte/CHANGELOG.md
@@ -1,5 +1,11 @@
# @astrojs/svelte
+## 6.0.0-beta.1
+
+### Patch Changes
+
+- [#12102](https://github.com/withastro/astro/pull/12102) [`dcc1e89`](https://github.com/withastro/astro/commit/dcc1e895abbad1311719803363c933541c0ad984) Thanks [@hermit99](https://github.com/hermit99)! - Fixes an Reference Error that occurred during client transitions
+
## 6.0.0-beta.0
### Major Changes
diff --git a/packages/integrations/svelte/package.json b/packages/integrations/svelte/package.json
index d9321af19..e5bba1a20 100644
--- a/packages/integrations/svelte/package.json
+++ b/packages/integrations/svelte/package.json
@@ -1,6 +1,6 @@
{
"name": "@astrojs/svelte",
- "version": "6.0.0-beta.0",
+ "version": "6.0.0-beta.1",
"description": "Use Svelte components within Astro",
"type": "module",
"types": "./dist/index.d.ts",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index da6734ac6..de1567c29 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:
@@ -132,13 +132,13 @@ importers:
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:
@@ -193,7 +193,7 @@ importers:
specifier: ^4.4.2
version: link:../../packages/integrations/solid
'@astrojs/svelte':
- specifier: ^6.0.0-beta.0
+ specifier: ^6.0.0-beta.1
version: link:../../packages/integrations/svelte
'@astrojs/vue':
specifier: ^5.0.0-beta.0
@@ -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.2
@@ -235,7 +235,7 @@ importers:
specifier: ^1.3.0
version: 1.3.0(preact@10.24.2)
astro:
- specifier: ^5.0.0-beta.3
+ specifier: ^5.0.0-beta.4
version: link:../../packages/astro
preact:
specifier: ^10.24.2
@@ -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
@@ -277,10 +277,10 @@ importers:
examples/framework-svelte:
dependencies:
'@astrojs/svelte':
- specifier: ^6.0.0-beta.0
+ specifier: ^6.0.0-beta.1
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
@@ -292,7 +292,7 @@ importers:
specifier: ^5.0.0-beta.0
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.11
@@ -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
@@ -392,10 +392,10 @@ importers:
specifier: ^9.0.0-alpha.1
version: 9.0.0-alpha.1(astro@packages+astro)
'@astrojs/svelte':
- specifier: ^6.0.0-beta.0
+ specifier: ^6.0.0-beta.1
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.2
@@ -494,7 +494,7 @@ importers:
specifier: ^0.5.2
version: 0.5.2(nanostores@0.11.3)(preact@10.24.2)
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.2