@cedarjs/vite 5.0.0-canary.2448 → 5.0.0-canary.2450

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -229,7 +229,15 @@ async function generateGraphQLModule(distPath) {
229
229
  authDecoder: graphqlOptions ? graphqlOptions.authDecoder : undefined,
230
230
  });
231
231
  const event = await requestToLegacyEvent(request, cedarContext);
232
- return yoga.handle(request, { request, cedarContext, event, requestContext: undefined });
232
+ const response = await yoga.handle(request, { request, cedarContext, event, requestContext: undefined });
233
+ // GraphQL Yoga returns a PonyfillResponse from @whatwg-node/fetch
234
+ // which is not an instanceof the native Response class. Netlify's
235
+ // bootstrap checks instanceof Response, so we wrap it.
236
+ return new Response(response.body, {
237
+ status: response.status,
238
+ statusText: response.statusText,
239
+ headers: response.headers,
240
+ });
233
241
  }
234
242
  };
235
243
  `;
@@ -196,7 +196,15 @@ async function generateGraphQLModule(distPath) {
196
196
  authDecoder: graphqlOptions ? graphqlOptions.authDecoder : undefined,
197
197
  });
198
198
  const event = await requestToLegacyEvent(request, cedarContext);
199
- return yoga.handle(request, { request, cedarContext, event, requestContext: undefined });
199
+ const response = await yoga.handle(request, { request, cedarContext, event, requestContext: undefined });
200
+ // GraphQL Yoga returns a PonyfillResponse from @whatwg-node/fetch
201
+ // which is not an instanceof the native Response class. Netlify's
202
+ // bootstrap checks instanceof Response, so we wrap it.
203
+ return new Response(response.body, {
204
+ status: response.status,
205
+ statusText: response.statusText,
206
+ headers: response.headers,
207
+ });
200
208
  }
201
209
  };
202
210
  `;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cedarjs/vite",
3
- "version": "5.0.0-canary.2448",
3
+ "version": "5.0.0-canary.2450",
4
4
  "description": "Vite configuration package for CedarJS",
5
5
  "repository": {
6
6
  "type": "git",
@@ -69,17 +69,17 @@
69
69
  "@babel/generator": "7.29.1",
70
70
  "@babel/parser": "7.29.3",
71
71
  "@babel/traverse": "7.29.0",
72
- "@cedarjs/api": "5.0.0-canary.2448",
73
- "@cedarjs/auth": "5.0.0-canary.2448",
74
- "@cedarjs/babel-config": "5.0.0-canary.2448",
75
- "@cedarjs/context": "5.0.0-canary.2448",
76
- "@cedarjs/cookie-jar": "5.0.0-canary.2448",
77
- "@cedarjs/graphql-server": "5.0.0-canary.2448",
78
- "@cedarjs/internal": "5.0.0-canary.2448",
79
- "@cedarjs/project-config": "5.0.0-canary.2448",
80
- "@cedarjs/server-store": "5.0.0-canary.2448",
81
- "@cedarjs/testing": "5.0.0-canary.2448",
82
- "@cedarjs/web": "5.0.0-canary.2448",
72
+ "@cedarjs/api": "5.0.0-canary.2450",
73
+ "@cedarjs/auth": "5.0.0-canary.2450",
74
+ "@cedarjs/babel-config": "5.0.0-canary.2450",
75
+ "@cedarjs/context": "5.0.0-canary.2450",
76
+ "@cedarjs/cookie-jar": "5.0.0-canary.2450",
77
+ "@cedarjs/graphql-server": "5.0.0-canary.2450",
78
+ "@cedarjs/internal": "5.0.0-canary.2450",
79
+ "@cedarjs/project-config": "5.0.0-canary.2450",
80
+ "@cedarjs/server-store": "5.0.0-canary.2450",
81
+ "@cedarjs/testing": "5.0.0-canary.2450",
82
+ "@cedarjs/web": "5.0.0-canary.2450",
83
83
  "@fastify/url-data": "6.0.3",
84
84
  "@swc/core": "1.15.33",
85
85
  "@universal-deploy/store": "^0.2.1",