@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/index.d.cts CHANGED
@@ -1,69 +1,8 @@
1
- import { Query, QueryClient, onlineManager } from '@tanstack/query-core';
2
-
3
- type XPosition = 'left' | 'right';
4
- type YPosition = 'top' | 'bottom';
5
- type DevtoolsPosition = XPosition | YPosition;
6
- type DevtoolsButtonPosition = `${YPosition}-${XPosition}` | 'relative';
7
- type Theme = 'dark' | 'light' | 'system';
8
- interface DevtoolsErrorType {
9
- /**
10
- * The name of the error.
11
- */
12
- name: string;
13
- /**
14
- * How the error is initialized.
15
- */
16
- initializer: (query: Query) => Error;
17
- }
18
- interface QueryDevtoolsProps {
19
- readonly client: QueryClient;
20
- queryFlavor: string;
21
- version: string;
22
- onlineManager: typeof onlineManager;
23
- buttonPosition?: DevtoolsButtonPosition;
24
- position?: DevtoolsPosition;
25
- initialIsOpen?: boolean;
26
- errorTypes?: Array<DevtoolsErrorType>;
27
- shadowDOMTarget?: ShadowRoot;
28
- onClose?: () => unknown;
29
- hideDisabledQueries?: boolean;
30
- theme?: Theme;
31
- }
32
-
33
- interface TanstackQueryDevtoolsConfig extends QueryDevtoolsProps {
34
- styleNonce?: string;
35
- shadowDOMTarget?: ShadowRoot;
36
- }
37
- declare class TanstackQueryDevtools {
38
- #private;
39
- constructor(config: TanstackQueryDevtoolsConfig);
40
- setButtonPosition(position: DevtoolsButtonPosition): void;
41
- setPosition(position: DevtoolsPosition): void;
42
- setInitialIsOpen(isOpen: boolean): void;
43
- setErrorTypes(errorTypes: Array<DevtoolsErrorType>): void;
44
- setClient(client: QueryClient): void;
45
- setTheme(theme?: Theme): void;
46
- mount<T extends HTMLElement>(el: T): void;
47
- unmount(): void;
48
- }
49
-
50
- interface TanstackQueryDevtoolsPanelConfig extends QueryDevtoolsProps {
51
- styleNonce?: string;
52
- shadowDOMTarget?: ShadowRoot;
53
- onClose?: () => unknown;
54
- }
55
- declare class TanstackQueryDevtoolsPanel {
56
- #private;
57
- constructor(config: TanstackQueryDevtoolsPanelConfig);
58
- setButtonPosition(position: DevtoolsButtonPosition): void;
59
- setPosition(position: DevtoolsPosition): void;
60
- setInitialIsOpen(isOpen: boolean): void;
61
- setErrorTypes(errorTypes: Array<DevtoolsErrorType>): void;
62
- setClient(client: QueryClient): void;
63
- setOnClose(onClose: () => unknown): void;
64
- setTheme(theme?: Theme): void;
65
- mount<T extends HTMLElement>(el: T): void;
66
- unmount(): void;
67
- }
68
-
69
- export { type DevtoolsButtonPosition, type DevtoolsErrorType, type DevtoolsPosition, TanstackQueryDevtools, type TanstackQueryDevtoolsConfig, TanstackQueryDevtoolsPanel, type TanstackQueryDevtoolsPanelConfig, type Theme };
1
+ export { DevtoolsButtonPosition } from './_tsup-dts-rollup.cjs';
2
+ export { DevtoolsErrorType } from './_tsup-dts-rollup.cjs';
3
+ export { DevtoolsPosition } from './_tsup-dts-rollup.cjs';
4
+ export { Theme } from './_tsup-dts-rollup.cjs';
5
+ export { TanstackQueryDevtools_alias_1 as TanstackQueryDevtools } from './_tsup-dts-rollup.cjs';
6
+ export { TanstackQueryDevtoolsConfig_alias_1 as TanstackQueryDevtoolsConfig } from './_tsup-dts-rollup.cjs';
7
+ export { TanstackQueryDevtoolsPanel_alias_1 as TanstackQueryDevtoolsPanel } from './_tsup-dts-rollup.cjs';
8
+ export { TanstackQueryDevtoolsPanelConfig_alias_1 as TanstackQueryDevtoolsPanelConfig } from './_tsup-dts-rollup.cjs';
package/build/index.d.ts CHANGED
@@ -1,69 +1,8 @@
1
- import { Query, QueryClient, onlineManager } from '@tanstack/query-core';
2
-
3
- type XPosition = 'left' | 'right';
4
- type YPosition = 'top' | 'bottom';
5
- type DevtoolsPosition = XPosition | YPosition;
6
- type DevtoolsButtonPosition = `${YPosition}-${XPosition}` | 'relative';
7
- type Theme = 'dark' | 'light' | 'system';
8
- interface DevtoolsErrorType {
9
- /**
10
- * The name of the error.
11
- */
12
- name: string;
13
- /**
14
- * How the error is initialized.
15
- */
16
- initializer: (query: Query) => Error;
17
- }
18
- interface QueryDevtoolsProps {
19
- readonly client: QueryClient;
20
- queryFlavor: string;
21
- version: string;
22
- onlineManager: typeof onlineManager;
23
- buttonPosition?: DevtoolsButtonPosition;
24
- position?: DevtoolsPosition;
25
- initialIsOpen?: boolean;
26
- errorTypes?: Array<DevtoolsErrorType>;
27
- shadowDOMTarget?: ShadowRoot;
28
- onClose?: () => unknown;
29
- hideDisabledQueries?: boolean;
30
- theme?: Theme;
31
- }
32
-
33
- interface TanstackQueryDevtoolsConfig extends QueryDevtoolsProps {
34
- styleNonce?: string;
35
- shadowDOMTarget?: ShadowRoot;
36
- }
37
- declare class TanstackQueryDevtools {
38
- #private;
39
- constructor(config: TanstackQueryDevtoolsConfig);
40
- setButtonPosition(position: DevtoolsButtonPosition): void;
41
- setPosition(position: DevtoolsPosition): void;
42
- setInitialIsOpen(isOpen: boolean): void;
43
- setErrorTypes(errorTypes: Array<DevtoolsErrorType>): void;
44
- setClient(client: QueryClient): void;
45
- setTheme(theme?: Theme): void;
46
- mount<T extends HTMLElement>(el: T): void;
47
- unmount(): void;
48
- }
49
-
50
- interface TanstackQueryDevtoolsPanelConfig extends QueryDevtoolsProps {
51
- styleNonce?: string;
52
- shadowDOMTarget?: ShadowRoot;
53
- onClose?: () => unknown;
54
- }
55
- declare class TanstackQueryDevtoolsPanel {
56
- #private;
57
- constructor(config: TanstackQueryDevtoolsPanelConfig);
58
- setButtonPosition(position: DevtoolsButtonPosition): void;
59
- setPosition(position: DevtoolsPosition): void;
60
- setInitialIsOpen(isOpen: boolean): void;
61
- setErrorTypes(errorTypes: Array<DevtoolsErrorType>): void;
62
- setClient(client: QueryClient): void;
63
- setOnClose(onClose: () => unknown): void;
64
- setTheme(theme?: Theme): void;
65
- mount<T extends HTMLElement>(el: T): void;
66
- unmount(): void;
67
- }
68
-
69
- export { type DevtoolsButtonPosition, type DevtoolsErrorType, type DevtoolsPosition, TanstackQueryDevtools, type TanstackQueryDevtoolsConfig, TanstackQueryDevtoolsPanel, type TanstackQueryDevtoolsPanelConfig, type Theme };
1
+ export { DevtoolsButtonPosition } from './_tsup-dts-rollup.js';
2
+ export { DevtoolsErrorType } from './_tsup-dts-rollup.js';
3
+ export { DevtoolsPosition } from './_tsup-dts-rollup.js';
4
+ export { Theme } from './_tsup-dts-rollup.js';
5
+ export { TanstackQueryDevtools_alias_1 as TanstackQueryDevtools } from './_tsup-dts-rollup.js';
6
+ export { TanstackQueryDevtoolsConfig_alias_1 as TanstackQueryDevtoolsConfig } from './_tsup-dts-rollup.js';
7
+ export { TanstackQueryDevtoolsPanel_alias_1 as TanstackQueryDevtoolsPanel } from './_tsup-dts-rollup.js';
8
+ export { TanstackQueryDevtoolsPanelConfig_alias_1 as TanstackQueryDevtoolsPanelConfig } from './_tsup-dts-rollup.js';
package/build/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { createSignal, render, lazy, setupStyleSheet, createComponent, mergeProps } from './chunk/73LUVHE2.js';
1
+ import { createSignal, render, lazy, setupStyleSheet, createComponent, mergeProps } from './chunk/L3CSWQ7H.js';
2
2
 
