Socket
Socket
Sign inDemoInstall

@tanstack/vue-query

Package Overview
Dependencies
Maintainers
2
Versions
304
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tanstack/vue-query - npm Package Compare versions

Comparing version 5.35.1 to 5.35.2

build/legacy/useQuery-b4U30oDV.d.ts

2

build/legacy/index.d.ts

@@ -8,3 +8,3 @@ export * from '@tanstack/query-core';

export { MutationCache } from './mutationCache.js';
export { d as UseInfiniteQueryOptions, e as UseInfiniteQueryReturnType, c as UseQueryDefinedReturnType, U as UseQueryOptions, b as UseQueryReturnType, a as useInfiniteQuery, u as useQuery } from './useQuery-h0Cr-ata.js';
export { d as UseInfiniteQueryOptions, e as UseInfiniteQueryReturnType, c as UseQueryDefinedReturnType, U as UseQueryOptions, b as UseQueryReturnType, a as useInfiniteQuery, u as useQuery } from './useQuery-b4U30oDV.js';
export { UseQueriesOptions, UseQueriesResults, useQueries } from './useQueries.js';

@@ -11,0 +11,0 @@ export { UseMutationOptions, UseMutationReturnType, useMutation } from './useMutation.js';

import { DefaultError, QueryKey, DataTag } from '@tanstack/query-core';
import { f as UndefinedInitialQueryOptions, D as DefinedInitialQueryOptions } from './useQuery-h0Cr-ata.js';
import { f as UndefinedInitialQueryOptions, D as DefinedInitialQueryOptions } from './useQuery-b4U30oDV.js';
import 'vue-demi';

@@ -4,0 +4,0 @@ import './queryClient.js';

import 'vue-demi';
import '@tanstack/query-core';
import './queryClient.js';
export { g as UseBaseQueryReturnType, h as useBaseQuery } from './useQuery-h0Cr-ata.js';
export { g as UseBaseQueryReturnType, h as useBaseQuery } from './useQuery-b4U30oDV.js';
import './types.js';
import '@tanstack/query-core';
export { d as UseInfiniteQueryOptions, e as UseInfiniteQueryReturnType, a as useInfiniteQuery } from './useQuery-h0Cr-ata.js';
export { d as UseInfiniteQueryOptions, e as UseInfiniteQueryReturnType, a as useInfiniteQuery } from './useQuery-b4U30oDV.js';
import './types.js';
import './queryClient.js';
import 'vue-demi';
import { Ref } from 'vue-demi';
import { QueryObserverResult, QueryKey, QueriesPlaceholderDataFunction, QueryFunction, ThrowOnError, DefaultError, DefinedQueryObserverResult } from '@tanstack/query-core';
import { U as UseQueryOptions } from './useQuery-h0Cr-ata.js';
import { U as UseQueryOptions } from './useQuery-b4U30oDV.js';
import { QueryClient } from './queryClient.js';

@@ -5,0 +5,0 @@ import { MaybeRefDeep, DistributiveOmit, DeepUnwrapRef } from './types.js';

import '@tanstack/query-core';
export { D as DefinedInitialQueryOptions, f as UndefinedInitialQueryOptions, c as UseQueryDefinedReturnType, U as UseQueryOptions, b as UseQueryReturnType, u as useQuery } from './useQuery-h0Cr-ata.js';
export { D as DefinedInitialQueryOptions, f as UndefinedInitialQueryOptions, c as UseQueryDefinedReturnType, U as UseQueryOptions, b as UseQueryReturnType, u as useQuery } from './useQuery-b4U30oDV.js';
import './types.js';
import './queryClient.js';
import 'vue-demi';

@@ -8,3 +8,3 @@ export * from '@tanstack/query-core';

export { MutationCache } from './mutationCache.js';
export { d as UseInfiniteQueryOptions, e as UseInfiniteQueryReturnType, c as UseQueryDefinedReturnType, U as UseQueryOptions, b as UseQueryReturnType, a as useInfiniteQuery, u as useQuery } from './useQuery-h0Cr-ata.js';
export { d as UseInfiniteQueryOptions, e as UseInfiniteQueryReturnType, c as UseQueryDefinedReturnType, U as UseQueryOptions, b as UseQueryReturnType, a as useInfiniteQuery, u as useQuery } from './useQuery-b4U30oDV.js';
export { UseQueriesOptions, UseQueriesResults, useQueries } from './useQueries.js';

@@ -11,0 +11,0 @@ export { UseMutationOptions, UseMutationReturnType, useMutation } from './useMutation.js';

import { DefaultError, QueryKey, DataTag } from '@tanstack/query-core';
import { f as UndefinedInitialQueryOptions, D as DefinedInitialQueryOptions } from './useQuery-h0Cr-ata.js';
import { f as UndefinedInitialQueryOptions, D as DefinedInitialQueryOptions } from './useQuery-b4U30oDV.js';
import 'vue-demi';

@@ -4,0 +4,0 @@ import './queryClient.js';

