@tanstack/react-query-devtools 5.0.0-alpha.9 → 5.0.0-alpha.91

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.
Files changed (145) hide show
  1. package/build/legacy/devtools-d8b99e07.d.ts +42 -0
  2. package/build/legacy/devtools.cjs +91 -0
  3. package/build/legacy/devtools.cjs.map +1 -0
  4. package/build/legacy/devtools.d.cts +4 -0
  5. package/build/legacy/devtools.d.ts +4 -0
  6. package/build/legacy/devtools.js +57 -0
  7. package/build/legacy/devtools.js.map +1 -0
  8. package/build/legacy/index.cjs +45 -0
  9. package/build/legacy/index.cjs.map +1 -0
  10. package/build/legacy/index.d.cts +8 -0
  11. package/build/legacy/index.d.ts +8 -0
  12. package/build/legacy/index.js +11 -0
  13. package/build/legacy/index.js.map +1 -0
  14. package/build/legacy/production.cjs +43 -0
  15. package/build/legacy/production.cjs.map +1 -0
  16. package/build/legacy/production.d.cts +8 -0
  17. package/build/legacy/production.d.ts +8 -0
  18. package/build/legacy/production.js +9 -0
  19. package/build/legacy/production.js.map +1 -0
  20. package/build/modern/devtools-d8b99e07.d.ts +42 -0
  21. package/build/modern/devtools.cjs +91 -0
  22. package/build/modern/devtools.cjs.map +1 -0
  23. package/build/modern/devtools.d.cts +4 -0
  24. package/build/modern/devtools.d.ts +4 -0
  25. package/build/modern/devtools.js +57 -0
  26. package/build/modern/devtools.js.map +1 -0
  27. package/build/modern/index.cjs +45 -0
  28. package/build/modern/index.cjs.map +1 -0
  29. package/build/modern/index.d.cts +8 -0
  30. package/build/modern/index.d.ts +8 -0
  31. package/build/modern/index.js +11 -0
  32. package/build/modern/index.js.map +1 -0
  33. package/build/modern/production.cjs +43 -0
  34. package/build/modern/production.cjs.map +1 -0
  35. package/build/modern/production.d.cts +8 -0
  36. package/build/modern/production.d.ts +8 -0
  37. package/build/modern/production.js +9 -0
  38. package/build/modern/production.js.map +1 -0
  39. package/package.json +32 -27
  40. package/src/__tests__/devtools.test.tsx +1 -1009
  41. package/src/__tests__/utils.tsx +4 -4
  42. package/src/devtools.tsx +59 -1309
  43. package/src/index.ts +0 -7
  44. package/src/production.ts +5 -0
  45. package/build/lib/Explorer.d.ts +0 -50
  46. package/build/lib/Explorer.esm.js +0 -254
  47. package/build/lib/Explorer.esm.js.map +0 -1
  48. package/build/lib/Explorer.js +0 -288
  49. package/build/lib/Explorer.js.map +0 -1
  50. package/build/lib/Explorer.mjs +0 -254
  51. package/build/lib/Explorer.mjs.map +0 -1
  52. package/build/lib/Logo.d.ts +0 -1
  53. package/build/lib/Logo.esm.js +0 -32
  54. package/build/lib/Logo.esm.js.map +0 -1
  55. package/build/lib/Logo.js +0 -55
  56. package/build/lib/Logo.js.map +0 -1
  57. package/build/lib/Logo.mjs +0 -32
  58. package/build/lib/Logo.mjs.map +0 -1
  59. package/build/lib/__tests__/Explorer.test.d.ts +0 -1
  60. package/build/lib/__tests__/devtools.test.d.ts +0 -1
  61. package/build/lib/__tests__/utils.d.ts +0 -22
  62. package/build/lib/_virtual/_rollupPluginBabelHelpers.esm.js +0 -17
  63. package/build/lib/_virtual/_rollupPluginBabelHelpers.esm.js.map +0 -1
  64. package/build/lib/_virtual/_rollupPluginBabelHelpers.js +0 -19
  65. package/build/lib/_virtual/_rollupPluginBabelHelpers.js.map +0 -1
  66. package/build/lib/_virtual/_rollupPluginBabelHelpers.mjs +0 -17
  67. package/build/lib/_virtual/_rollupPluginBabelHelpers.mjs.map +0 -1
  68. package/build/lib/devtools.d.ts +0 -113
  69. package/build/lib/devtools.esm.js +0 -900
  70. package/build/lib/devtools.esm.js.map +0 -1
  71. package/build/lib/devtools.js +0 -921
  72. package/build/lib/devtools.js.map +0 -1
  73. package/build/lib/devtools.mjs +0 -869
  74. package/build/lib/devtools.mjs.map +0 -1
  75. package/build/lib/index.d.ts +0 -3
  76. package/build/lib/index.esm.js +0 -12
  77. package/build/lib/index.esm.js.map +0 -1
  78. package/build/lib/index.js +0 -15
  79. package/build/lib/index.js.map +0 -1
  80. package/build/lib/index.mjs +0 -12
  81. package/build/lib/index.mjs.map +0 -1
  82. package/build/lib/index.prod.d.ts +0 -3
  83. package/build/lib/index.prod.esm.js +0 -1559
  84. package/build/lib/index.prod.esm.js.map +0 -1
  85. package/build/lib/index.prod.js +0 -1580
  86. package/build/lib/index.prod.js.map +0 -1
  87. package/build/lib/index.prod.mjs +0 -1528
  88. package/build/lib/index.prod.mjs.map +0 -1
  89. package/build/lib/noop.d.ts +0 -2
  90. package/build/lib/screenreader.d.ts +0 -3
  91. package/build/lib/screenreader.esm.js +0 -17
  92. package/build/lib/screenreader.esm.js.map +0 -1
  93. package/build/lib/screenreader.js +0 -40
  94. package/build/lib/screenreader.js.map +0 -1
  95. package/build/lib/screenreader.mjs +0 -17
  96. package/build/lib/screenreader.mjs.map +0 -1
  97. package/build/lib/styledComponents.d.ts +0 -8
  98. package/build/lib/styledComponents.esm.js +0 -95
  99. package/build/lib/styledComponents.esm.js.map +0 -1
  100. package/build/lib/styledComponents.js +0 -104
  101. package/build/lib/styledComponents.js.map +0 -1
  102. package/build/lib/styledComponents.mjs +0 -95
  103. package/build/lib/styledComponents.mjs.map +0 -1
  104. package/build/lib/theme.d.ts +0 -36
  105. package/build/lib/theme.esm.js +0 -33
  106. package/build/lib/theme.esm.js.map +0 -1
  107. package/build/lib/theme.js +0 -56
  108. package/build/lib/theme.js.map +0 -1
  109. package/build/lib/theme.mjs +0 -33
  110. package/build/lib/theme.mjs.map +0 -1
  111. package/build/lib/useLocalStorage.d.ts +0 -1
  112. package/build/lib/useLocalStorage.esm.js +0 -40
  113. package/build/lib/useLocalStorage.esm.js.map +0 -1
  114. package/build/lib/useLocalStorage.js +0 -63
  115. package/build/lib/useLocalStorage.js.map +0 -1
  116. package/build/lib/useLocalStorage.mjs +0 -40
  117. package/build/lib/useLocalStorage.mjs.map +0 -1
  118. package/build/lib/useMediaQuery.d.ts +0 -1
  119. package/build/lib/useMediaQuery.esm.js +0 -36
  120. package/build/lib/useMediaQuery.esm.js.map +0 -1
  121. package/build/lib/useMediaQuery.js +0 -59
  122. package/build/lib/useMediaQuery.js.map +0 -1
  123. package/build/lib/useMediaQuery.mjs +0 -36
  124. package/build/lib/useMediaQuery.mjs.map +0 -1
  125. package/build/lib/utils.d.ts +0 -79
  126. package/build/lib/utils.esm.js +0 -184
  127. package/build/lib/utils.esm.js.map +0 -1
  128. package/build/lib/utils.js +0 -218
  129. package/build/lib/utils.js.map +0 -1
  130. package/build/lib/utils.mjs +0 -184
  131. package/build/lib/utils.mjs.map +0 -1
  132. package/build/umd/index.development.js +0 -3195
  133. package/build/umd/index.development.js.map +0 -1
  134. package/build/umd/index.production.js +0 -2
  135. package/build/umd/index.production.js.map +0 -1
  136. package/src/Explorer.tsx +0 -385
  137. package/src/Logo.tsx +0 -32
  138. package/src/__tests__/Explorer.test.tsx +0 -150
  139. package/src/noop.ts +0 -7
  140. package/src/screenreader.tsx +0 -16
  141. package/src/styledComponents.ts +0 -110
  142. package/src/theme.tsx +0 -33
  143. package/src/useLocalStorage.ts +0 -52
  144. package/src/useMediaQuery.ts +0 -34
  145. package/src/utils.ts +0 -319
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ "use client";
3
+ var __create = Object.create;
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getProtoOf = Object.getPrototypeOf;
8
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
9
+ var __export = (target, all) => {
10
+ for (var name in all)
11
+ __defProp(target, name, { get: all[name], enumerable: true });
12
+ };
13
+ var __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from === "object" || typeof from === "function") {
15
+ for (let key of __getOwnPropNames(from))
16
+ if (!__hasOwnProp.call(to, key) && key !== except)
17
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
18
+ }
19
+ return to;
20
+ };
21
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
22
+ // If the importer is in node compatibility mode or this is not an ESM
23
+ // file that has been converted to a CommonJS file using a Babel-
24
+ // compatible transform (i.e. "__esModule" has not been set), then set
25
+ // "default" to the CommonJS "module.exports" for node compatibility.
26
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
27
+ mod
28
+ ));
29
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
30
+
31
+ // src/index.ts
32
+ var src_exports = {};
33
+ __export(src_exports, {
34
+ ReactQueryDevtools: () => ReactQueryDevtools2
35
+ });
36
+ module.exports = __toCommonJS(src_exports);
37
+ var devtools = __toESM(require("./devtools.cjs"), 1);
38
+ var ReactQueryDevtools2 = process.env.NODE_ENV !== "development" ? function() {
39
+ return null;
40
+ } : devtools.ReactQueryDevtools;
41
+ // Annotate the CommonJS export names for ESM import in node:
42
+ 0 && (module.exports = {
43
+ ReactQueryDevtools
44
+ });
45
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/index.ts"],"sourcesContent":["'use client'\n\nimport * as devtools from './devtools'\n\nexport const ReactQueryDevtools: (typeof devtools)['ReactQueryDevtools'] =\n process.env.NODE_ENV !== 'development'\n ? function () {\n return null\n }\n : devtools.ReactQueryDevtools\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,4BAAAA;AAAA;AAAA;AAEA,eAA0B;AAEnB,IAAMA,sBACX,QAAQ,IAAI,aAAa,gBACrB,WAAY;AACV,SAAO;AACT,IACS;","names":["ReactQueryDevtools"]}
@@ -0,0 +1,8 @@
1
+ import { d as devtools } from './devtools-d8b99e07.js';
2
+ import 'react';
3
+ import '@tanstack/query-devtools';
4
+ import '@tanstack/react-query';
5
+
6
+ declare const ReactQueryDevtools: (typeof devtools)['ReactQueryDevtools'];
7
+
8
+ export { ReactQueryDevtools };
@@ -0,0 +1,8 @@
1
+ import { d as devtools } from './devtools-d8b99e07.js';
2
+ import 'react';
3
+ import '@tanstack/query-devtools';
4
+ import '@tanstack/react-query';
5
+
6
+ declare const ReactQueryDevtools: (typeof devtools)['ReactQueryDevtools'];
7
+
8
+ export { ReactQueryDevtools };
@@ -0,0 +1,11 @@
1
+ "use client";
2
+
3
+ // src/index.ts
4
+ import * as devtools from "./devtools.js";
5
+ var ReactQueryDevtools2 = process.env.NODE_ENV !== "development" ? function() {
6
+ return null;
7
+ } : devtools.ReactQueryDevtools;
8
+ export {
9
+ ReactQueryDevtools2 as ReactQueryDevtools
10
+ };
11
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/index.ts"],"sourcesContent":["'use client'\n\nimport * as devtools from './devtools'\n\nexport const ReactQueryDevtools: (typeof devtools)['ReactQueryDevtools'] =\n process.env.NODE_ENV !== 'development'\n ? function () {\n return null\n }\n : devtools.ReactQueryDevtools\n"],"mappings":";;;AAEA,YAAY,cAAc;AAEnB,IAAMA,sBACX,QAAQ,IAAI,aAAa,gBACrB,WAAY;AACV,SAAO;AACT,IACS;","names":["ReactQueryDevtools"]}
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ "use client";
3
+ var __create = Object.create;
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getProtoOf = Object.getPrototypeOf;
8
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
9
+ var __export = (target, all) => {
10
+ for (var name in all)
11
+ __defProp(target, name, { get: all[name], enumerable: true });
12
+ };
13
+ var __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from === "object" || typeof from === "function") {
15
+ for (let key of __getOwnPropNames(from))
16
+ if (!__hasOwnProp.call(to, key) && key !== except)
17
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
18
+ }
19
+ return to;
20
+ };
21
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
22
+ // If the importer is in node compatibility mode or this is not an ESM
23
+ // file that has been converted to a CommonJS file using a Babel-
24
+ // compatible transform (i.e. "__esModule" has not been set), then set
25
+ // "default" to the CommonJS "module.exports" for node compatibility.
26
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
27
+ mod
28
+ ));
29
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
30
+
31
+ // src/production.ts
32
+ var production_exports = {};
33
+ __export(production_exports, {
34
+ ReactQueryDevtools: () => ReactQueryDevtools2
35
+ });
36
+ module.exports = __toCommonJS(production_exports);
37
+ var devtools = __toESM(require("./devtools.cjs"), 1);
38
+ var ReactQueryDevtools2 = devtools.ReactQueryDevtools;
39
+ // Annotate the CommonJS export names for ESM import in node:
40
+ 0 && (module.exports = {
41
+ ReactQueryDevtools
42
+ });
43
+ //# sourceMappingURL=production.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/production.ts"],"sourcesContent":["'use client'\n\nimport * as devtools from './devtools'\n\nexport const ReactQueryDevtools = devtools.ReactQueryDevtools\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,4BAAAA;AAAA;AAAA;AAEA,eAA0B;AAEnB,IAAMA,sBAA8B;","names":["ReactQueryDevtools"]}
@@ -0,0 +1,8 @@
1
+ import { R as ReactQueryDevtools$1 } from './devtools-d8b99e07.js';
2
+ import 'react';
3
+ import '@tanstack/query-devtools';
4
+ import '@tanstack/react-query';
5
+
6
+ declare const ReactQueryDevtools: typeof ReactQueryDevtools$1;
7
+
8
+ export { ReactQueryDevtools };
@@ -0,0 +1,8 @@
1
+ import { R as ReactQueryDevtools$1 } from './devtools-d8b99e07.js';
2
+ import 'react';
3
+ import '@tanstack/query-devtools';
4
+ import '@tanstack/react-query';
5
+
6
+ declare const ReactQueryDevtools: typeof ReactQueryDevtools$1;
7
+
8
+ export { ReactQueryDevtools };
@@ -0,0 +1,9 @@
1
+ "use client";
2
+
3
+ // src/production.ts
4
+ import * as devtools from "./devtools.js";
5
+ var ReactQueryDevtools2 = devtools.ReactQueryDevtools;
6
+ export {
7
+ ReactQueryDevtools2 as ReactQueryDevtools
8
+ };
9
+ //# sourceMappingURL=production.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/production.ts"],"sourcesContent":["'use client'\n\nimport * as devtools from './devtools'\n\nexport const ReactQueryDevtools = devtools.ReactQueryDevtools\n"],"mappings":";;;AAEA,YAAY,cAAc;AAEnB,IAAMA,sBAA8B;","names":["ReactQueryDevtools"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/react-query-devtools",
3
- "version": "5.0.0-alpha.9",
3
+ "version": "5.0.0-alpha.91",
4
4
  "description": "Developer tools to interact with and visualize the TanStack/react-query cache",
