@cedarjs/vite 6.0.1 → 6.0.2-rc.53
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apiDevMiddleware.d.ts","sourceRoot":"","sources":["../src/apiDevMiddleware.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAsB,aAAa,EAAE,MAAM,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"apiDevMiddleware.d.ts","sourceRoot":"","sources":["../src/apiDevMiddleware.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAsB,aAAa,EAAE,MAAM,MAAM,CAAA;AAoE7D,wBAAsB,gBAAgB,CAAC,UAAU,EAAE,aAAa,iBAe/D;AA8GD,wBAAsB,mBAAmB,IAAI,OAAO,CAAC,aAAa,CAAC,CAyMlE;AA0BD,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,aAAa,GAAG,IAAI,CA0EhE;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,KAIrB,SAAS,OAAO,KAAG,OAAO,CAAC,QAAQ,CAAC,CAiGnD;AAED,wBAAsB,qBAAqB,IAAI,OAAO,CAAC;IACrD,UAAU,EAAE,aAAa,CAAA;IACzB,KAAK,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;IAC1B,OAAO,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAA;CACjD,CAAC,CAcD"}
|
package/dist/apiDevMiddleware.js
CHANGED
|
@@ -133,8 +133,7 @@ async function internalLoadApiFunctions(viteServer) {
|
|
|
133
133
|
});
|
|
134
134
|
await Promise.all(imports);
|
|
135
135
|
if (extractedGraphqlOptions) {
|
|
136
|
-
|
|
137
|
-
loadedGraphqlServer = { yoga, options: extractedGraphqlOptions };
|
|
136
|
+
loadedGraphqlServer = await createGraphQLYoga(extractedGraphqlOptions);
|
|
138
137
|
} else {
|
|
139
138
|
loadedGraphqlServer = null;
|
|
140
139
|
}
|
|
@@ -369,9 +368,7 @@ function createApiFetchHandler() {
|
|
|
369
368
|
}
|
|
370
369
|
return getAsyncStoreInstance().run(/* @__PURE__ */ new Map(), async () => {
|
|
371
370
|
try {
|
|
372
|
-
const cedarContext = await
|
|
373
|
-
authDecoder: graphqlServer.options.authDecoder
|
|
374
|
-
});
|
|
371
|
+
const cedarContext = await graphqlServer.buildRequestContext(request);
|
|
375
372
|
return await graphqlServer.yoga.handle(request, {
|
|
376
373
|
request,
|
|
377
374
|
cedarContext
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vite-plugin-cedar-universal-deploy.d.ts","sourceRoot":"","sources":["../../src/plugins/vite-plugin-cedar-universal-deploy.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"vite-plugin-cedar-universal-deploy.d.ts","sourceRoot":"","sources":["../../src/plugins/vite-plugin-cedar-universal-deploy.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAA;AAgBlC,MAAM,WAAW,iCAAiC;IAChD,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AA6GD,wBAAgB,0BAA0B,CACxC,OAAO,GAAE,iCAAsC,GAC9C,MAAM,CA0GR"}
|
|
@@ -272,24 +272,22 @@ function createFunctionFetch(cedarHandler) {
|
|
|
272
272
|
};
|
|
273
273
|
}
|
|
274
274
|
function createGraphQLFetch(graphqlOptions) {
|
|
275
|
-
let
|
|
276
|
-
function
|
|
277
|
-
if (!
|
|
278
|
-
|
|
275
|
+
let graphqlServerPromise = null;
|
|
276
|
+
function getGraphQLServer() {
|
|
277
|
+
if (!graphqlServerPromise) {
|
|
278
|
+
graphqlServerPromise = createGraphQLYoga(graphqlOptions);
|
|
279
279
|
}
|
|
280
|
-
return
|
|
280
|
+
return graphqlServerPromise;
|
|
281
281
|
}
|
|
282
282
|
return async function fetch(request) {
|
|
283
|
-
const
|
|
284
|
-
const cedarContext = await
|
|
285
|
-
authDecoder: graphqlOptions?.authDecoder
|
|
286
|
-
});
|
|
283
|
+
const graphqlServer = await getGraphQLServer();
|
|
284
|
+
const cedarContext = await graphqlServer.buildRequestContext(request);
|
|
287
285
|
const event = await requestToLegacyEvent(request, cedarContext);
|
|
288
286
|
const { getAsyncStoreInstance } = await import("@cedarjs/context/dist/store");
|
|
289
287
|
const store = getAsyncStoreInstance();
|
|
290
288
|
try {
|
|
291
289
|
const response = await store.run(/* @__PURE__ */ new Map(), () => {
|
|
292
|
-
return yoga.handle(request, {
|
|
290
|
+
return graphqlServer.yoga.handle(request, {
|
|
293
291
|
request,
|
|
294
292
|
cedarContext,
|
|
295
293
|
event,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cedarjs/vite",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.2-rc.53",
|
|
4
4
|
"description": "Vite configuration package for CedarJS",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -52,17 +52,17 @@
|
|
|
52
52
|
"@babel/parser": "7.29.8",
|
|
53
53
|
"@babel/traverse": "7.29.8",
|
|
54
54
|
"@babel/types": "7.29.8",
|
|
55
|
-
"@cedarjs/api": "6.0.
|
|
56
|
-
"@cedarjs/api-server": "6.0.
|
|
57
|
-
"@cedarjs/babel-config": "6.0.
|
|
58
|
-
"@cedarjs/context": "6.0.
|
|
59
|
-
"@cedarjs/graphql-server": "6.0.
|
|
60
|
-
"@cedarjs/internal": "6.0.
|
|
61
|
-
"@cedarjs/jobs": "6.0.
|
|
62
|
-
"@cedarjs/project-config": "6.0.
|
|
63
|
-
"@cedarjs/server-store": "6.0.
|
|
64
|
-
"@cedarjs/structure": "6.0.
|
|
65
|
-
"@cedarjs/testing": "6.0.
|
|
55
|
+
"@cedarjs/api": "6.0.2-rc.53",
|
|
56
|
+
"@cedarjs/api-server": "6.0.2-rc.53",
|
|
57
|
+
"@cedarjs/babel-config": "6.0.2-rc.53",
|
|
58
|
+
"@cedarjs/context": "6.0.2-rc.53",
|
|
59
|
+
"@cedarjs/graphql-server": "6.0.2-rc.53",
|
|
60
|
+
"@cedarjs/internal": "6.0.2-rc.53",
|
|
61
|
+
"@cedarjs/jobs": "6.0.2-rc.53",
|
|
62
|
+
"@cedarjs/project-config": "6.0.2-rc.53",
|
|
63
|
+
"@cedarjs/server-store": "6.0.2-rc.53",
|
|
64
|
+
"@cedarjs/structure": "6.0.2-rc.53",
|
|
65
|
+
"@cedarjs/testing": "6.0.2-rc.53",
|
|
66
66
|
"@swc/core": "1.16.1",
|
|
67
67
|
"@universal-deploy/store": "^0.2.1",
|
|
68
68
|
"@universal-deploy/vite": "^0.1.9",
|
|
@@ -76,11 +76,11 @@
|
|
|
76
76
|
"dotenv-defaults": "5.0.2",
|
|
77
77
|
"express": "4.22.2",
|
|
78
78
|
"fast-glob": "3.3.3",
|
|
79
|
-
"find-my-way": "
|
|
79
|
+
"find-my-way": "9.9.0",
|
|
80
80
|
"http-proxy-middleware": "3.0.7",
|
|
81
|
-
"isbot": "5.2.
|
|
81
|
+
"isbot": "5.2.2",
|
|
82
82
|
"magic-string": "0.30.21",
|
|
83
|
-
"oxc-parser": "0.
|
|
83
|
+
"oxc-parser": "0.148.0",
|
|
84
84
|
"react-server-dom-webpack": "19.2.7",
|
|
85
85
|
"unimport": "5.7.0",
|
|
86
86
|
"unplugin-auto-import": "19.3.0",
|
|
@@ -88,38 +88,38 @@
|
|
|
88
88
|
"vite-plugin-cjs-interop": "2.4.4",
|
|
89
89
|
"vite-plugin-graphql-tag": "0.1.1",
|
|
90
90
|
"vite-tsconfig-paths": "^6.1.1",
|
|
91
|
-
"ws": "8.
|
|
91
|
+
"ws": "8.21.3",
|
|
92
92
|
"yargs-parser": "21.1.1"
|
|
93
93
|
},
|
|
94
94
|
"devDependencies": {
|
|
95
|
-
"@cedarjs/auth": "6.0.
|
|
96
|
-
"@cedarjs/framework-tools": "6.0.
|
|
97
|
-
"@cedarjs/router": "6.0.
|
|
98
|
-
"@cedarjs/web": "6.0.
|
|
95
|
+
"@cedarjs/auth": "6.0.2-rc.53",
|
|
96
|
+
"@cedarjs/framework-tools": "6.0.2-rc.53",
|
|
97
|
+
"@cedarjs/router": "6.0.2-rc.53",
|
|
98
|
+
"@cedarjs/web": "6.0.2-rc.53",
|
|
99
99
|
"@dr.pogodin/react-helmet": "2.0.4",
|
|
100
100
|
"@hyrious/esbuild-plugin-commonjs": "0.2.6",
|
|
101
101
|
"@jridgewell/trace-mapping": "0.3.31",
|
|
102
|
-
"@oxc-project/types": "^0.
|
|
103
|
-
"@types/aws-lambda": "8.10.
|
|
102
|
+
"@oxc-project/types": "^0.147.0",
|
|
103
|
+
"@types/aws-lambda": "8.10.163",
|
|
104
104
|
"@types/busboy": "^1",
|
|
105
105
|
"@types/express": "4",
|
|
106
106
|
"@types/react": "^18.2.55",
|
|
107
107
|
"@types/ws": "^8",
|
|
108
108
|
"@types/yargs-parser": "21.0.3",
|
|
109
109
|
"concurrently": "9.2.4",
|
|
110
|
-
"memfs": "4.68.
|
|
111
|
-
"publint": "0.3.
|
|
110
|
+
"memfs": "4.68.2",
|
|
111
|
+
"publint": "0.3.24",
|
|
112
112
|
"react": "18.3.1",
|
|
113
113
|
"react-dom": "18.3.1",
|
|
114
114
|
"rollup": "4.60.4",
|
|
115
115
|
"ts-dedent": "2.3.0",
|
|
116
116
|
"typescript": "5.9.3",
|
|
117
|
-
"vitest": "4.1.
|
|
117
|
+
"vitest": "4.1.11"
|
|
118
118
|
},
|
|
119
119
|
"peerDependencies": {
|
|
120
|
-
"@cedarjs/auth": "6.0.
|
|
121
|
-
"@cedarjs/router": "6.0.
|
|
122
|
-
"@cedarjs/web": "6.0.
|
|
120
|
+
"@cedarjs/auth": "6.0.2-rc.53",
|
|
121
|
+
"@cedarjs/router": "6.0.2-rc.53",
|
|
122
|
+
"@cedarjs/web": "6.0.2-rc.53",
|
|
123
123
|
"react": "18.3.1",
|
|
124
124
|
"react-dom": "18.3.1"
|
|
125
125
|
},
|