@tanstack/svelte-query 5.60.6 → 5.61.4

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.
@@ -2,7 +2,7 @@ import { SvelteComponentTyped } from "svelte";
2
2
  import { QueryClient } from '@tanstack/query-core';
3
3
  declare const __propDef: {
4
4
  props: {
5
- client?: QueryClient | undefined;
5
+ client?: QueryClient;
6
6
  };
7
7
  events: {
8
8
  [evt: string]: CustomEvent<any>;
package/dist/context.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- /// <reference types="svelte" />
2
1
  import type { QueryClient } from '@tanstack/query-core';
3
2
  import type { Readable } from 'svelte/store';
4
3
  /** Retrieves a Client from Svelte's context */
@@ -1,4 +1,3 @@
1
- /// <reference types="svelte" />
2
1
  import type { Readable } from 'svelte/store';
3
2
  import type { StoreOrVal } from './types.js';
4
3
  import type { DefaultError, DefinedQueryObserverResult, OmitKeyof, QueriesPlaceholderDataFunction, QueryClient, QueryFunction, QueryKey, QueryObserverOptions, QueryObserverResult, ThrowOnError } from '@tanstack/query-core';
package/dist/types.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- /// <reference types="svelte" />
2
1
  import type { DefaultError, DefinedQueryObserverResult, InfiniteQueryObserverOptions, InfiniteQueryObserverResult, MutateFunction, Mutation, MutationFilters, MutationObserverOptions, MutationObserverResult, MutationState, OmitKeyof, Override, QueryKey, QueryObserverOptions, QueryObserverResult } from '@tanstack/query-core';
3
2
  import type { Readable } from 'svelte/store';
4
3
  /** Allows a type to be either the base object or a store of that object */
@@ -1,4 +1,3 @@
1
- /// <reference types="svelte" />
2
1
  import type { Readable } from 'svelte/store';
3
2
  import type { QueryClient, QueryFilters } from '@tanstack/query-core';
4
3
  export declare function useIsFetching(filters?: QueryFilters, queryClient?: QueryClient): Readable<number>;
@@ -1,4 +1,3 @@
1
- /// <reference types="svelte" />
2
1
  import type { Readable } from 'svelte/store';
3
2
  import type { MutationFilters, QueryClient } from '@tanstack/query-core';
4
3
  export declare function useIsMutating(filters?: MutationFilters, queryClient?: QueryClient): Readable<number>;
@@ -1,3 +1,2 @@
1
- /// <reference types="svelte" />
2
1
  import type { Readable } from 'svelte/store';
3
2
  export declare function useIsRestoring(): Readable<boolean>;
@@ -1,4 +1,3 @@
1
- /// <reference types="svelte" />
2
1
  import type { MutationState, QueryClient } from '@tanstack/query-core';
3
2
  import type { Readable } from 'svelte/store';
4
3
  import type { MutationStateOptions } from './types.js';
package/dist/utils.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- /// <reference types="svelte" />
2
1
  import type { Readable } from 'svelte/store';
3
2
  import type { StoreOrVal } from './types.js';
4
3
  export declare function isSvelteStore<T extends object>(obj: StoreOrVal<T>): obj is Readable<T>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/svelte-query",
3
- "version": "5.60.6",
3
+ "version": "5.61.4",
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,13 +33,13 @@
33
33
  "!src/__tests__"
34
34
  ],
35
35
  "dependencies": {
36
- "@tanstack/query-core": "5.60.6"
36
+ "@tanstack/query-core": "5.61.4"
37
37
  },
38
38
  "devDependencies": {
39
- "@sveltejs/package": "^2.3.2",
40
- "@sveltejs/vite-plugin-svelte": "^3.1.1",
41
- "@testing-library/svelte": "^5.2.1",
42
- "eslint-plugin-svelte": "^2.43.0",
39
+ "@sveltejs/package": "^2.3.7",
40
+ "@sveltejs/vite-plugin-svelte": "^3.1.2",
41
+ "@testing-library/svelte": "^5.2.6",
42
+ "eslint-plugin-svelte": "^2.46.0",
43
43
  "svelte": "^4.2.18",
44
44
  "svelte-check": "^4.0.0"
45
45
  },