@tanstack/svelte-query 5.18.0 → 5.20.1

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.
@@ -1,7 +1,5 @@
1
1
  import { InfiniteQueryObserver } from '@tanstack/query-core';
2
2
  import { createBaseQuery } from './createBaseQuery';
3
3
  export function createInfiniteQuery(options, queryClient) {
4
- return createBaseQuery(options,
5
- // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
6
- InfiniteQueryObserver, queryClient);
4
+ return createBaseQuery(options, InfiniteQueryObserver, queryClient);
7
5
  }
@@ -23,5 +23,4 @@ export function createMutation(options, queryClient) {
23
23
  }));
24
24
  return { subscribe };
25
25
  }
26
- // eslint-disable-next-line @typescript-eslint/no-empty-function
27
26
  function noop() { }
@@ -30,7 +30,7 @@ export function createQueries({ queries, ...options }, queryClient) {
30
30
  return () => unsubscribe();
31
31
  });
32
32
  const { subscribe } = derived([result, defaultedQueriesStore],
33
- // @ts-ignore svelte-check thinks this is unused
33
+ // @ts-expect-error svelte-check thinks this is unused
34
34
  ([$result, $defaultedQueriesStore]) => {
35
35
  const [rawResult, combineResult, trackResult] = observer.getOptimisticResult($defaultedQueriesStore, options.combine);
36
36
  $result = rawResult;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/svelte-query",
3
- "version": "5.18.0",
3
+ "version": "5.20.1",
4
4
  "description": "Primitives for managing, caching and syncing asynchronous and remote data in Svelte",
5
5
  "author": "Lachlan Collins",
6
6
  "license": "MIT",
@@ -33,7 +33,7 @@
33
33
  "!src/__tests__"
34
34
  ],
35
35
  "dependencies": {
36
- "@tanstack/query-core": "5.18.0"
36
+ "@tanstack/query-core": "5.20.1"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@sveltejs/package": "^2.2.4",
@@ -34,7 +34,6 @@ export function createInfiniteQuery<
34
34
  ): CreateInfiniteQueryResult<TData, TError> {
35
35
  return createBaseQuery(
36
36
  options,
37
- // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
38
37
  InfiniteQueryObserver as typeof QueryObserver,
39
38
  queryClient,
40
39
  ) as CreateInfiniteQueryResult<TData, TError>
@@ -48,5 +48,4 @@ export function createMutation<
48
48
  return { subscribe }
49
49
  }
50
50
 
51
- // eslint-disable-next-line @typescript-eslint/no-empty-function
52
51
  function noop() {}
@@ -253,7 +253,7 @@ export function createQueries<
253
253
 
254
254
  const { subscribe } = derived(
255
255
  [result, defaultedQueriesStore],
256
- // @ts-ignore svelte-check thinks this is unused
256
+ // @ts-expect-error svelte-check thinks this is unused
257
257
  ([$result, $defaultedQueriesStore]) => {
258
258
  const [rawResult, combineResult, trackResult] =
259
259
  observer.getOptimisticResult(