diff --git a/.changeset/pre.json b/.changeset/pre.json index 42dd547a5b0a..181dd737cc92 100644 --- a/.changeset/pre.json +++ b/.changeset/pre.json @@ -33,26 +33,45 @@ "@astrojs/yaml2ts": "0.2.2" }, "changesets": [ + "adapter-interface-breaking", "beige-clowns-read", + "busy-humans-smoke", "busy-olives-chew", + "cloudflare-entrypoint-breaking", "cuddly-worlds-beam", "cyan-crews-cross", - "dark-chicken-sleep", + "dance-ornate-keen", + "deep-states-talk", "dull-mangos-travel", + "encoding-static-builds", + "every-birds-relax", "fast-bushes-fall", + "flat-lions-care", + "fresh-rocks-sing", "giant-areas-press", "good-camels-pull", "green-garlics-heal", "honest-deer-add", "kind-pears-behave", + "open-monkeys-boil", "pretty-forks-smash", "puny-poems-create", "rich-horses-begin", - "rich-tips-kick", + "route-data-breaking", "sad-lines-hear", + "sad-teams-end", + "shy-cats-grin", "six-women-visit", + "smooth-kids-tease", + "social-maps-shine", + "some-olives-march", + "ssr-manifest-breaking", "stale-ads-see", + "thin-hands-find", + "tiny-books-scream", "tricky-donkeys-camp", + "vite-environments-breaking", + "wet-lines-wear", "wet-suits-help", "whole-geckos-think", "young-banks-camp" diff --git a/examples/basics/package.json b/examples/basics/package.json index d808e53d0e67..09c2c673c30a 100644 --- a/examples/basics/package.json +++ b/examples/basics/package.json @@ -10,6 +10,6 @@ "astro": "astro" }, "dependencies": { - "astro": "^6.0.0-alpha.0" + "astro": "^6.0.0-alpha.1" } } diff --git a/examples/blog/package.json b/examples/blog/package.json index 1b034b294778..4e54574324c1 100644 --- a/examples/blog/package.json +++ b/examples/blog/package.json @@ -11,9 +11,9 @@ }, "dependencies": { "@astrojs/mdx": "^5.0.0-alpha.0", - "@astrojs/rss": "^4.0.14", - "@astrojs/sitemap": "^3.6.0", - "astro": "^6.0.0-alpha.0", + "@astrojs/rss": "^4.0.15-alpha.0", + "@astrojs/sitemap": "^3.6.1-alpha.0", + "astro": "^6.0.0-alpha.1", "sharp": "^0.34.3" } } diff --git a/examples/component/package.json b/examples/component/package.json index f6678fb73072..cdf467150800 100644 --- a/examples/component/package.json +++ b/examples/component/package.json @@ -15,7 +15,7 @@ ], "scripts": {}, "devDependencies": { - "astro": "^6.0.0-alpha.0" + "astro": "^6.0.0-alpha.1" }, "peerDependencies": { "astro": "^5.0.0 || ^6.0.0" diff --git a/examples/container-with-vitest/package.json b/examples/container-with-vitest/package.json index 95ea5df421dc..7fc80cffd3a6 100644 --- a/examples/container-with-vitest/package.json +++ b/examples/container-with-vitest/package.json @@ -12,7 +12,7 @@ }, "dependencies": { "@astrojs/react": "^5.0.0-alpha.0", - "astro": "^6.0.0-alpha.0", + "astro": "^6.0.0-alpha.1", "react": "^18.3.1", "react-dom": "^18.3.1", "vitest": "^3.2.4" diff --git a/examples/framework-alpine/package.json b/examples/framework-alpine/package.json index 9714ef5d3d7f..04143f6b43ae 100644 --- a/examples/framework-alpine/package.json +++ b/examples/framework-alpine/package.json @@ -13,6 +13,6 @@ "@astrojs/alpinejs": "^0.5.0-alpha.0", "@types/alpinejs": "^3.13.11", "alpinejs": "^3.15.2", - "astro": "^6.0.0-alpha.0" + "astro": "^6.0.0-alpha.1" } } diff --git a/examples/framework-multiple/package.json b/examples/framework-multiple/package.json index 4343a803d678..3f332e92c6e0 100644 --- a/examples/framework-multiple/package.json +++ b/examples/framework-multiple/package.json @@ -17,7 +17,7 @@ "@astrojs/vue": "^6.0.0-alpha.0", "@types/react": "^18.3.27", "@types/react-dom": "^18.3.7", - "astro": "^6.0.0-alpha.0", + "astro": "^6.0.0-alpha.1", "preact": "^10.28.0", "react": "^18.3.1", "react-dom": "^18.3.1", diff --git a/examples/framework-preact/package.json b/examples/framework-preact/package.json index e8927b66ee3d..cc44884ea51b 100644 --- a/examples/framework-preact/package.json +++ b/examples/framework-preact/package.json @@ -12,7 +12,7 @@ "dependencies": { "@astrojs/preact": "^5.0.0-alpha.0", "@preact/signals": "^2.5.1", - "astro": "^6.0.0-alpha.0", + "astro": "^6.0.0-alpha.1", "preact": "^10.28.0" } } diff --git a/examples/framework-react/package.json b/examples/framework-react/package.json index 1ad0b2bb2001..098e4d9c6c15 100644 --- a/examples/framework-react/package.json +++ b/examples/framework-react/package.json @@ -13,7 +13,7 @@ "@astrojs/react": "^5.0.0-alpha.0", "@types/react": "^18.3.27", "@types/react-dom": "^18.3.7", - "astro": "^6.0.0-alpha.0", + "astro": "^6.0.0-alpha.1", "react": "^18.3.1", "react-dom": "^18.3.1" } diff --git a/examples/framework-solid/package.json b/examples/framework-solid/package.json index 1de878d88d89..c3d854f5f7e6 100644 --- a/examples/framework-solid/package.json +++ b/examples/framework-solid/package.json @@ -11,7 +11,7 @@ }, "dependencies": { "@astrojs/solid-js": "^6.0.0-alpha.0", - "astro": "^6.0.0-alpha.0", + "astro": "^6.0.0-alpha.1", "solid-js": "^1.9.10" } } diff --git a/examples/framework-svelte/package.json b/examples/framework-svelte/package.json index c734ac7389fe..a9b383581e68 100644 --- a/examples/framework-svelte/package.json +++ b/examples/framework-svelte/package.json @@ -11,7 +11,7 @@ }, "dependencies": { "@astrojs/svelte": "^8.0.0-alpha.0", - "astro": "^6.0.0-alpha.0", + "astro": "^6.0.0-alpha.1", "svelte": "^5.45.5" } } diff --git a/examples/framework-vue/package.json b/examples/framework-vue/package.json index 77cc9d8793e0..087125e18d8d 100644 --- a/examples/framework-vue/package.json +++ b/examples/framework-vue/package.json @@ -11,7 +11,7 @@ }, "dependencies": { "@astrojs/vue": "^6.0.0-alpha.0", - "astro": "^6.0.0-alpha.0", + "astro": "^6.0.0-alpha.1", "vue": "^3.5.25" } } diff --git a/examples/hackernews/package.json b/examples/hackernews/package.json index 637ad04bb237..e1dc5430f873 100644 --- a/examples/hackernews/package.json +++ b/examples/hackernews/package.json @@ -10,7 +10,7 @@ "astro": "astro" }, "dependencies": { - "@astrojs/node": "^10.0.0-alpha.0", - "astro": "^6.0.0-alpha.0" + "@astrojs/node": "^10.0.0-alpha.2", + "astro": "^6.0.0-alpha.1" } } diff --git a/examples/integration/package.json b/examples/integration/package.json index d6552c667543..2fe8a8a99907 100644 --- a/examples/integration/package.json +++ b/examples/integration/package.json @@ -15,7 +15,7 @@ ], "scripts": {}, "devDependencies": { - "astro": "^6.0.0-alpha.0" + "astro": "^6.0.0-alpha.1" }, "peerDependencies": { "astro": "^4.0.0" diff --git a/examples/minimal/package.json b/examples/minimal/package.json index ccd5d875e3d9..6c4c33397a55 100644 --- a/examples/minimal/package.json +++ b/examples/minimal/package.json @@ -10,6 +10,6 @@ "astro": "astro" }, "dependencies": { - "astro": "^6.0.0-alpha.0" + "astro": "^6.0.0-alpha.1" } } diff --git a/examples/portfolio/package.json b/examples/portfolio/package.json index 5d255319e509..3711a0676943 100644 --- a/examples/portfolio/package.json +++ b/examples/portfolio/package.json @@ -10,6 +10,6 @@ "astro": "astro" }, "dependencies": { - "astro": "^6.0.0-alpha.0" + "astro": "^6.0.0-alpha.1" } } diff --git a/examples/ssr/package.json b/examples/ssr/package.json index 602de5d4efc0..198509ab55f7 100644 --- a/examples/ssr/package.json +++ b/examples/ssr/package.json @@ -11,9 +11,9 @@ "server": "node dist/server/entry.mjs" }, "dependencies": { - "@astrojs/node": "^10.0.0-alpha.0", + "@astrojs/node": "^10.0.0-alpha.2", "@astrojs/svelte": "^8.0.0-alpha.0", - "astro": "^6.0.0-alpha.0", + "astro": "^6.0.0-alpha.1", "svelte": "^5.45.5" } } diff --git a/examples/starlog/package.json b/examples/starlog/package.json index 94fbd4098802..9475e1e23748 100644 --- a/examples/starlog/package.json +++ b/examples/starlog/package.json @@ -9,7 +9,7 @@ "astro": "astro" }, "dependencies": { - "astro": "^6.0.0-alpha.0", + "astro": "^6.0.0-alpha.1", "sass": "^1.94.2", "sharp": "^0.34.3" } diff --git a/examples/toolbar-app/package.json b/examples/toolbar-app/package.json index e71934c548ca..c102c71f59a0 100644 --- a/examples/toolbar-app/package.json +++ b/examples/toolbar-app/package.json @@ -16,6 +16,6 @@ }, "devDependencies": { "@types/node": "^18.17.8", - "astro": "^6.0.0-alpha.0" + "astro": "^6.0.0-alpha.1" } } diff --git a/examples/with-markdoc/package.json b/examples/with-markdoc/package.json index d4de46126fae..96be9a8c0f9a 100644 --- a/examples/with-markdoc/package.json +++ b/examples/with-markdoc/package.json @@ -11,6 +11,6 @@ }, "dependencies": { "@astrojs/markdoc": "^1.0.0-alpha.0", - "astro": "^6.0.0-alpha.0" + "astro": "^6.0.0-alpha.1" } } diff --git a/examples/with-mdx/package.json b/examples/with-mdx/package.json index 9780a31d60a7..5b4bffe0aa7b 100644 --- a/examples/with-mdx/package.json +++ b/examples/with-mdx/package.json @@ -12,7 +12,7 @@ "dependencies": { "@astrojs/mdx": "^5.0.0-alpha.0", "@astrojs/preact": "^5.0.0-alpha.0", - "astro": "^6.0.0-alpha.0", + "astro": "^6.0.0-alpha.1", "preact": "^10.28.0" } } diff --git a/examples/with-nanostores/package.json b/examples/with-nanostores/package.json index 595ef8e713ea..382c26adcb5c 100644 --- a/examples/with-nanostores/package.json +++ b/examples/with-nanostores/package.json @@ -12,7 +12,7 @@ "dependencies": { "@astrojs/preact": "^5.0.0-alpha.0", "@nanostores/preact": "^0.5.2", - "astro": "^6.0.0-alpha.0", + "astro": "^6.0.0-alpha.1", "nanostores": "^0.11.4", "preact": "^10.28.0" } diff --git a/examples/with-tailwindcss/package.json b/examples/with-tailwindcss/package.json index fa65f3bc82b9..1c1b14ec043d 100644 --- a/examples/with-tailwindcss/package.json +++ b/examples/with-tailwindcss/package.json @@ -13,7 +13,7 @@ "@astrojs/mdx": "^5.0.0-alpha.0", "@tailwindcss/vite": "^4.1.17", "@types/canvas-confetti": "^1.9.0", - "astro": "^6.0.0-alpha.0", + "astro": "^6.0.0-alpha.1", "canvas-confetti": "^1.9.4", "tailwindcss": "^4.1.17" } diff --git a/examples/with-vitest/package.json b/examples/with-vitest/package.json index f69843a6037d..e6b5a7495a63 100644 --- a/examples/with-vitest/package.json +++ b/examples/with-vitest/package.json @@ -11,7 +11,7 @@ "test": "vitest" }, "dependencies": { - "astro": "^6.0.0-alpha.0", + "astro": "^6.0.0-alpha.1", "vitest": "^3.2.4" } } diff --git a/packages/astro-rss/CHANGELOG.md b/packages/astro-rss/CHANGELOG.md index 8467cfbb9244..02c3ae28a649 100644 --- a/packages/astro-rss/CHANGELOG.md +++ b/packages/astro-rss/CHANGELOG.md @@ -1,5 +1,11 @@ # @astrojs/rss +## 4.0.15-alpha.0 + +### Patch Changes + +- [#14956](https://github.com/withastro/astro/pull/14956) [`0ff51df`](https://github.com/withastro/astro/commit/0ff51dfa3c6c615af54228e159f324034472b1a2) Thanks [@matthewp](https://github.com/matthewp)! - Updates usage of zod to own dependency rather than relying on `astro/zod` + ## 4.0.14 ### Patch Changes diff --git a/packages/astro-rss/package.json b/packages/astro-rss/package.json index 3cb1717f3a1c..6a84792b01a7 100644 --- a/packages/astro-rss/package.json +++ b/packages/astro-rss/package.json @@ -1,7 +1,7 @@ { "name": "@astrojs/rss", "description": "Add RSS feeds to your Astro projects", - "version": "4.0.14", + "version": "4.0.15-alpha.0", "type": "module", "types": "./dist/index.d.ts", "author": "withastro", diff --git a/packages/astro/CHANGELOG.md b/packages/astro/CHANGELOG.md index 35a5d3bdfd23..fb3c0169850a 100644 --- a/packages/astro/CHANGELOG.md +++ b/packages/astro/CHANGELOG.md @@ -1,5 +1,69 @@ # astro +## 6.0.0-alpha.1 + +### Major Changes + +- [#14956](https://github.com/withastro/astro/pull/14956) [`0ff51df`](https://github.com/withastro/astro/commit/0ff51dfa3c6c615af54228e159f324034472b1a2) Thanks [@matthewp](https://github.com/matthewp)! - Astro v6.0 upgrades to Zod v4 for schema validation - ([v6 upgrade guidance](https://v6.docs.astro.build/en/guides/upgrade-to/v6/#zod-4)) + +- [#14759](https://github.com/withastro/astro/pull/14759) [`d7889f7`](https://github.com/withastro/astro/commit/d7889f768a4d27e8c4ad3a0022099d19145a7d58) Thanks [@florian-lefebvre](https://github.com/florian-lefebvre)! - Updates how schema types are inferred for content loaders with schemas (Loader API) - ([v6 upgrade guidance](https://v6.docs.astro.build/en/guides/upgrade-to/v6/TODO:)) + +- [#14306](https://github.com/withastro/astro/pull/14306) [`141c4a2`](https://github.com/withastro/astro/commit/141c4a26419fe5bb4341953ea5a0a861d9b398c0) Thanks [@ematipico](https://github.com/ematipico)! - Removes support for routes with percent-encoded percent signs (e.g. `%25`) - ([v6 upgrade guidance](https://v6.docs.astro.build/en/guides/upgrade-to/v6/#removed-percent-encoding-in-routes)) + +- [#14759](https://github.com/withastro/astro/pull/14759) [`d7889f7`](https://github.com/withastro/astro/commit/d7889f768a4d27e8c4ad3a0022099d19145a7d58) Thanks [@florian-lefebvre](https://github.com/florian-lefebvre)! - Removes the option to define dynamic schemas in content loaders as functions and adds a new equivalent `createSchema()` property (Loader API) - ([v6 upgrade guidance](https://v6.docs.astro.build/en/guides/upgrade-to/v6/TODO:)) + +- [#14306](https://github.com/withastro/astro/pull/14306) [`141c4a2`](https://github.com/withastro/astro/commit/141c4a26419fe5bb4341953ea5a0a861d9b398c0) Thanks [@ematipico](https://github.com/ematipico)! - Removes `RouteData.generate` from the Integration API - ([v6 upgrade guidance](https://v6.docs.astro.build/en/guides/upgrade-to/v6/#removed-routedatagenerate-adapter-api)) + +- [#14989](https://github.com/withastro/astro/pull/14989) [`73e8232`](https://github.com/withastro/astro/commit/73e823201cc5bdd6ccab14c07ff0dca5117436ad) Thanks [@florian-lefebvre](https://github.com/florian-lefebvre)! - Deprecates exposed `astro:transitions` internals - ([v6 upgrade guidance](https://v6.docs.astro.build/en/guides/upgrade-to/v6/#deprecated-exposed-astrotransitions-internals)) + +- [#14758](https://github.com/withastro/astro/pull/14758) [`010f773`](https://github.com/withastro/astro/commit/010f7731becbaaba347da21ef07b8a410e31442a) Thanks [@florian-lefebvre](https://github.com/florian-lefebvre)! - Removes the `setManifestData` method from `App` and `NodeApp` (Adapter API) - ([v6 upgrade guidance](https://v6.docs.astro.build/en/guides/upgrade-to/v6/#removed-appsetmanifestdata-adapter-api)) + +- [#14826](https://github.com/withastro/astro/pull/14826) [`170f64e`](https://github.com/withastro/astro/commit/170f64e977290b8f9d316b5f283bd03bae33ddde) Thanks [@florian-lefebvre](https://github.com/florian-lefebvre)! - Removes the `experimental.failOnPrerenderConflict` flag and replaces it with a new configuration option `prerenderConflictBehavior` - ([v6 upgrade guidance](https://v6.docs.astro.build/en/guides/upgrade-to/v6/#experimental-flags)) + +- [#14923](https://github.com/withastro/astro/pull/14923) [`95a1969`](https://github.com/withastro/astro/commit/95a1969a05cc9c15f16dcf2177532882bb392581) Thanks [@florian-lefebvre](https://github.com/florian-lefebvre)! - Deprecates `astro:schema` and `z` from `astro:content` in favor of `astro/zod` - ([v6 upgrade guidance](https://v6.docs.astro.build/en/guides/upgrade-to/v6/#deprecated-astroschema-and-z-from-astrocontent)) + +- [#14844](https://github.com/withastro/astro/pull/14844) [`8d43b1d`](https://github.com/withastro/astro/commit/8d43b1d678eed5be85f99b939d55346824c03cb5) Thanks [@trueberryless](https://github.com/trueberryless)! - Removes exposed `astro:actions` internals - ([v6 upgrade guidance](https://v6.docs.astro.build/en/guides/upgrade-to/v6/#removed-exposed-astroactions-internals)) + +- [#14306](https://github.com/withastro/astro/pull/14306) [`141c4a2`](https://github.com/withastro/astro/commit/141c4a26419fe5bb4341953ea5a0a861d9b398c0) Thanks [@ematipico](https://github.com/ematipico)! - Changes the shape of `SSRManifest` properties and adds several new required properties in the Adapter API - ([v6 upgrade guidance](https://v6.docs.astro.build/en/guides/upgrade-to/v6/#changed-ssrmanifest-interface-structure-adapter-api)) + +- [#14306](https://github.com/withastro/astro/pull/14306) [`141c4a2`](https://github.com/withastro/astro/commit/141c4a26419fe5bb4341953ea5a0a861d9b398c0) Thanks [@ematipico](https://github.com/ematipico)! - Changes integration hooks and HMR access patterns in the Integration API - ([v6 upgrade guidance](https://v6.docs.astro.build/en/guides/upgrade-to/v6/#changed-integration-hooks-and-hmr-access-patterns-integration-api)) + +- [#14306](https://github.com/withastro/astro/pull/14306) [`141c4a2`](https://github.com/withastro/astro/commit/141c4a26419fe5bb4341953ea5a0a861d9b398c0) Thanks [@ematipico](https://github.com/ematipico)! - Removes the unused `astro:ssr-manifest` virtual module - ([v6 upgrade guidance](https://v6.docs.astro.build/en/guides/upgrade-to/v6/#removed-astrossr-manifest-virtual-module-integration-api)) + +### Minor Changes + +- [#14306](https://github.com/withastro/astro/pull/14306) [`141c4a2`](https://github.com/withastro/astro/commit/141c4a26419fe5bb4341953ea5a0a861d9b398c0) Thanks [@ematipico](https://github.com/ematipico)! - Adds new optional properties to `setAdapter()` for adapter entrypoint handling in the Adapter API + + **Changes:** + - New optional properties: + - `devEntrypoint?: string | URL` - specifies custom dev server entrypoint + - `entryType?: 'self' | 'legacy-dynamic'` - determines if the adapter provides its own entrypoint (`'self'`) or if Astro constructs one (`'legacy-dynamic'`, default) + + **Migration:** Adapter authors can optionally add these properties to support custom dev entrypoints. If not specified, adapters will use the legacy behavior. + +- [#14826](https://github.com/withastro/astro/pull/14826) [`170f64e`](https://github.com/withastro/astro/commit/170f64e977290b8f9d316b5f283bd03bae33ddde) Thanks [@florian-lefebvre](https://github.com/florian-lefebvre)! - Adds an option `prerenderConflictBehavior` to configure the behavior of conflicting prerendered routes + + By default, Astro warns you during the build about any conflicts between multiple dynamic routes that can result in the same output path. For example `/blog/[slug]` and `/blog/[...all]` both could try to prerender the `/blog/post-1` path. In such cases, Astro renders only the [highest priority route](https://docs.astro.build/en/guides/routing/#route-priority-order) for the conflicting path. This allows your site to build successfully, although you may discover that some pages are rendered by unexpected routes. + + With the new `prerenderConflictBehavior` configuration option, you can now configure this further: + - `prerenderConflictBehavior: 'error'` fails the build + - `prerenderConflictBehavior: 'warn'` (default) logs a warning and the highest-priority route wins + - `prerenderConflictBehavior: 'ignore'` silently picks the highest-priority route when conflicts occur + + ```diff + import { defineConfig } from 'astro/config'; + + export default defineConfig({ + + prerenderConflictBehavior: 'error', + }); + ``` + +- [#14946](https://github.com/withastro/astro/pull/14946) [`95c40f7`](https://github.com/withastro/astro/commit/95c40f7109ce240206c3951761a7bb439dd809cb) Thanks [@ematipico](https://github.com/ematipico)! - Removes the `experimental.csp` flag and replaces it with a new configuration option `security.csp` - ([v6 upgrade guidance](https://v6.docs.astro.build/en/guides/upgrade-to/v6/#experimental-flags)) + +### Patch Changes + +- [#14982](https://github.com/withastro/astro/pull/14982) [`6849e38`](https://github.com/withastro/astro/commit/6849e3844d940f76b544822e7bd247641d61567d) Thanks [@Princesseuh](https://github.com/Princesseuh)! - Fixes images outside the project directory not working when using astro:assets in development mode + ## 6.0.0-alpha.0 ### Major Changes diff --git a/packages/astro/package.json b/packages/astro/package.json index a4cb392eb42b..efe2f6b56cf3 100644 --- a/packages/astro/package.json +++ b/packages/astro/package.json @@ -1,6 +1,6 @@ { "name": "astro", - "version": "6.0.0-alpha.0", + "version": "6.0.0-alpha.1", "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/db/CHANGELOG.md b/packages/db/CHANGELOG.md index f9e6eb300ad4..f543dba6a8b9 100644 --- a/packages/db/CHANGELOG.md +++ b/packages/db/CHANGELOG.md @@ -1,5 +1,11 @@ # @astrojs/db +## 0.19.0-alpha.1 + +### Patch Changes + +- [#14956](https://github.com/withastro/astro/pull/14956) [`0ff51df`](https://github.com/withastro/astro/commit/0ff51dfa3c6c615af54228e159f324034472b1a2) Thanks [@matthewp](https://github.com/matthewp)! - Updates usage of zod to own dependency rather than relying on `astro/zod` + ## 0.19.0-alpha.0 ### Minor Changes diff --git a/packages/db/package.json b/packages/db/package.json index e976f120a3af..1dc5eb15f0ff 100644 --- a/packages/db/package.json +++ b/packages/db/package.json @@ -1,6 +1,6 @@ { "name": "@astrojs/db", - "version": "0.19.0-alpha.0", + "version": "0.19.0-alpha.1", "description": "Add libSQL support to your Astro site", "license": "MIT", "repository": { diff --git a/packages/integrations/cloudflare/CHANGELOG.md b/packages/integrations/cloudflare/CHANGELOG.md index 04f434e8a5af..359172ddfe4a 100644 --- a/packages/integrations/cloudflare/CHANGELOG.md +++ b/packages/integrations/cloudflare/CHANGELOG.md @@ -1,5 +1,105 @@ # @astrojs/cloudflare +## 13.0.0-alpha.1 + +### Major Changes + +- [#14306](https://github.com/withastro/astro/pull/14306) [`141c4a2`](https://github.com/withastro/astro/commit/141c4a26419fe5bb4341953ea5a0a861d9b398c0) Thanks [@ematipico](https://github.com/ematipico)! - Changes the API for creating a custom `entrypoint`, replacing the `createExports()` function with a direct export pattern. + + #### What should I do? + + If you're using a custom `entryPoint` in your Cloudflare adapter config, update your existing worker file that uses `createExports()` to reflect the new, simplified pattern: + + **my-entry.ts** + + ```ts + import type { SSRManifest } from 'astro'; + import { App } from 'astro/app'; + import { handle } from '@astrojs/cloudflare/handler'; + import { DurableObject } from 'cloudflare:workers'; + + class MyDurableObject extends DurableObject { + constructor(ctx: DurableObjectState, env: Env) { + super(ctx, env); + } + } + + export function createExports(manifest: SSRManifest) { + const app = new App(manifest); + return { + default: { + async fetch(request, env, ctx) { + await env.MY_QUEUE.send('log'); + return handle(manifest, app, request, env, ctx); + }, + async queue(batch, _env) { + let messages = JSON.stringify(batch.messages); + console.log(`consumed from our queue: ${messages}`); + }, + } satisfies ExportedHandler, + MyDurableObject: MyDurableObject, + }; + } + ``` + + To create the same custom `entrypoint` using the updated API, export the following function instead: + + **my-entry.ts** + + ```ts + import { handle } from '@astrojs/cloudflare/utils/handler'; + + export default { + async fetch(request, env, ctx) { + await env.MY_QUEUE.send("log"); + return handle(manifest, app, request, env, ctx); + }, + async queue(batch, _env) { + let messages = JSON.stringify(batch.messages); + console.log(`consumed from our queue: ${messages}`); + } + } satisfies ExportedHandler, + ``` + + The manifest is now created internally by the adapter. + +- [#14306](https://github.com/withastro/astro/pull/14306) [`141c4a2`](https://github.com/withastro/astro/commit/141c4a26419fe5bb4341953ea5a0a861d9b398c0) Thanks [@ematipico](https://github.com/ematipico)! - Development server now runs in workerd + + `astro dev` now runs your Cloudflare application using Cloudflare's workerd runtime instead of Node.js. This means your development environment is now a near-exact replica of your production environment—the same JavaScript engine, the same APIs, the same behavior. You'll catch issues during development that would have only appeared in production, and features like Durable Objects, Workers Analytics Engine, and R2 bindings work exactly as they do on Cloudflare's platform. + + To accommodate this major change to your development environment, this update includes breaking changes to `Astro.locals.runtime`, removing some of its properties. + + #### What should I do? + + Update occurrences of `Astro.locals.runtime` as shown below: + - `Astro.locals.runtime` no longer contains the `env` object. Instead, import it directly: + ```js + import { env } from 'cloudflare:workers'; + ``` + - `Astro.locals.runtime` no longer contains the `cf` object. Instead, access it directly from the request: + ```js + Astro.request.cf; + ``` + - `Astro.locals.runtime` no longer contains the `caches` object. Instead, use the global `caches` object directly: + ```js + caches.default.put(request, response); + ``` + - `Astro.locals.runtime` object is replaced with `Astro.locals.cfContext` which contains the Cloudflare `ExecutionContext`: + ```js + const cfContext = Astro.locals.cfContext; + ``` + +### Minor Changes + +- [#14306](https://github.com/withastro/astro/pull/14306) [`141c4a2`](https://github.com/withastro/astro/commit/141c4a26419fe5bb4341953ea5a0a861d9b398c0) Thanks [@ematipico](https://github.com/ematipico)! - Adds support for `astro preview` command + + Developers can now use `astro preview` to test their Cloudflare Workers application locally before deploying. The preview runs using Cloudflare's workerd runtime, giving you a staging environment that matches production exactly—including support for KV namespaces, environment variables, and other Cloudflare-specific features. + +### Patch Changes + +- Updated dependencies []: + - @astrojs/underscore-redirects@1.0.0 + ## 13.0.0-alpha.0 ### Major Changes diff --git a/packages/integrations/cloudflare/package.json b/packages/integrations/cloudflare/package.json index 9372012e2351..d171692cdd7c 100644 --- a/packages/integrations/cloudflare/package.json +++ b/packages/integrations/cloudflare/package.json @@ -1,7 +1,7 @@ { "name": "@astrojs/cloudflare", "description": "Deploy your site to Cloudflare Workers/Pages", - "version": "13.0.0-alpha.0", + "version": "13.0.0-alpha.1", "type": "module", "types": "./dist/index.d.ts", "author": "withastro", diff --git a/packages/integrations/netlify/CHANGELOG.md b/packages/integrations/netlify/CHANGELOG.md index 7a39b1ab1b8a..e1f85075869e 100644 --- a/packages/integrations/netlify/CHANGELOG.md +++ b/packages/integrations/netlify/CHANGELOG.md @@ -1,5 +1,16 @@ # @astrojs/netlify +## 7.0.0-alpha.3 + +### Minor Changes + +- [#14946](https://github.com/withastro/astro/pull/14946) [`95c40f7`](https://github.com/withastro/astro/commit/95c40f7109ce240206c3951761a7bb439dd809cb) Thanks [@ematipico](https://github.com/ematipico)! - Removes the `experimental.csp` flag and replaces it with a new configuration option `security.csp` - ([v6 upgrade guidance](https://v6.docs.astro.build/en/guides/upgrade-to/v6/#experimental-flags)) + +### Patch Changes + +- Updated dependencies []: + - @astrojs/underscore-redirects@1.0.0 + ## 7.0.0-alpha.0 ### Major Changes diff --git a/packages/integrations/netlify/package.json b/packages/integrations/netlify/package.json index 86df8ad7dab3..063f380fcae3 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": "7.0.0-alpha.2", + "version": "7.0.0-alpha.3", "type": "module", "types": "./dist/index.d.ts", "author": "withastro", diff --git a/packages/integrations/node/CHANGELOG.md b/packages/integrations/node/CHANGELOG.md index ab0096c19126..d5c33f2c26c4 100644 --- a/packages/integrations/node/CHANGELOG.md +++ b/packages/integrations/node/CHANGELOG.md @@ -1,5 +1,11 @@ # @astrojs/node +## 10.0.0-alpha.2 + +### Minor Changes + +- [#14946](https://github.com/withastro/astro/pull/14946) [`95c40f7`](https://github.com/withastro/astro/commit/95c40f7109ce240206c3951761a7bb439dd809cb) Thanks [@ematipico](https://github.com/ematipico)! - Removes the `experimental.csp` flag and replaces it with a new configuration option `security.csp` - ([v6 upgrade guidance](https://v6.docs.astro.build/en/guides/upgrade-to/v6/#experimental-flags)) + ## 10.0.0-alpha.0 ### Patch Changes diff --git a/packages/integrations/node/package.json b/packages/integrations/node/package.json index 7f219dcae06e..62609f7753fd 100644 --- a/packages/integrations/node/package.json +++ b/packages/integrations/node/package.json @@ -1,7 +1,7 @@ { "name": "@astrojs/node", "description": "Deploy your site to a Node.js server", - "version": "10.0.0-alpha.1", + "version": "10.0.0-alpha.2", "type": "module", "types": "./dist/index.d.ts", "author": "withastro", diff --git a/packages/integrations/sitemap/CHANGELOG.md b/packages/integrations/sitemap/CHANGELOG.md index b7c57c175ba3..0b4763ef870d 100644 --- a/packages/integrations/sitemap/CHANGELOG.md +++ b/packages/integrations/sitemap/CHANGELOG.md @@ -1,5 +1,11 @@ # @astrojs/sitemap +## 3.6.1-alpha.0 + +### Patch Changes + +- [#14956](https://github.com/withastro/astro/pull/14956) [`0ff51df`](https://github.com/withastro/astro/commit/0ff51dfa3c6c615af54228e159f324034472b1a2) Thanks [@matthewp](https://github.com/matthewp)! - Updates usage of zod to own dependency rather than relying on `astro/zod` + ## 3.6.0 ### Minor Changes diff --git a/packages/integrations/sitemap/package.json b/packages/integrations/sitemap/package.json index f2446b88e775..6ac92cab57d2 100644 --- a/packages/integrations/sitemap/package.json +++ b/packages/integrations/sitemap/package.json @@ -1,7 +1,7 @@ { "name": "@astrojs/sitemap", "description": "Generate a sitemap for your Astro site", - "version": "3.6.0", + "version": "3.6.1-alpha.0", "type": "module", "types": "./dist/index.d.ts", "author": "withastro", diff --git a/packages/integrations/vercel/CHANGELOG.md b/packages/integrations/vercel/CHANGELOG.md index 87ada54aa441..f31f0778c09d 100644 --- a/packages/integrations/vercel/CHANGELOG.md +++ b/packages/integrations/vercel/CHANGELOG.md @@ -1,5 +1,11 @@ # @astrojs/vercel +## 10.0.0-alpha.1 + +### Minor Changes + +- [#14946](https://github.com/withastro/astro/pull/14946) [`95c40f7`](https://github.com/withastro/astro/commit/95c40f7109ce240206c3951761a7bb439dd809cb) Thanks [@ematipico](https://github.com/ematipico)! - Removes the `experimental.csp` flag and replaces it with a new configuration option `security.csp` - ([v6 upgrade guidance](https://v6.docs.astro.build/en/guides/upgrade-to/v6/#experimental-flags)) + ## 10.0.0-alpha.0 ### Patch Changes diff --git a/packages/integrations/vercel/package.json b/packages/integrations/vercel/package.json index 1f97fc528e97..3c7093e184c0 100644 --- a/packages/integrations/vercel/package.json +++ b/packages/integrations/vercel/package.json @@ -1,7 +1,7 @@ { "name": "@astrojs/vercel", "description": "Deploy your site to Vercel", - "version": "10.0.0-alpha.0", + "version": "10.0.0-alpha.1", "type": "module", "author": "withastro", "license": "MIT", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 38c20292082a..8a06f411965d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -145,7 +145,7 @@ importers: examples/basics: dependencies: astro: - specifier: ^6.0.0-alpha.0 + specifier: ^6.0.0-alpha.1 version: link:../../packages/astro examples/blog: @@ -154,13 +154,13 @@ importers: specifier: ^5.0.0-alpha.0 version: link:../../packages/integrations/mdx '@astrojs/rss': - specifier: ^4.0.14 + specifier: ^4.0.15-alpha.0 version: link:../../packages/astro-rss '@astrojs/sitemap': - specifier: ^3.6.0 + specifier: ^3.6.1-alpha.0 version: link:../../packages/integrations/sitemap astro: - specifier: ^6.0.0-alpha.0 + specifier: ^6.0.0-alpha.1 version: link:../../packages/astro sharp: specifier: ^0.34.3 @@ -169,7 +169,7 @@ importers: examples/component: devDependencies: astro: - specifier: ^6.0.0-alpha.0 + specifier: ^6.0.0-alpha.1 version: link:../../packages/astro examples/container-with-vitest: @@ -178,7 +178,7 @@ importers: specifier: ^5.0.0-alpha.0 version: link:../../packages/integrations/react astro: - specifier: ^6.0.0-alpha.0 + specifier: ^6.0.0-alpha.1 version: link:../../packages/astro react: specifier: ^18.3.1 @@ -209,7 +209,7 @@ importers: specifier: ^3.15.2 version: 3.15.2 astro: - specifier: ^6.0.0-alpha.0 + specifier: ^6.0.0-alpha.1 version: link:../../packages/astro examples/framework-multiple: @@ -236,7 +236,7 @@ importers: specifier: ^18.3.7 version: 18.3.7(@types/react@18.3.27) astro: - specifier: ^6.0.0-alpha.0 + specifier: ^6.0.0-alpha.1 version: link:../../packages/astro preact: specifier: ^10.28.0 @@ -266,7 +266,7 @@ importers: specifier: ^2.5.1 version: 2.5.1(preact@10.28.0) astro: - specifier: ^6.0.0-alpha.0 + specifier: ^6.0.0-alpha.1 version: link:../../packages/astro preact: specifier: ^10.28.0 @@ -284,7 +284,7 @@ importers: specifier: ^18.3.7 version: 18.3.7(@types/react@18.3.27) astro: - specifier: ^6.0.0-alpha.0 + specifier: ^6.0.0-alpha.1 version: link:../../packages/astro react: specifier: ^18.3.1 @@ -299,7 +299,7 @@ importers: specifier: ^6.0.0-alpha.0 version: link:../../packages/integrations/solid astro: - specifier: ^6.0.0-alpha.0 + specifier: ^6.0.0-alpha.1 version: link:../../packages/astro solid-js: specifier: ^1.9.10 @@ -311,7 +311,7 @@ importers: specifier: ^8.0.0-alpha.0 version: link:../../packages/integrations/svelte astro: - specifier: ^6.0.0-alpha.0 + specifier: ^6.0.0-alpha.1 version: link:../../packages/astro svelte: specifier: ^5.45.5 @@ -323,7 +323,7 @@ importers: specifier: ^6.0.0-alpha.0 version: link:../../packages/integrations/vue astro: - specifier: ^6.0.0-alpha.0 + specifier: ^6.0.0-alpha.1 version: link:../../packages/astro vue: specifier: ^3.5.25 @@ -332,40 +332,40 @@ importers: examples/hackernews: dependencies: '@astrojs/node': - specifier: ^10.0.0-alpha.0 + specifier: ^10.0.0-alpha.2 version: link:../../packages/integrations/node astro: - specifier: ^6.0.0-alpha.0 + specifier: ^6.0.0-alpha.1 version: link:../../packages/astro examples/integration: devDependencies: astro: - specifier: ^6.0.0-alpha.0 + specifier: ^6.0.0-alpha.1 version: link:../../packages/astro examples/minimal: dependencies: astro: - specifier: ^6.0.0-alpha.0 + specifier: ^6.0.0-alpha.1 version: link:../../packages/astro examples/portfolio: dependencies: astro: - specifier: ^6.0.0-alpha.0 + specifier: ^6.0.0-alpha.1 version: link:../../packages/astro examples/ssr: dependencies: '@astrojs/node': - specifier: ^10.0.0-alpha.0 + specifier: ^10.0.0-alpha.2 version: link:../../packages/integrations/node '@astrojs/svelte': specifier: ^8.0.0-alpha.0 version: link:../../packages/integrations/svelte astro: - specifier: ^6.0.0-alpha.0 + specifier: ^6.0.0-alpha.1 version: link:../../packages/astro svelte: specifier: ^5.45.5 @@ -374,7 +374,7 @@ importers: examples/starlog: dependencies: astro: - specifier: ^6.0.0-alpha.0 + specifier: ^6.0.0-alpha.1 version: link:../../packages/astro sass: specifier: ^1.94.2 @@ -389,7 +389,7 @@ importers: specifier: ^18.17.8 version: 18.19.130 astro: - specifier: ^6.0.0-alpha.0 + specifier: ^6.0.0-alpha.1 version: link:../../packages/astro examples/with-markdoc: @@ -398,7 +398,7 @@ importers: specifier: ^1.0.0-alpha.0 version: link:../../packages/integrations/markdoc astro: - specifier: ^6.0.0-alpha.0 + specifier: ^6.0.0-alpha.1 version: link:../../packages/astro examples/with-mdx: @@ -410,7 +410,7 @@ importers: specifier: ^5.0.0-alpha.0 version: link:../../packages/integrations/preact astro: - specifier: ^6.0.0-alpha.0 + specifier: ^6.0.0-alpha.1 version: link:../../packages/astro preact: specifier: ^10.28.0 @@ -425,7 +425,7 @@ importers: specifier: ^0.5.2 version: 0.5.2(nanostores@0.11.4)(preact@10.28.0) astro: - specifier: ^6.0.0-alpha.0 + specifier: ^6.0.0-alpha.1 version: link:../../packages/astro nanostores: specifier: ^0.11.4 @@ -446,7 +446,7 @@ importers: specifier: ^1.9.0 version: 1.9.0 astro: - specifier: ^6.0.0-alpha.0 + specifier: ^6.0.0-alpha.1 version: link:../../packages/astro canvas-confetti: specifier: ^1.9.4 @@ -458,7 +458,7 @@ importers: examples/with-vitest: dependencies: astro: - specifier: ^6.0.0-alpha.0 + specifier: ^6.0.0-alpha.1 version: link:../../packages/astro vitest: specifier: ^3.2.4 @@ -6143,7 +6143,7 @@ importers: dependencies: '@astrojs/sitemap': specifier: ^3.6.0 - version: link:../../../../sitemap + version: 3.6.0 '@astrojs/vercel': specifier: workspace:* version: link:../../.. @@ -6982,6 +6982,9 @@ packages: react: ^17.0.2 || ^18.0.0 || ^19.0.0 react-dom: ^17.0.2 || ^18.0.0 || ^19.0.0 + '@astrojs/sitemap@3.6.0': + resolution: {integrity: sha512-4aHkvcOZBWJigRmMIAJwRQXBS+ayoP5z40OklTXYXhUDhwusz+DyDl+nSshY6y9DvkVEavwNcFO8FD81iGhXjg==} + '@astrojs/solid-js@5.1.3': resolution: {integrity: sha512-KxfYt4y1d7BuSw6EsN1EaPoGYsIES7bEI6AtTbncuabRUUMZs+mOWOeOdmgnwVLj+jbNbhBjUZsqr77eUviZdw==} engines: {node: 18.20.8 || ^20.3.0 || >=22.0.0} @@ -16397,6 +16400,12 @@ snapshots: - tsx - yaml + '@astrojs/sitemap@3.6.0': + dependencies: + sitemap: 8.0.2 + stream-replace-string: 2.0.0 + zod: 3.25.76 + '@astrojs/solid-js@5.1.3(@types/node@22.18.12)(jiti@2.6.1)(lightningcss@1.30.2)(sass@1.94.2)(solid-js@1.9.10)(tsx@4.20.6)(yaml@2.8.1)': dependencies: solid-js: 1.9.10