@tanstack/svelte-query-persist-client 5.28.4 → 5.28.8

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,11 +1,11 @@
1
1
  import { SvelteComponentTyped } from "svelte";
2
2
  import type { PersistQueryClientOptions } from '@tanstack/query-persist-client-core';
3
- import type { QueryClient } from '@tanstack/svelte-query';
3
+ import type { OmitKeyof, QueryClient } from '@tanstack/svelte-query';
4
4
  declare const __propDef: {
5
5
  props: {
6
6
  client: QueryClient;
7
7
  onSuccess?: (() => Promise<unknown> | unknown) | undefined;
8
- persistOptions: Omit<PersistQueryClientOptions, 'queryClient'>;
8
+ persistOptions: OmitKeyof<PersistQueryClientOptions, 'queryClient'>;
9
9
  };
10
10
  events: {
11
11
  [evt: string]: CustomEvent<any>;
@@ -1,11 +1,11 @@
1
1
  import { SvelteComponentTyped } from "svelte";
2
- import type { QueryClient } from '@tanstack/svelte-query';
2
+ import type { OmitKeyof, QueryClient } from '@tanstack/svelte-query';
3
3
  import type { PersistQueryClientOptions } from '@tanstack/query-persist-client-core';
4
4
  import type { Writable } from 'svelte/store';
5
5
  declare const __propDef: {
6
6
  props: {
7
7
  queryClient: QueryClient;
8
- persistOptions: Omit<PersistQueryClientOptions, 'queryClient'>;
8
+ persistOptions: OmitKeyof<PersistQueryClientOptions, 'queryClient'>;
9
9
  key: Array<string>;
10
10
  onSuccess: () => Promise<void>;
11
11
  states: Writable<Array<string>>;
@@ -1,12 +1,12 @@
1
1
  import { SvelteComponentTyped } from "svelte";
2
- import type { QueryClient } from '@tanstack/svelte-query';
2
+ import type { OmitKeyof, QueryClient } from '@tanstack/svelte-query';
3
3
  import type { PersistQueryClientOptions } from '@tanstack/query-persist-client-core';
4
4
  import type { Writable } from 'svelte/store';
5
5
  import type { StatusResult } from '../utils';
6
6
  declare const __propDef: {
7
7
  props: {
8
8
  queryClient: QueryClient;
9
- persistOptions: Omit<PersistQueryClientOptions, 'queryClient'>;
9
+ persistOptions: OmitKeyof<PersistQueryClientOptions, 'queryClient'>;
10
10
  key: Array<string>;
11
11
  states: Writable<Array<StatusResult<string>>>;
12
12
  fetched: Writable<boolean>;
@@ -1,12 +1,12 @@
1
1
  import { SvelteComponentTyped } from "svelte";
2
- import type { QueryClient } from '@tanstack/svelte-query';
2
+ import type { OmitKeyof, QueryClient } from '@tanstack/svelte-query';
3
3
  import type { PersistQueryClientOptions } from '@tanstack/query-persist-client-core';
4
4
  import type { Writable } from 'svelte/store';
5
5
  import type { StatusResult } from '../utils';
6
6
  declare const __propDef: {
7
7
  props: {
8
8
  queryClient: QueryClient;
9
- persistOptions: Omit<PersistQueryClientOptions, 'queryClient'>;
9
+ persistOptions: OmitKeyof<PersistQueryClientOptions, 'queryClient'>;
10
10
  key: Array<string>;
11
11
  states: Writable<Array<StatusResult<string>>>;
12
12
  };
@@ -1,10 +1,10 @@
1
1
  import { SvelteComponentTyped } from "svelte";
2
- import type { QueryClient } from '@tanstack/svelte-query';
2
+ import type { OmitKeyof, QueryClient } from '@tanstack/svelte-query';
3
3
  import type { PersistQueryClientOptions } from '@tanstack/query-persist-client-core';
4
4
  declare const __propDef: {
5
5
  props: {
6
6
  queryClient: QueryClient;
7
- persistOptions: Omit<PersistQueryClientOptions, 'queryClient'>;
7
+ persistOptions: OmitKeyof<PersistQueryClientOptions, 'queryClient'>;
8
8
  key: Array<string>;
9
9
  onSuccess: () => void;
10
10
  };
@@ -1,10 +1,10 @@
1
1
  import { SvelteComponentTyped } from "svelte";
2
- import type { QueryClient } from '@tanstack/svelte-query';
2
+ import type { OmitKeyof, QueryClient } from '@tanstack/svelte-query';
3
3
  import type { PersistQueryClientOptions } from '@tanstack/query-persist-client-core';
4
4
  declare const __propDef: {
5
5
  props: {
6
6
  queryClient: QueryClient;
7
- persistOptions: Omit<PersistQueryClientOptions, 'queryClient'>;
7
+ persistOptions: OmitKeyof<PersistQueryClientOptions, 'queryClient'>;
8
8
  key: Array<string>;
9
9
  };
10
10
  events: {
@@ -1,12 +1,12 @@
1
1
  import { SvelteComponentTyped } from "svelte";
2
- import type { QueryClient } from '@tanstack/svelte-query';
2
+ import type { OmitKeyof, QueryClient } from '@tanstack/svelte-query';
3
3
  import type { PersistQueryClientOptions } from '@tanstack/query-persist-client-core';
4
4
  import type { Writable } from 'svelte/store';
5
5
  import type { StatusResult } from '../utils';
6
6
  declare const __propDef: {
7
7
  props: {
8
8
  queryClient: QueryClient;
9
- persistOptions: Omit<PersistQueryClientOptions, 'queryClient'>;
9
+ persistOptions: OmitKeyof<PersistQueryClientOptions, 'queryClient'>;
10
10
  key: Array<string>;
11
11
  states: Writable<Array<StatusResult<string>>>;
12
12
  };
@@ -1,12 +1,12 @@
1
1
  import { SvelteComponentTyped } from "svelte";
2
- import type { QueryClient } from '@tanstack/svelte-query';
2
+ import type { OmitKeyof, QueryClient } from '@tanstack/svelte-query';
3
3
  import type { PersistQueryClientOptions } from '@tanstack/query-persist-client-core';
4
4
  import type { Writable } from 'svelte/store';
5
5
  import type { StatusResult } from '../utils';
6
6
  declare const __propDef: {
7
7
  props: {
8
8
  queryClient: QueryClient;
9
- persistOptions: Omit<PersistQueryClientOptions, 'queryClient'>;
9
+ persistOptions: OmitKeyof<PersistQueryClientOptions, 'queryClient'>;
10
10
  key: Array<string>;
11
11
  states: Writable<Array<StatusResult<string>>>;
12
12
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/svelte-query-persist-client",
3
- "version": "5.28.4",
3
+ "version": "5.28.8",
4
4
  "description": "Svelte bindings to work with persisters in TanStack/svelte-query",
5
5
  "author": "Lachlan Collins",
6
6
  "license": "MIT",
@@ -27,7 +27,7 @@
27
27
  "src"
28
28
  ],
29
29
  "dependencies": {
30
- "@tanstack/query-persist-client-core": "5.28.4"
30
+ "@tanstack/query-persist-client-core": "5.28.8"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@sveltejs/package": "^2.2.6",
@@ -37,11 +37,11 @@
37
37
  "svelte": "^4.2.10",
38
38
  "svelte-check": "^3.6.4",
39
39
  "svelte-eslint-parser": "^0.33.1",
40
- "@tanstack/svelte-query": "5.28.4"
40
+ "@tanstack/svelte-query": "5.28.8"
41
41
  },
42
42
  "peerDependencies": {
43
43
  "svelte": "^3.54.0 || ^4.0.0 || ^5.0.0-next.0",
44
- "@tanstack/svelte-query": "^5.28.4"
44
+ "@tanstack/svelte-query": "^5.28.8"
45
45
  },
46
46
  "scripts": {
47
47
  "clean": "rimraf ./dist && rimraf ./coverage",
@@ -50,6 +50,7 @@
50
50
  "test:lib": "vitest",
51
51
  "test:lib:dev": "pnpm run test:lib --watch",
52
52
  "test:build": "publint --strict",
53
+ "test:attw": "attw --pack",
53
54
  "build": "svelte-package --input ./src --output ./dist"
54
55
  }
55
56
  }
@@ -7,11 +7,11 @@
7
7
  } from '@tanstack/svelte-query'
8
8
  import { writable } from 'svelte/store'
9
9
  import type { PersistQueryClientOptions } from '@tanstack/query-persist-client-core'
10
- import type { QueryClient } from '@tanstack/svelte-query'
10
+ import type { OmitKeyof, QueryClient } from '@tanstack/svelte-query'
11
11
 
12
12
  export let client: QueryClient
13
13
  export let onSuccess: () => Promise<unknown> | unknown = () => undefined
14
- export let persistOptions: Omit<PersistQueryClientOptions, 'queryClient'>
14
+ export let persistOptions: OmitKeyof<PersistQueryClientOptions, 'queryClient'>
15
15
 
16
16
  const isRestoring = writable(true)
17
17
  setIsRestoringContext(isRestoring)
@@ -1,12 +1,12 @@
1
1
  <script lang="ts">
2
2
  import PersistQueryClientProvider from '../../PersistQueryClientProvider.svelte'
3
3
  import AwaitOnSuccess from './AwaitOnSuccess.svelte'
4
- import type { QueryClient } from '@tanstack/svelte-query'
4
+ import type { OmitKeyof, QueryClient } from '@tanstack/svelte-query'
5
5
  import type { PersistQueryClientOptions } from '@tanstack/query-persist-client-core'
6
6
  import type { Writable } from 'svelte/store'
7
7
 
8
8
  export let queryClient: QueryClient
9
- export let persistOptions: Omit<PersistQueryClientOptions, 'queryClient'>
9
+ export let persistOptions: OmitKeyof<PersistQueryClientOptions, 'queryClient'>
10
10
  export let key: Array<string>
11
11
  export let onSuccess: () => Promise<void>
12
12
  export let states: Writable<Array<string>>
@@ -1,13 +1,13 @@
1
1
  <script lang="ts">
2
2
  import PersistQueryClientProvider from '../../PersistQueryClientProvider.svelte'
3
3
  import FreshData from './FreshData.svelte'
4
- import type { QueryClient } from '@tanstack/svelte-query'
4
+ import type { OmitKeyof, QueryClient } from '@tanstack/svelte-query'
5
5
  import type { PersistQueryClientOptions } from '@tanstack/query-persist-client-core'
6
6
  import type { Writable } from 'svelte/store'
7
7
  import type { StatusResult } from '../utils'
8
8
 
9
9
  export let queryClient: QueryClient
10
- export let persistOptions: Omit<PersistQueryClientOptions, 'queryClient'>
10
+ export let persistOptions: OmitKeyof<PersistQueryClientOptions, 'queryClient'>
11
11
  export let key: Array<string>
12
12
  export let states: Writable<Array<StatusResult<string>>>
13
13
  export let fetched: Writable<boolean>
@@ -1,13 +1,13 @@
1
1
  <script lang="ts">
2
2
  import PersistQueryClientProvider from '../../PersistQueryClientProvider.svelte'
3
3
  import InitialData from './InitialData.svelte'
4
- import type { QueryClient } from '@tanstack/svelte-query'
4
+ import type { OmitKeyof, QueryClient } from '@tanstack/svelte-query'
5
5
  import type { PersistQueryClientOptions } from '@tanstack/query-persist-client-core'
6
6
  import type { Writable } from 'svelte/store'
7
7
  import type { StatusResult } from '../utils'
8
8
 
9
9
  export let queryClient: QueryClient
10
- export let persistOptions: Omit<PersistQueryClientOptions, 'queryClient'>
10
+ export let persistOptions: OmitKeyof<PersistQueryClientOptions, 'queryClient'>
11
11
  export let key: Array<string>
12
12
  export let states: Writable<Array<StatusResult<string>>>
13
13
  </script>
@@ -1,11 +1,11 @@
1
1
  <script lang="ts">
2
2
  import PersistQueryClientProvider from '../../PersistQueryClientProvider.svelte'
3
3
  import OnSuccess from './OnSuccess.svelte'
4
- import type { QueryClient } from '@tanstack/svelte-query'
4
+ import type { OmitKeyof, QueryClient } from '@tanstack/svelte-query'
5
5
  import type { PersistQueryClientOptions } from '@tanstack/query-persist-client-core'
6
6
 
7
7
  export let queryClient: QueryClient
8
- export let persistOptions: Omit<PersistQueryClientOptions, 'queryClient'>
8
+ export let persistOptions: OmitKeyof<PersistQueryClientOptions, 'queryClient'>
9
9
  export let key: Array<string>
10
10
  export let onSuccess: () => void
11
11
  </script>
@@ -1,11 +1,11 @@
1
1
  <script lang="ts">
2
2
  import PersistQueryClientProvider from '../../PersistQueryClientProvider.svelte'
3
3
  import RemoveCache from './RemoveCache.svelte'
4
- import type { QueryClient } from '@tanstack/svelte-query'
4
+ import type { OmitKeyof, QueryClient } from '@tanstack/svelte-query'
5
5
  import type { PersistQueryClientOptions } from '@tanstack/query-persist-client-core'
6
6
 
7
7
  export let queryClient: QueryClient
8
- export let persistOptions: Omit<PersistQueryClientOptions, 'queryClient'>
8
+ export let persistOptions: OmitKeyof<PersistQueryClientOptions, 'queryClient'>
9
9
  export let key: Array<string>
10
10
  </script>
11
11
 
@@ -1,13 +1,13 @@
1
1
  <script lang="ts">
2
2
  import PersistQueryClientProvider from '../../PersistQueryClientProvider.svelte'
3
3
  import RestoreCache from './RestoreCache.svelte'
4
- import type { QueryClient } from '@tanstack/svelte-query'
4
+ import type { OmitKeyof, QueryClient } from '@tanstack/svelte-query'
5
5
  import type { PersistQueryClientOptions } from '@tanstack/query-persist-client-core'
6
6
  import type { Writable } from 'svelte/store'
7
7
  import type { StatusResult } from '../utils'
8
8
 
9
9
  export let queryClient: QueryClient
10
- export let persistOptions: Omit<PersistQueryClientOptions, 'queryClient'>
10
+ export let persistOptions: OmitKeyof<PersistQueryClientOptions, 'queryClient'>
11
11
  export let key: Array<string>
12
12
  export let states: Writable<Array<StatusResult<string>>>
13
13
  </script>
@@ -1,13 +1,13 @@
1
1
  <script lang="ts">
2
2
  import PersistQueryClientProvider from '../../PersistQueryClientProvider.svelte'
3
3
  import UseQueries from './UseQueries.svelte'
4
- import type { QueryClient } from '@tanstack/svelte-query'
4
+ import type { OmitKeyof, QueryClient } from '@tanstack/svelte-query'
5
5
  import type { PersistQueryClientOptions } from '@tanstack/query-persist-client-core'
6
6
  import type { Writable } from 'svelte/store'
7
7
  import type { StatusResult } from '../utils'
8
8
 
9
9
  export let queryClient: QueryClient
10
- export let persistOptions: Omit<PersistQueryClientOptions, 'queryClient'>
10
+ export let persistOptions: OmitKeyof<PersistQueryClientOptions, 'queryClient'>
11
11
  export let key: Array<string>
12
12
  export let states: Writable<Array<StatusResult<string>>>
13
13
  </script>