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

@tanstack/query-core

Package Overview
Dependencies
Maintainers
2
Versions
275
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tanstack/query-core - npm Package Compare versions

Comparing version 5.27.1 to 5.27.2

build/legacy/queryClient-8vXd-6hw.d.cts

2

build/legacy/hydration.d.ts

@@ -1,2 +0,2 @@

import { p as Mutation, o as Query, K as QueryOptions, av as MutationOptions, b as QueryClient, ar as MutationKey, q as MutationState, at as MutationMeta, t as QueryKey, n as QueryState, F as QueryMeta } from './queryClient-pTTqDRDI.js';
import { p as Mutation, o as Query, K as QueryOptions, av as MutationOptions, b as QueryClient, ar as MutationKey, q as MutationState, at as MutationMeta, t as QueryKey, n as QueryState, F as QueryMeta } from './queryClient-WUwa1bEQ.js';
import './removable.js';

@@ -3,0 +3,0 @@ import './subscribable.js';

@@ -1,2 +0,2 @@

export { aH as CancelOptions, C as CancelledError, v as DataTag, D as DefaultError, aG as DefaultOptions, _ as DefaultedInfiniteQueryObserverOptions, Y as DefaultedQueryObserverOptions, ap as DefinedInfiniteQueryObserverResult, ah as DefinedQueryObserverResult, a0 as FetchInfiniteQueryOptions, a7 as FetchNextPageOptions, a8 as FetchPreviousPageOptions, $ as FetchQueryOptions, aa as FetchStatus, B as GetNextPageParamFunction, G as GetPreviousPageParamFunction, E as InfiniteData, aj as InfiniteQueryObserverBaseResult, am as InfiniteQueryObserverLoadingErrorResult, al as InfiniteQueryObserverLoadingResult, Z as InfiniteQueryObserverOptions, ak as InfiniteQueryObserverPendingResult, an as InfiniteQueryObserverRefetchErrorResult, aq as InfiniteQueryObserverResult, ao as InfiniteQueryObserverSuccessResult, O as InfiniteQueryPageParamsOptions, I as InitialDataFunction, L as InitialPageParam, a5 as InvalidateOptions, a3 as InvalidateQueryFilters, ay as MutateFunction, ax as MutateOptions, p as Mutation, M as MutationCache, d as MutationCacheNotifyEvent, g as MutationFilters, au as MutationFunction, ar as MutationKey, at as MutationMeta, e as MutationObserver, az as MutationObserverBaseResult, aC as MutationObserverErrorResult, aA as MutationObserverIdleResult, aB as MutationObserverLoadingResult, aw as MutationObserverOptions, aE as MutationObserverResult, aD as MutationObserverSuccessResult, av as MutationOptions, q as MutationState, as as MutationStatus, H as NetworkMode, N as NoInfer, aK as NotifyEvent, aJ as NotifyEventType, J as NotifyOnChangeProps, X as Optional, P as PlaceholderDataFunction, z as QueriesPlaceholderDataFunction, o as Query, Q as QueryCache, a as QueryCacheNotifyEvent, b as QueryClient, aF as QueryClientConfig, j as QueryFilters, w as QueryFunction, y as QueryFunctionContext, t as QueryKey, A as QueryKeyHashFunction, F as QueryMeta, c as QueryObserver, ab as QueryObserverBaseResult, ae as QueryObserverLoadingErrorResult, ad as QueryObserverLoadingResult, V as QueryObserverOptions, ac as QueryObserverPendingResult, af as QueryObserverRefetchErrorResult, ai as QueryObserverResult, ag as QueryObserverSuccessResult, K as QueryOptions, x as QueryPersister, n as QueryState, a9 as QueryStatus, a2 as RefetchOptions, a4 as RefetchQueryFilters, R as Register, a6 as ResetOptions, a1 as ResultOptions, aI as SetDataOptions, S as SkipToken, T as ThrowOnError, U as Updater, W as WithRequired, u as dataTagSymbol, h as hashKey, l as isCancelledError, i as isServer, k as keepPreviousData, f as matchMutation, m as matchQuery, r as replaceEqualDeep, s as skipToken } from './queryClient-pTTqDRDI.js';
export { aH as CancelOptions, C as CancelledError, v as DataTag, D as DefaultError, aG as DefaultOptions, _ as DefaultedInfiniteQueryObserverOptions, Y as DefaultedQueryObserverOptions, ap as DefinedInfiniteQueryObserverResult, ah as DefinedQueryObserverResult, a0 as FetchInfiniteQueryOptions, a7 as FetchNextPageOptions, a8 as FetchPreviousPageOptions, $ as FetchQueryOptions, aa as FetchStatus, B as GetNextPageParamFunction, G as GetPreviousPageParamFunction, E as InfiniteData, aj as InfiniteQueryObserverBaseResult, am as InfiniteQueryObserverLoadingErrorResult, al as InfiniteQueryObserverLoadingResult, Z as InfiniteQueryObserverOptions, ak as InfiniteQueryObserverPendingResult, an as InfiniteQueryObserverRefetchErrorResult, aq as InfiniteQueryObserverResult, ao as InfiniteQueryObserverSuccessResult, O as InfiniteQueryPageParamsOptions, I as InitialDataFunction, L as InitialPageParam, a5 as InvalidateOptions, a3 as InvalidateQueryFilters, ay as MutateFunction, ax as MutateOptions, p as Mutation, M as MutationCache, d as MutationCacheNotifyEvent, g as MutationFilters, au as MutationFunction, ar as MutationKey, at as MutationMeta, e as MutationObserver, az as MutationObserverBaseResult, aC as MutationObserverErrorResult, aA as MutationObserverIdleResult, aB as MutationObserverLoadingResult, aw as MutationObserverOptions, aE as MutationObserverResult, aD as MutationObserverSuccessResult, av as MutationOptions, q as MutationState, as as MutationStatus, H as NetworkMode, N as NoInfer, aK as NotifyEvent, aJ as NotifyEventType, J as NotifyOnChangeProps, X as Optional, P as PlaceholderDataFunction, z as QueriesPlaceholderDataFunction, o as Query, Q as QueryCache, a as QueryCacheNotifyEvent, b as QueryClient, aF as QueryClientConfig, j as QueryFilters, w as QueryFunction, y as QueryFunctionContext, t as QueryKey, A as QueryKeyHashFunction, F as QueryMeta, c as QueryObserver, ab as QueryObserverBaseResult, ae as QueryObserverLoadingErrorResult, ad as QueryObserverLoadingResult, V as QueryObserverOptions, ac as QueryObserverPendingResult, af as QueryObserverRefetchErrorResult, ai as QueryObserverResult, ag as QueryObserverSuccessResult, K as QueryOptions, x as QueryPersister, n as QueryState, a9 as QueryStatus, a2 as RefetchOptions, a4 as RefetchQueryFilters, R as Register, a6 as ResetOptions, a1 as ResultOptions, aI as SetDataOptions, S as SkipToken, T as ThrowOnError, U as Updater, W as WithRequired, u as dataTagSymbol, h as hashKey, l as isCancelledError, i as isServer, k as keepPreviousData, f as matchMutation, m as matchQuery, r as replaceEqualDeep, s as skipToken } from './queryClient-WUwa1bEQ.js';
export { QueriesObserver, QueriesObserverOptions } from './queriesObserver.js';

