Skip to content

Commit dc1879b

Browse files
Merge branch 'main' into fix/duplicate-readonly-mutationkey
2 parents f0b06ec + a7ff29b commit dc1879b

File tree

15 files changed

+106
-11
lines changed

15 files changed

+106
-11
lines changed

examples/solid/astro/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"@astrojs/tailwind": "^6.0.2",
1717
"@astrojs/vercel": "^8.1.3",
1818
"@tanstack/solid-query": "^5.90.4",
19-
"@tanstack/solid-query-devtools": "^5.90.3",
19+
"@tanstack/solid-query-devtools": "^5.90.4",
2020
"astro": "^5.5.6",
2121
"solid-js": "^1.9.7",
2222
"tailwindcss": "^3.4.7",

examples/solid/basic-graphql-request/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
},
1010
"dependencies": {
1111
"@tanstack/solid-query": "^5.90.4",
12-
"@tanstack/solid-query-devtools": "^5.90.3",
12+
"@tanstack/solid-query-devtools": "^5.90.4",
1313
"graphql": "^16.9.0",
1414
"graphql-request": "^7.1.2",
1515
"solid-js": "^1.9.7"

examples/solid/basic/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
},
1010
"dependencies": {
1111
"@tanstack/solid-query": "^5.90.4",
12-
"@tanstack/solid-query-devtools": "^5.90.3",
12+
"@tanstack/solid-query-devtools": "^5.90.4",
1313
"solid-js": "^1.9.7"
1414
},
1515
"devDependencies": {

examples/solid/default-query-function/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
},
1010
"dependencies": {
1111
"@tanstack/solid-query": "^5.90.4",
12-
"@tanstack/solid-query-devtools": "^5.90.3",
12+
"@tanstack/solid-query-devtools": "^5.90.4",
1313
"solid-js": "^1.9.7"
1414
},
1515
"devDependencies": {

examples/solid/simple/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
},
1010
"dependencies": {
1111
"@tanstack/solid-query": "^5.90.4",
12-
"@tanstack/solid-query-devtools": "^5.90.3",
12+
"@tanstack/solid-query-devtools": "^5.90.4",
1313
"solid-js": "^1.9.7"
1414
},
1515
"devDependencies": {

examples/solid/solid-start-streaming/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"@solidjs/router": "^0.15.3",
1414
"@solidjs/start": "^1.1.3",
1515
"@tanstack/solid-query": "^5.90.4",
16-
"@tanstack/solid-query-devtools": "^5.90.3",
16+
"@tanstack/solid-query-devtools": "^5.90.4",
1717
"solid-js": "^1.9.7",
1818
"vinxi": "^0.5.3"
1919
},
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# @tanstack/solid-query-devtools
2+
3+
## 5.90.4
4+
5+
### Patch Changes
6+
7+
- Fixed client prop not working on SolidQueryDevtools and SolidQueryDevtoolsPanel ([#9763](https://github.com/TanStack/query/pull/9763))

packages/solid-query-devtools/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tanstack/solid-query-devtools",
3-
"version": "5.90.3",
3+
"version": "5.90.4",
44
"description": "Developer tools to interact with and visualize the TanStack/solid-query Query cache",
55
"author": "tannerlinsley",
66
"license": "MIT",
@@ -28,6 +28,8 @@
2828
"test:types:ts56": "node ../../node_modules/typescript56/lib/tsc.js --build",
2929
"test:types:ts57": "node ../../node_modules/typescript57/lib/tsc.js --build",
3030
"test:build": "publint --strict && attw --pack",
31+
"test:lib": "vitest --retry=3",
32+
"test:lib:dev": "pnpm run test:lib --watch",
3133
"build": "tsup --tsconfig tsconfig.prod.json",
3234
"build:dev": "tsup --watch"
3335
},
@@ -64,6 +66,7 @@
6466
"@tanstack/query-devtools": "workspace:*"
6567
},
6668
"devDependencies": {
69+
"@solidjs/testing-library": "^0.8.10",
6770
"@tanstack/solid-query": "workspace:*",
6871
"npm-run-all2": "^5.0.0",
6972
"solid-js": "^1.9.7",
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
import { describe, expect, it } from 'vitest'
2+
import { render } from '@solidjs/testing-library'
3+
import { QueryClient, QueryClientProvider } from '@tanstack/solid-query'
4+
import SolidQueryDevtools from '../devtools'
5+
6+
describe('SolidQueryDevtools', () => {
7+
it('should throw an error if no query client has been set', () => {
8+
expect(() => render(() => <SolidQueryDevtools />)).toThrow(
9+
'No QueryClient set, use QueryClientProvider to set one',
10+
)
11+
})
12+
13+
it('should not throw an error if query client is provided via context', () => {
14+
const queryClient = new QueryClient()
15+
16+
expect(() =>
17+
render(() => (
18+
<QueryClientProvider client={queryClient}>
19+
<SolidQueryDevtools />
20+
</QueryClientProvider>
21+
)),
22+
).not.toThrow()
23+
})
24+
25+
it('should not throw an error if query client is provided via props', () => {
26+
const queryClient = new QueryClient()
27+
28+
expect(() =>
29+
render(() => <SolidQueryDevtools client={queryClient} />),
30+
).not.toThrow()
31+
})
32+
})
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
import { describe, expect, it } from 'vitest'
2+
import { render } from '@solidjs/testing-library'
3+
import { QueryClient, QueryClientProvider } from '@tanstack/solid-query'
4+
import SolidQueryDevtoolsPanel from '../devtoolsPanel'
5+
6+
describe('SolidQueryDevtoolsPanel', () => {
7+
it('should throw an error if no query client has been set', () => {
8+
expect(() => render(() => <SolidQueryDevtoolsPanel />)).toThrow(
9+
'No QueryClient set, use QueryClientProvider to set one',
10+
)
11+
})
12+
13+
it('should not throw an error if query client is provided via context', () => {
14+
const queryClient = new QueryClient()
15+
16+
expect(() =>
17+
render(() => (
18+
<QueryClientProvider client={queryClient}>
19+
<SolidQueryDevtoolsPanel />
20+
</QueryClientProvider>
21+
)),
22+
).not.toThrow()
23+
})
24+
25+
it('should not throw an error if query client is provided via props', () => {
26+
const queryClient = new QueryClient()
27+
28+
expect(() =>
29+
render(() => <SolidQueryDevtoolsPanel client={queryClient} />),
30+
).not.toThrow()
31+
})
32+
})

0 commit comments

Comments
 (0)