@tanstack/react-query-devtools 4.41.0 → 4.43.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.
- package/build/lib/Explorer.d.ts +7 -7
- package/build/lib/Explorer.d.ts.map +1 -0
- package/build/lib/Explorer.esm.js.map +1 -1
- package/build/lib/Explorer.js.map +1 -1
- package/build/lib/Explorer.mjs.map +1 -1
- package/build/lib/Logo.d.ts +2 -2
- package/build/lib/Logo.d.ts.map +1 -0
- package/build/lib/__tests__/Explorer.test.d.ts.map +1 -0
- package/build/lib/__tests__/devtools.test.d.ts.map +1 -0
- package/build/lib/__tests__/utils.d.ts.map +1 -0
- package/build/lib/devtools.d.ts.map +1 -0
- package/build/lib/index.d.ts.map +1 -0
- package/build/lib/index.prod.esm.js.map +1 -1
- package/build/lib/index.prod.js.map +1 -1
- package/build/lib/index.prod.mjs.map +1 -1
- package/build/lib/noop.d.ts.map +1 -0
- package/build/lib/screenreader.d.ts +2 -2
- package/build/lib/screenreader.d.ts.map +1 -0
- package/build/lib/styledComponents.d.ts +3 -3
- package/build/lib/styledComponents.d.ts.map +1 -0
- package/build/lib/theme.d.ts +1 -1
- package/build/lib/theme.d.ts.map +1 -0
- package/build/lib/useLocalStorage.d.ts.map +1 -0
- package/build/lib/useMediaQuery.d.ts.map +1 -0
- package/build/lib/useSyncExternalStore.d.ts.map +1 -0
- package/build/lib/useSyncExternalStore.native.d.ts.map +1 -0
- package/build/lib/utils.d.ts.map +1 -0
- package/build/umd/index.development.js.map +1 -1
- package/package.json +19 -10
- package/src/Explorer.tsx +2 -2
- package/src/__tests__/devtools.test.tsx +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/react-query-devtools",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.43.0",
|
|
4
4
|
"description": "Developer tools to interact with and visualize the TanStack/react-query cache",
|
|
5
5
|
"author": "tannerlinsley",
|
|
6
6
|
"license": "MIT",
|
|
@@ -42,15 +42,17 @@
|
|
|
42
42
|
"src"
|
|
43
43
|
],
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@types/react": "^
|
|
46
|
-
"@types/react-dom": "^
|
|
45
|
+
"@types/react": "^19.1.9",
|
|
46
|
+
"@types/react-dom": "^19.1.7",
|
|
47
47
|
"@types/use-sync-external-store": "^0.0.3",
|
|
48
|
-
"react": "^
|
|
48
|
+
"react": "^19.1.1",
|
|
49
49
|
"react-17": "npm:react@^17.0.2",
|
|
50
|
-
"react-
|
|
50
|
+
"react-18": "npm:react@^18.2.0",
|
|
51
|
+
"react-dom": "^19.1.1",
|
|
51
52
|
"react-dom-17": "npm:react-dom@^17.0.2",
|
|
53
|
+
"react-dom-18": "npm:react-dom@^18.2.0",
|
|
52
54
|
"react-error-boundary": "^3.1.4",
|
|
53
|
-
"@tanstack/react-query": "4.
|
|
55
|
+
"@tanstack/react-query": "4.43.0"
|
|
54
56
|
},
|
|
55
57
|
"dependencies": {
|
|
56
58
|
"@tanstack/match-sorter-utils": "^8.7.0",
|
|
@@ -58,9 +60,16 @@
|
|
|
58
60
|
"use-sync-external-store": "^1.2.0"
|
|
59
61
|
},
|
|
60
62
|
"peerDependencies": {
|
|
61
|
-
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
|
62
|
-
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
|
63
|
-
"@tanstack/react-query": "^4.
|
|
63
|
+
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
64
|
+
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
65
|
+
"@tanstack/react-query": "^4.43.0"
|
|
64
66
|
},
|
|
65
|
-
"scripts": {
|
|
67
|
+
"scripts": {
|
|
68
|
+
"clean": "rimraf ./build",
|
|
69
|
+
"test:eslint": "eslint --ext .ts,.tsx ./src",
|
|
70
|
+
"test:types": "tsc",
|
|
71
|
+
"test:lib": "jest --config ./jest.config.ts",
|
|
72
|
+
"test:lib:dev": "pnpm run test:lib --watch",
|
|
73
|
+
"build:types": "tsc --build && cp build/lib/index.d.ts build/lib/index.prod.d.ts"
|
|
74
|
+
}
|
|
66
75
|
}
|
package/src/Explorer.tsx
CHANGED
|
@@ -188,7 +188,7 @@ type Entry = {
|
|
|
188
188
|
}
|
|
189
189
|
|
|
190
190
|
type RendererProps = {
|
|
191
|
-
handleEntry: (entry: Entry) => JSX.Element
|
|
191
|
+
handleEntry: (entry: Entry) => React.JSX.Element
|
|
192
192
|
label?: string
|
|
193
193
|
value: unknown
|
|
194
194
|
subEntries: Entry[]
|
|
@@ -220,7 +220,7 @@ export function chunkArray<T>(array: T[], size: number): T[][] {
|
|
|
220
220
|
return result
|
|
221
221
|
}
|
|
222
222
|
|
|
223
|
-
type Renderer = (props: RendererProps) => JSX.Element
|
|
223
|
+
type Renderer = (props: RendererProps) => React.JSX.Element
|
|
224
224
|
|
|
225
225
|
export const DefaultRenderer: Renderer = ({
|
|
226
226
|
handleEntry,
|
|
@@ -931,7 +931,7 @@ describe('ReactQueryDevtools', () => {
|
|
|
931
931
|
paddingRight: '20%',
|
|
932
932
|
}
|
|
933
933
|
|
|
934
|
-
function Parent({ children }: { children: React.
|
|
934
|
+
function Parent({ children }: { children: React.ReactNode }) {
|
|
935
935
|
return (
|
|
936
936
|
<div data-testid={parentElementTestid} style={parentPaddings}>
|
|
937
937
|
{children}
|