@tanstack/query-devtools 5.64.2 → 5.65.0

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,8 +1,8 @@
1
1
  // ../../node_modules/.pnpm/solid-js@1.9.3/node_modules/solid-js/dist/solid.js
2
2
  var sharedConfig = {
3
- context: void 0,
4
- registry: void 0,
5
- effects: void 0,
3
+ context: undefined,
4
+ registry: undefined,
5
+ effects: undefined,
6
6
  done: false,
7
7
  getContextId() {
8
8
  return getContextId(this.context.count);
@@ -52,7 +52,7 @@ var Updates = null;
52
52
  var Effects = null;
53
53
  var ExecCount = 0;
54
54
  function createRoot(fn, detachedOwner) {
55
- const listener = Listener, owner = Owner, unowned = fn.length === 0, current = detachedOwner === void 0 ? owner : detachedOwner, root = unowned ? UNOWNED : {
55
+ const listener = Listener, owner = Owner, unowned = fn.length === 0, current = detachedOwner === undefined ? owner : detachedOwner, root = unowned ? UNOWNED : {
56
56
  owned: null,
57
57
  cleanups: null,
58
58
  context: current ? current.context : null,
@@ -73,7 +73,7 @@ function createSignal(value, options) {
73
73
  value,
74
74
  observers: null,
75
75
  observerSlots: null,
76
- comparator: options.equals || void 0
76
+ comparator: options.equals || undefined
77
77
  };
78
78
  const setter = (value2) => {
79
79
  if (typeof value2 === "function") {
@@ -114,7 +114,7 @@ function createMemo(fn, value, options) {
114
114
  const c = createComputation(fn, value, true, 0);
115
115
  c.observers = null;
116
116
  c.observerSlots = null;
117
- c.comparator = options.equals || void 0;
117
+ c.comparator = options.equals || undefined;
118
118
  if (Scheduler && Transition && Transition.running) {
119
119
  c.tState = STALE;
120
120
  Updates.push(c);
@@ -129,7 +129,7 @@ function createResource(pSource, pFetcher, pOptions) {
129
129
  let source;
130
130
  let fetcher;
131
131
  let options;
132
- if (arguments.length === 2 && typeof pFetcher === "object" || arguments.length === 1) {
132
+ if (arguments.length === 1) {
133
133
  source = true;
134
134
  fetcher = pSource;
135
135
  options = {};
@@ -139,7 +139,7 @@ function createResource(pSource, pFetcher, pOptions) {
139
139
  options = {};
140
140
  }
141
141
  let pr = null, initP = NO_INIT, id = null, loadedUnderTransition = false, scheduled = false, resolved = "initialValue" in options, dynamic = typeof source === "function" && createMemo(source);
142
- const contexts = /* @__PURE__ */ new Set(), [value, setValue] = (options.storage || createSignal)(options.initialValue), [error, setError] = createSignal(void 0), [track, trigger] = createSignal(void 0, {
142
+ const contexts = /* @__PURE__ */ new Set(), [value, setValue] = (options.storage || createSignal)(options.initialValue), [error, setError] = createSignal(undefined), [track, trigger] = createSignal(undefined, {
143
143
  equals: false
144
144
  }), [state, setState] = createSignal(resolved ? "ready" : "unresolved");
145
145
  if (sharedConfig.context) {
@@ -152,7 +152,7 @@ function createResource(pSource, pFetcher, pOptions) {
152
152
  function loadEnd(p, v, error2, key) {
153
153
  if (pr === p) {
154
154
  pr = null;
155
- key !== void 0 && (resolved = true);
155
+ key !== undefined && (resolved = true);
156
156
  if ((p === initP || v === initP) && options.onHydrated)
157
157
  queueMicrotask(
158
158
  () => options.onHydrated(key, {
@@ -185,7 +185,7 @@ function createResource(pSource, pFetcher, pOptions) {
185
185
  }
186
186
  function read() {
187
187
  const c = SuspenseContext && useContext(SuspenseContext), v = value(), err = error();
188
- if (err !== void 0 && !pr)
188
+ if (err !== undefined && !pr)
189
189
  throw err;
190
190
  if (Listener && !Listener.user && c) {
191
191
  createComputed(() => {
@@ -221,15 +221,15 @@ function createResource(pSource, pFetcher, pOptions) {
221
221
  })
222
222
  );
223
223
  if (!isPromise(p)) {
224
- loadEnd(pr, p, void 0, lookup);
224
+ loadEnd(pr, p, undefined, lookup);
225
225
  return p;
226
226
  }
227
227
  pr = p;
228
228
  if ("value" in p) {
229
229
  if (p.status === "success")
230
- loadEnd(pr, p.value, void 0, lookup);
230
+ loadEnd(pr, p.value, undefined, lookup);
231
231
  else
232
- loadEnd(pr, void 0, castError(p.value), lookup);
232
+ loadEnd(pr, undefined, castError(p.value), lookup);
233
233
  return p;
234
234
  }
235
235
  scheduled = true;
@@ -239,8 +239,8 @@ function createResource(pSource, pFetcher, pOptions) {
239
239
  trigger();
240
240
  }, false);
241
241
  return p.then(
242
- (v) => loadEnd(p, v, void 0, lookup),
243
- (e) => loadEnd(p, void 0, castError(e), lookup)
242
+ (v) => loadEnd(p, v, undefined, lookup),
243
+ (e) => loadEnd(p, undefined, castError(e), lookup)
244
244
  );
245
245
  }
246
246
  Object.defineProperties(read, {
@@ -370,7 +370,7 @@ function startTransition(fn) {
370
370
  }
371
371
  runUpdates(fn, false);
372
372
  Listener = Owner = null;
373
- return t ? t.done : void 0;
373
+ return t ? t.done : undefined;
374
374
  });
375
375
  }
376
376
  var [transPending, setTransPending] = /* @__PURE__ */ createSignal(false);
@@ -387,7 +387,7 @@ function createContext(defaultValue, options) {
387
387
  }
388
388
  function useContext(context) {
389
389
  let value;
390
- return Owner && Owner.context && (value = Owner.context[context.id]) !== void 0 ? value : context.defaultValue;
390
+ return Owner && Owner.context && (value = Owner.context[context.id]) !== undefined ? value : context.defaultValue;
391
391
  }
392
392
  function children(fn) {
393
393
  const children2 = createMemo(fn);
@@ -508,7 +508,7 @@ function runComputation(node, value, time) {
508
508
  if (Transition && Transition.running) {
509
509
  node.tState = STALE;
510
510
  node.tOwned && node.tOwned.forEach(cleanNode);
511
- node.tOwned = void 0;
511
+ node.tOwned = undefined;
512
512
  } else {
513
513
  node.state = STALE;
514
514
  node.owned && node.owned.forEach(cleanNode);
@@ -566,7 +566,7 @@ function createComputation(fn, init, pure, state = STALE, options) {
566
566
  }
567
567
  }
568
568
  if (ExternalSourceConfig && c.fn) {
569
- const [track, trigger] = createSignal(void 0, {
569
+ const [track, trigger] = createSignal(undefined, {
570
570
  equals: false
571
571
  });
572
572
  const ordinary = ExternalSourceConfig.factory(c.fn, trigger);
@@ -872,7 +872,7 @@ function createProvider(id, options) {
872
872
  };
873
873
  return children(() => props.children);
874
874
  }),
875
- void 0
875
+ undefined
876
876
  );
877
877
  return res;
878
878
  };
@@ -1077,7 +1077,7 @@ function resolveSource(s) {
1077
1077
  function resolveSources() {
1078
1078
  for (let i = 0, length = this.length; i < length; ++i) {
1079
1079
  const v = this[i]();
1080
- if (v !== void 0)
1080
+ if (v !== undefined)
1081
1081
  return v;
1082
1082
  }
1083
1083
  }
@@ -1094,7 +1094,7 @@ function mergeProps(...sources) {
1094
1094
  get(property) {
1095
1095
  for (let i = sources.length - 1; i >= 0; i--) {
1096
1096
  const v = resolveSource(sources[i])[property];
1097
- if (v !== void 0)
1097
+ if (v !== undefined)
1098
1098
  return v;
1099
1099
  }
1100
1100
  },
@@ -1132,13 +1132,13 @@ function mergeProps(...sources) {
1132
1132
  enumerable: true,
1133
1133
  configurable: true,
1134
1134
  get: resolveSources.bind(sourcesMap[key] = [desc.get.bind(source)])
1135
- } : desc.value !== void 0 ? desc : void 0;
1135
+ } : desc.value !== undefined ? desc : undefined;
1136
1136
  } else {
1137
1137
  const sources2 = sourcesMap[key];
1138
1138
  if (sources2) {
1139
1139
  if (desc.get)
1140
1140
  sources2.push(desc.get.bind(source));
1141
- else if (desc.value !== void 0)
1141
+ else if (desc.value !== undefined)
1142
1142
  sources2.push(() => desc.value);
1143
1143
  }
1144
1144
  }
@@ -1151,7 +1151,7 @@ function mergeProps(...sources) {
1151
1151
  if (desc && desc.get)
1152
1152
  Object.defineProperty(target, key, desc);
1153
1153
  else
1154
- target[key] = desc ? desc.value : void 0;
1154
+ target[key] = desc ? desc.value : undefined;
1155
1155
  }
1156
1156
  return target;
1157
1157
  }
@@ -1162,7 +1162,7 @@ function splitProps(props, ...keys) {
1162
1162
  return new Proxy(
1163
1163
  {
1164
1164
  get(property) {
1165
- return k.includes(property) ? props[property] : void 0;
1165
+ return k.includes(property) ? props[property] : undefined;
1166
1166
  },
1167
1167
  has(property) {
1168
1168
  return k.includes(property) && property in props;
@@ -1178,7 +1178,7 @@ function splitProps(props, ...keys) {
1178
1178
  new Proxy(
1179
1179
  {
1180
1180
  get(property) {
1181
- return blocked.has(property) ? void 0 : props[property];
1181
+ return blocked.has(property) ? undefined : props[property];
1182
1182
  },
1183
1183
  has(property) {
1184
1184
  return blocked.has(property) ? false : property in props;
@@ -1260,17 +1260,17 @@ function For(props) {
1260
1260
  const fallback = "fallback" in props && {
1261
1261
  fallback: () => props.fallback
1262
1262
  };
1263
- return createMemo(mapArray(() => props.each, props.children, fallback || void 0));
1263
+ return createMemo(mapArray(() => props.each, props.children, fallback || undefined));
1264
1264
  }
1265
1265
  function Index(props) {
1266
1266
  const fallback = "fallback" in props && {
1267
1267
  fallback: () => props.fallback
1268
1268
  };
1269
- return createMemo(indexArray(() => props.each, props.children, fallback || void 0));
1269
+ return createMemo(indexArray(() => props.each, props.children, fallback || undefined));
1270
1270
  }
1271
1271
  function Show(props) {
1272
1272
  const keyed = props.keyed;
1273
- const condition = createMemo(() => props.when, void 0, {
1273
+ const condition = createMemo(() => props.when, undefined, {
1274
1274
  equals: (a, b) => keyed ? a === b : !a === !b
1275
1275
  });
1276
1276
  return createMemo(
@@ -1291,8 +1291,8 @@ function Show(props) {
1291
1291
  }
1292
1292
  return props.fallback;
1293
1293
  },
1294
- void 0,
1295
- void 0
1294
+ undefined,
1295
+ undefined
1296
1296
  );
1297
1297
  }
1298
1298
  function Switch(props) {
@@ -1312,7 +1312,7 @@ function Switch(props) {
1312
1312
  }
1313
1313
  return [-1];
1314
1314
  },
1315
- void 0,
1315
+ undefined,
1316
1316
  {
1317
1317
  equals
1318
1318
  }
@@ -1334,14 +1334,14 @@ function Switch(props) {
1334
1334
  )
1335
1335
  ) : c;
1336
1336
  },
1337
- void 0,
1338
- void 0
1337
+ undefined,
1338
+ undefined
1339
1339
  );
1340
1340
  }
1341
1341
  function Match(props) {
1342
1342
  return props;
1343
1343
  }
1344
- var DEV = void 0;
1344
+ var DEV = undefined;
1345
1345
 
1346
1346
  // ../../node_modules/.pnpm/solid-js@1.9.3/node_modules/solid-js/web/dist/web.js
1347
1347
  var booleans = [
@@ -1418,7 +1418,7 @@ var PropAliases = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(nu
1418
1418
  });
1419
1419
  function getPropAlias(prop, tagName) {
1420
1420
  const a = PropAliases[prop];
1421
- return typeof a === "object" ? a[tagName] ? a["$"] : void 0 : a;
1421
+ return typeof a === "object" ? a[tagName] ? a["$"] : undefined : a;
1422
1422
  }
1423
1423
  var DelegatedEvents = /* @__PURE__ */ new Set([
1424
1424
  "beforeinput",
@@ -1588,7 +1588,7 @@ function render(code, element, init, options = {}) {
1588
1588
  let disposer;
1589
1589
  createRoot((dispose2) => {
1590
1590
  disposer = dispose2;
1591
- element === document ? code() : insert(element, code(), element.firstChild ? null : void 0, init);
1591
+ element === document ? code() : insert(element, code(), element.firstChild ? null : undefined, init);
1592
1592
  }, options.owner);
1593
1593
  return () => {
1594
1594
  disposer();
@@ -1690,7 +1690,7 @@ function style(node, value, prev) {
1690
1690
  const nodeStyle = node.style;
1691
1691
  if (typeof value === "string")
1692
1692
  return nodeStyle.cssText = value;
1693
- typeof prev === "string" && (nodeStyle.cssText = prev = void 0);
1693
+ typeof prev === "string" && (nodeStyle.cssText = prev = undefined);
1694
1694
  prev || (prev = {});
1695
1695
  value || (value = {});
1696
1696
  let v, s;
@@ -1722,7 +1722,7 @@ function use(fn, element, arg) {
1722
1722
  return untrack(() => fn(element, arg));
1723
1723
  }
1724
1724
  function insert(parent, accessor, marker, initial) {
1725
- if (marker !== void 0 && !initial)
1725
+ if (marker !== undefined && !initial)
1726
1726
  initial = [];
1727
1727
  if (typeof accessor !== "function")
1728
1728
  return insertExpression(parent, accessor, initial, marker);
@@ -1838,7 +1838,7 @@ function eventHandler(e) {
1838
1838
  const handler = node[key];
1839
1839
  if (handler && !node.disabled) {
1840
1840
  const data = node[`${key}Data`];
1841
- data !== void 0 ? handler.call(node, data, e) : handler.call(node, e);
1841
+ data !== undefined ? handler.call(node, data, e) : handler.call(node, e);
1842
1842
  if (e.cancelBubble)
1843
1843
  return;
1844
1844
  }
@@ -1895,7 +1895,7 @@ function insertExpression(parent, value, current, marker, unwrapArray) {
1895
1895
  current = current();
1896
1896
  if (value === current)
1897
1897
  return current;
1898
- const t = typeof value, multi = marker !== void 0;
1898
+ const t = typeof value, multi = marker !== undefined;
1899
1899
  parent = multi && current[0] && current[0].parentNode || parent;
1900
1900
  if (t === "string" || t === "number") {
1901
1901
  if (hydrating)
@@ -1940,7 +1940,7 @@ function insertExpression(parent, value, current, marker, unwrapArray) {
1940
1940
  if (hydrating) {
1941
1941
  if (!array.length)
1942
1942
  return current;
1943
- if (marker === void 0)
1943
+ if (marker === undefined)
1944
1944
  return current = [...parent.childNodes];
1945
1945
  let node = array[0];
1946
1946
  if (node.parentNode !== parent)
@@ -2018,7 +2018,7 @@ function appendNodes(parent, array, marker = null) {
2018
2018
  parent.insertBefore(array[i], marker);
2019
2019
  }
2020
2020
  function cleanChildren(parent, current, marker, replacement) {
2021
- if (marker === void 0)
2021
+ if (marker === undefined)
2022
2022
  return parent.textContent = "";
2023
2023
  const node = replacement || document.createTextNode("");
2024
2024
  if (current.length) {
@@ -2077,7 +2077,7 @@ function Portal(props) {
2077
2077
  onCleanup(() => el.removeChild(container));
2078
2078
  }
2079
2079
  },
2080
- void 0,
2080
+ undefined,
2081
2081
  {
2082
2082
  render: !hydrating
2083
2083
  }
@@ -2195,7 +2195,7 @@ function find(record, predicate) {
2195
2195
  return value;
2196
2196
  }
2197
2197
  }
2198
- return void 0;
2198
+ return undefined;
2199
2199
  }
2200
2200
  function forEach(record, run) {
2201
2201
  Object.entries(record).forEach(([key, value]) => run(value, key));
@@ -2210,7 +2210,7 @@ function findArr(record, predicate) {
2210
2210
  return value;
2211
2211
  }
2212
2212
  }
2213
- return void 0;
2213
+ return undefined;
2214
2214
  }
2215
2215
 
2216
2216
  // ../../node_modules/.pnpm/superjson@2.2.1/node_modules/superjson/dist/custom-transformer-registry.js
@@ -2297,7 +2297,7 @@ function simpleTransformation(isApplicable, annotation, transform, untransform)
2297
2297
  };
2298
2298
  }
2299
2299
  var simpleRules = [
2300
- simpleTransformation(isUndefined, "undefined", () => null, () => void 0),
2300
+ simpleTransformation(isUndefined, "undefined", () => null, () => undefined),
2301
2301
  simpleTransformation(isBigint, "bigint", (v) => v.toString(), (v) => {
2302
2302
  if (typeof BigInt !== "undefined") {
2303
2303
  return BigInt(v);
@@ -2456,7 +2456,7 @@ var transformValue = (value, superJson) => {
2456
2456
  type: applicableSimpleRule.annotation
2457
2457
  };
2458
2458
  }
2459
- return void 0;
2459
+ return undefined;
2460
2460
  };
2461
2461
  var simpleRulesByAnnotation = {};
2462
2462
  simpleRules.forEach((rule) => {
@@ -2653,7 +2653,7 @@ function addIdentity(object, path, identities) {
2653
2653
  }
2654
2654
  function generateReferentialEqualityAnnotations(identitites, dedupe) {
2655
2655
  const result = {};
2656
- let rootEqualityPaths = void 0;
2656
+ let rootEqualityPaths = undefined;
2657
2657
  identitites.forEach((paths) => {
2658
2658
  if (paths.length <= 1) {
2659
2659
  return;
@@ -2675,7 +2675,7 @@ function generateReferentialEqualityAnnotations(identitites, dedupe) {
2675
2675
  return [rootEqualityPaths, result];
2676
2676
  }
2677
2677
  } else {
2678
- return isEmptyObject(result) ? void 0 : result;
2678
+ return isEmptyObject(result) ? undefined : result;
2679
2679
  }
2680
2680
  }
2681
2681
  var walker = (object, identities, superJson, dedupe, path = [], objectsInThisPath = [], seenObjects = /* @__PURE__ */ new Map()) => {
@@ -2727,7 +2727,7 @@ var walker = (object, identities, superJson, dedupe, path = [], objectsInThisPat
2727
2727
  });
2728
2728
  const result = isEmptyObject(innerAnnotations) ? {
2729
2729
  transformedValue,
2730
- annotations: !!transformationResult ? [transformationResult.type] : void 0
2730
+ annotations: !!transformationResult ? [transformationResult.type] : undefined
2731
2731
  } : {
2732
2732
  transformedValue,
2733
2733
  annotations: !!transformationResult ? [transformationResult.type, innerAnnotations] : innerAnnotations
@@ -2897,7 +2897,7 @@ var displayValue = (value, beautify = false) => {
2897
2897
  const {
2898
2898
  json
2899
2899
  } = serialize(value);
2900
- return JSON.stringify(json, null, beautify ? 2 : void 0);
2900
+ return JSON.stringify(json, null, beautify ? 2 : undefined);
2901
2901
  };
2902
2902
  var getStatusRank = (q) => q.state.fetchStatus !== "idle" ? 0 : !q.getObserversCount() ? 3 : q.isStale() ? 2 : 1;
2903
2903
  var queryHashSort = (a, b) => a.queryHash.localeCompare(b.queryHash);