@tanstack/react-query-devtools 4.29.23 → 4.29.25
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.esm.js +1 -1
- package/build/lib/Explorer.esm.js.map +1 -1
- package/build/lib/Explorer.js +1 -1
- package/build/lib/Explorer.js.map +1 -1
- package/build/lib/Explorer.mjs +1 -1
- package/build/lib/Explorer.mjs.map +1 -1
- package/build/lib/__tests__/utils.d.ts +2 -2
- package/build/lib/__tests__/utils.d.ts.map +1 -1
- package/build/lib/devtools.d.ts +1 -1
- package/build/lib/devtools.d.ts.map +1 -1
- package/build/lib/devtools.esm.js.map +1 -1
- package/build/lib/devtools.js.map +1 -1
- package/build/lib/devtools.mjs.map +1 -1
- 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/utils.d.ts +1 -1
- package/build/lib/utils.d.ts.map +1 -1
- package/build/lib/utils.esm.js.map +1 -1
- package/build/lib/utils.js.map +1 -1
- package/build/lib/utils.mjs.map +1 -1
- package/build/umd/index.development.js +255 -255
- package/build/umd/index.development.js.map +1 -1
- package/package.json +3 -3
- package/src/Explorer.tsx +1 -1
- package/src/__tests__/Explorer.test.tsx +2 -2
- package/src/__tests__/devtools.test.tsx +4 -4
- package/src/__tests__/utils.tsx +3 -4
- package/src/devtools.tsx +23 -23
- package/src/utils.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/react-query-devtools",
|
|
3
|
-
"version": "4.29.
|
|
3
|
+
"version": "4.29.25",
|
|
4
4
|
"description": "Developer tools to interact with and visualize the TanStack/react-query cache",
|
|
5
5
|
"author": "tannerlinsley",
|
|
6
6
|
"license": "MIT",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"react-dom": "^18.2.0",
|
|
47
47
|
"react-dom-17": "npm:react-dom@^17.0.2",
|
|
48
48
|
"react-error-boundary": "^3.1.4",
|
|
49
|
-
"@tanstack/react-query": "4.29.
|
|
49
|
+
"@tanstack/react-query": "4.29.25"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"@tanstack/match-sorter-utils": "^8.7.0",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"peerDependencies": {
|
|
57
57
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
|
58
58
|
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
|
59
|
-
"@tanstack/react-query": "4.29.
|
|
59
|
+
"@tanstack/react-query": "4.29.25"
|
|
60
60
|
},
|
|
61
61
|
"scripts": {
|
|
62
62
|
"clean": "rimraf ./build",
|
package/src/Explorer.tsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { fireEvent, render, screen
|
|
1
|
+
import { act, fireEvent, render, screen } from '@testing-library/react'
|
|
2
2
|
import * as React from 'react'
|
|
3
3
|
|
|
4
|
-
import {
|
|
4
|
+
import { CopyButton, DefaultRenderer, chunkArray } from '../Explorer'
|
|
5
5
|
import { displayValue } from '../utils'
|
|
6
6
|
|
|
7
7
|
describe('Explorer', () => {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import * as React from 'react'
|
|
2
|
-
import { fireEvent, screen, waitFor
|
|
2
|
+
import { act, fireEvent, screen, waitFor } from '@testing-library/react'
|
|
3
3
|
import { ErrorBoundary } from 'react-error-boundary'
|
|
4
4
|
import '@testing-library/jest-dom'
|
|
5
|
-
import type { QueryClient } from '@tanstack/react-query'
|
|
6
5
|
import { useQuery } from '@tanstack/react-query'
|
|
6
|
+
import UserEvent from '@testing-library/user-event'
|
|
7
7
|
import { defaultPanelSize, sortFns } from '../utils'
|
|
8
8
|
import {
|
|
9
|
+
createQueryClient,
|
|
9
10
|
getByTextContent,
|
|
10
11
|
renderWithClient,
|
|
11
12
|
sleep,
|
|
12
|
-
createQueryClient,
|
|
13
13
|
} from './utils'
|
|
14
|
-
import
|
|
14
|
+
import type { QueryClient } from '@tanstack/react-query'
|
|
15
15
|
|
|
16
16
|
// TODO: This should be removed with the types for react-error-boundary get updated.
|
|
17
17
|
declare module 'react-error-boundary' {
|
package/src/__tests__/utils.tsx
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { type RenderOptions, render } from '@testing-library/react'
|
|
2
2
|
import * as React from 'react'
|
|
3
|
-
import { ReactQueryDevtools } from '../devtools'
|
|
4
|
-
|
|
5
3
|
import {
|
|
4
|
+
QueryCache,
|
|
6
5
|
QueryClient,
|
|
7
6
|
QueryClientProvider,
|
|
8
|
-
QueryCache,
|
|
9
7
|
} from '@tanstack/react-query'
|
|
8
|
+
import { ReactQueryDevtools } from '../devtools'
|
|
10
9
|
|
|
11
10
|
export function renderWithClient(
|
|
12
11
|
client: QueryClient,
|
package/src/devtools.tsx
CHANGED
|
@@ -1,48 +1,48 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
import * as React from 'react'
|
|
3
|
-
import { useSyncExternalStore } from './useSyncExternalStore'
|
|
4
|
-
import type {
|
|
5
|
-
QueryCache,
|
|
6
|
-
QueryClient,
|
|
7
|
-
QueryKey as QueryKeyType,
|
|
8
|
-
ContextOptions,
|
|
9
|
-
Query,
|
|
10
|
-
} from '@tanstack/react-query'
|
|
11
3
|
import {
|
|
12
|
-
useQueryClient,
|
|
13
|
-
onlineManager,
|
|
14
4
|
notifyManager,
|
|
5
|
+
onlineManager,
|
|
6
|
+
useQueryClient,
|
|
15
7
|
} from '@tanstack/react-query'
|
|
16
8
|
import { rankItem } from '@tanstack/match-sorter-utils'
|
|
9
|
+
import { useMemo } from 'react'
|
|
10
|
+
import { useSyncExternalStore } from './useSyncExternalStore'
|
|
17
11
|
import useLocalStorage from './useLocalStorage'
|
|
18
12
|
import {
|
|
13
|
+
defaultPanelSize,
|
|
14
|
+
displayValue,
|
|
15
|
+
getResizeHandleStyle,
|
|
16
|
+
getSidePanelStyle,
|
|
17
|
+
getSidedProp,
|
|
19
18
|
isVerticalSide,
|
|
19
|
+
minPanelSize,
|
|
20
20
|
sortFns,
|
|
21
21
|
useIsMounted,
|
|
22
|
-
getSidePanelStyle,
|
|
23
|
-
minPanelSize,
|
|
24
|
-
getResizeHandleStyle,
|
|
25
|
-
getSidedProp,
|
|
26
|
-
defaultPanelSize,
|
|
27
|
-
displayValue,
|
|
28
22
|
} from './utils'
|
|
29
|
-
import type { Corner, Side } from './utils'
|
|
30
23
|
import {
|
|
31
|
-
|
|
32
|
-
QueryKeys,
|
|
33
|
-
QueryKey,
|
|
24
|
+
ActiveQueryPanel,
|
|
34
25
|
Button,
|
|
35
26
|
Code,
|
|
36
27
|
Input,
|
|
28
|
+
Panel,
|
|
29
|
+
QueryKey,
|
|
30
|
+
QueryKeys,
|
|
37
31
|
Select,
|
|
38
|
-
ActiveQueryPanel,
|
|
39
32
|
} from './styledComponents'
|
|
40
33
|
import ScreenReader from './screenreader'
|
|
41
34
|
import { ThemeProvider, defaultTheme as theme } from './theme'
|
|
42
|
-
import {
|
|
35
|
+
import { getQueryStatusColor, getQueryStatusLabel } from './utils'
|
|
43
36
|
import Explorer from './Explorer'
|
|
44
37
|
import Logo from './Logo'
|
|
45
|
-
import {
|
|
38
|
+
import type { Corner, Side } from './utils'
|
|
39
|
+
import type {
|
|
40
|
+
ContextOptions,
|
|
41
|
+
Query,
|
|
42
|
+
QueryCache,
|
|
43
|
+
QueryClient,
|
|
44
|
+
QueryKey as QueryKeyType,
|
|
45
|
+
} from '@tanstack/react-query'
|
|
46
46
|
|
|
47
47
|
export interface DevToolsErrorType {
|
|
48
48
|
/**
|
package/src/utils.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as React from 'react'
|
|
2
|
-
import type { Query } from '@tanstack/react-query'
|
|
3
2
|
import SuperJSON from 'superjson'
|
|
4
3
|
|
|
5
|
-
import type { Theme } from './theme'
|
|
6
4
|
import { useTheme } from './theme'
|
|
7
5
|
import useMediaQuery from './useMediaQuery'
|
|
6
|
+
import type { Theme } from './theme'
|
|
7
|
+
import type { Query } from '@tanstack/react-query'
|
|
8
8
|
|
|
9
9
|
type StyledComponent<T> = T extends 'button'
|
|
10
10
|
? React.DetailedHTMLProps<
|