diff --git a/.changeset/brown-shrimps-hug.md b/.changeset/brown-shrimps-hug.md deleted file mode 100644 index 1c40fc380926..000000000000 --- a/.changeset/brown-shrimps-hug.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -'astro': minor ---- - -The `astro/middleware` module exports a new utility called `trySerializeLocals`. - -This utility can be used by adapters to validate their `locals` before sending it -to the Astro middleware. - -This function will throw a runtime error if the value passed is not serializable, so -consumers will need to handle that error. diff --git a/.changeset/chilly-pants-fix.md b/.changeset/chilly-pants-fix.md deleted file mode 100644 index c862a15dcbc3..000000000000 --- a/.changeset/chilly-pants-fix.md +++ /dev/null @@ -1,24 +0,0 @@ ---- -'astro': minor ---- - -Astro exposes the middleware file path to the integrations in the hook `astro:build:ssr` - -```ts -// myIntegration.js -import type { AstroIntegration } from 'astro'; -function integration(): AstroIntegration { - return { - name: "fancy-astro-integration", - hooks: { - 'astro:build:ssr': ({ middlewareEntryPoint }) => { - if (middlewareEntryPoint) { - // do some operations - } - } - } - } -} -``` - -The `middlewareEntryPoint` is only defined if the user has created an Astro middleware. diff --git a/.changeset/cool-kids-grin.md b/.changeset/cool-kids-grin.md deleted file mode 100644 index 190e5eee9d91..000000000000 --- a/.changeset/cool-kids-grin.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'astro': patch ---- - -Correctly track the middleware during the SSR build. diff --git a/.changeset/good-pigs-fetch.md b/.changeset/good-pigs-fetch.md deleted file mode 100644 index 4a463044e50a..000000000000 --- a/.changeset/good-pigs-fetch.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -'@astrojs/vercel': minor ---- - -Support for Vercel Edge Middleware via Astro middleware. - -When a project uses the new option Astro `build.excludeMiddleware`, the -`@astrojs/vercel/serverless` adapter will automatically create a Vercel Edge Middleware -that will automatically communicate with the Astro Middleware. - -Check the [documentation](https://github.com/withastro/astro/blob/main/packages/integrations/vercel/README.md##vercel-edge-middleware-with-astro-middleware) for more details. diff --git a/.changeset/happy-donuts-taste.md b/.changeset/happy-donuts-taste.md deleted file mode 100644 index 2751d1dd035b..000000000000 --- a/.changeset/happy-donuts-taste.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -'astro': minor ---- - -Adds a new command `astro info`, useful for sharing debugging information about your current environment when you need help! - -```shell -astro info -``` - -Output - -``` -Astro version v2.6.6 -Package manager pnpm -Platform darwin -Architecture arm64 -Adapter @astrojs/vercel/serverless -Integrations None -``` diff --git a/.changeset/long-geckos-battle.md b/.changeset/long-geckos-battle.md deleted file mode 100644 index 3c1a993bec5c..000000000000 --- a/.changeset/long-geckos-battle.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'astro': minor ---- - -The `astro/middleware` module exports a new API called `createContext`. - -This a low-level API that adapters can use to create a context that can be consumed by middleware functions. diff --git a/.changeset/many-nails-arrive.md b/.changeset/many-nails-arrive.md deleted file mode 100644 index b620c712a1a3..000000000000 --- a/.changeset/many-nails-arrive.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@astrojs/markdoc': patch ---- - -Handle internal access change diff --git a/.changeset/sour-snakes-wonder.md b/.changeset/sour-snakes-wonder.md deleted file mode 100644 index 40568c418f5c..000000000000 --- a/.changeset/sour-snakes-wonder.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"create-astro": patch ---- - -Update dependency installation grammar diff --git a/.changeset/strong-years-travel.md b/.changeset/strong-years-travel.md deleted file mode 100644 index 3067e01b48be..000000000000 --- a/.changeset/strong-years-travel.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -'astro': minor ---- - -Introduced a new build option for SSR, called `build.excludeMiddleware`. - -```js -// astro.config.mjs -import {defineConfig} from "astro/config"; - -export default defineConfig({ - build: { - excludeMiddleware: true - } -}) -``` - -When enabled, the code that belongs to be middleware **won't** be imported -by the final pages/entry points. The user is responsible for importing it and -calling it manually. diff --git a/examples/basics/package.json b/examples/basics/package.json index 8404cf431dd9..d8020f64f0ca 100644 --- a/examples/basics/package.json +++ b/examples/basics/package.json @@ -11,6 +11,6 @@ "astro": "astro" }, "dependencies": { - "astro": "^2.7.4" + "astro": "^2.8.0" } } diff --git a/examples/blog/package.json b/examples/blog/package.json index 710f801d75e5..1271292a2b20 100644 --- a/examples/blog/package.json +++ b/examples/blog/package.json @@ -14,6 +14,6 @@ "@astrojs/mdx": "^0.19.7", "@astrojs/rss": "^2.4.3", "@astrojs/sitemap": "^1.3.3", - "astro": "^2.7.4" + "astro": "^2.8.0" } } diff --git a/examples/component/package.json b/examples/component/package.json index 3743b027bef7..9f0cbe038249 100644 --- a/examples/component/package.json +++ b/examples/component/package.json @@ -15,7 +15,7 @@ ], "scripts": {}, "devDependencies": { - "astro": "^2.7.4" + "astro": "^2.8.0" }, "peerDependencies": { "astro": "^2.0.0-beta.0" diff --git a/examples/deno/package.json b/examples/deno/package.json index 862b72291e12..e982c9b3f49b 100644 --- a/examples/deno/package.json +++ b/examples/deno/package.json @@ -10,7 +10,7 @@ "astro": "astro" }, "dependencies": { - "astro": "^2.7.4" + "astro": "^2.8.0" }, "devDependencies": { "@astrojs/deno": "^4.2.0" diff --git a/examples/framework-alpine/package.json b/examples/framework-alpine/package.json index 6d2420b46214..00d2f447733d 100644 --- a/examples/framework-alpine/package.json +++ b/examples/framework-alpine/package.json @@ -14,6 +14,6 @@ "@astrojs/alpinejs": "^0.2.2", "@types/alpinejs": "^3.7.1", "alpinejs": "^3.12.2", - "astro": "^2.7.4" + "astro": "^2.8.0" } } diff --git a/examples/framework-lit/package.json b/examples/framework-lit/package.json index 2739475e8c2c..faa2d4d7d352 100644 --- a/examples/framework-lit/package.json +++ b/examples/framework-lit/package.json @@ -13,7 +13,7 @@ "dependencies": { "@astrojs/lit": "^2.1.0", "@webcomponents/template-shadowroot": "^0.2.1", - "astro": "^2.7.4", + "astro": "^2.8.0", "lit": "^2.7.5" } } diff --git a/examples/framework-multiple/package.json b/examples/framework-multiple/package.json index 2a56ecdbcb06..722631da09e6 100644 --- a/examples/framework-multiple/package.json +++ b/examples/framework-multiple/package.json @@ -16,7 +16,7 @@ "@astrojs/solid-js": "^2.2.0", "@astrojs/svelte": "^3.1.0", "@astrojs/vue": "^2.2.1", - "astro": "^2.7.4", + "astro": "^2.8.0", "preact": "^10.15.1", "react": "^18.2.0", "react-dom": "^18.2.0", diff --git a/examples/framework-preact/package.json b/examples/framework-preact/package.json index 53d2910b782f..a65437b0d2ad 100644 --- a/examples/framework-preact/package.json +++ b/examples/framework-preact/package.json @@ -13,7 +13,7 @@ "dependencies": { "@astrojs/preact": "^2.2.1", "@preact/signals": "^1.1.3", - "astro": "^2.7.4", + "astro": "^2.8.0", "preact": "^10.15.1" } } diff --git a/examples/framework-react/package.json b/examples/framework-react/package.json index 415d7830a4f3..2c7b72450108 100644 --- a/examples/framework-react/package.json +++ b/examples/framework-react/package.json @@ -14,7 +14,7 @@ "@astrojs/react": "^2.2.1", "@types/react": "^18.2.13", "@types/react-dom": "^18.2.6", - "astro": "^2.7.4", + "astro": "^2.8.0", "react": "^18.2.0", "react-dom": "^18.2.0" } diff --git a/examples/framework-solid/package.json b/examples/framework-solid/package.json index 16f7eca7d2cb..f5e34f5123a6 100644 --- a/examples/framework-solid/package.json +++ b/examples/framework-solid/package.json @@ -12,7 +12,7 @@ }, "dependencies": { "@astrojs/solid-js": "^2.2.0", - "astro": "^2.7.4", + "astro": "^2.8.0", "solid-js": "^1.7.6" } } diff --git a/examples/framework-svelte/package.json b/examples/framework-svelte/package.json index f93e8de8a7d8..88a9e0b8e02a 100644 --- a/examples/framework-svelte/package.json +++ b/examples/framework-svelte/package.json @@ -12,7 +12,7 @@ }, "dependencies": { "@astrojs/svelte": "^3.1.0", - "astro": "^2.7.4", + "astro": "^2.8.0", "svelte": "^3.59.1" } } diff --git a/examples/framework-vue/package.json b/examples/framework-vue/package.json index 8c51cd1176b9..70ab93218a20 100644 --- a/examples/framework-vue/package.json +++ b/examples/framework-vue/package.json @@ -12,7 +12,7 @@ }, "dependencies": { "@astrojs/vue": "^2.2.1", - "astro": "^2.7.4", + "astro": "^2.8.0", "vue": "^3.3.4" } } diff --git a/examples/hackernews/package.json b/examples/hackernews/package.json index 04facec5c71c..d396283e58b3 100644 --- a/examples/hackernews/package.json +++ b/examples/hackernews/package.json @@ -12,6 +12,6 @@ }, "dependencies": { "@astrojs/node": "^5.3.0", - "astro": "^2.7.4" + "astro": "^2.8.0" } } diff --git a/examples/integration/package.json b/examples/integration/package.json index 5e4c9bf1eebf..2e4cab771725 100644 --- a/examples/integration/package.json +++ b/examples/integration/package.json @@ -15,7 +15,7 @@ ], "scripts": {}, "devDependencies": { - "astro": "^2.7.4" + "astro": "^2.8.0" }, "peerDependencies": { "astro": "^2.0.0-beta.0" diff --git a/examples/middleware/package.json b/examples/middleware/package.json index a586623e9c5b..358419f5408b 100644 --- a/examples/middleware/package.json +++ b/examples/middleware/package.json @@ -13,7 +13,7 @@ }, "dependencies": { "@astrojs/node": "^5.3.0", - "astro": "^2.7.4", + "astro": "^2.8.0", "html-minifier": "^4.0.0" } } diff --git a/examples/minimal/package.json b/examples/minimal/package.json index 60ab8465ea13..0c44100ec2a7 100644 --- a/examples/minimal/package.json +++ b/examples/minimal/package.json @@ -11,6 +11,6 @@ "astro": "astro" }, "dependencies": { - "astro": "^2.7.4" + "astro": "^2.8.0" } } diff --git a/examples/non-html-pages/package.json b/examples/non-html-pages/package.json index 6889fcf6c5d9..316739d4a7a1 100644 --- a/examples/non-html-pages/package.json +++ b/examples/non-html-pages/package.json @@ -11,6 +11,6 @@ "astro": "astro" }, "dependencies": { - "astro": "^2.7.4" + "astro": "^2.8.0" } } diff --git a/examples/portfolio/package.json b/examples/portfolio/package.json index b68c792cb6e8..8f22eff9a689 100644 --- a/examples/portfolio/package.json +++ b/examples/portfolio/package.json @@ -11,6 +11,6 @@ "astro": "astro" }, "dependencies": { - "astro": "^2.7.4" + "astro": "^2.8.0" } } diff --git a/examples/ssr/package.json b/examples/ssr/package.json index 0cfebe4c2a98..3a5b9704146b 100644 --- a/examples/ssr/package.json +++ b/examples/ssr/package.json @@ -14,7 +14,7 @@ "dependencies": { "@astrojs/node": "^5.3.0", "@astrojs/svelte": "^3.1.0", - "astro": "^2.7.4", + "astro": "^2.8.0", "svelte": "^3.59.1" } } diff --git a/examples/with-markdoc/package.json b/examples/with-markdoc/package.json index a96edcb54de8..72b8f46c09e0 100644 --- a/examples/with-markdoc/package.json +++ b/examples/with-markdoc/package.json @@ -11,7 +11,7 @@ "astro": "astro" }, "dependencies": { - "@astrojs/markdoc": "^0.4.0", - "astro": "^2.7.4" + "@astrojs/markdoc": "^0.4.1", + "astro": "^2.8.0" } } diff --git a/examples/with-markdown-plugins/package.json b/examples/with-markdown-plugins/package.json index 4046bc90834c..e1b85c1f43b2 100644 --- a/examples/with-markdown-plugins/package.json +++ b/examples/with-markdown-plugins/package.json @@ -12,7 +12,7 @@ }, "dependencies": { "@astrojs/markdown-remark": "^2.2.1", - "astro": "^2.7.4", + "astro": "^2.8.0", "hast-util-select": "^5.0.5", "rehype-autolink-headings": "^6.1.1", "rehype-slug": "^5.1.0", diff --git a/examples/with-markdown-shiki/package.json b/examples/with-markdown-shiki/package.json index bdddf453e5de..3453b3791d17 100644 --- a/examples/with-markdown-shiki/package.json +++ b/examples/with-markdown-shiki/package.json @@ -11,6 +11,6 @@ "astro": "astro" }, "dependencies": { - "astro": "^2.7.4" + "astro": "^2.8.0" } } diff --git a/examples/with-mdx/package.json b/examples/with-mdx/package.json index 52e1cb07ce0d..fe9d958e22fc 100644 --- a/examples/with-mdx/package.json +++ b/examples/with-mdx/package.json @@ -13,7 +13,7 @@ "dependencies": { "@astrojs/mdx": "^0.19.7", "@astrojs/preact": "^2.2.1", - "astro": "^2.7.4", + "astro": "^2.8.0", "preact": "^10.15.1" } } diff --git a/examples/with-nanostores/package.json b/examples/with-nanostores/package.json index c3b56bffe969..1be16046b291 100644 --- a/examples/with-nanostores/package.json +++ b/examples/with-nanostores/package.json @@ -13,7 +13,7 @@ "dependencies": { "@astrojs/preact": "^2.2.1", "@nanostores/preact": "^0.4.1", - "astro": "^2.7.4", + "astro": "^2.8.0", "nanostores": "^0.8.1", "preact": "^10.15.1" } diff --git a/examples/with-tailwindcss/package.json b/examples/with-tailwindcss/package.json index 7bc9d3191b5f..2d89c0595fa0 100644 --- a/examples/with-tailwindcss/package.json +++ b/examples/with-tailwindcss/package.json @@ -14,7 +14,7 @@ "@astrojs/mdx": "^0.19.7", "@astrojs/tailwind": "^4.0.0", "@types/canvas-confetti": "^1.6.0", - "astro": "^2.7.4", + "astro": "^2.8.0", "autoprefixer": "^10.4.14", "canvas-confetti": "^1.6.0", "postcss": "^8.4.24", diff --git a/examples/with-vite-plugin-pwa/package.json b/examples/with-vite-plugin-pwa/package.json index ef8e411c3253..fb2622bc3352 100644 --- a/examples/with-vite-plugin-pwa/package.json +++ b/examples/with-vite-plugin-pwa/package.json @@ -11,7 +11,7 @@ "astro": "astro" }, "dependencies": { - "astro": "^2.7.4", + "astro": "^2.8.0", "vite-plugin-pwa": "0.14.7", "workbox-window": "^6.6.0" } diff --git a/examples/with-vitest/package.json b/examples/with-vitest/package.json index 52ac09cd210e..b2eea5f4108c 100644 --- a/examples/with-vitest/package.json +++ b/examples/with-vitest/package.json @@ -12,7 +12,7 @@ "test": "vitest" }, "dependencies": { - "astro": "^2.7.4", + "astro": "^2.8.0", "vitest": "^0.31.4" } } diff --git a/packages/astro/CHANGELOG.md b/packages/astro/CHANGELOG.md index 3bb0292ef79a..f63ec8ac6694 100644 --- a/packages/astro/CHANGELOG.md +++ b/packages/astro/CHANGELOG.md @@ -1,5 +1,80 @@ # astro +## 2.8.0 + +### Minor Changes + +- [#7532](https://github.com/withastro/astro/pull/7532) [`9e5fafa2b`](https://github.com/withastro/astro/commit/9e5fafa2b25b5128084c7072aa282642fcfbb14b) Thanks [@ematipico](https://github.com/ematipico)! - The `astro/middleware` module exports a new utility called `trySerializeLocals`. + + This utility can be used by adapters to validate their `locals` before sending it + to the Astro middleware. + + This function will throw a runtime error if the value passed is not serializable, so + consumers will need to handle that error. + +- [#7532](https://github.com/withastro/astro/pull/7532) [`9e5fafa2b`](https://github.com/withastro/astro/commit/9e5fafa2b25b5128084c7072aa282642fcfbb14b) Thanks [@ematipico](https://github.com/ematipico)! - Astro exposes the middleware file path to the integrations in the hook `astro:build:ssr` + + ```ts + // myIntegration.js + import type { AstroIntegration } from 'astro'; + function integration(): AstroIntegration { + return { + name: 'fancy-astro-integration', + hooks: { + 'astro:build:ssr': ({ middlewareEntryPoint }) => { + if (middlewareEntryPoint) { + // do some operations + } + }, + }, + }; + } + ``` + + The `middlewareEntryPoint` is only defined if the user has created an Astro middleware. + +- [#7432](https://github.com/withastro/astro/pull/7432) [`6e9c29579`](https://github.com/withastro/astro/commit/6e9c295799cb6524841adbcbec21ff628d8d19c8) Thanks [@ematipico](https://github.com/ematipico)! - Adds a new command `astro info`, useful for sharing debugging information about your current environment when you need help! + + ```shell + astro info + ``` + + Output + + ``` + Astro version v2.6.6 + Package manager pnpm + Platform darwin + Architecture arm64 + Adapter @astrojs/vercel/serverless + Integrations None + ``` + +- [#7532](https://github.com/withastro/astro/pull/7532) [`9e5fafa2b`](https://github.com/withastro/astro/commit/9e5fafa2b25b5128084c7072aa282642fcfbb14b) Thanks [@ematipico](https://github.com/ematipico)! - The `astro/middleware` module exports a new API called `createContext`. + + This a low-level API that adapters can use to create a context that can be consumed by middleware functions. + +- [#7532](https://github.com/withastro/astro/pull/7532) [`9e5fafa2b`](https://github.com/withastro/astro/commit/9e5fafa2b25b5128084c7072aa282642fcfbb14b) Thanks [@ematipico](https://github.com/ematipico)! - Introduced a new build option for SSR, called `build.excludeMiddleware`. + + ```js + // astro.config.mjs + import { defineConfig } from 'astro/config'; + + export default defineConfig({ + build: { + excludeMiddleware: true, + }, + }); + ``` + + When enabled, the code that belongs to be middleware **won't** be imported + by the final pages/entry points. The user is responsible for importing it and + calling it manually. + +### Patch Changes + +- [#7532](https://github.com/withastro/astro/pull/7532) [`9e5fafa2b`](https://github.com/withastro/astro/commit/9e5fafa2b25b5128084c7072aa282642fcfbb14b) Thanks [@ematipico](https://github.com/ematipico)! - Correctly track the middleware during the SSR build. + ## 2.7.4 ### Patch Changes diff --git a/packages/astro/package.json b/packages/astro/package.json index eba193727d9a..3fbe8ed2fba7 100644 --- a/packages/astro/package.json +++ b/packages/astro/package.json @@ -1,6 +1,6 @@ { "name": "astro", - "version": "2.7.4", + "version": "2.8.0", "description": "Astro is a modern site builder with web best practices, performance, and DX front-of-mind.", "type": "module", "author": "withastro", diff --git a/packages/create-astro/CHANGELOG.md b/packages/create-astro/CHANGELOG.md index 712912d1d266..4c3374a74341 100644 --- a/packages/create-astro/CHANGELOG.md +++ b/packages/create-astro/CHANGELOG.md @@ -1,5 +1,11 @@ # create-astro +## 3.1.10 + +### Patch Changes + +- [#7580](https://github.com/withastro/astro/pull/7580) [`2ca5bdde2`](https://github.com/withastro/astro/commit/2ca5bdde2b1acc2be1586a99686a9a48cdef65dc) Thanks [@sankethchebbi](https://github.com/sankethchebbi)! - Update dependency installation grammar + ## 3.1.9 ### Patch Changes diff --git a/packages/create-astro/package.json b/packages/create-astro/package.json index 7c27699429ef..f20cde496685 100644 --- a/packages/create-astro/package.json +++ b/packages/create-astro/package.json @@ -1,6 +1,6 @@ { "name": "create-astro", - "version": "3.1.9", + "version": "3.1.10", "type": "module", "author": "withastro", "license": "MIT", diff --git a/packages/integrations/cloudflare/package.json b/packages/integrations/cloudflare/package.json index a1546e606437..ea52f258fe5c 100644 --- a/packages/integrations/cloudflare/package.json +++ b/packages/integrations/cloudflare/package.json @@ -45,7 +45,7 @@ "tiny-glob": "^0.2.9" }, "peerDependencies": { - "astro": "workspace:^2.7.4" + "astro": "workspace:^2.8.0" }, "devDependencies": { "astro": "workspace:*", diff --git a/packages/integrations/deno/package.json b/packages/integrations/deno/package.json index 6fd5af537ccc..d37e70744c0a 100644 --- a/packages/integrations/deno/package.json +++ b/packages/integrations/deno/package.json @@ -36,7 +36,7 @@ "esbuild": "^0.15.18" }, "peerDependencies": { - "astro": "workspace:^2.7.4" + "astro": "workspace:^2.8.0" }, "devDependencies": { "astro": "workspace:*", diff --git a/packages/integrations/image/package.json b/packages/integrations/image/package.json index 8c73ee9679e8..8395a12f2f62 100644 --- a/packages/integrations/image/package.json +++ b/packages/integrations/image/package.json @@ -63,7 +63,7 @@ "vite": "^4.3.9" }, "peerDependencies": { - "astro": "workspace:^2.7.4", + "astro": "workspace:^2.8.0", "sharp": ">=0.31.0" }, "peerDependenciesMeta": { diff --git a/packages/integrations/markdoc/CHANGELOG.md b/packages/integrations/markdoc/CHANGELOG.md index 9cdb6e9c1f47..a8a2ad0bacd3 100644 --- a/packages/integrations/markdoc/CHANGELOG.md +++ b/packages/integrations/markdoc/CHANGELOG.md @@ -1,5 +1,14 @@ # @astrojs/markdoc +## 0.4.1 + +### Patch Changes + +- [#7575](https://github.com/withastro/astro/pull/7575) [`30d04db98`](https://github.com/withastro/astro/commit/30d04db98107b40669e964c3ec4ac77dc2d65645) Thanks [@bluwy](https://github.com/bluwy)! - Handle internal access change + +- Updated dependencies [[`9e5fafa2b`](https://github.com/withastro/astro/commit/9e5fafa2b25b5128084c7072aa282642fcfbb14b), [`9e5fafa2b`](https://github.com/withastro/astro/commit/9e5fafa2b25b5128084c7072aa282642fcfbb14b), [`9e5fafa2b`](https://github.com/withastro/astro/commit/9e5fafa2b25b5128084c7072aa282642fcfbb14b), [`6e9c29579`](https://github.com/withastro/astro/commit/6e9c295799cb6524841adbcbec21ff628d8d19c8), [`9e5fafa2b`](https://github.com/withastro/astro/commit/9e5fafa2b25b5128084c7072aa282642fcfbb14b), [`9e5fafa2b`](https://github.com/withastro/astro/commit/9e5fafa2b25b5128084c7072aa282642fcfbb14b)]: + - astro@2.8.0 + ## 0.4.0 ### Minor Changes diff --git a/packages/integrations/markdoc/package.json b/packages/integrations/markdoc/package.json index 7261c68bcfc1..b3192ee35468 100644 --- a/packages/integrations/markdoc/package.json +++ b/packages/integrations/markdoc/package.json @@ -1,7 +1,7 @@ { "name": "@astrojs/markdoc", "description": "Add support for Markdoc in your Astro site", - "version": "0.4.0", + "version": "0.4.1", "type": "module", "types": "./dist/index.d.ts", "author": "withastro", @@ -74,7 +74,7 @@ "zod": "^3.17.3" }, "peerDependencies": { - "astro": "workspace:^2.7.4" + "astro": "workspace:^2.8.0" }, "devDependencies": { "@astrojs/markdown-remark": "^2.2.1", diff --git a/packages/integrations/netlify/package.json b/packages/integrations/netlify/package.json index ebfb6cd6ef1b..788618afd724 100644 --- a/packages/integrations/netlify/package.json +++ b/packages/integrations/netlify/package.json @@ -43,7 +43,7 @@ "esbuild": "^0.15.18" }, "peerDependencies": { - "astro": "workspace:^2.7.4" + "astro": "workspace:^2.8.0" }, "devDependencies": { "@netlify/edge-functions": "^2.0.0", diff --git a/packages/integrations/node/package.json b/packages/integrations/node/package.json index f86f2b3d7bd7..4f8a3021b250 100644 --- a/packages/integrations/node/package.json +++ b/packages/integrations/node/package.json @@ -38,7 +38,7 @@ "server-destroy": "^1.0.1" }, "peerDependencies": { - "astro": "workspace:^2.7.4" + "astro": "workspace:^2.8.0" }, "devDependencies": { "@types/node": "^18.16.18", diff --git a/packages/integrations/svelte/package.json b/packages/integrations/svelte/package.json index 6c74e2ab52d5..28dc16279403 100644 --- a/packages/integrations/svelte/package.json +++ b/packages/integrations/svelte/package.json @@ -48,7 +48,7 @@ "vite": "^4.3.9" }, "peerDependencies": { - "astro": "workspace:^2.7.4", + "astro": "workspace:^2.8.0", "svelte": "^3.55.0 || ^4.0.0" }, "engines": { diff --git a/packages/integrations/tailwind/package.json b/packages/integrations/tailwind/package.json index fe2f4f028a9d..7b8efa3d0263 100644 --- a/packages/integrations/tailwind/package.json +++ b/packages/integrations/tailwind/package.json @@ -43,7 +43,7 @@ "vite": "^4.3.9" }, "peerDependencies": { - "astro": "workspace:^2.7.4", + "astro": "workspace:^2.8.0", "tailwindcss": "^3.0.24" } } diff --git a/packages/integrations/vercel/CHANGELOG.md b/packages/integrations/vercel/CHANGELOG.md index 607b2ef9f496..bf399b7c25c1 100644 --- a/packages/integrations/vercel/CHANGELOG.md +++ b/packages/integrations/vercel/CHANGELOG.md @@ -1,5 +1,22 @@ # @astrojs/vercel +## 3.7.0 + +### Minor Changes + +- [#7532](https://github.com/withastro/astro/pull/7532) [`9e5fafa2b`](https://github.com/withastro/astro/commit/9e5fafa2b25b5128084c7072aa282642fcfbb14b) Thanks [@ematipico](https://github.com/ematipico)! - Support for Vercel Edge Middleware via Astro middleware. + + When a project uses the new option Astro `build.excludeMiddleware`, the + `@astrojs/vercel/serverless` adapter will automatically create a Vercel Edge Middleware + that will automatically communicate with the Astro Middleware. + + Check the [documentation](https://github.com/withastro/astro/blob/main/packages/integrations/vercel/README.md##vercel-edge-middleware-with-astro-middleware) for more details. + +### Patch Changes + +- Updated dependencies [[`9e5fafa2b`](https://github.com/withastro/astro/commit/9e5fafa2b25b5128084c7072aa282642fcfbb14b), [`9e5fafa2b`](https://github.com/withastro/astro/commit/9e5fafa2b25b5128084c7072aa282642fcfbb14b), [`9e5fafa2b`](https://github.com/withastro/astro/commit/9e5fafa2b25b5128084c7072aa282642fcfbb14b), [`6e9c29579`](https://github.com/withastro/astro/commit/6e9c295799cb6524841adbcbec21ff628d8d19c8), [`9e5fafa2b`](https://github.com/withastro/astro/commit/9e5fafa2b25b5128084c7072aa282642fcfbb14b), [`9e5fafa2b`](https://github.com/withastro/astro/commit/9e5fafa2b25b5128084c7072aa282642fcfbb14b)]: + - astro@2.8.0 + ## 3.6.0 ### Minor Changes diff --git a/packages/integrations/vercel/package.json b/packages/integrations/vercel/package.json index a039ee5a8725..c7041a72762c 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": "3.6.0", + "version": "3.7.0", "type": "module", "author": "withastro", "license": "MIT", @@ -60,7 +60,7 @@ "web-vitals": "^3.3.2" }, "peerDependencies": { - "astro": "workspace:^2.7.4" + "astro": "workspace:^2.8.0" }, "devDependencies": { "@types/set-cookie-parser": "^2.4.2", diff --git a/packages/integrations/vue/package.json b/packages/integrations/vue/package.json index 5e575f975495..7550dbdb8c4b 100644 --- a/packages/integrations/vue/package.json +++ b/packages/integrations/vue/package.json @@ -56,7 +56,7 @@ "vue": "^3.3.4" }, "peerDependencies": { - "astro": "workspace:^2.7.4", + "astro": "workspace:^2.8.0", "vue": "^3.2.30" }, "engines": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 3ede0d9211d6..95c239d23eea 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -127,7 +127,7 @@ importers: examples/basics: dependencies: astro: - specifier: ^2.7.4 + specifier: ^2.8.0 version: link:../../packages/astro examples/blog: @@ -142,19 +142,19 @@ importers: specifier: ^1.3.3 version: link:../../packages/integrations/sitemap astro: - specifier: ^2.7.4 + specifier: ^2.8.0 version: link:../../packages/astro examples/component: devDependencies: astro: - specifier: ^2.7.4 + specifier: ^2.8.0 version: link:../../packages/astro examples/deno: dependencies: astro: - specifier: ^2.7.4 + specifier: ^2.8.0 version: link:../../packages/astro devDependencies: '@astrojs/deno': @@ -173,7 +173,7 @@ importers: specifier: ^3.12.2 version: 3.12.2 astro: - specifier: ^2.7.4 + specifier: ^2.8.0 version: link:../../packages/astro examples/framework-lit: @@ -185,7 +185,7 @@ importers: specifier: ^0.2.1 version: 0.2.1 astro: - specifier: ^2.7.4 + specifier: ^2.8.0 version: link:../../packages/astro lit: specifier: ^2.7.5 @@ -209,7 +209,7 @@ importers: specifier: ^2.2.1 version: link:../../packages/integrations/vue astro: - specifier: ^2.7.4 + specifier: ^2.8.0 version: link:../../packages/astro preact: specifier: ^10.15.1 @@ -239,7 +239,7 @@ importers: specifier: ^1.1.3 version: 1.1.3(preact@10.15.1) astro: - specifier: ^2.7.4 + specifier: ^2.8.0 version: link:../../packages/astro preact: specifier: ^10.15.1 @@ -257,7 +257,7 @@ importers: specifier: ^18.2.6 version: 18.2.6 astro: - specifier: ^2.7.4 + specifier: ^2.8.0 version: link:../../packages/astro react: specifier: ^18.2.0 @@ -272,7 +272,7 @@ importers: specifier: ^2.2.0 version: link:../../packages/integrations/solid astro: - specifier: ^2.7.4 + specifier: ^2.8.0 version: link:../../packages/astro solid-js: specifier: ^1.7.6 @@ -284,7 +284,7 @@ importers: specifier: ^3.1.0 version: link:../../packages/integrations/svelte astro: - specifier: ^2.7.4 + specifier: ^2.8.0 version: link:../../packages/astro svelte: specifier: ^3.59.1 @@ -296,7 +296,7 @@ importers: specifier: ^2.2.1 version: link:../../packages/integrations/vue astro: - specifier: ^2.7.4 + specifier: ^2.8.0 version: link:../../packages/astro vue: specifier: ^3.3.4 @@ -308,13 +308,13 @@ importers: specifier: ^5.3.0 version: link:../../packages/integrations/node astro: - specifier: ^2.7.4 + specifier: ^2.8.0 version: link:../../packages/astro examples/integration: devDependencies: astro: - specifier: ^2.7.4 + specifier: ^2.8.0 version: link:../../packages/astro examples/middleware: @@ -323,7 +323,7 @@ importers: specifier: ^5.3.0 version: link:../../packages/integrations/node astro: - specifier: ^2.7.4 + specifier: ^2.8.0 version: link:../../packages/astro html-minifier: specifier: ^4.0.0 @@ -332,19 +332,19 @@ importers: examples/minimal: dependencies: astro: - specifier: ^2.7.4 + specifier: ^2.8.0 version: link:../../packages/astro examples/non-html-pages: dependencies: astro: - specifier: ^2.7.4 + specifier: ^2.8.0 version: link:../../packages/astro examples/portfolio: dependencies: astro: - specifier: ^2.7.4 + specifier: ^2.8.0 version: link:../../packages/astro examples/ssr: @@ -356,7 +356,7 @@ importers: specifier: ^3.1.0 version: link:../../packages/integrations/svelte astro: - specifier: ^2.7.4 + specifier: ^2.8.0 version: link:../../packages/astro svelte: specifier: ^3.59.1 @@ -365,10 +365,10 @@ importers: examples/with-markdoc: dependencies: '@astrojs/markdoc': - specifier: ^0.4.0 + specifier: ^0.4.1 version: link:../../packages/integrations/markdoc astro: - specifier: ^2.7.4 + specifier: ^2.8.0 version: link:../../packages/astro examples/with-markdown-plugins: @@ -377,7 +377,7 @@ importers: specifier: ^2.2.1 version: link:../../packages/markdown/remark astro: - specifier: ^2.7.4 + specifier: ^2.8.0 version: link:../../packages/astro hast-util-select: specifier: ^5.0.5 @@ -398,7 +398,7 @@ importers: examples/with-markdown-shiki: dependencies: astro: - specifier: ^2.7.4 + specifier: ^2.8.0 version: link:../../packages/astro examples/with-mdx: @@ -410,7 +410,7 @@ importers: specifier: ^2.2.1 version: link:../../packages/integrations/preact astro: - specifier: ^2.7.4 + specifier: ^2.8.0 version: link:../../packages/astro preact: specifier: ^10.15.1 @@ -425,7 +425,7 @@ importers: specifier: ^0.4.1 version: 0.4.1(nanostores@0.8.1)(preact@10.15.1) astro: - specifier: ^2.7.4 + specifier: ^2.8.0 version: link:../../packages/astro nanostores: specifier: ^0.8.1 @@ -446,7 +446,7 @@ importers: specifier: ^1.6.0 version: 1.6.0 astro: - specifier: ^2.7.4 + specifier: ^2.8.0 version: link:../../packages/astro autoprefixer: specifier: ^10.4.14 @@ -464,7 +464,7 @@ importers: examples/with-vite-plugin-pwa: dependencies: astro: - specifier: ^2.7.4 + specifier: ^2.8.0 version: link:../../packages/astro vite-plugin-pwa: specifier: 0.14.7 @@ -476,7 +476,7 @@ importers: examples/with-vitest: dependencies: astro: - specifier: ^2.7.4 + specifier: ^2.8.0 version: link:../../packages/astro vitest: specifier: ^0.31.4