@tanstack/svelte-query 5.0.0-alpha.38 → 5.0.0-alpha.39
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,6 +1,6 @@
|
|
|
1
|
+
import { derived, get, readable, writable } from 'svelte/store';
|
|
1
2
|
import { notifyManager } from '@tanstack/query-core';
|
|
2
3
|
import { useQueryClient } from './useQueryClient';
|
|
3
|
-
import { derived, get, readable, writable } from 'svelte/store';
|
|
4
4
|
import { isWritable } from './utils';
|
|
5
5
|
export function createBaseQuery(options, Observer, queryClient) {
|
|
6
6
|
const client = useQueryClient(queryClient);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/svelte-query",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.39",
|
|
4
4
|
"description": "Primitives for managing, caching and syncing asynchronous and remote data in Svelte",
|
|
5
5
|
"author": "Lachlan Collins",
|
|
6
6
|
"license": "MIT",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"jsdom": "^22.0.0",
|
|
38
38
|
"svelte": "^3.54.0",
|
|
39
39
|
"svelte-check": "^3.3.2",
|
|
40
|
-
"tslib": "^2.5.
|
|
40
|
+
"tslib": "^2.5.2",
|
|
41
41
|
"typescript": "^5.0.4",
|
|
42
42
|
"vite": "^4.2.0"
|
|
43
43
|
},
|
package/src/createBaseQuery.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { derived, get, readable, writable } from 'svelte/store'
|
|
2
2
|
import { notifyManager } from '@tanstack/query-core'
|
|
3
|
+
import type { QueryClient, QueryKey, QueryObserver } from '@tanstack/query-core'
|
|
3
4
|
import type { CreateBaseQueryOptions, CreateBaseQueryResult } from './types'
|
|
4
5
|
import { useQueryClient } from './useQueryClient'
|
|
5
|
-
import { derived, get, readable, writable } from 'svelte/store'
|
|
6
6
|
import { isWritable } from './utils'
|
|
7
7
|
|
|
8
8
|
export function createBaseQuery<
|
package/src/createQueries.ts
CHANGED
|
@@ -8,10 +8,8 @@ import type {
|
|
|
8
8
|
QueriesObserverOptions,
|
|
9
9
|
QueryObserverOptions,
|
|
10
10
|
} from '@tanstack/query-core'
|
|
11
|
-
|
|
12
11
|
import { notifyManager, QueriesObserver } from '@tanstack/query-core'
|
|
13
12
|
import { derived, get, readable, writable, type Readable } from 'svelte/store'
|
|
14
|
-
|
|
15
13
|
import type { WritableOrVal } from './types'
|
|
16
14
|
import { useQueryClient } from './useQueryClient'
|
|
17
15
|
import { isWritable } from './utils'
|