@@ -3,0 +3,0 @@ export { InfiniteQueryObserver } from './infiniteQueryObserver.js';

@@ -1,2 +0,2 @@

import { aL as QueryBehavior, E as InfiniteData, O as InfiniteQueryPageParamsOptions } from './queryClient-pTTqDRDI.js';
import { aL as QueryBehavior, E as InfiniteData, O as InfiniteQueryPageParamsOptions } from './queryClient-WUwa1bEQ.js';
import './removable.js';

@@ -3,0 +3,0 @@ import './subscribable.js';

@@ -1,2 +0,2 @@

import { D as DefaultError, E as InfiniteData, t as QueryKey, c as QueryObserver, aq as InfiniteQueryObserverResult, aM as ObserverFetchOptions, b as QueryClient, Z as InfiniteQueryObserverOptions, aN as NotifyOptions, _ as DefaultedInfiniteQueryObserverOptions, a7 as FetchNextPageOptions, a8 as FetchPreviousPageOptions, o as Query } from './queryClient-pTTqDRDI.js';
import { D as DefaultError, E as InfiniteData, t as QueryKey, c as QueryObserver, aq as InfiniteQueryObserverResult, aM as ObserverFetchOptions, b as QueryClient, Z as InfiniteQueryObserverOptions, aN as NotifyOptions, _ as DefaultedInfiniteQueryObserverOptions, a7 as FetchNextPageOptions, a8 as FetchPreviousPageOptions, o as Query } from './queryClient-WUwa1bEQ.js';
import './removable.js';

@@ -3,0 +3,0 @@ import './subscribable.js';

import './removable.js';
export { b0 as Action, p as Mutation, q as MutationState, b1 as getDefaultState } from './queryClient-pTTqDRDI.js';
export { b0 as Action, p as Mutation, q as MutationState, b1 as getDefaultState } from './queryClient-WUwa1bEQ.js';
import './subscribable.js';

@@ -1,3 +0,3 @@

export { M as MutationCache, d as MutationCacheNotifyEvent } from './queryClient-pTTqDRDI.js';
export { M as MutationCache, d as MutationCacheNotifyEvent } from './queryClient-WUwa1bEQ.js';
import './subscribable.js';
import './removable.js';
import './subscribable.js';
export { e as MutationObserver } from './queryClient-pTTqDRDI.js';
export { e as MutationObserver } from './queryClient-WUwa1bEQ.js';
import './removable.js';

@@ -1,2 +0,2 @@

import { ai as QueryObserverResult, b as QueryClient, V as QueryObserverOptions, aN as NotifyOptions, o as Query, t as QueryKey, c as QueryObserver } from './queryClient-pTTqDRDI.js';
import { ai as QueryObserverResult, b as QueryClient, V as QueryObserverOptions, aN as NotifyOptions, o as Query, t as QueryKey, c as QueryObserver } from './queryClient-WUwa1bEQ.js';
import { Subscribable } from './subscribable.js';

@@ -3,0 +3,0 @@ import './removable.js';

