@suspensive/react-query-4 3.0.0-next.16 → 3.0.0-next.17

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@suspensive/react-query-4",
3
- "version": "3.0.0-next.16",
3
+ "version": "3.0.0-next.17",
4
4
  "description": "Suspensive interfaces for @tanstack/react-query@4",
5
5
  "keywords": [
6
6
  "suspensive",
@@ -40,8 +40,8 @@
40
40
  ],
41
41
  "devDependencies": {
42
42
  "@tanstack/react-query": "^4.36.1",
43
- "@types/react": "^19.0.4",
44
- "react": "^19.0.0",
43
+ "@types/react": "^19.1.0",
44
+ "react": "^19.1.0",
45
45
  "@suspensive/eslint-config": "0.0.0",
46
46
  "@suspensive/tsconfig": "0.0.0-development",
47
47
  "@suspensive/tsup": "0.0.0"
@@ -79,10 +79,8 @@ describe('infiniteQueryOptions', () => {
79
79
  ))()
80
80
  })
81
81
  it('should be used with usePrefetchInfiniteQuery', () => {
82
- // eslint-disable-next-line @typescript-eslint/no-invalid-void-type
83
- expectTypeOf(usePrefetchInfiniteQuery(infiniteQuery.options1())).toMatchTypeOf<void>()
84
- // eslint-disable-next-line @typescript-eslint/no-invalid-void-type
85
- expectTypeOf(usePrefetchInfiniteQuery({ ...infiniteQuery.options1() })).toMatchTypeOf<void>()
82
+ expectTypeOf(usePrefetchInfiniteQuery(infiniteQuery.options1())).toBeVoid()
83
+ expectTypeOf(usePrefetchInfiniteQuery({ ...infiniteQuery.options1() })).toBeVoid()
86
84
  })
87
85
  it('should be used with useQueryClient', async () => {
88
86
  const queryClient = useQueryClient()
@@ -103,10 +103,8 @@ describe('queryOptions', () => {
103
103
  expectTypeOf(query3.data).toEqualTypeOf<string>()
104
104
  })
105
105
  it('should be used with usePrefetchQuery', () => {
106
- // eslint-disable-next-line @typescript-eslint/no-invalid-void-type
107
- expectTypeOf(usePrefetchQuery(query.options1())).toMatchTypeOf<void>()
108
- // eslint-disable-next-line @typescript-eslint/no-invalid-void-type
109
- expectTypeOf(usePrefetchQuery({ ...query.options1() })).toMatchTypeOf<void>()
106
+ expectTypeOf(usePrefetchQuery(query.options1())).toBeVoid()
107
+ expectTypeOf(usePrefetchQuery({ ...query.options1() })).toBeVoid()
110
108
  })
111
109
  it('should be used with useQueryClient', async () => {
112
110
  const queryClient = useQueryClient()