@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
|
}
|
package/dist/createMutation.js
CHANGED
package/dist/createQueries.js
CHANGED
|
@@ -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-
|
|
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.
|
|
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.
|
|
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>
|
package/src/createMutation.ts
CHANGED
package/src/createQueries.ts
CHANGED
|
@@ -253,7 +253,7 @@ export function createQueries<
|
|
|
253
253
|
|
|
254
254
|
const { subscribe } = derived(
|
|
255
255
|
[result, defaultedQueriesStore],
|
|
256
|
-
// @ts-
|
|
256
|
+
// @ts-expect-error svelte-check thinks this is unused
|
|
257
257
|
([$result, $defaultedQueriesStore]) => {
|
|
258
258
|
const [rawResult, combineResult, trackResult] =
|
|
259
259
|
observer.getOptimisticResult(
|