@cedarjs/vite 7.0.0-canary.2985 → 7.0.0-canary.2991
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.
|
@@ -359,7 +359,7 @@ var require_react_react_server_production = __commonJS({
|
|
|
359
359
|
exports.useMemo = function(create, deps) {
|
|
360
360
|
return ReactSharedInternals.H.useMemo(create, deps);
|
|
361
361
|
};
|
|
362
|
-
exports.version = "19.2.
|
|
362
|
+
exports.version = "19.2.8";
|
|
363
363
|
}
|
|
364
364
|
});
|
|
365
365
|
|
|
@@ -989,7 +989,7 @@ var require_react_react_server_development = __commonJS({
|
|
|
989
989
|
exports.useMemo = function(create, deps) {
|
|
990
990
|
return resolveDispatcher().useMemo(create, deps);
|
|
991
991
|
};
|
|
992
|
-
exports.version = "19.2.
|
|
992
|
+
exports.version = "19.2.8";
|
|
993
993
|
})();
|
|
994
994
|
}
|
|
995
995
|
});
|
|
@@ -1113,7 +1113,7 @@ var require_react_dom_react_server_production = __commonJS({
|
|
|
1113
1113
|
});
|
|
1114
1114
|
} else Internals.d.m(href);
|
|
1115
1115
|
};
|
|
1116
|
-
exports.version = "19.2.
|
|
1116
|
+
exports.version = "19.2.8";
|
|
1117
1117
|
}
|
|
1118
1118
|
});
|
|
1119
1119
|
|
|
@@ -1300,7 +1300,7 @@ var require_react_dom_react_server_development = __commonJS({
|
|
|
1300
1300
|
integrity: "string" === typeof options.integrity ? options.integrity : void 0
|
|
1301
1301
|
})) : Internals.d.m(href));
|
|
1302
1302
|
};
|
|
1303
|
-
exports.version = "19.2.
|
|
1303
|
+
exports.version = "19.2.8";
|
|
1304
1304
|
})();
|
|
1305
1305
|
}
|
|
1306
1306
|
});
|
|
@@ -1333,6 +1333,8 @@ var require_react_server_dom_webpack_server_node_production = __commonJS({
|
|
|
1333
1333
|
var async_hooks = __import_async_hooks;
|
|
1334
1334
|
var ReactDOM = import_react_dom.default;
|
|
1335
1335
|
var React = import_react.default;
|
|
1336
|
+
function noop() {
|
|
1337
|
+
}
|
|
1336
1338
|
var REACT_LEGACY_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.element");
|
|
1337
1339
|
var REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element");
|
|
1338
1340
|
var REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment");
|
|
@@ -1768,8 +1770,6 @@ var require_react_server_dom_webpack_server_node_production = __commonJS({
|
|
|
1768
1770
|
temporaryReferences.set(reference, id);
|
|
1769
1771
|
return reference;
|
|
1770
1772
|
}
|
|
1771
|
-
function noop() {
|
|
1772
|
-
}
|
|
1773
1773
|
var SuspenseException = Error(
|
|
1774
1774
|
"Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."
|
|
1775
1775
|
);
|
|
@@ -2164,7 +2164,7 @@ var require_react_server_dom_webpack_server_node_production = __commonJS({
|
|
|
2164
2164
|
0 === streamTask.status && (request.cacheController.signal.removeEventListener(
|
|
2165
2165
|
"abort",
|
|
2166
2166
|
abortIterable
|
|
2167
|
-
), erroredTask(request, streamTask, reason), enqueueFlush(request), "function" === typeof iterator.throw && iterator.throw(reason).then(
|
|
2167
|
+
), erroredTask(request, streamTask, reason), enqueueFlush(request), "function" === typeof iterator.throw && iterator.throw(reason).then(noop, noop));
|
|
2168
2168
|
}
|
|
2169
2169
|
function abortIterable() {
|
|
2170
2170
|
if (0 === streamTask.status) {
|
|
@@ -2172,7 +2172,7 @@ var require_react_server_dom_webpack_server_node_production = __commonJS({
|
|
|
2172
2172
|
signal.removeEventListener("abort", abortIterable);
|
|
2173
2173
|
var reason = signal.reason;
|
|
2174
2174
|
21 === request.type ? (request.abortableTasks.delete(streamTask), haltTask(streamTask), finishHaltedTask(streamTask, request)) : (erroredTask(request, streamTask, signal.reason), enqueueFlush(request));
|
|
2175
|
-
"function" === typeof iterator.throw && iterator.throw(reason).then(
|
|
2175
|
+
"function" === typeof iterator.throw && iterator.throw(reason).then(noop, noop);
|
|
2176
2176
|
}
|
|
2177
2177
|
}
|
|
2178
2178
|
iterable = iterable === iterator;
|
|
@@ -3925,27 +3925,33 @@ var require_react_server_dom_webpack_server_node_production = __commonJS({
|
|
|
3925
3925
|
return /* @__PURE__ */ new WeakMap();
|
|
3926
3926
|
};
|
|
3927
3927
|
exports.decodeAction = function(body, serverManifest) {
|
|
3928
|
-
var formData = new FormData(),
|
|
3928
|
+
var formData = new FormData(), maybeActionKey = null;
|
|
3929
3929
|
body.forEach(function(value, key) {
|
|
3930
|
-
key.startsWith("$ACTION_") ? key.startsWith("$ACTION_REF_") ?
|
|
3931
|
-
id: value,
|
|
3932
|
-
bound: null
|
|
3933
|
-
})) : formData.append(key, value);
|
|
3930
|
+
key.startsWith("$ACTION_") ? key.startsWith("$ACTION_REF_") ? maybeActionKey = key : key.startsWith("$ACTION_ID_") && (maybeActionKey = key) : formData.append(key, value);
|
|
3934
3931
|
});
|
|
3935
|
-
|
|
3932
|
+
if (null === maybeActionKey) return null;
|
|
3933
|
+
var actionKey = maybeActionKey, action = null;
|
|
3934
|
+
if (actionKey.startsWith("$ACTION_REF_"))
|
|
3935
|
+
actionKey = "$ACTION_" + actionKey.slice(12) + ":", body = decodeBoundActionMetaData(body, serverManifest, actionKey), action = loadServerReference(serverManifest, body);
|
|
3936
|
+
else if (actionKey.startsWith("$ACTION_ID_"))
|
|
3937
|
+
body = actionKey.slice(11), action = loadServerReference(serverManifest, { id: body, bound: null });
|
|
3938
|
+
else throw Error("Cannot handle action key. This is a bug in React.");
|
|
3939
|
+
return action.then(function(fn) {
|
|
3936
3940
|
return fn.bind(null, formData);
|
|
3937
3941
|
});
|
|
3938
3942
|
};
|
|
3939
3943
|
exports.decodeFormState = function(actionResult, body, serverManifest) {
|
|
3940
3944
|
var keyPath = body.get("$ACTION_KEY");
|
|
3941
3945
|
if ("string" !== typeof keyPath) return Promise.resolve(null);
|
|
3942
|
-
var
|
|
3946
|
+
var actionKey = null;
|
|
3943
3947
|
body.forEach(function(value, key) {
|
|
3944
|
-
key.startsWith("$ACTION_REF_") && (
|
|
3948
|
+
key.startsWith("$ACTION_REF_") && (actionKey = key);
|
|
3945
3949
|
});
|
|
3946
|
-
if (null ===
|
|
3947
|
-
var
|
|
3948
|
-
|
|
3950
|
+
if (null === actionKey) return Promise.resolve(null);
|
|
3951
|
+
var formFieldPrefix = "$ACTION_" + actionKey.slice(12) + ":";
|
|
3952
|
+
body = decodeBoundActionMetaData(body, serverManifest, formFieldPrefix);
|
|
3953
|
+
var referenceId = body.id;
|
|
3954
|
+
return Promise.resolve(body.bound).then(function(bound) {
|
|
3949
3955
|
return null === bound ? null : [actionResult, keyPath, referenceId, bound.length - 1];
|
|
3950
3956
|
});
|
|
3951
3957
|
};
|
|
@@ -3979,7 +3985,7 @@ var require_react_server_dom_webpack_server_node_production = __commonJS({
|
|
|
3979
3985
|
}
|
|
3980
3986
|
function error(reason) {
|
|
3981
3987
|
reportGlobalError(response, reason);
|
|
3982
|
-
"function" === typeof iterator.throw && iterator.throw(reason).then(
|
|
3988
|
+
"function" === typeof iterator.throw && iterator.throw(reason).then(noop, noop);
|
|
3983
3989
|
}
|
|
3984
3990
|
var iterator = iterable[ASYNC_ITERATOR](), response = createResponse(
|
|
3985
3991
|
webpackMap,
|
|
@@ -4278,6 +4284,8 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
4278
4284
|
"production" !== process.env.NODE_ENV && (function() {
|
|
4279
4285
|
function voidHandler() {
|
|
4280
4286
|
}
|
|
4287
|
+
function noop() {
|
|
4288
|
+
}
|
|
4281
4289
|
function getIteratorFn(maybeIterable) {
|
|
4282
4290
|
if (null === maybeIterable || "object" !== typeof maybeIterable)
|
|
4283
4291
|
return null;
|
|
@@ -4688,8 +4696,6 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
4688
4696
|
temporaryReferences.set(reference, id);
|
|
4689
4697
|
return reference;
|
|
4690
4698
|
}
|
|
4691
|
-
function noop() {
|
|
4692
|
-
}
|
|
4693
4699
|
function trackUsedThenable(thenableState2, thenable, index) {
|
|
4694
4700
|
index = thenableState2[index];
|
|
4695
4701
|
void 0 === index ? (thenableState2.push(thenable), (thenableState2._stacks || (thenableState2._stacks = [])).push(Error())) : index !== thenable && (thenable.then(noop, noop), thenable = index);
|
|
@@ -5345,7 +5351,7 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
5345
5351
|
0 === streamTask.status && (request.cacheController.signal.removeEventListener(
|
|
5346
5352
|
"abort",
|
|
5347
5353
|
abortIterable
|
|
5348
|
-
), erroredTask(request, streamTask, reason), enqueueFlush(request), "function" === typeof iterator.throw && iterator.throw(reason).then(
|
|
5354
|
+
), erroredTask(request, streamTask, reason), enqueueFlush(request), "function" === typeof iterator.throw && iterator.throw(reason).then(noop, noop));
|
|
5349
5355
|
}
|
|
5350
5356
|
function abortIterable() {
|
|
5351
5357
|
if (0 === streamTask.status) {
|
|
@@ -5353,7 +5359,7 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
5353
5359
|
signal.removeEventListener("abort", abortIterable);
|
|
5354
5360
|
var reason = signal.reason;
|
|
5355
5361
|
21 === request.type ? (request.abortableTasks.delete(streamTask), haltTask(streamTask), finishHaltedTask(streamTask, request)) : (erroredTask(request, streamTask, signal.reason), enqueueFlush(request));
|
|
5356
|
-
"function" === typeof iterator.throw && iterator.throw(reason).then(
|
|
5362
|
+
"function" === typeof iterator.throw && iterator.throw(reason).then(noop, noop);
|
|
5357
5363
|
}
|
|
5358
5364
|
}
|
|
5359
5365
|
var isIterator = iterable === iterator, streamTask = createTask(
|
|
@@ -8837,27 +8843,36 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
8837
8843
|
return /* @__PURE__ */ new WeakMap();
|
|
8838
8844
|
};
|
|
8839
8845
|
exports.decodeAction = function(body, serverManifest) {
|
|
8840
|
-
var formData = new FormData(),
|
|
8846
|
+
var formData = new FormData(), maybeActionKey = null;
|
|
8841
8847
|
body.forEach(function(value, key) {
|
|
8842
|
-
key.startsWith("$ACTION_") ? key.startsWith("$ACTION_REF_") ?
|
|
8843
|
-
id: value,
|
|
8844
|
-
bound: null
|
|
8845
|
-
})) : formData.append(key, value);
|
|
8848
|
+
key.startsWith("$ACTION_") ? key.startsWith("$ACTION_REF_") ? maybeActionKey = key : key.startsWith("$ACTION_ID_") && (maybeActionKey = key) : formData.append(key, value);
|
|
8846
8849
|
});
|
|
8847
|
-
|
|
8850
|
+
if (null === maybeActionKey) return null;
|
|
8851
|
+
var actionKey = maybeActionKey, action = null;
|
|
8852
|
+
if (actionKey.startsWith("$ACTION_REF_"))
|
|
8853
|
+
actionKey = "$ACTION_" + actionKey.slice(12) + ":", body = decodeBoundActionMetaData(body, serverManifest, actionKey), action = loadServerReference(serverManifest, body);
|
|
8854
|
+
else if (actionKey.startsWith("$ACTION_ID_"))
|
|
8855
|
+
body = actionKey.slice(11), action = loadServerReference(serverManifest, {
|
|
8856
|
+
id: body,
|
|
8857
|
+
bound: null
|
|
8858
|
+
});
|
|
8859
|
+
else throw Error("Cannot handle action key. This is a bug in React.");
|
|
8860
|
+
return action.then(function(fn) {
|
|
8848
8861
|
return fn.bind(null, formData);
|
|
8849
8862
|
});
|
|
8850
8863
|
};
|
|
8851
8864
|
exports.decodeFormState = function(actionResult, body, serverManifest) {
|
|
8852
8865
|
var keyPath = body.get("$ACTION_KEY");
|
|
8853
8866
|
if ("string" !== typeof keyPath) return Promise.resolve(null);
|
|
8854
|
-
var
|
|
8867
|
+
var actionKey = null;
|
|
8855
8868
|
body.forEach(function(value, key) {
|
|
8856
|
-
key.startsWith("$ACTION_REF_") && (
|
|
8869
|
+
key.startsWith("$ACTION_REF_") && (actionKey = key);
|
|
8857
8870
|
});
|
|
8858
|
-
if (null ===
|
|
8859
|
-
var
|
|
8860
|
-
|
|
8871
|
+
if (null === actionKey) return Promise.resolve(null);
|
|
8872
|
+
var formFieldPrefix = "$ACTION_" + actionKey.slice(12) + ":";
|
|
8873
|
+
body = decodeBoundActionMetaData(body, serverManifest, formFieldPrefix);
|
|
8874
|
+
var referenceId = body.id;
|
|
8875
|
+
return Promise.resolve(body.bound).then(function(bound) {
|
|
8861
8876
|
return null === bound ? null : [actionResult, keyPath, referenceId, bound.length - 1];
|
|
8862
8877
|
});
|
|
8863
8878
|
};
|
|
@@ -8891,7 +8906,7 @@ var require_react_server_dom_webpack_server_node_development = __commonJS({
|
|
|
8891
8906
|
}
|
|
8892
8907
|
function error(reason) {
|
|
8893
8908
|
reportGlobalError(response, reason);
|
|
8894
|
-
"function" === typeof iterator.throw && iterator.throw(reason).then(
|
|
8909
|
+
"function" === typeof iterator.throw && iterator.throw(reason).then(noop, noop);
|
|
8895
8910
|
}
|
|
8896
8911
|
var iterator = iterable[ASYNC_ITERATOR](), response = createResponse(
|
|
8897
8912
|
webpackMap,
|
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.2991",
|
|
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": "7.0.0-canary.
|
|
56
|
-
"@cedarjs/api-server": "7.0.0-canary.
|
|
57
|
-
"@cedarjs/babel-config": "7.0.0-canary.
|
|
58
|
-
"@cedarjs/context": "7.0.0-canary.
|
|
59
|
-
"@cedarjs/graphql-server": "7.0.0-canary.
|
|
60
|
-
"@cedarjs/internal": "7.0.0-canary.
|
|
61
|
-
"@cedarjs/jobs": "7.0.0-canary.
|
|
62
|
-
"@cedarjs/project-config": "7.0.0-canary.
|
|
63
|
-
"@cedarjs/server-store": "7.0.0-canary.
|
|
64
|
-
"@cedarjs/structure": "7.0.0-canary.
|
|
65
|
-
"@cedarjs/testing": "7.0.0-canary.
|
|
55
|
+
"@cedarjs/api": "7.0.0-canary.2991",
|
|
56
|
+
"@cedarjs/api-server": "7.0.0-canary.2991",
|
|
57
|
+
"@cedarjs/babel-config": "7.0.0-canary.2991",
|
|
58
|
+
"@cedarjs/context": "7.0.0-canary.2991",
|
|
59
|
+
"@cedarjs/graphql-server": "7.0.0-canary.2991",
|
|
60
|
+
"@cedarjs/internal": "7.0.0-canary.2991",
|
|
61
|
+
"@cedarjs/jobs": "7.0.0-canary.2991",
|
|
62
|
+
"@cedarjs/project-config": "7.0.0-canary.2991",
|
|
63
|
+
"@cedarjs/server-store": "7.0.0-canary.2991",
|
|
64
|
+
"@cedarjs/structure": "7.0.0-canary.2991",
|
|
65
|
+
"@cedarjs/testing": "7.0.0-canary.2991",
|
|
66
66
|
"@swc/core": "1.16.0",
|
|
67
67
|
"@universal-deploy/store": "^0.2.1",
|
|
68
68
|
"@universal-deploy/vite": "^0.1.9",
|
|
@@ -81,8 +81,7 @@
|
|
|
81
81
|
"isbot": "5.2.1",
|
|
82
82
|
"magic-string": "0.30.21",
|
|
83
83
|
"oxc-parser": "0.144.0",
|
|
84
|
-
"react": "19.2.
|
|
85
|
-
"react-server-dom-webpack": "19.2.7",
|
|
84
|
+
"react-server-dom-webpack": "19.2.8",
|
|
86
85
|
"unimport": "5.7.0",
|
|
87
86
|
"unplugin-auto-import": "19.3.0",
|
|
88
87
|
"vite": "7.3.6",
|
|
@@ -93,10 +92,10 @@
|
|
|
93
92
|
"yargs-parser": "21.1.1"
|
|
94
93
|
},
|
|
95
94
|
"devDependencies": {
|
|
96
|
-
"@cedarjs/auth": "7.0.0-canary.
|
|
97
|
-
"@cedarjs/framework-tools": "7.0.0-canary.
|
|
98
|
-
"@cedarjs/router": "7.0.0-canary.
|
|
99
|
-
"@cedarjs/web": "7.0.0-canary.
|
|
95
|
+
"@cedarjs/auth": "7.0.0-canary.2991",
|
|
96
|
+
"@cedarjs/framework-tools": "7.0.0-canary.2991",
|
|
97
|
+
"@cedarjs/router": "7.0.0-canary.2991",
|
|
98
|
+
"@cedarjs/web": "7.0.0-canary.2991",
|
|
100
99
|
"@dr.pogodin/react-helmet": "2.0.4",
|
|
101
100
|
"@hyrious/esbuild-plugin-commonjs": "0.2.6",
|
|
102
101
|
"@jridgewell/trace-mapping": "0.3.31",
|
|
@@ -110,15 +109,19 @@
|
|
|
110
109
|
"concurrently": "9.2.4",
|
|
111
110
|
"memfs": "4.68.1",
|
|
112
111
|
"publint": "0.3.23",
|
|
112
|
+
"react": "19.2.8",
|
|
113
|
+
"react-dom": "19.2.8",
|
|
113
114
|
"rollup": "4.60.4",
|
|
114
115
|
"ts-dedent": "2.3.0",
|
|
115
116
|
"typescript": "5.9.3",
|
|
116
117
|
"vitest": "4.1.10"
|
|
117
118
|
},
|
|
118
119
|
"peerDependencies": {
|
|
119
|
-
"@cedarjs/auth": "7.0.0-canary.
|
|
120
|
-
"@cedarjs/router": "7.0.0-canary.
|
|
121
|
-
"@cedarjs/web": "7.0.0-canary.
|
|
120
|
+
"@cedarjs/auth": "7.0.0-canary.2991",
|
|
121
|
+
"@cedarjs/router": "7.0.0-canary.2991",
|
|
122
|
+
"@cedarjs/web": "7.0.0-canary.2991",
|
|
123
|
+
"react": "19.2.8",
|
|
124
|
+
"react-dom": "19.2.8"
|
|
122
125
|
},
|
|
123
126
|
"engines": {
|
|
124
127
|
"node": ">=24"
|