@tanstack/query-devtools 5.18.0 → 5.20.1

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
- import { createContext, delegateEvents, sortFns, mutationSortFns, createSignal, $PROXY, $TRACK, getListener, batch, getPreferredColorScheme, createMemo, createComponent, createEffect, onMount, onCleanup, use, insert, Show, createRenderEffect, className, on, setAttribute, getQueryStatusColor, getMutationStatusColor, getQueryStatusLabel, spread, mergeProps, getQueryStatusColorByLabel, displayValue, For, isServer, createUniqueId, useContext, Index, updateNestedDataByPath, template, convertRemToPixels, getSidedProp, untrack, useTransition, createRoot, splitProps, Portal, addEventListener, stringify, Switch, Match, deleteNestedDataByPath, Dynamic, children, createComputed, getOwner, DEV } from '../chunk/6MVECHXQ.js';
1
+ import { createContext, delegateEvents, sortFns, mutationSortFns, createSignal, $PROXY, $TRACK, getListener, batch, getPreferredColorScheme, createMemo, createComponent, createEffect, onMount, onCleanup, use, insert, Show, createRenderEffect, className, on, setAttribute, getQueryStatusColor, getMutationStatusColor, getQueryStatusLabel, spread, mergeProps, getQueryStatusColorByLabel, displayValue, For, isServer, createUniqueId, useContext, Index, updateNestedDataByPath, template, convertRemToPixels, getSidedProp, untrack, useTransition, createRoot, splitProps, Portal, addEventListener, stringify, Switch, Match, deleteNestedDataByPath, Dynamic, children, createComputed, getOwner, DEV } from '../chunk/6HEWUOJS.js';
2
2
 
3
3
  // ../../node_modules/.pnpm/@tanstack+match-sorter-utils@8.8.4/node_modules/@tanstack/match-sorter-utils/build/lib/index.mjs
