Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@tanstack/query-persist-client-core

Package Overview
Dependencies
Maintainers
1
Versions
253
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tanstack/query-persist-client-core - npm Package Compare versions

Comparing version 5.0.0-alpha.3 to 5.0.0-alpha.5

6

package.json
{
"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(),
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc