@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.
@@ -1,4 +1,4 @@
1
- // ../../node_modules/.pnpm/solid-js@1.9.7/node_modules/solid-js/dist/solid.js
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 = new Set(keys.length > 1 ? keys.flat() : keys[0]);
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.has(property) ? void 0 : props[property];
1056
+ return blocked.includes(property) ? void 0 : props[property];
1056
1057
  },
1057
1058
  has(property) {
1058
- return blocked.has(property) ? false : property in props;
1059
+ return blocked.includes(property) ? false : property in props;
1059
1060
  },
1060
1061
  keys() {
1061
- return Object.keys(props).filter((k) => !blocked.has(k));
1062
+ return Object.keys(props).filter((k) => !blocked.includes(k));
1062
1063
  }
1063
1064
  }, propTraps));
1064
1065
  return res;
1065
1066
  }
1066
- const otherObject = {};
1067
- const objects = keys.map(() => ({}));
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
- const desc = Object.getOwnPropertyDescriptor(props, propName);
1070
- const isDefaultDesc = !desc.get && !desc.set && desc.enumerable && desc.writable && desc.configurable;
1071
- let blocked = false;
1072
- let objectIndex = 0;
1073
- for (const k of keys) {
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 [...objects, otherObject];
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.7/node_modules/solid-js/web/dist/web.js
1193
- var booleans = ["allowfullscreen", "async", "autofocus", "autoplay", "checked", "controls", "default", "disabled", "formnovalidate", "hidden", "indeterminate", "inert", "ismap", "loop", "multiple", "muted", "nomodule", "novalidate", "open", "playsinline", "readonly", "required", "reversed", "seamless", "selected"];
1194
- var Properties = /* @__PURE__ */ new Set(["className", "value", "readOnly", "noValidate", "formNoValidate", "isMap", "noModule", "playsInline", ...booleans]);
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.2/node_modules/superjson/dist/double-indexed-kv.js
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.2/node_modules/superjson/dist/registry.js
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.2/node_modules/superjson/dist/class-registry.js
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.2/node_modules/superjson/dist/util.js
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.2/node_modules/superjson/dist/custom-transformer-registry.js
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.2/node_modules/superjson/dist/is.js
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.2/node_modules/superjson/dist/pathstringifier.js
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.2/node_modules/superjson/dist/transformer.js
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,
@@ -2017,12 +2153,15 @@ var simpleRules = [
2017
2153
  name: v.name,
2018
2154
  message: v.message
2019
2155
  };
2156
+ if ("cause" in v) {
2157
+ baseError.cause = v.cause;
2158
+ }
2020
2159
  superJson.allowedErrorProps.forEach((prop) => {
2021
2160
  baseError[prop] = v[prop];
2022
2161
  });
2023
2162
  return baseError;
2024
2163
  }, (v, superJson) => {
2025
- const e = new Error(v.message);
2164
+ const e = new Error(v.message, { cause: v.cause });
2026
2165
  e.name = v.name;
2027
2166
  e.stack = v.stack;
2028
2167
  superJson.allowedErrorProps.forEach((prop) => {
@@ -2191,7 +2330,7 @@ var untransformValue = (json, type, superJson) => {
2191
2330
  }
2192
2331
  };
2193
2332
 
2194
- // ../../node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/accessDeep.js
2333
+ // ../../node_modules/.pnpm/superjson@2.2.6/node_modules/superjson/dist/accessDeep.js
2195
2334
  var getNthKey = (value, n) => {
2196
2335
  if (n > value.size)
2197
2336
  throw new Error("index out of bounds");
@@ -2307,40 +2446,49 @@ var setDeep = (object, path, mapper) => {
2307
2446
  return object;
2308
2447
  };
2309
2448
 
2310
- // ../../node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/plainer.js
2311
- function traverse(tree, walker2, origin = []) {
2449
+ // ../../node_modules/.pnpm/superjson@2.2.6/node_modules/superjson/dist/plainer.js
2450
+ var enableLegacyPaths = (version) => version < 1;
2451
+ function traverse(tree, walker2, version, origin = []) {
2312
2452
  if (!tree) {
2313
2453
  return;
2314
2454
  }
2455
+ const legacyPaths = enableLegacyPaths(version);
2315
2456
  if (!isArray(tree)) {
2316
- forEach(tree, (subtree, key) => traverse(subtree, walker2, [...origin, ...parsePath(key)]));
2457
+ forEach(tree, (subtree, key) => traverse(subtree, walker2, version, [
2458
+ ...origin,
2459
+ ...parsePath(key, legacyPaths)
2460
+ ]));
2317
2461
  return;
2318
2462
  }
2319
2463
  const [nodeValue, children2] = tree;
2320
2464
  if (children2) {
2321
2465
  forEach(children2, (child, key) => {
2322
- traverse(child, walker2, [...origin, ...parsePath(key)]);
2466
+ traverse(child, walker2, version, [
2467
+ ...origin,
2468
+ ...parsePath(key, legacyPaths)
2469
+ ]);
2323
2470
  });
2324
2471
  }
2325
2472
  walker2(nodeValue, origin);
2326
2473
  }
2327
- function applyValueAnnotations(plain, annotations, superJson) {
2474
+ function applyValueAnnotations(plain, annotations, version, superJson) {
2328
2475
  traverse(annotations, (type, path) => {
2329
2476
  plain = setDeep(plain, path, (v) => untransformValue(v, type, superJson));
2330
- });
2477
+ }, version);
2331
2478
  return plain;
2332
2479
  }
2333
- function applyReferentialEqualityAnnotations(plain, annotations) {
2480
+ function applyReferentialEqualityAnnotations(plain, annotations, version) {
2481
+ const legacyPaths = enableLegacyPaths(version);
2334
2482
  function apply(identicalPaths, path) {
2335
- const object = getDeep(plain, parsePath(path));
2336
- identicalPaths.map(parsePath).forEach((identicalObjectPath) => {
2483
+ const object = getDeep(plain, parsePath(path, legacyPaths));
2484
+ identicalPaths.map((path2) => parsePath(path2, legacyPaths)).forEach((identicalObjectPath) => {
2337
2485
  plain = setDeep(plain, identicalObjectPath, () => object);
2338
2486
  });
2339
2487
  }
2340
2488
  if (isArray(annotations)) {
2341
2489
  const [root, other] = annotations;
2342
2490
  root.forEach((identicalPath) => {
2343
- plain = setDeep(plain, parsePath(identicalPath), () => plain);
2491
+ plain = setDeep(plain, parsePath(identicalPath, legacyPaths), () => plain);
2344
2492
  });
2345
2493
  if (other) {
2346
2494
  forEach(other, apply);
@@ -2350,7 +2498,7 @@ function applyReferentialEqualityAnnotations(plain, annotations) {
2350
2498
  }
2351
2499
  return plain;
2352
2500
  }
2353
- var isDeep = (object, superJson) => isPlainObject(object) || isArray(object) || isMap(object) || isSet(object) || isInstanceOfRegisteredClass(object, superJson);
2501
+ var isDeep = (object, superJson) => isPlainObject(object) || isArray(object) || isMap(object) || isSet(object) || isError(object) || isInstanceOfRegisteredClass(object, superJson);
2354
2502
  function addIdentity(object, path, identities) {
2355
2503
  const existingSet = identities.get(object);
2356
2504
  if (existingSet) {
@@ -2426,7 +2574,7 @@ var walker = (object, identities, superJson, dedupe, path = [], objectsInThisPat
2426
2574
  const recursiveResult = walker(value, identities, superJson, dedupe, [...path, index], [...objectsInThisPath, object], seenObjects);
2427
2575
  transformedValue[index] = recursiveResult.transformedValue;
2428
2576
  if (isArray(recursiveResult.annotations)) {
2429
- innerAnnotations[index] = recursiveResult.annotations;
2577
+ innerAnnotations[escapeKey(index)] = recursiveResult.annotations;
2430
2578
  } else if (isPlainObject(recursiveResult.annotations)) {
2431
2579
  forEach(recursiveResult.annotations, (tree, key) => {
2432
2580
  innerAnnotations[escapeKey(index) + "." + key] = tree;
@@ -2446,13 +2594,17 @@ var walker = (object, identities, superJson, dedupe, path = [], objectsInThisPat
2446
2594
  return result;
2447
2595
  };
2448
2596
 
2449
- // ../../node_modules/.pnpm/is-what@4.1.16/node_modules/is-what/dist/index.js
2597
+ // ../../node_modules/.pnpm/is-what@5.5.0/node_modules/is-what/dist/getType.js
2450
2598
  function getType2(payload) {
2451
2599
  return Object.prototype.toString.call(payload).slice(8, -1);
2452
2600
  }
2601
+
2602
+ // ../../node_modules/.pnpm/is-what@5.5.0/node_modules/is-what/dist/isArray.js
2453
2603
  function isArray2(payload) {
2454
2604
  return getType2(payload) === "Array";
2455
2605
  }
2606
+
2607
+ // ../../node_modules/.pnpm/is-what@5.5.0/node_modules/is-what/dist/isPlainObject.js
2456
2608
  function isPlainObject2(payload) {
2457
2609
  if (getType2(payload) !== "Object")
2458
2610
  return false;
@@ -2460,7 +2612,7 @@ function isPlainObject2(payload) {
2460
2612
  return !!prototype && prototype.constructor === Object && prototype === Object.prototype;
2461
2613
  }
2462
2614
 
2463
- // ../../node_modules/.pnpm/copy-anything@3.0.5/node_modules/copy-anything/dist/index.js
2615
+ // ../../node_modules/.pnpm/copy-anything@4.0.5/node_modules/copy-anything/dist/index.js
2464
2616
  function assignProp2(carry, key, newVal, originalObject, includeNonenumerable) {
2465
2617
  const propType = {}.propertyIsEnumerable.call(originalObject, key) ? "enumerable" : "nonenumerable";
2466
2618
  if (propType === "enumerable")
@@ -2484,6 +2636,8 @@ function copy(target, options = {}) {
2484
2636
  const props = Object.getOwnPropertyNames(target);
2485
2637
  const symbols = Object.getOwnPropertySymbols(target);
2486
2638
  return [...props, ...symbols].reduce((carry, key) => {
2639
+ if (key === "__proto__")
2640
+ return carry;
2487
2641
  if (isArray2(options.props) && !options.props.includes(key)) {
2488
2642
  return carry;
2489
2643
  }
@@ -2494,7 +2648,7 @@ function copy(target, options = {}) {
2494
2648
  }, {});
2495
2649
  }
2496
2650
 
2497
- // ../../node_modules/.pnpm/superjson@2.2.2/node_modules/superjson/dist/index.js
2651
+ // ../../node_modules/.pnpm/superjson@2.2.6/node_modules/superjson/dist/index.js
2498
2652
  var SuperJSON = class {
2499
2653
  /**
2500
2654
  * @param dedupeReferentialEqualities If true, SuperJSON will make sure only one instance of referentially equal objects are serialized and the rest are replaced with `null`.
@@ -2525,16 +2679,18 @@ var SuperJSON = class {
2525
2679
  referentialEqualities: equalityAnnotations
2526
2680
  };
2527
2681
  }
2682
+ if (res.meta)
2683
+ res.meta.v = 1;
2528
2684
  return res;
2529
2685
  }
2530
- deserialize(payload) {
2686
+ deserialize(payload, options) {
2531
2687
  const { json, meta } = payload;
2532
- let result = copy(json);
2688
+ let result = options?.inPlace ? json : copy(json);
2533
2689
  if (meta?.values) {
2534
- result = applyValueAnnotations(result, meta.values, this);
2690
+ result = applyValueAnnotations(result, meta.values, meta.v ?? 0, this);
2535
2691
  }
2536
2692
  if (meta?.referentialEqualities) {
2537
- result = applyReferentialEqualityAnnotations(result, meta.referentialEqualities);
2693
+ result = applyReferentialEqualityAnnotations(result, meta.referentialEqualities, meta.v ?? 0);
2538
2694
  }
2539
2695
  return result;
2540
2696
  }
@@ -2542,7 +2698,7 @@ var SuperJSON = class {
2542
2698
  return JSON.stringify(this.serialize(object));
2543
2699
  }
2544
2700
  parse(string) {
2545
- return this.deserialize(JSON.parse(string));
2701
+ return this.deserialize(JSON.parse(string), { inPlace: true });
2546
2702
  }
2547
2703
  registerClass(v, options) {
2548
2704
  this.classRegistry.register(v, options);
@@ -2745,4 +2901,4 @@ var setupStyleSheet = (nonce, target) => {
2745
2901
  }
2746
2902
  };
2747
2903
 
2748
- 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 };
2904
+ 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 };