@cedarjs/vite 7.0.0-canary.3181 → 7.0.0-canary.3188
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.
package/dist/apiDevMiddleware.js
CHANGED
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
transformWithBabel
|
|
19
19
|
} from "@cedarjs/babel-config";
|
|
20
20
|
import { getAsyncStoreInstance } from "@cedarjs/context/dist/store";
|
|
21
|
-
import {
|
|
21
|
+
import { createGraphQLServer } from "@cedarjs/graphql-server";
|
|
22
22
|
import { applyGqlormInject } from "@cedarjs/internal/dist/build/api-graphql-transforms.js";
|
|
23
23
|
import { getConfig, getPaths } from "@cedarjs/project-config";
|
|
24
24
|
import { generateDiffSourceMap } from "./lib/generateDiffSourceMap.js";
|
|
@@ -133,7 +133,7 @@ async function internalLoadApiFunctions(viteServer) {
|
|
|
133
133
|
});
|
|
134
134
|
await Promise.all(imports);
|
|
135
135
|
if (extractedGraphqlOptions) {
|
|
136
|
-
loadedGraphqlServer = await
|
|
136
|
+
loadedGraphqlServer = await createGraphQLServer(extractedGraphqlOptions);
|
|
137
137
|
} else {
|
|
138
138
|
loadedGraphqlServer = null;
|
|
139
139
|
}
|
|
@@ -191,7 +191,7 @@ async function generateGraphQLModule(distPath) {
|
|
|
191
191
|
});
|
|
192
192
|
return `
|
|
193
193
|
import { buildCedarContext, requestToLegacyEvent } from '@cedarjs/api/runtime';
|
|
194
|
-
import {
|
|
194
|
+
import { createGraphQLServer } from '@cedarjs/graphql-server';
|
|
195
195
|
|
|
196
196
|
// Inlined bundle of ${path.basename(distPath)} (node_modules kept external)
|
|
197
197
|
${bundledCode}
|
|
@@ -275,7 +275,7 @@ function createGraphQLFetch(graphqlOptions) {
|
|
|
275
275
|
let graphqlServerPromise = null;
|
|
276
276
|
function getGraphQLServer() {
|
|
277
277
|
if (!graphqlServerPromise) {
|
|
278
|
-
graphqlServerPromise =
|
|
278
|
+
graphqlServerPromise = createGraphQLServer(graphqlOptions);
|
|
279
279
|
}
|
|
280
280
|
return graphqlServerPromise;
|
|
281
281
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cedarjs/vite",
|
|
3
|
-
"version": "7.0.0-canary.
|
|
3
|
+
"version": "7.0.0-canary.3188",
|
|
4
4
|
"description": "Vite configuration package for CedarJS",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -54,17 +54,17 @@
|
|
|
54
54
|
"@babel/preset-typescript": "7.29.7",
|
|
55
55
|
"@babel/traverse": "7.29.8",
|
|
56
56
|
"@babel/types": "7.29.8",
|
|
57
|
-
"@cedarjs/api": "7.0.0-canary.
|
|
58
|
-
"@cedarjs/api-server": "7.0.0-canary.
|
|
59
|
-
"@cedarjs/babel-config": "7.0.0-canary.
|
|
60
|
-
"@cedarjs/context": "7.0.0-canary.
|
|
61
|
-
"@cedarjs/graphql-server": "7.0.0-canary.
|
|
62
|
-
"@cedarjs/internal": "7.0.0-canary.
|
|
63
|
-
"@cedarjs/jobs": "7.0.0-canary.
|
|
64
|
-
"@cedarjs/project-config": "7.0.0-canary.
|
|
65
|
-
"@cedarjs/server-store": "7.0.0-canary.
|
|
66
|
-
"@cedarjs/structure": "7.0.0-canary.
|
|
67
|
-
"@cedarjs/testing": "7.0.0-canary.
|
|
57
|
+
"@cedarjs/api": "7.0.0-canary.3188",
|
|
58
|
+
"@cedarjs/api-server": "7.0.0-canary.3188",
|
|
59
|
+
"@cedarjs/babel-config": "7.0.0-canary.3188",
|
|
60
|
+
"@cedarjs/context": "7.0.0-canary.3188",
|
|
61
|
+
"@cedarjs/graphql-server": "7.0.0-canary.3188",
|
|
62
|
+
"@cedarjs/internal": "7.0.0-canary.3188",
|
|
63
|
+
"@cedarjs/jobs": "7.0.0-canary.3188",
|
|
64
|
+
"@cedarjs/project-config": "7.0.0-canary.3188",
|
|
65
|
+
"@cedarjs/server-store": "7.0.0-canary.3188",
|
|
66
|
+
"@cedarjs/structure": "7.0.0-canary.3188",
|
|
67
|
+
"@cedarjs/testing": "7.0.0-canary.3188",
|
|
68
68
|
"@swc/core": "1.16.2",
|
|
69
69
|
"@universal-deploy/store": "^0.2.1",
|
|
70
70
|
"@universal-deploy/vite": "^0.1.9",
|
|
@@ -94,10 +94,10 @@
|
|
|
94
94
|
"yargs-parser": "21.1.1"
|
|
95
95
|
},
|
|
96
96
|
"devDependencies": {
|
|
97
|
-
"@cedarjs/auth": "7.0.0-canary.
|
|
98
|
-
"@cedarjs/framework-tools": "7.0.0-canary.
|
|
99
|
-
"@cedarjs/router": "7.0.0-canary.
|
|
100
|
-
"@cedarjs/web": "7.0.0-canary.
|
|
97
|
+
"@cedarjs/auth": "7.0.0-canary.3188",
|
|
98
|
+
"@cedarjs/framework-tools": "7.0.0-canary.3188",
|
|
99
|
+
"@cedarjs/router": "7.0.0-canary.3188",
|
|
100
|
+
"@cedarjs/web": "7.0.0-canary.3188",
|
|
101
101
|
"@dr.pogodin/react-helmet": "2.0.4",
|
|
102
102
|
"@hyrious/esbuild-plugin-commonjs": "0.2.6",
|
|
103
103
|
"@jridgewell/trace-mapping": "0.3.31",
|
|
@@ -109,19 +109,19 @@
|
|
|
109
109
|
"@types/ws": "^8",
|
|
110
110
|
"@types/yargs-parser": "21.0.3",
|
|
111
111
|
"concurrently": "9.2.4",
|
|
112
|
-
"memfs": "4.
|
|
112
|
+
"memfs": "4.76.0",
|
|
113
113
|
"publint": "0.3.24",
|
|
114
114
|
"react": "19.3.0",
|
|
115
115
|
"react-dom": "19.3.0",
|
|
116
|
-
"rollup": "4.63.
|
|
116
|
+
"rollup": "4.63.2",
|
|
117
117
|
"ts-dedent": "2.3.0",
|
|
118
118
|
"typescript": "5.9.3",
|
|
119
119
|
"vitest": "4.1.11"
|
|
120
120
|
},
|
|
121
121
|
"peerDependencies": {
|
|
122
|
-
"@cedarjs/auth": "7.0.0-canary.
|
|
123
|
-
"@cedarjs/router": "7.0.0-canary.
|
|
124
|
-
"@cedarjs/web": "7.0.0-canary.
|
|
122
|
+
"@cedarjs/auth": "7.0.0-canary.3188",
|
|
123
|
+
"@cedarjs/router": "7.0.0-canary.3188",
|
|
124
|
+
"@cedarjs/web": "7.0.0-canary.3188",
|
|
125
125
|
"react": "19.3.0",
|
|
126
126
|
"react-dom": "19.3.0"
|
|
127
127
|
},
|