3
3
  // src/TanstackQueryDevtools.tsx
4
4
  var TanstackQueryDevtools = class {
@@ -80,7 +80,7 @@ var TanstackQueryDevtools = class {
80
80
  if (this.#Component) {
81
81
  Devtools = this.#Component;
82
82
  } else {
83
- Devtools = lazy(() => import('./DevtoolsComponent/BAGVG3AX.js'));
83
+ Devtools = lazy(() => import('./DevtoolsComponent/V4HPSUGU.js'));
84
84
  this.#Component = Devtools;
85
85
  }
86
86
  setupStyleSheet(this.#styleNonce, this.#shadowDOMTarget);
@@ -220,7 +220,7 @@ var TanstackQueryDevtoolsPanel = class {
220
220
  if (this.#Component) {
221
221
  Devtools = this.#Component;
222
222
  } else {
223
- Devtools = lazy(() => import('./DevtoolsPanelComponent/KZB72KQG.js'));
223
+ Devtools = lazy(() => import('./DevtoolsPanelComponent/MMQ4R4NB.js'));
224
224
  this.#Component = Devtools;
225
225
  }
226
226
  setupStyleSheet(this.#styleNonce, this.#shadowDOMTarget);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/query-devtools",
3
- "version": "5.93.0",
3
+ "version": "5.94.5",
4
4
  "description": "Developer tools to interact with and visualize the TanStack Query cache",
5
5
  "author": "tannerlinsley",
6
6
  "license": "MIT",
@@ -57,22 +57,21 @@
57
57
  "superjson": "^2.2.2",
58
58
  "tsup-preset-solid": "^2.2.0",
59
59
  "vite-plugin-solid": "^2.11.6",
60
- "@tanstack/query-core": "5.90.20"
60
+ "@tanstack/query-core": "5.94.5"
61
61
  },
62
62
  "scripts": {
63
63
  "clean": "premove ./build ./coverage ./dist-ts",
64
64
  "compile": "tsc --build",
65
65
  "test:eslint": "eslint --concurrency=auto ./src",
66
66
  "test:types": "npm-run-all --serial test:types:*",
67
- "test:types:ts50": "node ../../node_modules/typescript50/lib/tsc.js --build",
68
- "test:types:ts51": "node ../../node_modules/typescript51/lib/tsc.js --build",
69
- "test:types:ts52": "node ../../node_modules/typescript52/lib/tsc.js --build",
70
- "test:types:ts53": "node ../../node_modules/typescript53/lib/tsc.js --build",
71
67
  "test:types:ts54": "node ../../node_modules/typescript54/lib/tsc.js --build",
72
68
  "test:types:ts55": "node ../../node_modules/typescript55/lib/tsc.js --build",
73
69
  "test:types:ts56": "node ../../node_modules/typescript56/lib/tsc.js --build",
74
70
  "test:types:ts57": "node ../../node_modules/typescript57/lib/tsc.js --build",
71
+ "test:types:ts58": "node ../../node_modules/typescript58/lib/tsc.js --build",
72
+ "test:types:ts59": "node ../../node_modules/typescript59/lib/tsc.js --build",
75
73
  "test:types:tscurrent": "tsc --build",
74
+ "test:types:ts60": "node ../../node_modules/typescript60/lib/tsc.js --build",
76
75
  "test:lib": "vitest",
77
76
  "test:lib:dev": "pnpm run test:lib --watch",
78
77
  "test:build": "publint --strict && attw --pack",