import 'vue-demi';
import '@tanstack/query-core';
import './queryClient.js';
export { g as UseBaseQueryReturnType, h as useBaseQuery } from './useQuery-h0Cr-ata.js';
export { g as UseBaseQueryReturnType, h as useBaseQuery } from './useQuery-b4U30oDV.js';
import './types.js';
import '@tanstack/query-core';
export { d as UseInfiniteQueryOptions, e as UseInfiniteQueryReturnType, a as useInfiniteQuery } from './useQuery-h0Cr-ata.js';
export { d as UseInfiniteQueryOptions, e as UseInfiniteQueryReturnType, a as useInfiniteQuery } from './useQuery-b4U30oDV.js';
import './types.js';
import './queryClient.js';
import 'vue-demi';
import { Ref } from 'vue-demi';
import { QueryObserverResult, QueryKey, QueriesPlaceholderDataFunction, QueryFunction, ThrowOnError, DefaultError, DefinedQueryObserverResult } from '@tanstack/query-core';
import { U as UseQueryOptions } from './useQuery-h0Cr-ata.js';
import { U as UseQueryOptions } from './useQuery-b4U30oDV.js';
import { QueryClient } from './queryClient.js';

@@ -5,0 +5,0 @@ import { MaybeRefDeep, DistributiveOmit, DeepUnwrapRef } from './types.js';

import '@tanstack/query-core';
export { D as DefinedInitialQueryOptions, f as UndefinedInitialQueryOptions, c as UseQueryDefinedReturnType, U as UseQueryOptions, b as UseQueryReturnType, u as useQuery } from './useQuery-h0Cr-ata.js';
export { D as DefinedInitialQueryOptions, f as UndefinedInitialQueryOptions, c as UseQueryDefinedReturnType, U as UseQueryOptions, b as UseQueryReturnType, u as useQuery } from './useQuery-b4U30oDV.js';
import './types.js';
import './queryClient.js';
import 'vue-demi';
{
"name": "@tanstack/vue-query",
"version": "5.35.1",
"version": "5.35.2",
"description": "Hooks for managing, caching and syncing asynchronous and remote data in Vue",

@@ -5,0 +5,0 @@ "author": "Damian Osipiuk",

import { describe, it } from 'vitest'
import { reactive } from 'vue-demi'
import { reactive, ref } from 'vue-demi'
import { QueryClient } from '../queryClient'

@@ -151,2 +151,21 @@ import { queryOptions } from '../queryOptions'

})
it('should allow to be passed to QueryClient methods while containing ref in queryKey', () => {
doNotExecute(() => {
const options = queryOptions({
queryKey: ['key', ref(1), { nested: ref(2) }],
queryFn: () => Promise.resolve(5),
})
const queryClient = new QueryClient()
// Should not error
const data = queryClient.invalidateQueries(options)
// Should not error
const data2 = queryClient.fetchQuery(options)
const result: Expect<Equal<typeof data, Promise<void>>> = true
const result2: Expect<Equal<typeof data2, Promise<number>>> = true
return result || result2
})
})
})

@@ -32,35 +32,22 @@ import { InfiniteQueryObserver } from '@tanstack/query-core'

TPageParam
>]: Property extends
| 'queryFn'
| 'getPreviousPageParam'
| 'getNextPageParam'
| 'select'
? InfiniteQueryObserverOptions<
TQueryFnData,
TError,
TData,
TQueryData,
DeepUnwrapRef<TQueryKey>,
TPageParam
>[Property]
: Property extends 'enabled'
? MaybeRefOrGetter<
InfiniteQueryObserverOptions<
TQueryFnData,
TError,
TData,
TQueryData,
TQueryKey
>[Property]
>
: MaybeRefDeep<
InfiniteQueryObserverOptions<
TQueryFnData,
TError,
TData,
TQueryData,
TQueryKey,
TPageParam
>[Property]
>
>]: Property extends 'enabled'
? MaybeRefOrGetter<
InfiniteQueryObserverOptions<
TQueryFnData,
TError,
TData,
TQueryData,
DeepUnwrapRef<TQueryKey>
>[Property]
>
: MaybeRefDeep<
InfiniteQueryObserverOptions<
TQueryFnData,
TError,
TData,
TQueryData,
DeepUnwrapRef<TQueryKey>,
TPageParam
>[Property]
>
}

@@ -67,0 +54,0 @@

@@ -33,29 +33,21 @@ import { QueryObserver } from '@tanstack/query-core'

TQueryKey
>]: Property extends 'queryFn' | 'select'
? QueryObserverOptions<
TQueryFnData,
TError,
TData,
TQueryData,
DeepUnwrapRef<TQueryKey>
>[Property]
: Property extends 'enabled'
? MaybeRefOrGetter<
QueryObserverOptions<
TQueryFnData,
TError,
TData,
TQueryData,
TQueryKey
>[Property]
>
: MaybeRefDeep<
QueryObserverOptions<
TQueryFnData,
TError,
TData,
TQueryData,
TQueryKey
>[Property]
>
>]: Property extends 'enabled'
? MaybeRefOrGetter<
QueryObserverOptions<
TQueryFnData,
TError,
TData,
TQueryData,
DeepUnwrapRef<TQueryKey>
>[Property]
>
: MaybeRefDeep<
QueryObserverOptions<
TQueryFnData,
TError,
TData,
TQueryData,
DeepUnwrapRef<TQueryKey>
>[Property]
>
}>

@@ -62,0 +54,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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