diff options
author | 2024-09-16 19:31:49 +0200 | |
---|---|---|
committer | 2024-09-16 13:31:49 -0400 | |
commit | 7072f16e4834f756fc8f96b75f9876876ca1eac3 (patch) | |
tree | 1b19c9f681c659c8fd78f0bfd7977ee27ed54014 | |
parent | 1505b6ca60d34b9d5b8d37e5d5816c42f7014a07 (diff) | |
download | astro-7072f16e4834f756fc8f96b75f9876876ca1eac3.tar.gz astro-7072f16e4834f756fc8f96b75f9876876ca1eac3.tar.zst astro-7072f16e4834f756fc8f96b75f9876876ca1eac3.zip |
Adapter related changes for IntegrationData (#377)
* chore: port adapter related changes from astro #11864
* chore: bump version
* chore: bump
* fix: types
* fix
* fix: tests
* fix: locals
* Update expected image endpoint
---------
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
16 files changed, 17 insertions, 19 deletions
diff --git a/packages/integrations/node/package.json b/packages/integrations/node/package.json index b9aa4ea3a..d7ccffd1f 100644 --- a/packages/integrations/node/package.json +++ b/packages/integrations/node/package.json @@ -30,14 +30,14 @@ "server-destroy": "^1.0.1" }, "peerDependencies": { - "astro": "^5.0.0-alpha.6" + "astro": "^5.0.0-alpha.8" }, "devDependencies": { "@astrojs/test-utils": "workspace:*", "@types/node": "^18.17.8", "@types/send": "^0.17.4", "@types/server-destroy": "^1.0.4", - "astro": "^5.0.0-alpha.6", + "astro": "^5.0.0-alpha.8", "astro-scripts": "workspace:*", "cheerio": "1.0.0", "express": "^4.19.2", diff --git a/packages/integrations/node/test/fixtures/api-route/package.json b/packages/integrations/node/test/fixtures/api-route/package.json index 160b7e469..637f39faa 100644 --- a/packages/integrations/node/test/fixtures/api-route/package.json +++ b/packages/integrations/node/test/fixtures/api-route/package.json @@ -3,7 +3,7 @@ "version": "0.0.0", "private": true, "dependencies": { - "astro": "^5.0.0-alpha.6", + "astro": "^5.0.0-alpha.8", "@astrojs/node": "workspace:*" } } diff --git a/packages/integrations/node/test/fixtures/bad-urls/package.json b/packages/integrations/node/test/fixtures/bad-urls/package.json index d844ccea2..5e3b876f7 100644 --- a/packages/integrations/node/test/fixtures/bad-urls/package.json +++ b/packages/integrations/node/test/fixtures/bad-urls/package.json @@ -3,7 +3,7 @@ "version": "0.0.0", "private": true, "dependencies": { - "astro": "^5.0.0-alpha.6", + "astro": "^5.0.0-alpha.8", "@astrojs/node": "workspace:*" } } diff --git a/packages/integrations/node/test/fixtures/encoded/package.json b/packages/integrations/node/test/fixtures/encoded/package.json index 3882bc4a1..d7f7b5d46 100644 --- a/packages/integrations/node/test/fixtures/encoded/package.json +++ b/packages/integrations/node/test/fixtures/encoded/package.json @@ -3,7 +3,7 @@ "version": "0.0.0", "private": true, "dependencies": { - "astro": "^5.0.0-alpha.6", + "astro": "^5.0.0-alpha.8", "@astrojs/node": "workspace:*" } } diff --git a/packages/integrations/node/test/fixtures/errors/package.json b/packages/integrations/node/test/fixtures/errors/package.json index b17a2a91a..4d3bc7e6d 100644 --- a/packages/integrations/node/test/fixtures/errors/package.json +++ b/packages/integrations/node/test/fixtures/errors/package.json @@ -3,7 +3,7 @@ "version": "0.0.0", "private": true, "dependencies": { - "astro": "^5.0.0-alpha.6", + "astro": "^5.0.0-alpha.8", "@astrojs/node": "workspace:*" } } diff --git a/packages/integrations/node/test/fixtures/headers/package.json b/packages/integrations/node/test/fixtures/headers/package.json index af673c6d5..15c27a535 100644 --- a/packages/integrations/node/test/fixtures/headers/package.json +++ b/packages/integrations/node/test/fixtures/headers/package.json @@ -3,7 +3,7 @@ "version": "0.0.0", "private": true, "dependencies": { - "astro": "^5.0.0-alpha.6", + "astro": "^5.0.0-alpha.8", "@astrojs/node": "workspace:*" } } diff --git a/packages/integrations/node/test/fixtures/image/package.json b/packages/integrations/node/test/fixtures/image/package.json index b5b05238d..3ec204280 100644 --- a/packages/integrations/node/test/fixtures/image/package.json +++ b/packages/integrations/node/test/fixtures/image/package.json @@ -3,7 +3,7 @@ "version": "0.0.0", "private": true, "dependencies": { - "astro": "^5.0.0-alpha.6", + "astro": "^5.0.0-alpha.8", "@astrojs/node": "workspace:*" }, "scripts": { diff --git a/packages/integrations/node/test/fixtures/locals/package.json b/packages/integrations/node/test/fixtures/locals/package.json index 136c488b1..6d98bd314 100644 --- a/packages/integrations/node/test/fixtures/locals/package.json +++ b/packages/integrations/node/test/fixtures/locals/package.json @@ -3,7 +3,7 @@ "version": "0.0.0", "private": true, "dependencies": { - "astro": "^5.0.0-alpha.6", + "astro": "^5.0.0-alpha.8", "@astrojs/node": "workspace:*" } } diff --git a/packages/integrations/node/test/fixtures/node-middleware/package.json b/packages/integrations/node/test/fixtures/node-middleware/package.json index 23ff56efb..d2b924c80 100644 --- a/packages/integrations/node/test/fixtures/node-middleware/package.json +++ b/packages/integrations/node/test/fixtures/node-middleware/package.json @@ -3,7 +3,7 @@ "version": "0.0.0", "private": true, "dependencies": { - "astro": "^5.0.0-alpha.6", + "astro": "^5.0.0-alpha.8", "@astrojs/node": "workspace:*" } } diff --git a/packages/integrations/node/test/fixtures/prerender-404-500/package.json b/packages/integrations/node/test/fixtures/prerender-404-500/package.json index 9f5e107c7..c1dc8b45d 100644 --- a/packages/integrations/node/test/fixtures/prerender-404-500/package.json +++ b/packages/integrations/node/test/fixtures/prerender-404-500/package.json @@ -4,7 +4,7 @@ "private": true, "type": "module", "dependencies": { - "astro": "^5.0.0-alpha.6", + "astro": "^5.0.0-alpha.8", "@astrojs/node": "workspace:*" } } diff --git a/packages/integrations/node/test/fixtures/prerender/package.json b/packages/integrations/node/test/fixtures/prerender/package.json index 69395eba2..e6eb79d06 100644 --- a/packages/integrations/node/test/fixtures/prerender/package.json +++ b/packages/integrations/node/test/fixtures/prerender/package.json @@ -3,7 +3,7 @@ "version": "0.0.0", "private": true, "dependencies": { - "astro": "^5.0.0-alpha.6", + "astro": "^5.0.0-alpha.8", "@astrojs/node": "workspace:*" } } diff --git a/packages/integrations/node/test/fixtures/prerender/src/middleware.ts b/packages/integrations/node/test/fixtures/prerender/src/middleware.ts index 13d619d78..3083acd24 100644 --- a/packages/integrations/node/test/fixtures/prerender/src/middleware.ts +++ b/packages/integrations/node/test/fixtures/prerender/src/middleware.ts @@ -1,7 +1,5 @@ import { shared } from './shared'; export const onRequest = (ctx, next) => { - ctx.locals = { - name: shared, - }; + ctx.locals.name = shared; return next(); }; diff --git a/packages/integrations/node/test/fixtures/preview-headers/package.json b/packages/integrations/node/test/fixtures/preview-headers/package.json index 63556d024..a7e64b2c6 100644 --- a/packages/integrations/node/test/fixtures/preview-headers/package.json +++ b/packages/integrations/node/test/fixtures/preview-headers/package.json @@ -3,7 +3,7 @@ "version": "0.0.0", "private": true, "dependencies": { - "astro": "^5.0.0-alpha.6", + "astro": "^5.0.0-alpha.8", "@astrojs/node": "workspace:*" } } diff --git a/packages/integrations/node/test/fixtures/trailing-slash/package.json b/packages/integrations/node/test/fixtures/trailing-slash/package.json index ff64fa458..9bea24872 100644 --- a/packages/integrations/node/test/fixtures/trailing-slash/package.json +++ b/packages/integrations/node/test/fixtures/trailing-slash/package.json @@ -3,7 +3,7 @@ "version": "0.0.0", "private": true, "dependencies": { - "astro": "^5.0.0-alpha.6", + "astro": "^5.0.0-alpha.8", "@astrojs/node": "workspace:*" } } diff --git a/packages/integrations/node/test/fixtures/url/package.json b/packages/integrations/node/test/fixtures/url/package.json index 20cc9ae57..d2c038baf 100644 --- a/packages/integrations/node/test/fixtures/url/package.json +++ b/packages/integrations/node/test/fixtures/url/package.json @@ -3,7 +3,7 @@ "version": "0.0.0", "private": true, "dependencies": { - "astro": "^5.0.0-alpha.6", + "astro": "^5.0.0-alpha.8", "@astrojs/node": "workspace:*" } } diff --git a/packages/integrations/node/test/fixtures/well-known-locations/package.json b/packages/integrations/node/test/fixtures/well-known-locations/package.json index 13ae4d63d..f1fe33157 100644 --- a/packages/integrations/node/test/fixtures/well-known-locations/package.json +++ b/packages/integrations/node/test/fixtures/well-known-locations/package.json @@ -3,7 +3,7 @@ "version": "0.0.0", "private": true, "dependencies": { - "astro": "^5.0.0-alpha.6", + "astro": "^5.0.0-alpha.8", "@astrojs/node": "workspace:*" } } |