5
5
  "author": "tannerlinsley",
6
6
  "license": "MIT",
@@ -10,56 +10,61 @@
10
10
  "type": "github",
11
11
  "url": "https://github.com/sponsors/tannerlinsley"
12
12
  },
13
- "types": "build/lib/index.d.ts",
14
- "main": "build/lib/index.js",
15
- "module": "build/lib/index.esm.js",
13
+ "type": "module",
14
+ "types": "build/legacy/index.d.ts",
15
+ "main": "build/legacy/index.cjs",
16
+ "module": "build/legacy/index.js",
16
17
  "exports": {
17
18
  ".": {
18
- "types": "./build/lib/index.d.ts",
19
- "import": "./build/lib/index.mjs",
20
- "default": "./build/lib/index.js"
19
+ "import": {
20
+ "types": "./build/modern/index.d.ts",
21
+ "default": "./build/modern/index.js"
22
+ },
23
+ "require": {
24
+ "types": "./build/modern/index.d.cts",
25
+ "default": "./build/modern/index.cjs"
26
+ }
21
27
  },
22
28
  "./production": {
23
- "types": "./build/lib/index.d.ts",
24
- "import": "./build/lib/index.prod.mjs",
25
- "default": "./build/lib/index.prod.js"
26
- },
27
- "./build/lib/index.prod.js": {
28
- "types": "./build/lib/index.d.ts",
29
- "import": "./build/lib/index.prod.mjs",
30
- "default": "./build/lib/index.prod.js"
29
+ "import": {
30
+ "types": "./build/modern/production.d.ts",
31
+ "default": "./build/modern/production.js"
32
+ },
33
+ "require": {
34
+ "types": "./build/modern/production.d.cts",
35
+ "default": "./build/modern/production.cjs"
36
+ }
31
37
  },
32
38
  "./package.json": "./package.json"
33
39
  },
