@tanstack/query-devtools 5.93.0 → 5.94.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.
- package/build/DevtoolsComponent/{B5PP2USH.js → V4HPSUGU.js} +2 -2
- package/build/DevtoolsComponent/{BAGVG3AX.js → XMTSMVTM.js} +2 -2
- package/build/DevtoolsPanelComponent/{KZB72KQG.js → AY2UQYZQ.js} +2 -2
- package/build/DevtoolsPanelComponent/{WI32IQVE.js → MMQ4R4NB.js} +2 -2
- package/build/_tsup-dts-rollup.d.cts +629 -0
- package/build/_tsup-dts-rollup.d.ts +629 -0
- package/build/chunk/{NITRNJ62.js → 7NWEGSOJ.js} +1779 -1777
- package/build/chunk/{6FXOYLZD.js → EO4IN5ML.js} +215 -59
- package/build/chunk/{HNLWDMU5.js → JMCFIHKA.js} +1779 -1777
- package/build/chunk/{73LUVHE2.js → L3CSWQ7H.js} +215 -59
- package/build/dev.cjs +2525 -2258
- package/build/dev.d.cts +8 -0
- package/build/dev.d.ts +8 -0
- package/build/dev.js +3 -3
- package/build/index.cjs +2525 -2258
- package/build/index.d.cts +8 -69
- package/build/index.d.ts +8 -69
- package/build/index.js +3 -3
- package/package.json +5 -6
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// ../../node_modules/.pnpm/solid-js@1.9.
|
|
1
|
+
// ../../node_modules/.pnpm/solid-js@1.9.11/node_modules/solid-js/dist/solid.js
|
|
2
2
|
var sharedConfig = {
|
|
3
3
|
context: void 0,
|
|
4
4
|
registry: void 0,
|
|
@@ -1035,8 +1035,9 @@ function mergeProps(...sources) {
|
|
|
1035
1035
|
return target;
|
|
1036
1036
|
}
|
|
1037
1037
|
function splitProps(props, ...keys) {
|
|
1038
|
+
const len = keys.length;
|
|
1038
1039
|
if (SUPPORTS_PROXY && $PROXY in props) {
|
|
1039
|
-
const blocked =
|
|
1040
|
+
const blocked = len > 1 ? keys.flat() : keys[0];
|
|
1040
1041
|
const res = keys.map((k) => {
|
|
1041
1042
|
return new Proxy({
|
|
1042
1043
|
get(property) {
|
|
@@ -1052,36 +1053,34 @@ function splitProps(props, ...keys) {
|
|
|
1052
1053
|
});
|
|
1053
1054
|
res.push(new Proxy({
|
|
1054
1055
|
get(property) {
|
|
1055
|
-
return blocked.
|
|
1056
|
+
return blocked.includes(property) ? void 0 : props[property];
|
|
1056
1057
|
},
|
|
1057
1058
|
has(property) {
|
|
1058
|
-
return blocked.
|
|
1059
|
+
return blocked.includes(property) ? false : property in props;
|
|
1059
1060
|
},
|
|
1060
1061
|
keys() {
|
|
1061
|
-
return Object.keys(props).filter((k) => !blocked.
|
|
1062
|
+
return Object.keys(props).filter((k) => !blocked.includes(k));
|
|
1062
1063
|
}
|
|
1063
1064
|
}, propTraps));
|
|
1064
1065
|
return res;
|
|
1065
1066
|
}
|
|
1066
|
-
const
|
|
1067
|
-
|
|
1067
|
+
const objects = [];
|
|
1068
|
+
for (let i = 0; i <= len; i++) {
|
|
1069
|
+
objects[i] = {};
|
|
1070
|
+
}
|
|
1068
1071
|
for (const propName of Object.getOwnPropertyNames(props)) {
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
if (k.includes(propName)) {
|
|
1075
|
-
blocked = true;
|
|
1076
|
-
isDefaultDesc ? objects[objectIndex][propName] = desc.value : Object.defineProperty(objects[objectIndex], propName, desc);
|
|
1072
|
+
let keyIndex = len;
|
|
1073
|
+
for (let i = 0; i < keys.length; i++) {
|
|
1074
|
+
if (keys[i].includes(propName)) {
|
|
1075
|
+
keyIndex = i;
|
|
1076
|
+
break;
|
|
1077
1077
|
}
|
|
1078
|
-
++objectIndex;
|
|
1079
|
-
}
|
|
1080
|
-
if (!blocked) {
|
|
1081
|
-
isDefaultDesc ? otherObject[propName] = desc.value : Object.defineProperty(otherObject, propName, desc);
|
|
1082
1078
|
}
|
|
1079
|
+
const desc = Object.getOwnPropertyDescriptor(props, propName);
|
|
1080
|
+
const isDefaultDesc = !desc.get && !desc.set && desc.enumerable && desc.writable && desc.configurable;
|
|
1081
|
+
isDefaultDesc ? objects[keyIndex][propName] = desc.value : Object.defineProperty(objects[keyIndex], propName, desc);
|
|
1083
1082
|
}
|
|
1084
|
-
return
|
|
1083
|
+
return objects;
|
|
1085
1084
|
}
|
|
1086
1085
|
function lazy(fn) {
|
|
1087
1086
|
let comp;
|
|
@@ -1189,9 +1188,75 @@ function Match(props) {
|
|
|
1189
1188
|
}
|
|
1190
1189
|
var DEV = void 0;
|
|
1191
1190
|
|
|
1192
|
-
// ../../node_modules/.pnpm/solid-js@1.9.
|
|
1193
|
-
var booleans = [
|
|
1194
|
-
|
|
1191
|
+
// ../../node_modules/.pnpm/solid-js@1.9.11/node_modules/solid-js/web/dist/web.js
|
|
1192
|
+
var booleans = [
|
|
1193
|
+
"allowfullscreen",
|
|
1194
|
+
"async",
|
|
1195
|
+
"alpha",
|
|
1196
|
+
"autofocus",
|
|
1197
|
+
"autoplay",
|
|
1198
|
+
"checked",
|
|
1199
|
+
"controls",
|
|
1200
|
+
"default",
|
|
1201
|
+
"disabled",
|
|
1202
|
+
"formnovalidate",
|
|
1203
|
+
"hidden",
|
|
1204
|
+
"indeterminate",
|
|
1205
|
+
"inert",
|
|
1206
|
+
"ismap",
|
|
1207
|
+
"loop",
|
|
1208
|
+
"multiple",
|
|
1209
|
+
"muted",
|
|
1210
|
+
"nomodule",
|
|
1211
|
+
"novalidate",
|
|
1212
|
+
"open",
|
|
1213
|
+
"playsinline",
|
|
1214
|
+
"readonly",
|
|
1215
|
+
"required",
|
|
1216
|
+
"reversed",
|
|
1217
|
+
"seamless",
|
|
1218
|
+
"selected",
|
|
1219
|
+
"adauctionheaders",
|
|
1220
|
+
"browsingtopics",
|
|
1221
|
+
"credentialless",
|
|
1222
|
+
"defaultchecked",
|
|
1223
|
+
"defaultmuted",
|
|
1224
|
+
"defaultselected",
|
|
1225
|
+
"defer",
|
|
1226
|
+
"disablepictureinpicture",
|
|
1227
|
+
"disableremoteplayback",
|
|
1228
|
+
"preservespitch",
|
|
1229
|
+
"shadowrootclonable",
|
|
1230
|
+
"shadowrootcustomelementregistry",
|
|
1231
|
+
"shadowrootdelegatesfocus",
|
|
1232
|
+
"shadowrootserializable",
|
|
1233
|
+
"sharedstoragewritable"
|
|
1234
|
+
];
|
|
1235
|
+
var Properties = /* @__PURE__ */ new Set([
|
|
1236
|
+
"className",
|
|
1237
|
+
"value",
|
|
1238
|
+
"readOnly",
|
|
1239
|
+
"noValidate",
|
|
1240
|
+
"formNoValidate",
|
|
1241
|
+
"isMap",
|
|
1242
|
+
"noModule",
|
|
1243
|
+
"playsInline",
|
|
1244
|
+
"adAuctionHeaders",
|
|
1245
|
+
"allowFullscreen",
|
|
1246
|
+
"browsingTopics",
|
|
1247
|
+
"defaultChecked",
|
|
1248
|
+
"defaultMuted",
|
|
1249
|
+
"defaultSelected",
|
|
1250
|
+
"disablePictureInPicture",
|
|
1251
|
+
"disableRemotePlayback",
|
|
1252
|
+
"preservesPitch",
|
|
1253
|
+
"shadowRootClonable",
|
|
1254
|
+
"shadowRootCustomElementRegistry",
|
|
1255
|
+
"shadowRootDelegatesFocus",
|
|
1256
|
+
"shadowRootSerializable",
|
|
1257
|
+
"sharedStorageWritable",
|
|
1258
|
+
...booleans
|
|
1259
|
+
]);
|
|
1195
1260
|
var ChildProperties = /* @__PURE__ */ new Set(["innerHTML", "textContent", "innerText", "children"]);
|
|
1196
1261
|
var Aliases = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
|
|
1197
1262
|
className: "class",
|
|
@@ -1224,6 +1289,62 @@ var PropAliases = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(nu
|
|
|
1224
1289
|
$: "readOnly",
|
|
1225
1290
|
INPUT: 1,
|
|
1226
1291
|
TEXTAREA: 1
|
|
1292
|
+
},
|
|
1293
|
+
adauctionheaders: {
|
|
1294
|
+
$: "adAuctionHeaders",
|
|
1295
|
+
IFRAME: 1
|
|
1296
|
+
},
|
|
1297
|
+
allowfullscreen: {
|
|
1298
|
+
$: "allowFullscreen",
|
|
1299
|
+
IFRAME: 1
|
|
1300
|
+
},
|
|
1301
|
+
browsingtopics: {
|
|
1302
|
+
$: "browsingTopics",
|
|
1303
|
+
IMG: 1
|
|
1304
|
+
},
|
|
1305
|
+
defaultchecked: {
|
|
1306
|
+
$: "defaultChecked",
|
|
1307
|
+
INPUT: 1
|
|
1308
|
+
},
|
|
1309
|
+
defaultmuted: {
|
|
1310
|
+
$: "defaultMuted",
|
|
1311
|
+
AUDIO: 1,
|
|
1312
|
+
VIDEO: 1
|
|
1313
|
+
},
|
|
1314
|
+
defaultselected: {
|
|
1315
|
+
$: "defaultSelected",
|
|
1316
|
+
OPTION: 1
|
|
1317
|
+
},
|
|
1318
|
+
disablepictureinpicture: {
|
|
1319
|
+
$: "disablePictureInPicture",
|
|
1320
|
+
VIDEO: 1
|
|
1321
|
+
},
|
|
1322
|
+
disableremoteplayback: {
|
|
1323
|
+
$: "disableRemotePlayback",
|
|
1324
|
+
AUDIO: 1,
|
|
1325
|
+
VIDEO: 1
|
|
1326
|
+
},
|
|
1327
|
+
preservespitch: {
|
|
1328
|
+
$: "preservesPitch",
|
|
1329
|
+
AUDIO: 1,
|
|
1330
|
+
VIDEO: 1
|
|
1331
|
+
},
|
|
1332
|
+
shadowrootclonable: {
|
|
1333
|
+
$: "shadowRootClonable",
|
|
1334
|
+
TEMPLATE: 1
|
|
1335
|
+
},
|
|
1336
|
+
shadowrootdelegatesfocus: {
|
|
1337
|
+
$: "shadowRootDelegatesFocus",
|
|
1338
|
+
TEMPLATE: 1
|
|
1339
|
+
},
|
|
1340
|
+
shadowrootserializable: {
|
|
1341
|
+
$: "shadowRootSerializable",
|
|
1342
|
+
TEMPLATE: 1
|
|
1343
|
+
},
|
|
1344
|
+
sharedstoragewritable: {
|
|
1345
|
+
$: "sharedStorageWritable",
|
|
1346
|
+
IFRAME: 1,
|
|
1347
|
+
IMG: 1
|
|
1227
1348
|
}
|
|
1228
1349
|
});
|
|
1229
1350
|
function getPropAlias(prop, tagName) {
|
|
@@ -1470,6 +1591,9 @@ function style(node, value, prev) {
|
|
|
1470
1591
|
}
|
|
1471
1592
|
return prev;
|
|
1472
1593
|
}
|
|
1594
|
+
function setStyleProperty(node, name, value) {
|
|
1595
|
+
value != null ? node.style.setProperty(name, value) : node.style.removeProperty(name);
|
|
1596
|
+
}
|
|
1473
1597
|
function spread(node, props = {}, isSVG, skipChildren) {
|
|
1474
1598
|
const prevProps = {};
|
|
1475
1599
|
if (!skipChildren) {
|
|
@@ -1749,8 +1873,10 @@ function getHydrationKey() {
|
|
|
1749
1873
|
}
|
|
1750
1874
|
var isServer = false;
|
|
1751
1875
|
var SVG_NAMESPACE = "http://www.w3.org/2000/svg";
|
|
1752
|
-
function createElement(tagName, isSVG = false) {
|
|
1753
|
-
return isSVG ? document.createElementNS(SVG_NAMESPACE, tagName) : document.createElement(tagName
|
|
1876
|
+
function createElement(tagName, isSVG = false, is = void 0) {
|
|
1877
|
+
return isSVG ? document.createElementNS(SVG_NAMESPACE, tagName) : document.createElement(tagName, {
|
|
1878
|
+
is
|
|
1879
|
+
});
|
|
1754
1880
|
}
|
|
1755
1881
|
function Portal(props) {
|
|
1756
1882
|
const {
|
|
@@ -1796,7 +1922,7 @@ function createDynamic(component, props) {
|
|
|
1796
1922
|
return untrack(() => component2(props));
|
|
1797
1923
|
case "string":
|
|
1798
1924
|
const isSvg = SVGElements.has(component2);
|
|
1799
|
-
const el = sharedConfig.context ? getNextElement() : createElement(component2, isSvg);
|
|
1925
|
+
const el = sharedConfig.context ? getNextElement() : createElement(component2, isSvg, untrack(() => props.is));
|
|
1800
1926
|
spread(el, props, isSvg);
|
|
1801
1927
|
return el;
|
|
1802
1928
|
}
|
|
@@ -1807,7 +1933,7 @@ function Dynamic(props) {
|
|
|
1807
1933
|
return createDynamic(() => props.component, others);
|
|
1808
1934
|
}
|
|
1809
1935
|
|
|
1810
|
-
// ../../node_modules/.pnpm/superjson@2.2.
|
|
1936
|
+
// ../../node_modules/.pnpm/superjson@2.2.6/node_modules/superjson/dist/double-indexed-kv.js
|
|
1811
1937
|
var DoubleIndexedKV = class {
|
|
1812
1938
|
constructor() {
|
|
1813
1939
|
this.keyToValue = /* @__PURE__ */ new Map();
|
|
@@ -1829,7 +1955,7 @@ var DoubleIndexedKV = class {
|
|
|
1829
1955
|
}
|
|
1830
1956
|
};
|
|
1831
1957
|
|
|
1832
|
-
// ../../node_modules/.pnpm/superjson@2.2.
|
|
1958
|
+
// ../../node_modules/.pnpm/superjson@2.2.6/node_modules/superjson/dist/registry.js
|
|
1833
1959
|
var Registry = class {
|
|
1834
1960
|
constructor(generateIdentifier) {
|
|
1835
1961
|
this.generateIdentifier = generateIdentifier;
|
|
@@ -1855,7 +1981,7 @@ var Registry = class {
|
|
|
1855
1981
|
}
|
|
1856
1982
|
};
|
|
1857
1983
|
|
|
1858
|
-
// ../../node_modules/.pnpm/superjson@2.2.
|
|
1984
|
+
// ../../node_modules/.pnpm/superjson@2.2.6/node_modules/superjson/dist/class-registry.js
|
|
1859
1985
|
var ClassRegistry = class extends Registry {
|
|
1860
1986
|
constructor() {
|
|
1861
1987
|
super((c) => c.name);
|
|
@@ -1876,7 +2002,7 @@ var ClassRegistry = class extends Registry {
|
|
|
1876
2002
|
}
|
|
1877
2003
|
};
|
|
1878
2004
|
|
|
1879
|
-
// ../../node_modules/.pnpm/superjson@2.2.
|
|
2005
|
+
// ../../node_modules/.pnpm/superjson@2.2.6/node_modules/superjson/dist/util.js
|
|
1880
2006
|
function valuesOfObj(record) {
|
|
1881
2007
|
if ("values" in Object) {
|
|
1882
2008
|
return Object.values(record);
|
|
@@ -1919,7 +2045,7 @@ function findArr(record, predicate) {
|
|
|
1919
2045
|
return void 0;
|
|
1920
2046
|
}
|
|
1921
2047
|
|
|
1922
|
-
// ../../node_modules/.pnpm/superjson@2.2.
|
|
2048
|
+
// ../../node_modules/.pnpm/superjson@2.2.6/node_modules/superjson/dist/custom-transformer-registry.js
|
|
1923
2049
|
var CustomTransformerRegistry = class {
|
|
1924
2050
|
constructor() {
|
|
1925
2051
|
this.transfomers = {};
|
|
@@ -1935,7 +2061,7 @@ var CustomTransformerRegistry = class {
|
|
|
1935
2061
|
}
|
|
1936
2062
|
};
|
|
1937
2063
|
|
|
1938
|
-
// ../../node_modules/.pnpm/superjson@2.2.
|
|
2064
|
+
// ../../node_modules/.pnpm/superjson@2.2.6/node_modules/superjson/dist/is.js
|
|
1939
2065
|
var getType = (payload) => Object.prototype.toString.call(payload).slice(8, -1);
|
|
1940
2066
|
var isUndefined = (payload) => typeof payload === "undefined";
|
|
1941
2067
|
var isNull = (payload) => payload === null;
|
|
@@ -1966,14 +2092,24 @@ var isInfinite = (payload) => payload === Infinity || payload === -Infinity;
|
|
|
1966
2092
|
var isTypedArray = (payload) => ArrayBuffer.isView(payload) && !(payload instanceof DataView);
|
|
1967
2093
|
var isURL = (payload) => payload instanceof URL;
|
|
1968
2094
|
|
|
1969
|
-
// ../../node_modules/.pnpm/superjson@2.2.
|
|
1970
|
-
var escapeKey = (key) => key.replace(/\./g, "\\.");
|
|
2095
|
+
// ../../node_modules/.pnpm/superjson@2.2.6/node_modules/superjson/dist/pathstringifier.js
|
|
2096
|
+
var escapeKey = (key) => key.replace(/\\/g, "\\\\").replace(/\./g, "\\.");
|
|
1971
2097
|
var stringifyPath = (path) => path.map(String).map(escapeKey).join(".");
|
|
1972
|
-
var parsePath = (string) => {
|
|
2098
|
+
var parsePath = (string, legacyPaths) => {
|
|
1973
2099
|
const result = [];
|
|
1974
2100
|
let segment = "";
|
|
1975
2101
|
for (let i = 0; i < string.length; i++) {
|
|
1976
2102
|
let char = string.charAt(i);
|
|
2103
|
+
if (!legacyPaths && char === "\\") {
|
|
2104
|
+
const escaped = string.charAt(i + 1);
|
|
2105
|
+
if (escaped === "\\") {
|
|
2106
|
+
segment += "\\";
|
|
2107
|
+
i++;
|
|
2108
|
+
continue;
|
|
2109
|
+
} else if (escaped !== ".") {
|
|
2110
|
+
throw Error("invalid path");
|
|
2111
|
+
}
|
|
2112
|
+
}
|
|
1977
2113
|
const isEscapedDot = char === "\\" && string.charAt(i + 1) === ".";
|
|
1978
2114
|
if (isEscapedDot) {
|
|
1979
2115
|
segment += ".";
|
|
@@ -1993,7 +2129,7 @@ var parsePath = (string) => {
|
|
|
1993
2129
|
return result;
|
|
1994
2130
|
};
|
|
1995
2131
|
|
|
1996
|
-
// ../../node_modules/.pnpm/superjson@2.2.
|
|
2132
|
+
// ../../node_modules/.pnpm/superjson@2.2.6/node_modules/superjson/dist/transformer.js
|
|
1997
2133
|
function simpleTransformation(isApplicable, annotation, transform, untransform) {
|
|
1998
2134
|
return {
|
|
1999
2135
|
isApplicable,
|
|
@@ -2016,12 +2152,15 @@ var simpleRules = [
|
|
|
2016
2152
|
name: v.name,
|
|
2017
2153
|
message: v.message
|
|
2018
2154
|
};
|
|
2155
|
+
if ("cause" in v) {
|
|
2156
|
+
baseError.cause = v.cause;
|
|
2157
|
+
}
|
|
2019
2158
|
superJson.allowedErrorProps.forEach((prop) => {
|
|
2020
2159
|
baseError[prop] = v[prop];
|
|
2021
2160
|
});
|
|
2022
2161
|
return baseError;
|
|
2023
2162
|
}, (v, superJson) => {
|
|
2024
|
-
const e = new Error(v.message);
|
|
2163
|
+
const e = new Error(v.message, { cause: v.cause });
|
|
2025
2164
|
e.name = v.name;
|
|
2026
2165
|
e.stack = v.stack;
|
|
2027
2166
|
superJson.allowedErrorProps.forEach((prop) => {
|
|
@@ -2190,7 +2329,7 @@ var untransformValue = (json, type, superJson) => {
|
|
|
2190
2329
|
}
|
|
2191
2330
|
};
|
|
2192
2331
|
|
|
2193
|
-
// ../../node_modules/.pnpm/superjson@2.2.
|
|
2332
|
+
// ../../node_modules/.pnpm/superjson@2.2.6/node_modules/superjson/dist/accessDeep.js
|
|
2194
2333
|
var getNthKey = (value, n) => {
|
|
2195
2334
|
if (n > value.size)
|
|
2196
2335
|
throw new Error("index out of bounds");
|
|
@@ -2306,40 +2445,49 @@ var setDeep = (object, path, mapper) => {
|
|
|
2306
2445
|
return object;
|
|
2307
2446
|
};
|
|
2308
2447
|
|
|
2309
|
-
// ../../node_modules/.pnpm/superjson@2.2.
|
|
2310
|
-
|
|
2448
|
+
// ../../node_modules/.pnpm/superjson@2.2.6/node_modules/superjson/dist/plainer.js
|
|
2449
|
+
var enableLegacyPaths = (version) => version < 1;
|
|
2450
|
+
function traverse(tree, walker2, version, origin = []) {
|
|
2311
2451
|
if (!tree) {
|
|
2312
2452
|
return;
|
|
2313
2453
|
}
|
|
2454
|
+
const legacyPaths = enableLegacyPaths(version);
|
|
2314
2455
|
if (!isArray(tree)) {
|
|
2315
|
-
forEach(tree, (subtree, key) => traverse(subtree, walker2,
|
|
2456
|
+
forEach(tree, (subtree, key) => traverse(subtree, walker2, version, [
|
|
2457
|
+
...origin,
|
|
2458
|
+
...parsePath(key, legacyPaths)
|
|
2459
|
+
]));
|
|
2316
2460
|
return;
|
|
2317
2461
|
}
|
|
2318
2462
|
const [nodeValue, children2] = tree;
|
|
2319
2463
|
if (children2) {
|
|
2320
2464
|
forEach(children2, (child, key) => {
|
|
2321
|
-
traverse(child, walker2,
|
|
2465
|
+
traverse(child, walker2, version, [
|
|
2466
|
+
...origin,
|
|
2467
|
+
...parsePath(key, legacyPaths)
|
|
2468
|
+
]);
|
|
2322
2469
|
});
|
|
2323
2470
|
}
|
|
2324
2471
|
walker2(nodeValue, origin);
|
|
2325
2472
|
}
|
|
2326
|
-
function applyValueAnnotations(plain, annotations, superJson) {
|
|
2473
|
+
function applyValueAnnotations(plain, annotations, version, superJson) {
|
|
2327
2474
|
traverse(annotations, (type, path) => {
|
|
2328
2475
|
plain = setDeep(plain, path, (v) => untransformValue(v, type, superJson));
|
|
2329
|
-
});
|
|
2476
|
+
}, version);
|
|
2330
2477
|
return plain;
|
|
2331
2478
|
}
|
|
2332
|
-
function applyReferentialEqualityAnnotations(plain, annotations) {
|
|
2479
|
+
function applyReferentialEqualityAnnotations(plain, annotations, version) {
|
|
2480
|
+
const legacyPaths = enableLegacyPaths(version);
|
|
2333
2481
|
function apply(identicalPaths, path) {
|
|
2334
|
-
const object = getDeep(plain, parsePath(path));
|
|
2335
|
-
identicalPaths.map(parsePath).forEach((identicalObjectPath) => {
|
|
2482
|
+
const object = getDeep(plain, parsePath(path, legacyPaths));
|
|
2483
|
+
identicalPaths.map((path2) => parsePath(path2, legacyPaths)).forEach((identicalObjectPath) => {
|
|
2336
2484
|
plain = setDeep(plain, identicalObjectPath, () => object);
|
|
2337
2485
|
});
|
|
2338
2486
|
}
|
|
2339
2487
|
if (isArray(annotations)) {
|
|
2340
2488
|
const [root, other] = annotations;
|
|
2341
2489
|
root.forEach((identicalPath) => {
|
|
2342
|
-
plain = setDeep(plain, parsePath(identicalPath), () => plain);
|
|
2490
|
+
plain = setDeep(plain, parsePath(identicalPath, legacyPaths), () => plain);
|
|
2343
2491
|
});
|
|
2344
2492
|
if (other) {
|
|
2345
2493
|
forEach(other, apply);
|
|
@@ -2349,7 +2497,7 @@ function applyReferentialEqualityAnnotations(plain, annotations) {
|
|
|
2349
2497
|
}
|
|
2350
2498
|
return plain;
|
|
2351
2499
|
}
|
|
2352
|
-
var isDeep = (object, superJson) => isPlainObject(object) || isArray(object) || isMap(object) || isSet(object) || isInstanceOfRegisteredClass(object, superJson);
|
|
2500
|
+
var isDeep = (object, superJson) => isPlainObject(object) || isArray(object) || isMap(object) || isSet(object) || isError(object) || isInstanceOfRegisteredClass(object, superJson);
|
|
2353
2501
|
function addIdentity(object, path, identities) {
|
|
2354
2502
|
const existingSet = identities.get(object);
|
|
2355
2503
|
if (existingSet) {
|
|
@@ -2425,7 +2573,7 @@ var walker = (object, identities, superJson, dedupe, path = [], objectsInThisPat
|
|
|
2425
2573
|
const recursiveResult = walker(value, identities, superJson, dedupe, [...path, index], [...objectsInThisPath, object], seenObjects);
|
|
2426
2574
|
transformedValue[index] = recursiveResult.transformedValue;
|
|
2427
2575
|
if (isArray(recursiveResult.annotations)) {
|
|
2428
|
-
innerAnnotations[index] = recursiveResult.annotations;
|
|
2576
|
+
innerAnnotations[escapeKey(index)] = recursiveResult.annotations;
|
|
2429
2577
|
} else if (isPlainObject(recursiveResult.annotations)) {
|
|
2430
2578
|
forEach(recursiveResult.annotations, (tree, key) => {
|
|
2431
2579
|
innerAnnotations[escapeKey(index) + "." + key] = tree;
|
|
@@ -2445,13 +2593,17 @@ var walker = (object, identities, superJson, dedupe, path = [], objectsInThisPat
|
|
|
2445
2593
|
return result;
|
|
2446
2594
|
};
|
|
2447
2595
|
|
|
2448
|
-
// ../../node_modules/.pnpm/is-what@
|
|
2596
|
+
// ../../node_modules/.pnpm/is-what@5.5.0/node_modules/is-what/dist/getType.js
|
|
2449
2597
|
function getType2(payload) {
|
|
2450
2598
|
return Object.prototype.toString.call(payload).slice(8, -1);
|
|
2451
2599
|
}
|
|
2600
|
+
|
|
2601
|
+
// ../../node_modules/.pnpm/is-what@5.5.0/node_modules/is-what/dist/isArray.js
|
|
2452
2602
|
function isArray2(payload) {
|
|
2453
2603
|
return getType2(payload) === "Array";
|
|
2454
2604
|
}
|
|
2605
|
+
|
|
2606
|
+
// ../../node_modules/.pnpm/is-what@5.5.0/node_modules/is-what/dist/isPlainObject.js
|
|
2455
2607
|
function isPlainObject2(payload) {
|
|
2456
2608
|
if (getType2(payload) !== "Object")
|
|
2457
2609
|
return false;
|
|
@@ -2459,7 +2611,7 @@ function isPlainObject2(payload) {
|
|
|
2459
2611
|
return !!prototype && prototype.constructor === Object && prototype === Object.prototype;
|
|
2460
2612
|
}
|
|
2461
2613
|
|
|
2462
|
-
// ../../node_modules/.pnpm/copy-anything@
|
|
2614
|
+
// ../../node_modules/.pnpm/copy-anything@4.0.5/node_modules/copy-anything/dist/index.js
|
|
2463
2615
|
function assignProp2(carry, key, newVal, originalObject, includeNonenumerable) {
|
|
2464
2616
|
const propType = {}.propertyIsEnumerable.call(originalObject, key) ? "enumerable" : "nonenumerable";
|
|
2465
2617
|
if (propType === "enumerable")
|
|
@@ -2483,6 +2635,8 @@ function copy(target, options = {}) {
|
|
|
2483
2635
|
const props = Object.getOwnPropertyNames(target);
|
|
2484
2636
|
const symbols = Object.getOwnPropertySymbols(target);
|
|
2485
2637
|
return [...props, ...symbols].reduce((carry, key) => {
|
|
2638
|
+
if (key === "__proto__")
|
|
2639
|
+
return carry;
|
|
2486
2640
|
if (isArray2(options.props) && !options.props.includes(key)) {
|
|
2487
2641
|
return carry;
|
|
2488
2642
|
}
|
|
@@ -2493,7 +2647,7 @@ function copy(target, options = {}) {
|
|
|
2493
2647
|
}, {});
|
|
2494
2648
|
}
|
|
2495
2649
|
|
|
2496
|
-
// ../../node_modules/.pnpm/superjson@2.2.
|
|
2650
|
+
// ../../node_modules/.pnpm/superjson@2.2.6/node_modules/superjson/dist/index.js
|
|
2497
2651
|
var SuperJSON = class {
|
|
2498
2652
|
/**
|
|
2499
2653
|
* @param dedupeReferentialEqualities If true, SuperJSON will make sure only one instance of referentially equal objects are serialized and the rest are replaced with `null`.
|
|
@@ -2524,16 +2678,18 @@ var SuperJSON = class {
|
|
|
2524
2678
|
referentialEqualities: equalityAnnotations
|
|
2525
2679
|
};
|
|
2526
2680
|
}
|
|
2681
|
+
if (res.meta)
|
|
2682
|
+
res.meta.v = 1;
|
|
2527
2683
|
return res;
|
|
2528
2684
|
}
|
|
2529
|
-
deserialize(payload) {
|
|
2685
|
+
deserialize(payload, options) {
|
|
2530
2686
|
const { json, meta } = payload;
|
|
2531
|
-
let result = copy(json);
|
|
2687
|
+
let result = options?.inPlace ? json : copy(json);
|
|
2532
2688
|
if (meta?.values) {
|
|
2533
|
-
result = applyValueAnnotations(result, meta.values, this);
|
|
2689
|
+
result = applyValueAnnotations(result, meta.values, meta.v ?? 0, this);
|
|
2534
2690
|
}
|
|
2535
2691
|
if (meta?.referentialEqualities) {
|
|
2536
|
-
result = applyReferentialEqualityAnnotations(result, meta.referentialEqualities);
|
|
2692
|
+
result = applyReferentialEqualityAnnotations(result, meta.referentialEqualities, meta.v ?? 0);
|
|
2537
2693
|
}
|
|
2538
2694
|
return result;
|
|
2539
2695
|
}
|
|
@@ -2541,7 +2697,7 @@ var SuperJSON = class {
|
|
|
2541
2697
|
return JSON.stringify(this.serialize(object));
|
|
2542
2698
|
}
|
|
2543
2699
|
parse(string) {
|
|
2544
|
-
return this.deserialize(JSON.parse(string));
|
|
2700
|
+
return this.deserialize(JSON.parse(string), { inPlace: true });
|
|
2545
2701
|
}
|
|
2546
2702
|
registerClass(v, options) {
|
|
2547
2703
|
this.classRegistry.register(v, options);
|
|
@@ -2744,4 +2900,4 @@ var setupStyleSheet = (nonce, target) => {
|
|
|
2744
2900
|
}
|
|
2745
2901
|
};
|
|
2746
2902
|
|
|
2747
|
-
export { $TRACK, DEV, Dynamic, For, Index, Match, Portal, Show, Switch, addEventListener, batch, className, clearDelegatedEvents, convertRemToPixels, createComponent, createComputed, createContext, createEffect, createMemo, createRenderEffect, createRoot, createSignal, createUniqueId, delegateEvents, deleteNestedDataByPath, displayValue, getMutationStatusColor, getOwner, getPreferredColorScheme, getQueryStatusColor, getQueryStatusColorByLabel, getQueryStatusLabel, getSidedProp, insert, isServer, lazy, memo, mergeProps, mutationSortFns, on, onCleanup, onMount, render, serialize, setAttribute, setupStyleSheet, sortFns, splitProps, spread, stringify, template, untrack, updateNestedDataByPath, use, useContext, useTransition };
|
|
2903
|
+
export { $TRACK, DEV, Dynamic, For, Index, Match, Portal, Show, Switch, addEventListener, batch, className, clearDelegatedEvents, convertRemToPixels, createComponent, createComputed, createContext, createEffect, createMemo, createRenderEffect, createRoot, createSignal, createUniqueId, delegateEvents, deleteNestedDataByPath, displayValue, getMutationStatusColor, getOwner, getPreferredColorScheme, getQueryStatusColor, getQueryStatusColorByLabel, getQueryStatusLabel, getSidedProp, insert, isServer, lazy, memo, mergeProps, mutationSortFns, on, onCleanup, onMount, render, serialize, setAttribute, setStyleProperty, setupStyleSheet, sortFns, splitProps, spread, stringify, template, untrack, updateNestedDataByPath, use, useContext, useTransition };
|