import './removable.js';
export { bb as Action, b7 as FetchContext, b8 as FetchDirection, b9 as FetchMeta, ba as FetchOptions, o as Query, aL as QueryBehavior, n as QueryState, bc as SetStateOptions } from './queryClient-pTTqDRDI.js';
export { bb as Action, b7 as FetchContext, b8 as FetchDirection, b9 as FetchMeta, ba as FetchOptions, o as Query, aL as QueryBehavior, n as QueryState, bc as SetStateOptions } from './queryClient-WUwa1bEQ.js';
import './subscribable.js';

@@ -13,7 +13,6 @@ import {

import { Removable } from "./removable.js";
var _initialState, _revertState, _cache, _promise, _retryer, _observers, _defaultOptions, _abortSignalConsumed, _setOptions, setOptions_fn, _dispatch, dispatch_fn;
var _initialState, _revertState, _cache, _promise, _retryer, _observers, _defaultOptions, _abortSignalConsumed, _dispatch, dispatch_fn;
var Query = class extends Removable {
constructor(config) {
super();
__privateAdd(this, _setOptions);
__privateAdd(this, _dispatch);

@@ -30,3 +29,3 @@ __privateAdd(this, _initialState, void 0);

__privateSet(this, _defaultOptions, config.defaultOptions);
__privateMethod(this, _setOptions, setOptions_fn).call(this, config.options);
this.setOptions(config.options);
__privateSet(this, _observers, []);

@@ -43,2 +42,6 @@ __privateSet(this, _cache, config.cache);

}
setOptions(options) {
this.options = { ...__privateGet(this, _defaultOptions), ...options };
this.updateGcTime(this.options.gcTime);
}
optionalRemove() {

@@ -144,3 +147,3 @@ if (!__privateGet(this, _observers).length && this.state.fetchStatus === "idle") {

if (options) {
__privateMethod(this, _setOptions, setOptions_fn).call(this, options);
this.setOptions(options);
}

@@ -150,3 +153,3 @@ if (!this.options.queryFn) {

if (observer) {
__privateMethod(this, _setOptions, setOptions_fn).call(this, observer.options);
this.setOptions(observer.options);
}

@@ -296,7 +299,2 @@ }

_abortSignalConsumed = new WeakMap();
_setOptions = new WeakSet();
setOptions_fn = function(options) {
this.options = { ...__privateGet(this, _defaultOptions), ...options };
this.updateGcTime(this.options.gcTime);
};
_dispatch = new WeakSet();

@@ -303,0 +301,0 @@ dispatch_fn = function(action) {

@@ -1,3 +0,3 @@

export { Q as QueryCache, a as QueryCacheNotifyEvent, bd as QueryStore } from './queryClient-pTTqDRDI.js';
export { Q as QueryCache, a as QueryCacheNotifyEvent, bd as QueryStore } from './queryClient-WUwa1bEQ.js';
import './subscribable.js';
import './removable.js';

@@ -1,3 +0,3 @@

export { b as QueryClient } from './queryClient-pTTqDRDI.js';
export { b as QueryClient } from './queryClient-WUwa1bEQ.js';
import './removable.js';
import './subscribable.js';
import './subscribable.js';
export { aN as NotifyOptions, aM as ObserverFetchOptions, c as QueryObserver } from './queryClient-pTTqDRDI.js';
export { aN as NotifyOptions, aM as ObserverFetchOptions, c as QueryObserver } from './queryClient-WUwa1bEQ.js';
import './removable.js';

@@ -103,2 +103,3 @@ import {

__privateMethod(this, _updateQuery, updateQuery_fn).call(this);
__privateGet(this, _currentQuery).setOptions(this.options);
if (!shallowEqualObjects(this.options, prevOptions)) {

@@ -105,0 +106,0 @@ __privateGet(this, _client).getQueryCache().notify({

@@ -1,3 +0,3 @@

export { C as CancelledError, b4 as RetryDelayValue, b3 as RetryValue, b2 as Retryer, b5 as canFetch, b6 as createRetryer, l as isCancelledError } from './queryClient-pTTqDRDI.js';
export { C as CancelledError, b4 as RetryDelayValue, b3 as RetryValue, b2 as Retryer, b5 as canFetch, b6 as createRetryer, l as isCancelledError } from './queryClient-WUwa1bEQ.js';
import './removable.js';
import './subscribable.js';

@@ -1,3 +0,3 @@

export { aH as CancelOptions, v as DataTag, D as DefaultError, aG as DefaultOptions, _ as DefaultedInfiniteQueryObserverOptions, Y as DefaultedQueryObserverOptions, ap as DefinedInfiniteQueryObserverResult, ah as DefinedQueryObserverResult, a0 as FetchInfiniteQueryOptions, a7 as FetchNextPageOptions, a8 as FetchPreviousPageOptions, $ as FetchQueryOptions, aa as FetchStatus, B as GetNextPageParamFunction, G as GetPreviousPageParamFunction, E as InfiniteData, aj as InfiniteQueryObserverBaseResult, am as InfiniteQueryObserverLoadingErrorResult, al as InfiniteQueryObserverLoadingResult, Z as InfiniteQueryObserverOptions, ak as InfiniteQueryObserverPendingResult, an as InfiniteQueryObserverRefetchErrorResult, aq as InfiniteQueryObserverResult, ao as InfiniteQueryObserverSuccessResult, O as InfiniteQueryPageParamsOptions, I as InitialDataFunction, L as InitialPageParam, a5 as InvalidateOptions, a3 as InvalidateQueryFilters, ay as MutateFunction, ax as MutateOptions, au as MutationFunction, ar as MutationKey, at as MutationMeta, az as MutationObserverBaseResult, aC as MutationObserverErrorResult, aA as MutationObserverIdleResult, aB as MutationObserverLoadingResult, aw as MutationObserverOptions, aE as MutationObserverResult, aD as MutationObserverSuccessResult, av as MutationOptions, as as MutationStatus, H as NetworkMode, N as NoInfer, aK as NotifyEvent, aJ as NotifyEventType, J as NotifyOnChangeProps, X as Optional, P as PlaceholderDataFunction, z as QueriesPlaceholderDataFunction, aF as QueryClientConfig, w as QueryFunction, y as QueryFunctionContext, t as QueryKey, A as QueryKeyHashFunction, F as QueryMeta, ab as QueryObserverBaseResult, ae as QueryObserverLoadingErrorResult, ad as QueryObserverLoadingResult, V as QueryObserverOptions, ac as QueryObserverPendingResult, af as QueryObserverRefetchErrorResult, ai as QueryObserverResult, ag as QueryObserverSuccessResult, K as QueryOptions, x as QueryPersister, a9 as QueryStatus, a2 as RefetchOptions, a4 as RefetchQueryFilters, R as Register, a6 as ResetOptions, a1 as ResultOptions, aI as SetDataOptions, T as ThrowOnError, W as WithRequired, u as dataTagSymbol } from './queryClient-pTTqDRDI.js';
export { aH as CancelOptions, v as DataTag, D as DefaultError, aG as DefaultOptions, _ as DefaultedInfiniteQueryObserverOptions, Y as DefaultedQueryObserverOptions, ap as DefinedInfiniteQueryObserverResult, ah as DefinedQueryObserverResult, a0 as FetchInfiniteQueryOptions, a7 as FetchNextPageOptions, a8 as FetchPreviousPageOptions, $ as FetchQueryOptions, aa as FetchStatus, B as GetNextPageParamFunction, G as GetPreviousPageParamFunction, E as InfiniteData, aj as InfiniteQueryObserverBaseResult, am as InfiniteQueryObserverLoadingErrorResult, al as InfiniteQueryObserverLoadingResult, Z as InfiniteQueryObserverOptions, ak as InfiniteQueryObserverPendingResult, an as InfiniteQueryObserverRefetchErrorResult, aq as InfiniteQueryObserverResult, ao as InfiniteQueryObserverSuccessResult, O as InfiniteQueryPageParamsOptions, I as InitialDataFunction, L as InitialPageParam, a5 as InvalidateOptions, a3 as InvalidateQueryFilters, ay as MutateFunction, ax as MutateOptions, au as MutationFunction, ar as MutationKey, at as MutationMeta, az as MutationObserverBaseResult, aC as MutationObserverErrorResult, aA as MutationObserverIdleResult, aB as MutationObserverLoadingResult, aw as MutationObserverOptions, aE as MutationObserverResult, aD as MutationObserverSuccessResult, av as MutationOptions, as as MutationStatus, H as NetworkMode, N as NoInfer, aK as NotifyEvent, aJ as NotifyEventType, J as NotifyOnChangeProps, X as Optional, P as PlaceholderDataFunction, z as QueriesPlaceholderDataFunction, aF as QueryClientConfig, w as QueryFunction, y as QueryFunctionContext, t as QueryKey, A as QueryKeyHashFunction, F as QueryMeta, ab as QueryObserverBaseResult, ae as QueryObserverLoadingErrorResult, ad as QueryObserverLoadingResult, V as QueryObserverOptions, ac as QueryObserverPendingResult, af as QueryObserverRefetchErrorResult, ai as QueryObserverResult, ag as QueryObserverSuccessResult, K as QueryOptions, x as QueryPersister, a9 as QueryStatus, a2 as RefetchOptions, a4 as RefetchQueryFilters, R as Register, a6 as ResetOptions, a1 as ResultOptions, aI as SetDataOptions, T as ThrowOnError, W as WithRequired, u as dataTagSymbol } from './queryClient-WUwa1bEQ.js';
import './removable.js';
import './subscribable.js';

@@ -1,3 +0,3 @@

export { g as MutationFilters, j as QueryFilters, aO as QueryTypeFilter, S as SkipToken, U as Updater, a_ as addToEnd, a$ as addToStart, aQ as functionalUpdate, h as hashKey, aT as hashQueryKeyByOptions, aW as isPlainArray, aX as isPlainObject, i as isServer, aR as isValidTimeout, k as keepPreviousData, f as matchMutation, m as matchQuery, aP as noop, aU as partialMatchKey, aZ as replaceData, r as replaceEqualDeep, aV as shallowEqualObjects, s as skipToken, aY as sleep, aS as timeUntilStale } from './queryClient-pTTqDRDI.js';
export { g as MutationFilters, j as QueryFilters, aO as QueryTypeFilter, S as SkipToken, U as Updater, a_ as addToEnd, a$ as addToStart, aQ as functionalUpdate, h as hashKey, aT as hashQueryKeyByOptions, aW as isPlainArray, aX as isPlainObject, i as isServer, aR as isValidTimeout, k as keepPreviousData, f as matchMutation, m as matchQuery, aP as noop, aU as partialMatchKey, aZ as replaceData, r as replaceEqualDeep, aV as shallowEqualObjects, s as skipToken, aY as sleep, aS as timeUntilStale } from './queryClient-WUwa1bEQ.js';
import './removable.js';
import './subscribable.js';

@@ -1,2 +0,2 @@

import { p as Mutation, o as Query, K as QueryOptions, av as MutationOptions, b as QueryClient, ar as MutationKey, q as MutationState, at as MutationMeta, t as QueryKey, n as QueryState, F as QueryMeta } from './queryClient-pTTqDRDI.js';
import { p as Mutation, o as Query, K as QueryOptions, av as MutationOptions, b as QueryClient, ar as MutationKey, q as MutationState, at as MutationMeta, t as QueryKey, n as QueryState, F as QueryMeta } from './queryClient-WUwa1bEQ.js';
import './removable.js';

@@ -3,0 +3,0 @@ import './subscribable.js';

@@ -1,2 +0,2 @@

export { aH as CancelOptions, C as CancelledError, v as DataTag, D as DefaultError, aG as DefaultOptions, _ as DefaultedInfiniteQueryObserverOptions, Y as DefaultedQueryObserverOptions, ap as DefinedInfiniteQueryObserverResult, ah as DefinedQueryObserverResult, a0 as FetchInfiniteQueryOptions, a7 as FetchNextPageOptions, a8 as FetchPreviousPageOptions, $ as FetchQueryOptions, aa as FetchStatus, B as GetNextPageParamFunction, G as GetPreviousPageParamFunction, E as InfiniteData, aj as InfiniteQueryObserverBaseResult, am as InfiniteQueryObserverLoadingErrorResult, al as InfiniteQueryObserverLoadingResult, Z as InfiniteQueryObserverOptions, ak as InfiniteQueryObserverPendingResult, an as InfiniteQueryObserverRefetchErrorResult, aq as InfiniteQueryObserverResult, ao as InfiniteQueryObserverSuccessResult, O as InfiniteQueryPageParamsOptions, I as InitialDataFunction, L as InitialPageParam, a5 as InvalidateOptions, a3 as InvalidateQueryFilters, ay as MutateFunction, ax as MutateOptions, p as Mutation, M as MutationCache, d as MutationCacheNotifyEvent, g as MutationFilters, au as MutationFunction, ar as MutationKey, at as MutationMeta, e as MutationObserver, az as MutationObserverBaseResult, aC as MutationObserverErrorResult, aA as MutationObserverIdleResult, aB as MutationObserverLoadingResult, aw as MutationObserverOptions, aE as MutationObserverResult, aD as MutationObserverSuccessResult, av as MutationOptions, q as MutationState, as as MutationStatus, H as NetworkMode, N as NoInfer, aK as NotifyEvent, aJ as NotifyEventType, J as NotifyOnChangeProps, X as Optional, P as PlaceholderDataFunction, z as QueriesPlaceholderDataFunction, o as Query, Q as QueryCache, a as QueryCacheNotifyEvent, b as QueryClient, aF as QueryClientConfig, j as QueryFilters, w as QueryFunction, y as QueryFunctionContext, t as QueryKey, A as QueryKeyHashFunction, F as QueryMeta, c as QueryObserver, ab as QueryObserverBaseResult, ae as QueryObserverLoadingErrorResult, ad as QueryObserverLoadingResult, V as QueryObserverOptions, ac as QueryObserverPendingResult, af as QueryObserverRefetchErrorResult, ai as QueryObserverResult, ag as QueryObserverSuccessResult, K as QueryOptions, x as QueryPersister, n as QueryState, a9 as QueryStatus, a2 as RefetchOptions, a4 as RefetchQueryFilters, R as Register, a6 as ResetOptions, a1 as ResultOptions, aI as SetDataOptions, S as SkipToken, T as ThrowOnError, U as Updater, W as WithRequired, u as dataTagSymbol, h as hashKey, l as isCancelledError, i as isServer, k as keepPreviousData, f as matchMutation, m as matchQuery, r as replaceEqualDeep, s as skipToken } from './queryClient-pTTqDRDI.js';
export { aH as CancelOptions, C as CancelledError, v as DataTag, D as DefaultError, aG as DefaultOptions, _ as DefaultedInfiniteQueryObserverOptions, Y as DefaultedQueryObserverOptions, ap as DefinedInfiniteQueryObserverResult, ah as DefinedQueryObserverResult, a0 as FetchInfiniteQueryOptions, a7 as FetchNextPageOptions, a8 as FetchPreviousPageOptions, $ as FetchQueryOptions, aa as FetchStatus, B as GetNextPageParamFunction, G as GetPreviousPageParamFunction, E as InfiniteData, aj as InfiniteQueryObserverBaseResult, am as InfiniteQueryObserverLoadingErrorResult, al as InfiniteQueryObserverLoadingResult, Z as InfiniteQueryObserverOptions, ak as InfiniteQueryObserverPendingResult, an as InfiniteQueryObserverRefetchErrorResult, aq as InfiniteQueryObserverResult, ao as InfiniteQueryObserverSuccessResult, O as InfiniteQueryPageParamsOptions, I as InitialDataFunction, L as InitialPageParam, a5 as InvalidateOptions, a3 as InvalidateQueryFilters, ay as MutateFunction, ax as MutateOptions, p as Mutation, M as MutationCache, d as MutationCacheNotifyEvent, g as MutationFilters, au as MutationFunction, ar as MutationKey, at as MutationMeta, e as MutationObserver, az as MutationObserverBaseResult, aC as MutationObserverErrorResult, aA as MutationObserverIdleResult, aB as MutationObserverLoadingResult, aw as MutationObserverOptions, aE as MutationObserverResult, aD as MutationObserverSuccessResult, av as MutationOptions, q as MutationState, as as MutationStatus, H as NetworkMode, N as NoInfer, aK as NotifyEvent, aJ as NotifyEventType, J as NotifyOnChangeProps, X as Optional, P as PlaceholderDataFunction, z as QueriesPlaceholderDataFunction, o as Query, Q as QueryCache, a as QueryCacheNotifyEvent, b as QueryClient, aF as QueryClientConfig, j as QueryFilters, w as QueryFunction, y as QueryFunctionContext, t as QueryKey, A as QueryKeyHashFunction, F as QueryMeta, c as QueryObserver, ab as QueryObserverBaseResult, ae as QueryObserverLoadingErrorResult, ad as QueryObserverLoadingResult, V as QueryObserverOptions, ac as QueryObserverPendingResult, af as QueryObserverRefetchErrorResult, ai as QueryObserverResult, ag as QueryObserverSuccessResult, K as QueryOptions, x as QueryPersister, n as QueryState, a9 as QueryStatus, a2 as RefetchOptions, a4 as RefetchQueryFilters, R as Register, a6 as ResetOptions, a1 as ResultOptions, aI as SetDataOptions, S as SkipToken, T as ThrowOnError, U as Updater, W as WithRequired, u as dataTagSymbol, h as hashKey, l as isCancelledError, i as isServer, k as keepPreviousData, f as matchMutation, m as matchQuery, r as replaceEqualDeep, s as skipToken } from './queryClient-WUwa1bEQ.js';
export { QueriesObserver, QueriesObserverOptions } from './queriesObserver.js';

@@ -3,0 +3,0 @@ export { InfiniteQueryObserver } from './infiniteQueryObserver.js';

@@ -1,2 +0,2 @@

import { aL as QueryBehavior, E as InfiniteData, O as InfiniteQueryPageParamsOptions } from './queryClient-pTTqDRDI.js';
import { aL as QueryBehavior, E as InfiniteData, O as InfiniteQueryPageParamsOptions } from './queryClient-WUwa1bEQ.js';
import './removable.js';

@@ -3,0 +3,0 @@ import './subscribable.js';

@@ -1,2 +0,2 @@

import { D as DefaultError, E as InfiniteData, t as QueryKey, c as QueryObserver, aq as InfiniteQueryObserverResult, aM as ObserverFetchOptions, b as QueryClient, Z as InfiniteQueryObserverOptions, aN as NotifyOptions, _ as DefaultedInfiniteQueryObserverOptions, a7 as FetchNextPageOptions, a8 as FetchPreviousPageOptions, o as Query } from './queryClient-pTTqDRDI.js';
import { D as DefaultError, E as InfiniteData, t as QueryKey, c as QueryObserver, aq as InfiniteQueryObserverResult, aM as ObserverFetchOptions, b as QueryClient, Z as InfiniteQueryObserverOptions, aN as NotifyOptions, _ as DefaultedInfiniteQueryObserverOptions, a7 as FetchNextPageOptions, a8 as FetchPreviousPageOptions, o as Query } from './queryClient-WUwa1bEQ.js';
import './removable.js';

@@ -3,0 +3,0 @@ import './subscribable.js';

import './removable.js';
export { b0 as Action, p as Mutation, q as MutationState, b1 as getDefaultState } from './queryClient-pTTqDRDI.js';
export { b0 as Action, p as Mutation, q as MutationState, b1 as getDefaultState } from './queryClient-WUwa1bEQ.js';
import './subscribable.js';

@@ -1,3 +0,3 @@

export { M as MutationCache, d as MutationCacheNotifyEvent } from './queryClient-pTTqDRDI.js';
export { M as MutationCache, d as MutationCacheNotifyEvent } from './queryClient-WUwa1bEQ.js';
import './subscribable.js';
import './removable.js';
import './subscribable.js';
export { e as MutationObserver } from './queryClient-pTTqDRDI.js';
export { e as MutationObserver } from './queryClient-WUwa1bEQ.js';
import './removable.js';

@@ -1,2 +0,2 @@

import { ai as QueryObserverResult, b as QueryClient, V as QueryObserverOptions, aN as NotifyOptions, o as Query, t as QueryKey, c as QueryObserver } from './queryClient-pTTqDRDI.js';
import { ai as QueryObserverResult, b as QueryClient, V as QueryObserverOptions, aN as NotifyOptions, o as Query, t as QueryKey, c as QueryObserver } from './queryClient-WUwa1bEQ.js';
import { Subscribable } from './subscribable.js';

@@ -3,0 +3,0 @@ import './removable.js';

import './removable.js';
export { bb as Action, b7 as FetchContext, b8 as FetchDirection, b9 as FetchMeta, ba as FetchOptions, o as Query, aL as QueryBehavior, n as QueryState, bc as SetStateOptions } from './queryClient-pTTqDRDI.js';
export { bb as Action, b7 as FetchContext, b8 as FetchDirection, b9 as FetchMeta, ba as FetchOptions, o as Query, aL as QueryBehavior, n as QueryState, bc as SetStateOptions } from './queryClient-WUwa1bEQ.js';
import './subscribable.js';

@@ -19,3 +19,3 @@ // src/query.ts

this.#defaultOptions = config.defaultOptions;
this.#setOptions(config.options);
this.setOptions(config.options);
this.#observers = [];

@@ -32,3 +32,3 @@ this.#cache = config.cache;

}
#setOptions(options) {
setOptions(options) {
this.options = { ...this.#defaultOptions, ...options };

@@ -133,3 +133,3 @@ this.updateGcTime(this.options.gcTime);

if (options) {
this.#setOptions(options);
this.setOptions(options);
}

@@ -139,3 +139,3 @@ if (!this.options.queryFn) {

if (observer) {
this.#setOptions(observer.options);
this.setOptions(observer.options);
}

@@ -142,0 +142,0 @@ }

@@ -1,3 +0,3 @@

export { Q as QueryCache, a as QueryCacheNotifyEvent, bd as QueryStore } from './queryClient-pTTqDRDI.js';
export { Q as QueryCache, a as QueryCacheNotifyEvent, bd as QueryStore } from './queryClient-WUwa1bEQ.js';
import './subscribable.js';
import './removable.js';

@@ -1,3 +0,3 @@

export { b as QueryClient } from './queryClient-pTTqDRDI.js';
export { b as QueryClient } from './queryClient-WUwa1bEQ.js';
import './removable.js';
import './subscribable.js';
import './subscribable.js';
export { aN as NotifyOptions, aM as ObserverFetchOptions, c as QueryObserver } from './queryClient-pTTqDRDI.js';
export { aN as NotifyOptions, aM as ObserverFetchOptions, c as QueryObserver } from './queryClient-WUwa1bEQ.js';
import './removable.js';

@@ -86,2 +86,3 @@ // src/queryObserver.ts

this.#updateQuery();
this.#currentQuery.setOptions(this.options);
if (!shallowEqualObjects(this.options, prevOptions)) {

@@ -88,0 +89,0 @@ this.#client.getQueryCache().notify({

@@ -1,3 +0,3 @@

export { C as CancelledError, b4 as RetryDelayValue, b3 as RetryValue, b2 as Retryer, b5 as canFetch, b6 as createRetryer, l as isCancelledError } from './queryClient-pTTqDRDI.js';
export { C as CancelledError, b4 as RetryDelayValue, b3 as RetryValue, b2 as Retryer, b5 as canFetch, b6 as createRetryer, l as isCancelledError } from './queryClient-WUwa1bEQ.js';
import './removable.js';
import './subscribable.js';

@@ -1,3 +0,3 @@

export { aH as CancelOptions, v as DataTag, D as DefaultError, aG as DefaultOptions, _ as DefaultedInfiniteQueryObserverOptions, Y as DefaultedQueryObserverOptions, ap as DefinedInfiniteQueryObserverResult, ah as DefinedQueryObserverResult, a0 as FetchInfiniteQueryOptions, a7 as FetchNextPageOptions, a8 as FetchPreviousPageOptions, $ as FetchQueryOptions, aa as FetchStatus, B as GetNextPageParamFunction, G as GetPreviousPageParamFunction, E as InfiniteData, aj as InfiniteQueryObserverBaseResult, am as InfiniteQueryObserverLoadingErrorResult, al as InfiniteQueryObserverLoadingResult, Z as InfiniteQueryObserverOptions, ak as InfiniteQueryObserverPendingResult, an as InfiniteQueryObserverRefetchErrorResult, aq as InfiniteQueryObserverResult, ao as InfiniteQueryObserverSuccessResult, O as InfiniteQueryPageParamsOptions, I as InitialDataFunction, L as InitialPageParam, a5 as InvalidateOptions, a3 as InvalidateQueryFilters, ay as MutateFunction, ax as MutateOptions, au as MutationFunction, ar as MutationKey, at as MutationMeta, az as MutationObserverBaseResult, aC as MutationObserverErrorResult, aA as MutationObserverIdleResult, aB as MutationObserverLoadingResult, aw as MutationObserverOptions, aE as MutationObserverResult, aD as MutationObserverSuccessResult, av as MutationOptions, as as MutationStatus, H as NetworkMode, N as NoInfer, aK as NotifyEvent, aJ as NotifyEventType, J as NotifyOnChangeProps, X as Optional, P as PlaceholderDataFunction, z as QueriesPlaceholderDataFunction, aF as QueryClientConfig, w as QueryFunction, y as QueryFunctionContext, t as QueryKey, A as QueryKeyHashFunction, F as QueryMeta, ab as QueryObserverBaseResult, ae as QueryObserverLoadingErrorResult, ad as QueryObserverLoadingResult, V as QueryObserverOptions, ac as QueryObserverPendingResult, af as QueryObserverRefetchErrorResult, ai as QueryObserverResult, ag as QueryObserverSuccessResult, K as QueryOptions, x as QueryPersister, a9 as QueryStatus, a2 as RefetchOptions, a4 as RefetchQueryFilters, R as Register, a6 as ResetOptions, a1 as ResultOptions, aI as SetDataOptions, T as ThrowOnError, W as WithRequired, u as dataTagSymbol } from './queryClient-pTTqDRDI.js';
export { aH as CancelOptions, v as DataTag, D as DefaultError, aG as DefaultOptions, _ as DefaultedInfiniteQueryObserverOptions, Y as DefaultedQueryObserverOptions, ap as DefinedInfiniteQueryObserverResult, ah as DefinedQueryObserverResult, a0 as FetchInfiniteQueryOptions, a7 as FetchNextPageOptions, a8 as FetchPreviousPageOptions, $ as FetchQueryOptions, aa as FetchStatus, B as GetNextPageParamFunction, G as GetPreviousPageParamFunction, E as InfiniteData, aj as InfiniteQueryObserverBaseResult, am as InfiniteQueryObserverLoadingErrorResult, al as InfiniteQueryObserverLoadingResult, Z as InfiniteQueryObserverOptions, ak as InfiniteQueryObserverPendingResult, an as InfiniteQueryObserverRefetchErrorResult, aq as InfiniteQueryObserverResult, ao as InfiniteQueryObserverSuccessResult, O as InfiniteQueryPageParamsOptions, I as InitialDataFunction, L as InitialPageParam, a5 as InvalidateOptions, a3 as InvalidateQueryFilters, ay as MutateFunction, ax as MutateOptions, au as MutationFunction, ar as MutationKey, at as MutationMeta, az as MutationObserverBaseResult, aC as MutationObserverErrorResult, aA as MutationObserverIdleResult, aB as MutationObserverLoadingResult, aw as MutationObserverOptions, aE as MutationObserverResult, aD as MutationObserverSuccessResult, av as MutationOptions, as as MutationStatus, H as NetworkMode, N as NoInfer, aK as NotifyEvent, aJ as NotifyEventType, J as NotifyOnChangeProps, X as Optional, P as PlaceholderDataFunction, z as QueriesPlaceholderDataFunction, aF as QueryClientConfig, w as QueryFunction, y as QueryFunctionContext, t as QueryKey, A as QueryKeyHashFunction, F as QueryMeta, ab as QueryObserverBaseResult, ae as QueryObserverLoadingErrorResult, ad as QueryObserverLoadingResult, V as QueryObserverOptions, ac as QueryObserverPendingResult, af as QueryObserverRefetchErrorResult, ai as QueryObserverResult, ag as QueryObserverSuccessResult, K as QueryOptions, x as QueryPersister, a9 as QueryStatus, a2 as RefetchOptions, a4 as RefetchQueryFilters, R as Register, a6 as ResetOptions, a1 as ResultOptions, aI as SetDataOptions, T as ThrowOnError, W as WithRequired, u as dataTagSymbol } from './queryClient-WUwa1bEQ.js';
import './removable.js';
import './subscribable.js';

@@ -1,3 +0,3 @@

export { g as MutationFilters, j as QueryFilters, aO as QueryTypeFilter, S as SkipToken, U as Updater, a_ as addToEnd, a$ as addToStart, aQ as functionalUpdate, h as hashKey, aT as hashQueryKeyByOptions, aW as isPlainArray, aX as isPlainObject, i as isServer, aR as isValidTimeout, k as keepPreviousData, f as matchMutation, m as matchQuery, aP as noop, aU as partialMatchKey, aZ as replaceData, r as replaceEqualDeep, aV as shallowEqualObjects, s as skipToken, aY as sleep, aS as timeUntilStale } from './queryClient-pTTqDRDI.js';
export { g as MutationFilters, j as QueryFilters, aO as QueryTypeFilter, S as SkipToken, U as Updater, a_ as addToEnd, a$ as addToStart, aQ as functionalUpdate, h as hashKey, aT as hashQueryKeyByOptions, aW as isPlainArray, aX as isPlainObject, i as isServer, aR as isValidTimeout, k as keepPreviousData, f as matchMutation, m as matchQuery, aP as noop, aU as partialMatchKey, aZ as replaceData, r as replaceEqualDeep, aV as shallowEqualObjects, s as skipToken, aY as sleep, aS as timeUntilStale } from './queryClient-WUwa1bEQ.js';
import './removable.js';
import './subscribable.js';
{
"name": "@tanstack/query-core",
"version": "5.27.1",
"version": "5.27.2",
"description": "The framework agnostic core that powers TanStack Query",

@@ -5,0 +5,0 @@ "author": "tannerlinsley",

@@ -172,3 +172,3 @@ import { noop, replaceData, skipToken, timeUntilStale } from './utils'

this.#defaultOptions = config.defaultOptions
this.#setOptions(config.options)
this.setOptions(config.options)
this.#observers = []

@@ -186,3 +186,3 @@ this.#cache = config.cache

#setOptions(
setOptions(
options?: QueryOptions<TQueryFnData, TError, TData, TQueryKey>,

@@ -347,3 +347,3 @@ ): void {

if (options) {
this.#setOptions(options)
this.setOptions(options)
}

@@ -356,3 +356,3 @@

if (observer) {
this.#setOptions(observer.options)
this.setOptions(observer.options)
}

@@ -359,0 +359,0 @@ }

@@ -157,2 +157,3 @@ import {

this.#updateQuery()
this.#currentQuery.setOptions(this.options)

@@ -159,0 +160,0 @@ if (!shallowEqualObjects(this.options, prevOptions)) {

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

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

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