From f322478f6d6497bb4565e9c23e3d92190c8db249 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 5 Jul 2023 16:08:50 +0000 Subject: [PATCH] [ci] release --- .changeset/brown-shrimps-hug.md | 11 --- .changeset/chilly-pants-fix.md | 24 ------ .changeset/cool-kids-grin.md | 5 -- .changeset/good-pigs-fetch.md | 11 --- .changeset/happy-donuts-taste.md | 20 ----- .changeset/long-geckos-battle.md | 7 -- .changeset/strong-years-travel.md | 20 ----- examples/basics/package.json | 2 +- examples/blog/package.json | 2 +- examples/component/package.json | 2 +- examples/deno/package.json | 2 +- examples/framework-alpine/package.json | 2 +- examples/framework-lit/package.json | 2 +- examples/framework-multiple/package.json | 2 +- examples/framework-preact/package.json | 2 +- examples/framework-react/package.json | 2 +- examples/framework-solid/package.json | 2 +- examples/framework-svelte/package.json | 2 +- examples/framework-vue/package.json | 2 +- examples/hackernews/package.json | 2 +- examples/integration/package.json | 2 +- examples/middleware/package.json | 2 +- examples/minimal/package.json | 2 +- examples/non-html-pages/package.json | 2 +- examples/portfolio/package.json | 2 +- examples/ssr/package.json | 2 +- examples/with-markdoc/package.json | 2 +- examples/with-markdown-plugins/package.json | 2 +- examples/with-markdown-shiki/package.json | 2 +- examples/with-mdx/package.json | 2 +- examples/with-nanostores/package.json | 2 +- examples/with-tailwindcss/package.json | 2 +- examples/with-vite-plugin-pwa/package.json | 2 +- examples/with-vitest/package.json | 2 +- packages/astro/CHANGELOG.md | 75 +++++++++++++++++++ packages/astro/package.json | 2 +- packages/integrations/cloudflare/package.json | 2 +- packages/integrations/deno/package.json | 2 +- packages/integrations/image/package.json | 2 +- packages/integrations/markdoc/package.json | 2 +- packages/integrations/netlify/package.json | 2 +- packages/integrations/node/package.json | 2 +- packages/integrations/svelte/package.json | 2 +- packages/integrations/tailwind/package.json | 2 +- packages/integrations/vercel/CHANGELOG.md | 17 +++++ packages/integrations/vercel/package.json | 4 +- packages/integrations/vue/package.json | 2 +- pnpm-lock.yaml | 54 ++++++------- 48 files changed, 158 insertions(+), 164 deletions(-) delete mode 100644 .changeset/brown-shrimps-hug.md delete mode 100644 .changeset/chilly-pants-fix.md delete mode 100644 .changeset/cool-kids-grin.md delete mode 100644 .changeset/good-pigs-fetch.md delete mode 100644 .changeset/happy-donuts-taste.md delete mode 100644 .changeset/long-geckos-battle.md delete mode 100644 .changeset/strong-years-travel.md diff --git a/.changeset/brown-shrimps-hug.md b/.changeset/brown-shrimps-hug.md deleted file mode 100644 index 1c40fc3809266..0000000000000 --- 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 c862a15dcbc3f..0000000000000 --- 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 190e5eee9d917..0000000000000 --- 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 4a463044e50a5..0000000000000 --- 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 2751d1dd035b7..0000000000000 --- 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 3c1a993bec5cb..0000000000000 --- 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/strong-years-travel.md b/.changeset/strong-years-travel.md deleted file mode 100644 index 3067e01b48be2..0000000000000 --- 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 8404cf431dd9b..d8020f64f0ca3 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 710f801d75e50..1271292a2b20a 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 3743b027bef77..9f0cbe038249f 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 862b72291e12d..e982c9b3f49bf 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 6d2420b462146..00d2f447733dc 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 2739475e8c2c2..faa2d4d7d352b 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 2a56ecdbcb060..722631da09e61 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 53d2910b782fe..a65437b0d2ad4 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 415d7830a4f3d..2c7b724501083 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 16f7eca7d2cb3..f5e34f5123a68 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 f93e8de8a7d8c..88a9e0b8e02a7 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 8c51cd1176b94..70ab93218a20d 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 04facec5c71cf..d396283e58b3e 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 5e4c9bf1eebf9..2e4cab7717251 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 a586623e9c5b5..358419f5408b6 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 60ab8465ea135..0c44100ec2a71 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 6889fcf6c5d91..316739d4a7a14 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 b68c792cb6e8a..8f22eff9a6894 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 0cfebe4c2a98a..3a5b9704146b0 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 a96edcb54de84..36ed9e11ed33b 100644 --- a/examples/with-markdoc/package.json +++ b/examples/with-markdoc/package.json @@ -12,6 +12,6 @@ }, "dependencies": { "@astrojs/markdoc": "^0.4.0", - "astro": "^2.7.4" + "astro": "^2.8.0" } } diff --git a/examples/with-markdown-plugins/package.json b/examples/with-markdown-plugins/package.json index 4046bc90834cb..e1b85c1f43b2a 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 bdddf453e5dee..3453b3791d177 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 52e1cb07ce0d9..fe9d958e22fc8 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 c3b56bffe9694..1be16046b2918 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 7bc9d3191b5f2..2d89c0595fa06 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 ef8e411c32533..fb2622bc3352f 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 52ac09cd210e6..b2eea5f4108c6 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 3bb0292ef79a4..f63ec8ac66940 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 eba193727d9ab..3fbe8ed2fba7c 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/integrations/cloudflare/package.json b/packages/integrations/cloudflare/package.json index a1546e6064372..ea52f258fe5c2 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 6fd5af537ccc6..d37e70744c0a3 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 8c73ee9679e87..8395a12f2f628 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/package.json b/packages/integrations/markdoc/package.json index 7261c68bcfc17..492433c851bf3 100644 --- a/packages/integrations/markdoc/package.json +++ b/packages/integrations/markdoc/package.json @@ -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 ebfb6cd6ef1b2..788618afd724e 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 f86f2b3d7bd7d..4f8a3021b250e 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 6c74e2ab52d50..28dc162794033 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 fe2f4f028a9d7..7b8efa3d0263b 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 607b2ef9f4966..bf399b7c25c1b 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 a039ee5a8725a..c7041a72762cf 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 5e575f9754955..7550dbdb8c4b8 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 3ede0d9211d6c..8d61489bd51e7 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 @@ -368,7 +368,7 @@ importers: specifier: ^0.4.0 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