@cedarjs/vite 5.0.4 → 5.0.5-rc.5

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.
@@ -245,6 +245,9 @@ async function generateGraphQLModule(distPath) {
245
245
  const { yoga, graphqlOptions } = await getYoga();
246
246
  const cedarContext = await buildCedarContext(request, {
247
247
  authDecoder: graphqlOptions ? graphqlOptions.authDecoder : undefined,
248
+ // Has to happen before Yoga reads the request body, so it can't be
249
+ // left to \`useRedwoodAuthContext\`'s fallback
250
+ withAuthState: true,
248
251
  });
249
252
  const event = await requestToLegacyEvent(request, cedarContext);
250
253
  // Wrap yoga.handle in an AsyncLocalStorage run so directive
@@ -212,6 +212,9 @@ async function generateGraphQLModule(distPath) {
212
212
  const { yoga, graphqlOptions } = await getYoga();
213
213
  const cedarContext = await buildCedarContext(request, {
214
214
  authDecoder: graphqlOptions ? graphqlOptions.authDecoder : undefined,
215
+ // Has to happen before Yoga reads the request body, so it can't be
216
+ // left to \`useRedwoodAuthContext\`'s fallback
217
+ withAuthState: true,
215
218
  });
216
219
  const event = await requestToLegacyEvent(request, cedarContext);
217
220
  // Wrap yoga.handle in an AsyncLocalStorage run so directive
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cedarjs/vite",
3
- "version": "5.0.4",
3
+ "version": "5.0.5-rc.5",
4
4
  "description": "Vite configuration package for CedarJS",
5
5
  "repository": {
6
6
  "type": "git",
@@ -63,15 +63,15 @@
63
63
  "@babel/parser": "7.29.7",
64
64
  "@babel/traverse": "7.29.7",
65
65
  "@babel/types": "7.29.7",
66
- "@cedarjs/api": "5.0.4",
67
- "@cedarjs/babel-config": "5.0.4",
68
- "@cedarjs/context": "5.0.4",
69
- "@cedarjs/cookie-jar": "5.0.4",
70
- "@cedarjs/graphql-server": "5.0.4",
71
- "@cedarjs/internal": "5.0.4",
72
- "@cedarjs/project-config": "5.0.4",
73
- "@cedarjs/server-store": "5.0.4",
74
- "@cedarjs/testing": "5.0.4",
66
+ "@cedarjs/api": "5.0.5-rc.5",
67
+ "@cedarjs/babel-config": "5.0.5-rc.5",
68
+ "@cedarjs/context": "5.0.5-rc.5",
69
+ "@cedarjs/cookie-jar": "5.0.5-rc.5",
70
+ "@cedarjs/graphql-server": "5.0.5-rc.5",
71
+ "@cedarjs/internal": "5.0.5-rc.5",
72
+ "@cedarjs/project-config": "5.0.5-rc.5",
73
+ "@cedarjs/server-store": "5.0.5-rc.5",
74
+ "@cedarjs/testing": "5.0.5-rc.5",
75
75
  "@fastify/url-data": "6.0.3",
76
76
  "@swc/core": "1.15.41",
77
77
  "@universal-deploy/store": "^0.2.1",
@@ -105,9 +105,9 @@
105
105
  },
106
106
  "devDependencies": {
107
107
  "@arethetypeswrong/cli": "0.18.4",
108
- "@cedarjs/auth": "5.0.4",
109
- "@cedarjs/router": "5.0.4",
110
- "@cedarjs/web": "5.0.4",
108
+ "@cedarjs/auth": "5.0.5-rc.5",
109
+ "@cedarjs/router": "5.0.5-rc.5",
110
+ "@cedarjs/web": "5.0.5-rc.5",
111
111
  "@hyrious/esbuild-plugin-commonjs": "0.2.6",
112
112
  "@jridgewell/trace-mapping": "0.3.31",
113
113
  "@types/aws-lambda": "8.10.162",
@@ -126,9 +126,9 @@
126
126
  "vitest": "3.2.6"
127
127
  },
128
128
  "peerDependencies": {
129
- "@cedarjs/auth": "5.0.4",
130
- "@cedarjs/router": "5.0.4",
131
- "@cedarjs/web": "5.0.4"
129
+ "@cedarjs/auth": "5.0.5-rc.5",
130
+ "@cedarjs/router": "5.0.5-rc.5",
131
+ "@cedarjs/web": "5.0.5-rc.5"
132
132
  },
133
133
  "engines": {
134
134
  "node": ">=24"