34
40
  "sideEffects": false,
35
41
  "files": [
36
- "build/lib/*",
37
- "build/umd/*",
42
+ "build",
38
43
  "src"
39
44
  ],
45
+ "dependencies": {
46
+ "@tanstack/query-devtools": "5.0.0-alpha.89"
47
+ },
40
48
  "devDependencies": {
41
- "@types/react": "^18.0.14",
42
- "@types/react-dom": "^18.0.5",
49
+ "@types/react": "^18.2.4",
50
+ "@types/react-dom": "^18.2.4",
43
51
  "react": "^18.2.0",
44
52
  "react-dom": "^18.2.0",
45
53
  "react-error-boundary": "^3.1.4",
46
- "@tanstack/react-query": "5.0.0-alpha.9"
47
- },
48
- "dependencies": {
49
- "@tanstack/match-sorter-utils": "^8.7.0",
50
- "superjson": "^1.10.0"
54
+ "@tanstack/react-query": "5.0.0-alpha.91"
51
55
  },
52
56
  "peerDependencies": {
53
57
  "react": "^18.0.0",
54
58
  "react-dom": "^18.0.0",
55
- "@tanstack/react-query": "5.0.0-alpha.9"
59
+ "@tanstack/react-query": "5.0.0-alpha.91"
56
60
  },
57
61
  "scripts": {
58
- "clean": "rimraf ./build",
62
+ "clean": "rimraf ./build && rimraf ./coverage",
59
63
  "test:eslint": "eslint --ext .ts,.tsx ./src",
60
64
  "test:types": "tsc",
61
65
  "test:lib": "vitest run --coverage",
62
66
  "test:lib:dev": "pnpm run test:lib --watch",
63
- "build:types": "tsc --build && cp build/lib/index.d.ts build/lib/index.prod.d.ts"
67
+ "test:build": "publint --strict && attw --pack --ignore-rules no-resolution",
68
+ "build": "tsup"
64
69
  }
65
70
  }