@tanstack/query-persist-client-core
Advanced tools
Comparing version 5.0.0-alpha.3 to 5.0.0-alpha.5
{ | ||
"name": "@tanstack/query-persist-client-core", | ||
"version": "5.0.0-alpha.3", | ||
"version": "5.0.0-alpha.5", | ||
"description": "Set of utilities for interacting with persisters, which can save your queryClient for later use", | ||
@@ -31,3 +31,3 @@ "author": "tannerlinsley", | ||
"dependencies": { | ||
"@tanstack/query-core": "5.0.0-alpha.3" | ||
"@tanstack/query-core": "5.0.0-alpha.5" | ||
}, | ||
@@ -38,3 +38,3 @@ "scripts": { | ||
"test:types": "tsc", | ||
"test:lib": "jest --config ./jest.config.ts", | ||
"test:lib": "vitest run --coverage", | ||
"test:lib:dev": "pnpm run test:lib --watch", | ||
@@ -41,0 +41,0 @@ "build:types": "tsc --build" |
@@ -8,2 +8,3 @@ import { | ||
import { QueriesObserver } from '@tanstack/query-core' | ||
import { vi } from 'vitest' | ||
@@ -46,5 +47,5 @@ describe('persistQueryClientSubscribe', () => { | ||
const queryKey = ['test'] | ||
const queryFn = jest.fn().mockReturnValue(1) | ||
const queryFn = vi.fn().mockReturnValue(1) | ||
const observer = new QueriesObserver(queryClient, [{ queryKey, queryFn }]) | ||
const unsubscribeObserver = observer.subscribe(jest.fn()) | ||
const unsubscribeObserver = observer.subscribe(vi.fn()) | ||
observer.getObservers()[0]?.setOptions({ refetchOnWindowFocus: false }) | ||
@@ -51,0 +52,0 @@ unsubscribeObserver() |
@@ -7,2 +7,3 @@ import type { QueryClientConfig } from '@tanstack/query-core' | ||
} from '@tanstack/query-persist-client-core' | ||
import { vi } from 'vitest' | ||
@@ -38,6 +39,6 @@ export function createQueryClient(config?: QueryClientConfig): QueryClient { | ||
return { | ||
persistClient: jest.fn(), | ||
restoreClient: jest.fn(), | ||
removeClient: jest.fn(), | ||
persistClient: vi.fn(), | ||
restoreClient: vi.fn(), | ||
removeClient: vi.fn(), | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
85747
897
+ Added@tanstack/query-core@5.0.0-alpha.5(transitive)
- Removed@tanstack/query-core@5.0.0-alpha.3(transitive)