diff options
Diffstat (limited to 'packages')
22 files changed, 136 insertions, 22 deletions
diff --git a/packages/astro/CHANGELOG.md b/packages/astro/CHANGELOG.md index 869637286..4369b1ab9 100644 --- a/packages/astro/CHANGELOG.md +++ b/packages/astro/CHANGELOG.md @@ -1,5 +1,62 @@ # astro +## 2.0.0-beta.4 + +### Major Changes + +- [#5941](https://github.com/withastro/astro/pull/5941) [`304823811`](https://github.com/withastro/astro/commit/304823811eddd8e72aa1d8e2d39b40ab5cda3565) Thanks [@bholmesdev](https://github.com/bholmesdev)! - Content collections: Introduce a new `slug` frontmatter field for overriding the generated slug. This replaces the previous `slug()` collection config option from Astro 1.X and the 2.0 beta. + + When present in a Markdown or MDX file, this will override the generated slug for that entry. + + ```diff + # src/content/blog/post-1.md + --- + title: Post 1 + + slug: post-1-custom-slug + --- + ``` + + Astro will respect this slug in the generated `slug` type and when using the `getEntryBySlug()` utility: + + ```astro + --- + import { getEntryBySlug } from 'astro:content'; + + // Retrieve `src/content/blog/post-1.md` by slug with type safety + const post = await getEntryBySlug('blog', 'post-1-custom-slug'); + --- + ``` + + #### Migration + + If you relied on the `slug()` config option, you will need to move all custom slugs to `slug` frontmatter properties in each collection entry. + + Additionally, Astro no longer allows `slug` as a collection schema property. This ensures Astro can manage the `slug` property for type generation and performance. Remove this property from your schema and any relevant `slug()` configuration: + + ```diff + const blog = defineCollection({ + schema: z.object({ + - slug: z.string().optional(), + }), + - slug({ defaultSlug, data }) { + - return data.slug ?? defaultSlug; + - }, + }) + ``` + +### Patch Changes + +- [#5499](https://github.com/withastro/astro/pull/5499) [`4987d6f44`](https://github.com/withastro/astro/commit/4987d6f44cfd0d81d88f21f5c380503403dc1e6a) Thanks [@bluwy](https://github.com/bluwy)! - Handle custom injected entry files during build + +- [#5917](https://github.com/withastro/astro/pull/5917) [`7325df412`](https://github.com/withastro/astro/commit/7325df412107fc0e65cd45c1b568fb686708f723) Thanks [@natemoo-re](https://github.com/natemoo-re)! - Fix duplicate CSS in dev mode when `vite.css.devSourcemap` is provided + +- [#5905](https://github.com/withastro/astro/pull/5905) [`a8d3e7924`](https://github.com/withastro/astro/commit/a8d3e79246605d252dcddad159e358e2d79bd624) Thanks [@bluwy](https://github.com/bluwy)! - Fix CLI node version check + +- [#5909](https://github.com/withastro/astro/pull/5909) [`5fd9208d4`](https://github.com/withastro/astro/commit/5fd9208d447f5ab8909a2188b6c2491a0debd49d) Thanks [@jasikpark](https://github.com/jasikpark)! - Update compiler to 1.0.1 + +- Updated dependencies [[`46ecd5de3`](https://github.com/withastro/astro/commit/46ecd5de34df619e2ee73ccea39a57acd37bc0b8)]: + - @astrojs/webapi@2.0.0-beta.1 + ## 2.0.0-beta.3 ### Major Changes diff --git a/packages/astro/package.json b/packages/astro/package.json index 94c72ac52..a4e5cf467 100644 --- a/packages/astro/package.json +++ b/packages/astro/package.json @@ -1,6 +1,6 @@ { "name": "astro", - "version": "2.0.0-beta.3", + "version": "2.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", @@ -103,7 +103,7 @@ "@astrojs/language-server": "^0.28.3", "@astrojs/markdown-remark": "^2.0.0-beta.2", "@astrojs/telemetry": "^2.0.0-beta.0", - "@astrojs/webapi": "^2.0.0-beta.0", + "@astrojs/webapi": "^2.0.0-beta.1", "@babel/core": "^7.18.2", "@babel/generator": "^7.18.2", "@babel/parser": "^7.18.4", diff --git a/packages/create-astro/CHANGELOG.md b/packages/create-astro/CHANGELOG.md index b838c3e33..c6d8d8b50 100644 --- a/packages/create-astro/CHANGELOG.md +++ b/packages/create-astro/CHANGELOG.md @@ -1,5 +1,13 @@ # create-astro +## 2.0.0-beta.1 + +### Patch Changes + +- [#5898](https://github.com/withastro/astro/pull/5898) [`d8919b1a2`](https://github.com/withastro/astro/commit/d8919b1a2197616b70ec57f0fb00b0bde6943e43) Thanks [@TheOtterlord](https://github.com/TheOtterlord)! - Support headless runs with `-y` / `--yes` + +- [#5920](https://github.com/withastro/astro/pull/5920) [`f27bb3d79`](https://github.com/withastro/astro/commit/f27bb3d79f9774f01037e60e656b1f9d8e03367d) Thanks [@delucis](https://github.com/delucis)! - Improve error message for third-party template 404s + ## 2.0.0-beta.0 ### Major Changes diff --git a/packages/create-astro/package.json b/packages/create-astro/package.json index 1de7b0e9d..1ceda47bb 100644 --- a/packages/create-astro/package.json +++ b/packages/create-astro/package.json @@ -1,6 +1,6 @@ { "name": "create-astro", - "version": "2.0.0-beta.0", + "version": "2.0.0-beta.1", "type": "module", "author": "withastro", "license": "MIT", diff --git a/packages/integrations/cloudflare/package.json b/packages/integrations/cloudflare/package.json index ecdc8c43e..a3e003438 100644 --- a/packages/integrations/cloudflare/package.json +++ b/packages/integrations/cloudflare/package.json @@ -38,7 +38,7 @@ "tiny-glob": "^0.2.9" }, "peerDependencies": { - "astro": "workspace:^2.0.0-beta.3" + "astro": "workspace:^2.0.0-beta.4" }, "devDependencies": { "astro": "workspace:*", diff --git a/packages/integrations/deno/package.json b/packages/integrations/deno/package.json index 5f7120d42..cfe272b7e 100644 --- a/packages/integrations/deno/package.json +++ b/packages/integrations/deno/package.json @@ -32,7 +32,7 @@ "esbuild": "^0.15.18" }, "peerDependencies": { - "astro": "workspace:^2.0.0-beta.3" + "astro": "workspace:^2.0.0-beta.4" }, "devDependencies": { "astro": "workspace:*", diff --git a/packages/integrations/image/CHANGELOG.md b/packages/integrations/image/CHANGELOG.md index 175cf5e70..09232ede0 100644 --- a/packages/integrations/image/CHANGELOG.md +++ b/packages/integrations/image/CHANGELOG.md @@ -1,5 +1,14 @@ # @astrojs/image +## 0.12.2-beta.1 + +### Patch Changes + +- [#5930](https://github.com/withastro/astro/pull/5930) [`46ecd5de3`](https://github.com/withastro/astro/commit/46ecd5de34df619e2ee73ccea39a57acd37bc0b8) Thanks [@h3y6e](https://github.com/h3y6e)! - Update magic-string from 0.25.9 to 0.27.0 + +- Updated dependencies [[`4987d6f44`](https://github.com/withastro/astro/commit/4987d6f44cfd0d81d88f21f5c380503403dc1e6a), [`304823811`](https://github.com/withastro/astro/commit/304823811eddd8e72aa1d8e2d39b40ab5cda3565), [`7325df412`](https://github.com/withastro/astro/commit/7325df412107fc0e65cd45c1b568fb686708f723), [`a8d3e7924`](https://github.com/withastro/astro/commit/a8d3e79246605d252dcddad159e358e2d79bd624), [`5fd9208d4`](https://github.com/withastro/astro/commit/5fd9208d447f5ab8909a2188b6c2491a0debd49d)]: + - astro@2.0.0-beta.4 + ## 0.12.2-beta.0 ### Patch Changes diff --git a/packages/integrations/image/package.json b/packages/integrations/image/package.json index e4cfe0647..ca0aab288 100644 --- a/packages/integrations/image/package.json +++ b/packages/integrations/image/package.json @@ -1,7 +1,7 @@ { "name": "@astrojs/image", "description": "Load and transform images in your Astro site.", - "version": "0.12.2-beta.0", + "version": "0.12.2-beta.1", "type": "module", "types": "./dist/index.d.ts", "author": "withastro", @@ -64,7 +64,7 @@ "vite": "^4.0.3" }, "peerDependencies": { - "astro": "workspace:^2.0.0-beta.3", + "astro": "workspace:^2.0.0-beta.4", "sharp": ">=0.31.0" }, "peerDependenciesMeta": { diff --git a/packages/integrations/netlify/CHANGELOG.md b/packages/integrations/netlify/CHANGELOG.md index 16cf83a80..685832c58 100644 --- a/packages/integrations/netlify/CHANGELOG.md +++ b/packages/integrations/netlify/CHANGELOG.md @@ -1,5 +1,15 @@ # @astrojs/netlify +## 2.0.0-beta.4 + +### Patch Changes + +- [#5904](https://github.com/withastro/astro/pull/5904) [`f5adbd6b5`](https://github.com/withastro/astro/commit/f5adbd6b55ca13a7523dff2cfc5dccdab9980fa7) Thanks [@matthewp](https://github.com/matthewp)! - Support prerender in \_redirects + +- Updated dependencies [[`4987d6f44`](https://github.com/withastro/astro/commit/4987d6f44cfd0d81d88f21f5c380503403dc1e6a), [`304823811`](https://github.com/withastro/astro/commit/304823811eddd8e72aa1d8e2d39b40ab5cda3565), [`46ecd5de3`](https://github.com/withastro/astro/commit/46ecd5de34df619e2ee73ccea39a57acd37bc0b8), [`7325df412`](https://github.com/withastro/astro/commit/7325df412107fc0e65cd45c1b568fb686708f723), [`a8d3e7924`](https://github.com/withastro/astro/commit/a8d3e79246605d252dcddad159e358e2d79bd624), [`5fd9208d4`](https://github.com/withastro/astro/commit/5fd9208d447f5ab8909a2188b6c2491a0debd49d)]: + - astro@2.0.0-beta.4 + - @astrojs/webapi@2.0.0-beta.1 + ## 2.0.0-beta.3 ### Patch Changes diff --git a/packages/integrations/netlify/package.json b/packages/integrations/netlify/package.json index ebe752789..0f7866853 100644 --- a/packages/integrations/netlify/package.json +++ b/packages/integrations/netlify/package.json @@ -1,7 +1,7 @@ { "name": "@astrojs/netlify", "description": "Deploy your site to Netlify", - "version": "2.0.0-beta.3", + "version": "2.0.0-beta.4", "type": "module", "types": "./dist/index.d.ts", "author": "withastro", @@ -34,11 +34,11 @@ "test": "npm run test-fn" }, "dependencies": { - "@astrojs/webapi": "^2.0.0-beta.0", + "@astrojs/webapi": "^2.0.0-beta.1", "esbuild": "^0.15.18" }, "peerDependencies": { - "astro": "workspace:^2.0.0-beta.3" + "astro": "workspace:^2.0.0-beta.4" }, "devDependencies": { "@netlify/edge-handler-types": "^0.34.1", diff --git a/packages/integrations/node/package.json b/packages/integrations/node/package.json index a4e6bc1fc..05dcb0347 100644 --- a/packages/integrations/node/package.json +++ b/packages/integrations/node/package.json @@ -30,11 +30,11 @@ "test": "mocha --exit --timeout 20000 test/" }, "dependencies": { - "@astrojs/webapi": "^2.0.0-beta.0", + "@astrojs/webapi": "^2.0.0-beta.1", "send": "^0.18.0" }, "peerDependencies": { - "astro": "workspace:^2.0.0-beta.3" + "astro": "workspace:^2.0.0-beta.4" }, "devDependencies": { "@types/send": "^0.17.1", diff --git a/packages/integrations/partytown/CHANGELOG.md b/packages/integrations/partytown/CHANGELOG.md index 8392c2a1f..7acdec260 100644 --- a/packages/integrations/partytown/CHANGELOG.md +++ b/packages/integrations/partytown/CHANGELOG.md @@ -1,5 +1,11 @@ # @astrojs/partytown +## 1.0.3-beta.1 + +### Patch Changes + +- [#5936](https://github.com/withastro/astro/pull/5936) [`77ae7a597`](https://github.com/withastro/astro/commit/77ae7a597a8fdd5c939291b4f63237c659a79225) Thanks [@rishi-raj-jain](https://github.com/rishi-raj-jain)! - fix trailing slash with base path + ## 1.0.3-beta.0 ### Patch Changes diff --git a/packages/integrations/partytown/package.json b/packages/integrations/partytown/package.json index 055d70701..ff7f07e2a 100644 --- a/packages/integrations/partytown/package.json +++ b/packages/integrations/partytown/package.json @@ -1,7 +1,7 @@ { "name": "@astrojs/partytown", "description": "Astro + Partytown integration", - "version": "1.0.3-beta.0", + "version": "1.0.3-beta.1", "type": "module", "types": "./dist/index.d.ts", "author": "withastro", diff --git a/packages/integrations/svelte/CHANGELOG.md b/packages/integrations/svelte/CHANGELOG.md index e32933165..fb0fbfd1e 100644 --- a/packages/integrations/svelte/CHANGELOG.md +++ b/packages/integrations/svelte/CHANGELOG.md @@ -1,5 +1,14 @@ # @astrojs/svelte +## 2.0.0-beta.3 + +### Patch Changes + +- [#5923](https://github.com/withastro/astro/pull/5923) [`f32bf07c1`](https://github.com/withastro/astro/commit/f32bf07c19ebd8f9c85ed47c52e2a4137074e9b3) Thanks [@delucis](https://github.com/delucis)! - Improve README + +- Updated dependencies [[`4987d6f44`](https://github.com/withastro/astro/commit/4987d6f44cfd0d81d88f21f5c380503403dc1e6a), [`304823811`](https://github.com/withastro/astro/commit/304823811eddd8e72aa1d8e2d39b40ab5cda3565), [`7325df412`](https://github.com/withastro/astro/commit/7325df412107fc0e65cd45c1b568fb686708f723), [`a8d3e7924`](https://github.com/withastro/astro/commit/a8d3e79246605d252dcddad159e358e2d79bd624), [`5fd9208d4`](https://github.com/withastro/astro/commit/5fd9208d447f5ab8909a2188b6c2491a0debd49d)]: + - astro@2.0.0-beta.4 + ## 2.0.0-beta.2 ### Major Changes diff --git a/packages/integrations/svelte/package.json b/packages/integrations/svelte/package.json index dde73f607..702d0fdb5 100644 --- a/packages/integrations/svelte/package.json +++ b/packages/integrations/svelte/package.json @@ -1,6 +1,6 @@ { "name": "@astrojs/svelte", - "version": "2.0.0-beta.2", + "version": "2.0.0-beta.3", "description": "Use Svelte components within Astro", "type": "module", "types": "./dist/index.d.ts", @@ -44,7 +44,7 @@ }, "peerDependencies": { "svelte": "^3.54.0", - "astro": "workspace:^2.0.0-beta.3" + "astro": "workspace:^2.0.0-beta.4" }, "engines": { "node": ">=16.12.0" diff --git a/packages/integrations/tailwind/CHANGELOG.md b/packages/integrations/tailwind/CHANGELOG.md index 84aaba15a..074ad9d41 100644 --- a/packages/integrations/tailwind/CHANGELOG.md +++ b/packages/integrations/tailwind/CHANGELOG.md @@ -1,5 +1,14 @@ # @astrojs/tailwind +## 3.0.0-beta.2 + +### Patch Changes + +- [#5908](https://github.com/withastro/astro/pull/5908) [`9e57268f1`](https://github.com/withastro/astro/commit/9e57268f1318853b612711b31d7461e9b9ce1978) Thanks [@MoustaphaDev](https://github.com/MoustaphaDev)! - Fix vite not picking up Postcss config files because of the tailwind integration + +- Updated dependencies [[`4987d6f44`](https://github.com/withastro/astro/commit/4987d6f44cfd0d81d88f21f5c380503403dc1e6a), [`304823811`](https://github.com/withastro/astro/commit/304823811eddd8e72aa1d8e2d39b40ab5cda3565), [`7325df412`](https://github.com/withastro/astro/commit/7325df412107fc0e65cd45c1b568fb686708f723), [`a8d3e7924`](https://github.com/withastro/astro/commit/a8d3e79246605d252dcddad159e358e2d79bd624), [`5fd9208d4`](https://github.com/withastro/astro/commit/5fd9208d447f5ab8909a2188b6c2491a0debd49d)]: + - astro@2.0.0-beta.4 + ## 3.0.0-beta.1 ### Major Changes diff --git a/packages/integrations/tailwind/package.json b/packages/integrations/tailwind/package.json index ec34e19a7..76f93b647 100644 --- a/packages/integrations/tailwind/package.json +++ b/packages/integrations/tailwind/package.json @@ -1,7 +1,7 @@ { "name": "@astrojs/tailwind", "description": "Tailwind + Astro Integrations", - "version": "3.0.0-beta.1", + "version": "3.0.0-beta.2", "type": "module", "types": "./dist/index.d.ts", "author": "withastro", @@ -41,7 +41,7 @@ }, "peerDependencies": { "tailwindcss": "^3.0.24", - "astro": "workspace:^2.0.0-beta.3" + "astro": "workspace:^2.0.0-beta.4" }, "pnpm": { "peerDependencyRules": { diff --git a/packages/integrations/vercel/package.json b/packages/integrations/vercel/package.json index 11074539b..db686c638 100644 --- a/packages/integrations/vercel/package.json +++ b/packages/integrations/vercel/package.json @@ -44,13 +44,13 @@ "test": "mocha --exit --timeout 20000 test/" }, "dependencies": { - "@astrojs/webapi": "^2.0.0-beta.0", + "@astrojs/webapi": "^2.0.0-beta.1", "@vercel/nft": "^0.22.1", "fast-glob": "^3.2.11", "set-cookie-parser": "^2.5.1" }, "peerDependencies": { - "astro": "workspace:^2.0.0-beta.3" + "astro": "workspace:^2.0.0-beta.4" }, "devDependencies": { "@types/set-cookie-parser": "^2.4.2", diff --git a/packages/integrations/vue/package.json b/packages/integrations/vue/package.json index af2230d0e..f4bce7f38 100644 --- a/packages/integrations/vue/package.json +++ b/packages/integrations/vue/package.json @@ -51,7 +51,7 @@ }, "peerDependencies": { "vue": "^3.2.30", - "astro": "workspace:^2.0.0-beta.3" + "astro": "workspace:^2.0.0-beta.4" }, "engines": { "node": ">=16.12.0" diff --git a/packages/markdown/remark/package.json b/packages/markdown/remark/package.json index e1e9cf85f..1ad3ea435 100644 --- a/packages/markdown/remark/package.json +++ b/packages/markdown/remark/package.json @@ -25,7 +25,7 @@ "test": "mocha --exit --timeout 20000" }, "peerDependencies": { - "astro": "workspace:^2.0.0-beta.2" + "astro": "workspace:^2.0.0-beta.4" }, "dependencies": { "@astrojs/prism": "^2.0.0-beta.0", diff --git a/packages/webapi/CHANGELOG.md b/packages/webapi/CHANGELOG.md index d5906e0b9..c69405c0a 100644 --- a/packages/webapi/CHANGELOG.md +++ b/packages/webapi/CHANGELOG.md @@ -1,5 +1,11 @@ # @astrojs/webapi +## 2.0.0-beta.1 + +### Patch Changes + +- [#5930](https://github.com/withastro/astro/pull/5930) [`46ecd5de3`](https://github.com/withastro/astro/commit/46ecd5de34df619e2ee73ccea39a57acd37bc0b8) Thanks [@h3y6e](https://github.com/h3y6e)! - Update magic-string from 0.25.9 to 0.27.0 + ## 2.0.0-beta.0 ### Major Changes diff --git a/packages/webapi/package.json b/packages/webapi/package.json index a7f5967c1..60950f2ed 100644 --- a/packages/webapi/package.json +++ b/packages/webapi/package.json @@ -1,7 +1,7 @@ { "name": "@astrojs/webapi", "description": "Use Web APIs in Node", - "version": "2.0.0-beta.0", + "version": "2.0.0-beta.1", "type": "module", "exports": { ".": { |