4
4
  var characterMap = {
@@ -10704,7 +10704,6 @@ var QueryDetails = () => {
10704
10704
  activeQuery().setState({
10705
10705
  status: "error",
10706
10706
  error,
10707
- // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
10708
10707
  fetchMeta: {
10709
10708
  ...activeQuery().state.fetchMeta,
10710
10709
  __previousQueryOptions
@@ -10773,7 +10772,6 @@ var QueryDetails = () => {
10773
10772
  activeQueryVal.setState({
10774
10773
  data: void 0,
10775
10774
  status: "pending",
10776
- // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
10777
10775
  fetchMeta: {
10778
10776
  ...activeQueryVal.state.fetchMeta,
10779
10777
  __previousQueryOptions
@@ -1,4 +1,4 @@
1
- import { createContext, delegateEvents, sortFns, mutationSortFns, createSignal, $PROXY, $TRACK, getListener, batch, getPreferredColorScheme, createMemo, createComponent, createEffect, onMount, onCleanup, use, insert, Show, createRenderEffect, className, on, setAttribute, getQueryStatusColor, getMutationStatusColor, getQueryStatusLabel, spread, mergeProps, getQueryStatusColorByLabel, displayValue, For, isServer, createUniqueId, useContext, Index, updateNestedDataByPath, template, convertRemToPixels, getSidedProp, untrack, useTransition, createRoot, splitProps, Portal, addEventListener, stringify, Switch, Match, deleteNestedDataByPath, Dynamic, children, createComputed, getOwner, DEV } from '../chunk/UF7WX6DB.js';
1
+ import { createContext, delegateEvents, sortFns, mutationSortFns, createSignal, $PROXY, $TRACK, getListener, batch, getPreferredColorScheme, createMemo, createComponent, createEffect, onMount, onCleanup, use, insert, Show, createRenderEffect, className, on, setAttribute, getQueryStatusColor, getMutationStatusColor, getQueryStatusLabel, spread, mergeProps, getQueryStatusColorByLabel, displayValue, For, isServer, createUniqueId, useContext, Index, updateNestedDataByPath, template, convertRemToPixels, getSidedProp, untrack, useTransition, createRoot, splitProps, Portal, addEventListener, stringify, Switch, Match, deleteNestedDataByPath, Dynamic, children, createComputed, getOwner, DEV } from '../chunk/JYLDHR36.js';
2
2
 
3
3
  // ../../node_modules/.pnpm/@tanstack+match-sorter-utils@8.8.4/node_modules/@tanstack/match-sorter-utils/build/lib/index.mjs
4
4
  var characterMap = {
@@ -10705,7 +10705,6 @@ var QueryDetails = () => {
10705
10705
  activeQuery().setState({
10706
10706
  status: "error",
10707
10707
  error,
10708
- // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
10709
10708
  fetchMeta: {
10710
10709
  ...activeQuery().state.fetchMeta,
10711
10710
  __previousQueryOptions
@@ -10774,7 +10773,6 @@ var QueryDetails = () => {
10774
10773
  activeQueryVal.setState({
10775
10774
  data: void 0,
10776
10775
  status: "pending",
10777
- // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
10778
10776
  fetchMeta: {
10779
10777
  ...activeQueryVal.state.fetchMeta,
10780
10778
  __previousQueryOptions
@@ -49,7 +49,7 @@ import {
49
49
  use,
50
50
  useContext,
51
51
  useTransition
52
- } from "../chunk/QPKVZYIY.jsx";
52
+ } from "../chunk/F4H74EX7.jsx";
53
53
 
54
54
  // ../../node_modules/.pnpm/@tanstack+match-sorter-utils@8.8.4/node_modules/@tanstack/match-sorter-utils/build/lib/index.mjs
55
55
  var characterMap = {
@@ -11503,7 +11503,6 @@ var QueryDetails = () => {
11503
11503
  activeQuery().setState({
11504
11504
  status: "error",
11505
11505
  error,
11506
- // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
11507
11506
  fetchMeta: {
11508
11507
  ...activeQuery().state.fetchMeta,
11509
11508
  __previousQueryOptions
@@ -11674,7 +11673,6 @@ var QueryDetails = () => {
11674
11673
  activeQueryVal.setState({
11675
11674
  data: void 0,
11676
11675
  status: "pending",
11677
- // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
11678
11676
  fetchMeta: {
11679
11677
  ...activeQueryVal.state.fetchMeta,
11680
11678
  __previousQueryOptions
@@ -49,7 +49,7 @@ import {
49
49
  use,
50
50
  useContext,
51
51
  useTransition
52
- } from "../chunk/ITOD2VZH.jsx";
52
+ } from "../chunk/LF7D7ABG.jsx";
53
53
 
54
54
  // ../../node_modules/.pnpm/@tanstack+match-sorter-utils@8.8.4/node_modules/@tanstack/match-sorter-utils/build/lib/index.mjs
55
55
  var characterMap = {
@@ -11502,7 +11502,6 @@ var QueryDetails = () => {
11502
11502
  activeQuery().setState({
11503
11503
  status: "error",
11504
11504
  error,
11505
- // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
11506
11505
  fetchMeta: {
11507
11506
  ...activeQuery().state.fetchMeta,
11508
11507
  __previousQueryOptions
@@ -11673,7 +11672,6 @@ var QueryDetails = () => {
11673
11672
  activeQueryVal.setState({
11674
11673
  data: void 0,
11675
11674
  status: "pending",
11676
- // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
11677
11675
  fetchMeta: {
11678
11676
  ...activeQueryVal.state.fetchMeta,
11679
11677
  __previousQueryOptions
@@ -2097,7 +2097,7 @@ var Registry = (
2097
2097
  );
2098
2098
 
2099
2099
  // ../../node_modules/.pnpm/superjson@1.13.3/node_modules/superjson/dist/esm/class-registry.js
2100
- var __extends = function() {
2100
+ var __extends = /* @__PURE__ */ function() {
2101
2101
  var extendStatics = function(d, b) {
2102
2102
  extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
2103
2103
  d2.__proto__ = b2;
@@ -2100,7 +2100,7 @@ var Registry = (
2100
2100
  );
2101
2101
 
2102
2102
  // ../../node_modules/.pnpm/superjson@1.13.3/node_modules/superjson/dist/esm/class-registry.js
2103
- var __extends = function() {
2103
+ var __extends = /* @__PURE__ */ function() {
2104
2104
  var extendStatics = function(d, b) {
2105
2105
  extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
2106
2106
  d2.__proto__ = b2;
@@ -2097,7 +2097,7 @@ var Registry = (
2097
2097
  );
2098
2098
 
2099
2099
  // ../../node_modules/.pnpm/superjson@1.13.3/node_modules/superjson/dist/esm/class-registry.js
2100
- var __extends = function() {
2100
+ var __extends = /* @__PURE__ */ function() {
2101
2101
  var extendStatics = function(d, b) {
2102
2102
  extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
2103
2103
  d2.__proto__ = b2;
@@ -2100,7 +2100,7 @@ var Registry = (
2100
2100
  );
2101
2101
 
2102
2102
  // ../../node_modules/.pnpm/superjson@1.13.3/node_modules/superjson/dist/esm/class-registry.js
2103
- var __extends = function() {
2103
+ var __extends = /* @__PURE__ */ function() {
2104
2104
  var extendStatics = function(d, b) {
2105
2105
  extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
2106
2106
  d2.__proto__ = b2;
package/build/dev.cjs CHANGED
@@ -2131,7 +2131,7 @@ var __extends, ClassRegistry;
2131
2131
  var init_class_registry = __esm({
2132
2132
  "../../node_modules/.pnpm/superjson@1.13.3/node_modules/superjson/dist/esm/class-registry.js"() {
2133
2133
  init_registry();
2134
- __extends = function() {
2134
+ __extends = /* @__PURE__ */ function() {
2135
2135
  var extendStatics = function(d, b2) {
2136
2136
  extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b3) {
2137
2137
  d2.__proto__ = b3;
@@ -14242,7 +14242,6 @@ var init_Devtools = __esm({
14242
14242
  activeQuery().setState({
14243
14243
  status: "error",
14244
14244
  error,
14245
- // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
14246
14245
  fetchMeta: {
14247
14246
  ...activeQuery().state.fetchMeta,
14248
14247
  __previousQueryOptions
@@ -14311,7 +14310,6 @@ var init_Devtools = __esm({
14311
14310
  activeQueryVal.setState({
14312
14311
  data: void 0,
14313
14312
  status: "pending",
14314
- // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
14315
14313
  fetchMeta: {
14316
14314
  ...activeQueryVal.state.fetchMeta,
14317
14315
  __previousQueryOptions
package/build/dev.js CHANGED
@@ -1,4 +1,4 @@
1
- import { createSignal, render, lazy, setupStyleSheet, createComponent, mergeProps } from './chunk/UF7WX6DB.js';
1
+ import { createSignal, render, lazy, setupStyleSheet, createComponent, mergeProps } from './chunk/JYLDHR36.js';
2
2
 
3
3
  // src/index.tsx
4
4
  var TanstackQueryDevtools = class {
@@ -65,7 +65,7 @@ var TanstackQueryDevtools = class {
65
65
  if (this.#Component) {
66
66
  Devtools = this.#Component;
67
67
  } else {
68
- Devtools = lazy(() => import('./Devtools/F44ZTS6H.js'));
68
+ Devtools = lazy(() => import('./Devtools/BCQ5SSOV.js'));
69
69
  this.#Component = Devtools;
70
70
  }
71
71
  setupStyleSheet(this.#styleNonce);
package/build/dev.jsx CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  lazy,
4
4
  render,
5
5
  setupStyleSheet
6
- } from "./chunk/QPKVZYIY.jsx";
6
+ } from "./chunk/F4H74EX7.jsx";
7
7
 
8
8
  // src/index.tsx
9
9
  var TanstackQueryDevtools = class {
@@ -70,7 +70,7 @@ var TanstackQueryDevtools = class {
70
70
  if (this.#Component) {
71
71
  Devtools = this.#Component;
72
72
  } else {
73
- Devtools = lazy(() => import("./Devtools/GGXFRC53.jsx"));
73
+ Devtools = lazy(() => import("./Devtools/C3WICRFF.jsx"));
74
74
  this.#Component = Devtools;
75
75
  }
76
76
  setupStyleSheet(this.#styleNonce);
package/build/index.cjs CHANGED
@@ -2131,7 +2131,7 @@ var __extends, ClassRegistry;
2131
2131
  var init_class_registry = __esm({
2132
2132
  "../../node_modules/.pnpm/superjson@1.13.3/node_modules/superjson/dist/esm/class-registry.js"() {
2133
2133
  init_registry();
2134
- __extends = function() {
2134
+ __extends = /* @__PURE__ */ function() {
2135
2135
  var extendStatics = function(d, b2) {
2136
2136
  extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b3) {
2137
2137
  d2.__proto__ = b3;
@@ -14240,7 +14240,6 @@ var init_Devtools = __esm({
14240
14240
  activeQuery().setState({
14241
14241
  status: "error",
14242
14242
  error,
14243
- // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
14244
14243
  fetchMeta: {
14245
14244
  ...activeQuery().state.fetchMeta,
14246
14245
  __previousQueryOptions
@@ -14309,7 +14308,6 @@ var init_Devtools = __esm({
14309
14308
  activeQueryVal.setState({
14310
14309
  data: void 0,
14311
14310
  status: "pending",
14312
- // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
14313
14311
  fetchMeta: {
14314
14312
  ...activeQueryVal.state.fetchMeta,
14315
14313
  __previousQueryOptions
package/build/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { createSignal, render, lazy, setupStyleSheet, createComponent, mergeProps } from './chunk/6MVECHXQ.js';
1
+ import { createSignal, render, lazy, setupStyleSheet, createComponent, mergeProps } from './chunk/6HEWUOJS.js';
2
2
 
3
3
  // src/index.tsx
4
4
  var TanstackQueryDevtools = class {
@@ -65,7 +65,7 @@ var TanstackQueryDevtools = class {
65
65
  if (this.#Component) {
66
66
  Devtools = this.#Component;
67
67
  } else {
68
- Devtools = lazy(() => import('./Devtools/IEC7B7YJ.js'));
68
+ Devtools = lazy(() => import('./Devtools/4MFZ6GJ2.js'));
69
69
  this.#Component = Devtools;
70
70
  }
71
71
  setupStyleSheet(this.#styleNonce);
package/build/index.jsx CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  lazy,
4
4
  render,
5
5
  setupStyleSheet
6
- } from "./chunk/ITOD2VZH.jsx";
6
+ } from "./chunk/LF7D7ABG.jsx";
7
7
 
8
8
  // src/index.tsx
9
9
  var TanstackQueryDevtools = class {
@@ -70,7 +70,7 @@ var TanstackQueryDevtools = class {
70
70
  if (this.#Component) {
71
71
  Devtools = this.#Component;
72
72
  } else {
73
- Devtools = lazy(() => import("./Devtools/PFRKCKUQ.jsx"));
73
+ Devtools = lazy(() => import("./Devtools/SLJ7V32M.jsx"));
74
74
  this.#Component = Devtools;
75
75
  }
76
76
  setupStyleSheet(this.#styleNonce);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/query-devtools",
3
- "version": "5.18.0",
3
+ "version": "5.20.1",
4
4
  "description": "Developer tools to interact with and visualize the TanStack Query cache",
5
5
  "author": "tannerlinsley",
6
6
  "license": "MIT",
@@ -50,7 +50,7 @@
50
50
  "superjson": "^1.13.3",
51
51
  "tsup-preset-solid": "^2.2.0",
52
52
  "vite-plugin-solid": "^2.8.0",
53
- "@tanstack/query-core": "5.18.0"
53
+ "@tanstack/query-core": "5.20.1"
54
54
  },
55
55
  "scripts": {
56
56
  "clean": "rimraf ./build && rimraf ./coverage",
package/src/Devtools.tsx CHANGED
@@ -1567,7 +1567,6 @@ const QueryDetails = () => {
1567
1567
 
1568
1568
  const handleRefetch = () => {
1569
1569
  const promise = activeQuery()?.fetch()
1570
- // eslint-disable-next-line @typescript-eslint/no-empty-function
1571
1570
  promise?.catch(() => {})
1572
1571
  }
1573
1572
 
@@ -1581,7 +1580,6 @@ const QueryDetails = () => {
1581
1580
  activeQuery()!.setState({
1582
1581
  status: 'error',
1583
1582
  error,
1584
- // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
1585
1583
  fetchMeta: {
1586
1584
  ...activeQuery()!.state.fetchMeta,
1587
1585
  __previousQueryOptions,
@@ -1769,7 +1767,6 @@ const QueryDetails = () => {
1769
1767
  activeQueryVal.setState({
1770
1768
  data: undefined,
1771
1769
  status: 'pending',
1772
- // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
1773
1770
  fetchMeta: {
1774
1771
  ...activeQueryVal.state.fetchMeta,
1775
1772
  __previousQueryOptions,
@@ -2104,7 +2101,6 @@ const createSubscribeToQueryCacheBatcher = <T,>(
2104
2101
  })
2105
2102
 
2106
2103
  onCleanup(() => {
2107
- // @ts-ignore
2108
2104
  queryCacheMap.delete(callback)
2109
2105
  })
2110
2106
 
@@ -2156,11 +2152,9 @@ const createSubscribeToMutationCacheBatcher = <T,>(
2156
2152
  setValue(callback(mutationCache))
2157
2153
  })
2158
2154
 
2159
- // @ts-ignore
2160
2155
  mutationCacheMap.set(callback, setValue)
2161
2156
 
2162
2157
  onCleanup(() => {
2163
- // @ts-ignore
2164
2158
  mutationCacheMap.delete(callback)
2165
2159
  })
2166
2160