@tanstack/svelte-query 5.52.0 → 5.52.3

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,2 +1,2 @@
1
- import { type HydrateOptions, type QueryClient } from '@tanstack/query-core';
1
+ import type { HydrateOptions, QueryClient } from '@tanstack/query-core';
2
2
  export declare function useHydrate(state?: unknown, options?: HydrateOptions, queryClient?: QueryClient): void;
@@ -1,4 +1,4 @@
1
- import { hydrate, } from '@tanstack/query-core';
1
+ import { hydrate } from '@tanstack/query-core';
2
2
  import { useQueryClient } from './useQueryClient.js';
3
3
  export function useHydrate(state, options, queryClient) {
4
4
  const client = useQueryClient(queryClient);
@@ -1,4 +1,4 @@
1
1
  /// <reference types="svelte" />
2
- import { type QueryClient, type QueryFilters } from '@tanstack/query-core';
3
2
  import type { Readable } from 'svelte/store';
3
+ import type { QueryClient, QueryFilters } from '@tanstack/query-core';
4
4
  export declare function useIsFetching(filters?: QueryFilters, queryClient?: QueryClient): Readable<number>;
@@ -1,4 +1,4 @@
1
- import { notifyManager, } from '@tanstack/query-core';
1
+ import { notifyManager } from '@tanstack/query-core';
2
2
  import { readable } from 'svelte/store';
3
3
  import { useQueryClient } from './useQueryClient.js';
4
4
  export function useIsFetching(filters, queryClient) {
@@ -1,4 +1,4 @@
1
1
  /// <reference types="svelte" />
2
- import { type MutationFilters, type QueryClient } from '@tanstack/query-core';
3
2
  import type { Readable } from 'svelte/store';
3
+ import type { MutationFilters, QueryClient } from '@tanstack/query-core';
4
4
  export declare function useIsMutating(filters?: MutationFilters, queryClient?: QueryClient): Readable<number>;
@@ -1,4 +1,4 @@
1
- import { notifyManager, } from '@tanstack/query-core';
1
+ import { notifyManager } from '@tanstack/query-core';
2
2
  import { readable } from 'svelte/store';
3
3
  import { useQueryClient } from './useQueryClient.js';
4
4
  export function useIsMutating(filters, queryClient) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/svelte-query",
3
- "version": "5.52.0",
3
+ "version": "5.52.3",
4
4
  "description": "Primitives for managing, caching and syncing asynchronous and remote data in Svelte",
5
5
  "author": "Lachlan Collins",
6
6
  "license": "MIT",
@@ -32,7 +32,7 @@
32
32
  "src"
33
33
  ],
34
34
  "dependencies": {
35
- "@tanstack/query-core": "5.52.0"
35
+ "@tanstack/query-core": "5.52.3"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@sveltejs/package": "^2.3.2",
package/src/useHydrate.ts CHANGED
@@ -1,9 +1,6 @@
1
- import {
2
- type HydrateOptions,
3
- type QueryClient,
4
- hydrate,
5
- } from '@tanstack/query-core'
1
+ import { hydrate } from '@tanstack/query-core'
6
2
  import { useQueryClient } from './useQueryClient.js'
3
+ import type { HydrateOptions, QueryClient } from '@tanstack/query-core'
7
4
 
8
5
  export function useHydrate(
9
6
  state?: unknown,
@@ -1,11 +1,8 @@
1
- import {
2
- type QueryClient,
3
- type QueryFilters,
4
- notifyManager,
5
- } from '@tanstack/query-core'
1
+ import { notifyManager } from '@tanstack/query-core'
6
2
  import { readable } from 'svelte/store'
7
3
  import { useQueryClient } from './useQueryClient.js'
8
4
  import type { Readable } from 'svelte/store'
5
+ import type { QueryClient, QueryFilters } from '@tanstack/query-core'
9
6
 
10
7
  export function useIsFetching(
11
8
  filters?: QueryFilters,
@@ -1,11 +1,8 @@
1
- import {
2
- type MutationFilters,
3
- type QueryClient,
4
- notifyManager,
5
- } from '@tanstack/query-core'
1
+ import { notifyManager } from '@tanstack/query-core'
6
2
  import { readable } from 'svelte/store'
7
3
  import { useQueryClient } from './useQueryClient.js'
8
4
  import type { Readable } from 'svelte/store'
5
+ import type { MutationFilters, QueryClient } from '@tanstack/query-core'
9
6
 
10
7
  export function useIsMutating(
11
8
  filters?: MutationFilters,