@tanstack/svelte-query 5.37.0 → 5.37.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.
package/dist/context.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ /// <reference types="svelte" />
1
2
  import type { QueryClient } from '@tanstack/query-core';
2
3
  import type { Readable } from 'svelte/store';
3
4
  /** Retrieves a Client from Svelte's context */
@@ -1,3 +1,4 @@
1
+ /// <reference types="svelte" />
1
2
  import type { Readable } from 'svelte/store';
2
3
  import type { StoreOrVal } from './types';
3
4
  import type { DefaultError, OmitKeyof, QueriesPlaceholderDataFunction, QueryClient, QueryFunction, QueryKey, QueryObserverOptions, QueryObserverResult, SkipToken, ThrowOnError } from '@tanstack/query-core';
package/dist/types.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ /// <reference types="svelte" />
1
2
  import type { DefaultError, DefinedQueryObserverResult, InfiniteQueryObserverOptions, InfiniteQueryObserverResult, MutateFunction, MutationObserverOptions, MutationObserverResult, OmitKeyof, QueryKey, QueryObserverOptions, QueryObserverResult } from '@tanstack/query-core';
2
3
  import type { Readable } from 'svelte/store';
3
4
  /** Allows a type to be either the base object or a store of that object */
@@ -1,3 +1,4 @@
1
+ /// <reference types="svelte" />
1
2
  import { type QueryClient, type QueryFilters } from '@tanstack/query-core';
2
3
  import type { Readable } from 'svelte/store';
3
4
  export declare function useIsFetching(filters?: QueryFilters, queryClient?: QueryClient): Readable<number>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="svelte" />
1
2
  import { type MutationFilters, type QueryClient } from '@tanstack/query-core';
2
3
  import type { Readable } from 'svelte/store';
3
4
  export declare function useIsMutating(filters?: MutationFilters, queryClient?: QueryClient): Readable<number>;
@@ -1,2 +1,3 @@
1
+ /// <reference types="svelte" />
1
2
  import type { Readable } from 'svelte/store';
2
3
  export declare function useIsRestoring(): Readable<boolean>;
package/dist/utils.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ /// <reference types="svelte" />
1
2
  import type { Readable } from 'svelte/store';
2
3
  import type { StoreOrVal } from './types';
3
4
  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.37.0",
3
+ "version": "5.37.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",
@@ -36,25 +36,16 @@
36
36
  "@tanstack/query-core": "5.36.1"
37
37
  },
38
38
  "devDependencies": {
39
- "@sveltejs/package": "^2.2.6",
40
- "@sveltejs/vite-plugin-svelte": "^3.0.2",
41
- "@testing-library/svelte": "^4.1.0",
39
+ "@sveltejs/package": "^2.3.1",
40
+ "@sveltejs/vite-plugin-svelte": "^3.1.0",
41
+ "@testing-library/svelte": "^5.1.0",
42
42
  "eslint-plugin-svelte": "^2.39.0",
43
- "svelte": "^4.2.10",
44
- "svelte-check": "^3.6.4",
45
- "svelte-eslint-parser": "^0.33.1"
43
+ "svelte": "^4.2.17",
44
+ "svelte-check": "^3.7.1",
45
+ "svelte-eslint-parser": "^0.36.0"
46
46
  },
47
47
  "peerDependencies": {
48
48
  "svelte": "^3.54.0 || ^4.0.0 || ^5.0.0-next.0"
49
49
  },
50
- "scripts": {
51
- "clean": "rimraf ./dist && rimraf ./coverage",
52
- "test:types": "svelte-check --tsconfig ./tsconfig.json",
53
- "test:eslint": "eslint --ext .svelte,.ts ./src",
54
- "test:lib": "vitest",
55
- "test:lib:dev": "pnpm run test:lib --watch",
56
- "test:build": "publint --strict",
57
- "test:attw": "attw --pack",
58
- "build": "svelte-package --input ./src --output ./dist"
59
- }
50
+ "scripts": {}
60
51
  }