@tanstack/query-core
Advanced tools
Comparing version 5.0.0-alpha.88 to 5.0.0-alpha.90
@@ -1,23 +0,12 @@ | ||
var __accessCheck = (obj, member, msg) => { | ||
if (!member.has(obj)) | ||
throw TypeError("Cannot " + msg); | ||
}; | ||
var __privateGet = (obj, member, getter) => { | ||
__accessCheck(obj, member, "read from private field"); | ||
return getter ? getter.call(obj) : member.get(obj); | ||
}; | ||
var __privateAdd = (obj, member, value) => { | ||
if (member.has(obj)) | ||
throw TypeError("Cannot add the same private member more than once"); | ||
member instanceof WeakSet ? member.add(obj) : member.set(obj, value); | ||
}; | ||
var __privateSet = (obj, member, value, setter) => { | ||
__accessCheck(obj, member, "write to private field"); | ||
setter ? setter.call(obj, value) : member.set(obj, value); | ||
return value; | ||
}; | ||
import { | ||
__privateAdd, | ||
__privateGet, | ||
__privateSet | ||
} from "./chunk-WPSKCR32.js"; | ||
// src/focusManager.ts | ||
import { Subscribable } from "./subscribable.js"; | ||
import { isServer } from "./utils.js"; | ||
var _focused, _cleanup, _setup; | ||
import { Subscribable } from "./subscribable"; | ||
import { isServer } from "./utils"; | ||
class FocusManager extends Subscribable { | ||
var FocusManager = class extends Subscribable { | ||
constructor() { | ||
@@ -82,7 +71,7 @@ super(); | ||
} | ||
} | ||
}; | ||
_focused = new WeakMap(); | ||
_cleanup = new WeakMap(); | ||
_setup = new WeakMap(); | ||
const focusManager = new FocusManager(); | ||
var focusManager = new FocusManager(); | ||
export { | ||
@@ -89,0 +78,0 @@ FocusManager, |
@@ -1,2 +0,2 @@ | ||
import { n as Mutation, j as Query, y as QueryOptions, ai as MutationOptions, b as QueryClient, ae as MutationKey, o as MutationState, ag as MutationMeta, p as QueryKey, l as QueryState, x as QueryMeta } from './queryClient-d615ed9f.js'; | ||
import { n as Mutation, j as Query, y as QueryOptions, aj as MutationOptions, b as QueryClient, af as MutationKey, o as MutationState, ah as MutationMeta, p as QueryKey, l as QueryState, x as QueryMeta } from './queryClient-158dd7f5.js'; | ||
import './removable.js'; | ||
@@ -3,0 +3,0 @@ import './subscribable.js'; |
@@ -0,1 +1,4 @@ | ||
import "./chunk-WPSKCR32.js"; | ||
// src/hydration.ts | ||
function dehydrateMutation(mutation) { | ||
@@ -2,0 +5,0 @@ return { |
@@ -1,2 +0,2 @@ | ||
export { au as CancelOptions, C as CancelledError, D as DefaultError, at as DefaultOptions, z as DefaultPageParam, H as DefaultedInfiniteQueryObserverOptions, E as DefaultedQueryObserverOptions, a6 as DefinedQueryObserverResult, K as FetchInfiniteQueryOptions, Z as FetchNextPageOptions, _ as FetchPreviousPageOptions, J as FetchQueryOptions, a0 as FetchStatus, v as GetNextPageParamFunction, G as GetPreviousPageParamFunction, w as InfiniteData, a8 as InfiniteQueryObserverBaseResult, aa as InfiniteQueryObserverLoadingErrorResult, a9 as InfiniteQueryObserverLoadingResult, F as InfiniteQueryObserverOptions, ab as InfiniteQueryObserverRefetchErrorResult, ad as InfiniteQueryObserverResult, ac as InfiniteQueryObserverSuccessResult, A as InfiniteQueryPageParamsOptions, I as InitialDataFunction, X as InvalidateOptions, S as InvalidateQueryFilters, al as MutateFunction, ak as MutateOptions, n as Mutation, M as MutationCache, e as MutationFilters, ah as MutationFunction, ae as MutationKey, ag as MutationMeta, d as MutationObserver, am as MutationObserverBaseResult, ap as MutationObserverErrorResult, an as MutationObserverIdleResult, ao as MutationObserverLoadingResult, aj as MutationObserverOptions, ar as MutationObserverResult, aq as MutationObserverSuccessResult, ai as MutationOptions, o as MutationState, af as MutationStatus, N as NetworkMode, ax as NotifyEvent, aw as NotifyEventType, P as PlaceholderDataFunction, t as QueriesPlaceholderDataFunction, j as Query, Q as QueryCache, a as QueryCacheNotifyEvent, b as QueryClient, as as QueryClientConfig, f as QueryFilters, q as QueryFunction, s as QueryFunctionContext, p as QueryKey, u as QueryKeyHashFunction, x as QueryMeta, c as QueryObserver, a1 as QueryObserverBaseResult, a3 as QueryObserverLoadingErrorResult, a2 as QueryObserverLoadingResult, B as QueryObserverOptions, a4 as QueryObserverRefetchErrorResult, a7 as QueryObserverResult, a5 as QueryObserverSuccessResult, y as QueryOptions, l as QueryState, $ as QueryStatus, O as RefetchOptions, V as RefetchQueryFilters, R as Register, Y as ResetOptions, L as ResultOptions, av as SetDataOptions, T as ThrowOnError, U as Updater, W as WithRequired, h as hashKey, g as isCancelledError, i as isServer, k as keepPreviousData, m as matchQuery, r as replaceEqualDeep } from './queryClient-d615ed9f.js'; | ||
export { av as CancelOptions, C as CancelledError, D as DefaultError, au as DefaultOptions, z as DefaultPageParam, H as DefaultedInfiniteQueryObserverOptions, E as DefaultedQueryObserverOptions, ad as DefinedInfiniteQueryObserverResult, a6 as DefinedQueryObserverResult, K as FetchInfiniteQueryOptions, Z as FetchNextPageOptions, _ as FetchPreviousPageOptions, J as FetchQueryOptions, a0 as FetchStatus, v as GetNextPageParamFunction, G as GetPreviousPageParamFunction, w as InfiniteData, a8 as InfiniteQueryObserverBaseResult, aa as InfiniteQueryObserverLoadingErrorResult, a9 as InfiniteQueryObserverLoadingResult, F as InfiniteQueryObserverOptions, ab as InfiniteQueryObserverRefetchErrorResult, ae as InfiniteQueryObserverResult, ac as InfiniteQueryObserverSuccessResult, A as InfiniteQueryPageParamsOptions, I as InitialDataFunction, X as InvalidateOptions, S as InvalidateQueryFilters, am as MutateFunction, al as MutateOptions, n as Mutation, M as MutationCache, e as MutationFilters, ai as MutationFunction, af as MutationKey, ah as MutationMeta, d as MutationObserver, an as MutationObserverBaseResult, aq as MutationObserverErrorResult, ao as MutationObserverIdleResult, ap as MutationObserverLoadingResult, ak as MutationObserverOptions, as as MutationObserverResult, ar as MutationObserverSuccessResult, aj as MutationOptions, o as MutationState, ag as MutationStatus, N as NetworkMode, ay as NotifyEvent, ax as NotifyEventType, P as PlaceholderDataFunction, t as QueriesPlaceholderDataFunction, j as Query, Q as QueryCache, a as QueryCacheNotifyEvent, b as QueryClient, at as QueryClientConfig, f as QueryFilters, q as QueryFunction, s as QueryFunctionContext, p as QueryKey, u as QueryKeyHashFunction, x as QueryMeta, c as QueryObserver, a1 as QueryObserverBaseResult, a3 as QueryObserverLoadingErrorResult, a2 as QueryObserverLoadingResult, B as QueryObserverOptions, a4 as QueryObserverRefetchErrorResult, a7 as QueryObserverResult, a5 as QueryObserverSuccessResult, y as QueryOptions, l as QueryState, $ as QueryStatus, O as RefetchOptions, V as RefetchQueryFilters, R as Register, Y as ResetOptions, L as ResultOptions, aw as SetDataOptions, T as ThrowOnError, U as Updater, W as WithRequired, h as hashKey, g as isCancelledError, i as isServer, k as keepPreviousData, m as matchQuery, r as replaceEqualDeep } from './queryClient-158dd7f5.js'; | ||
export { QueriesObserver, QueriesObserverOptions } from './queriesObserver.js'; | ||
@@ -3,0 +3,0 @@ export { InfiniteQueryObserver } from './infiniteQueryObserver.js'; |
@@ -1,12 +0,15 @@ | ||
import { CancelledError } from "./retryer"; | ||
import { QueryCache } from "./queryCache"; | ||
import { QueryClient } from "./queryClient"; | ||
import { QueryObserver } from "./queryObserver"; | ||
import { QueriesObserver } from "./queriesObserver"; | ||
import { InfiniteQueryObserver } from "./infiniteQueryObserver"; | ||
import { MutationCache } from "./mutationCache"; | ||
import { MutationObserver } from "./mutationObserver"; | ||
import { notifyManager } from "./notifyManager"; | ||
import { focusManager } from "./focusManager"; | ||
import { onlineManager } from "./onlineManager"; | ||
import "./chunk-WPSKCR32.js"; | ||
// src/index.ts | ||
import { CancelledError } from "./retryer.js"; | ||
import { QueryCache } from "./queryCache.js"; | ||
import { QueryClient } from "./queryClient.js"; | ||
import { QueryObserver } from "./queryObserver.js"; | ||
import { QueriesObserver } from "./queriesObserver.js"; | ||
import { InfiniteQueryObserver } from "./infiniteQueryObserver.js"; | ||
import { MutationCache } from "./mutationCache.js"; | ||
import { MutationObserver } from "./mutationObserver.js"; | ||
import { notifyManager } from "./notifyManager.js"; | ||
import { focusManager } from "./focusManager.js"; | ||
import { onlineManager } from "./onlineManager.js"; | ||
import { | ||
@@ -18,4 +21,4 @@ hashKey, | ||
keepPreviousData | ||
} from "./utils"; | ||
import { isCancelledError } from "./retryer"; | ||
} from "./utils.js"; | ||
import { isCancelledError } from "./retryer.js"; | ||
import { | ||
@@ -26,4 +29,4 @@ dehydrate, | ||
defaultShouldDehydrateMutation | ||
} from "./hydration"; | ||
export * from "./types"; | ||
} from "./hydration.js"; | ||
export * from "./types.js"; | ||
export { | ||
@@ -30,0 +33,0 @@ CancelledError, |
@@ -1,2 +0,2 @@ | ||
import { ay as QueryBehavior, w as InfiniteData, A as InfiniteQueryPageParamsOptions } from './queryClient-d615ed9f.js'; | ||
import { az as QueryBehavior, w as InfiniteData, A as InfiniteQueryPageParamsOptions } from './queryClient-158dd7f5.js'; | ||
import './removable.js'; | ||
@@ -3,0 +3,0 @@ import './subscribable.js'; |
@@ -1,2 +0,5 @@ | ||
import { addToEnd, addToStart } from "./utils"; | ||
import "./chunk-WPSKCR32.js"; | ||
// src/infiniteQueryBehavior.ts | ||
import { addToEnd, addToStart } from "./utils.js"; | ||
function infiniteQueryBehavior(pages) { | ||
@@ -3,0 +6,0 @@ return { |
@@ -1,2 +0,2 @@ | ||
import { D as DefaultError, w as InfiniteData, p as QueryKey, c as QueryObserver, ad as InfiniteQueryObserverResult, az as ObserverFetchOptions, b as QueryClient, F as InfiniteQueryObserverOptions, aA as NotifyOptions, H as DefaultedInfiniteQueryObserverOptions, Z as FetchNextPageOptions, _ as FetchPreviousPageOptions, j as Query } from './queryClient-d615ed9f.js'; | ||
import { D as DefaultError, w as InfiniteData, p as QueryKey, c as QueryObserver, ae as InfiniteQueryObserverResult, aA as ObserverFetchOptions, b as QueryClient, F as InfiniteQueryObserverOptions, aB as NotifyOptions, H as DefaultedInfiniteQueryObserverOptions, Z as FetchNextPageOptions, _ as FetchPreviousPageOptions, j as Query } from './queryClient-158dd7f5.js'; | ||
import './removable.js'; | ||
@@ -3,0 +3,0 @@ import './subscribable.js'; |
@@ -1,2 +0,5 @@ | ||
import { QueryObserver } from "./queryObserver"; | ||
import "./chunk-WPSKCR32.js"; | ||
// src/infiniteQueryObserver.ts | ||
import { QueryObserver } from "./queryObserver.js"; | ||
import { | ||
@@ -6,4 +9,4 @@ hasNextPage, | ||
infiniteQueryBehavior | ||
} from "./infiniteQueryBehavior"; | ||
class InfiniteQueryObserver extends QueryObserver { | ||
} from "./infiniteQueryBehavior.js"; | ||
var InfiniteQueryObserver = class extends QueryObserver { | ||
// eslint-disable-next-line @typescript-eslint/no-useless-constructor | ||
@@ -65,3 +68,3 @@ constructor(client, options) { | ||
} | ||
} | ||
}; | ||
export { | ||
@@ -68,0 +71,0 @@ InfiniteQueryObserver |
import './removable.js'; | ||
export { aS as Action, n as Mutation, o as MutationState, aT as getDefaultState } from './queryClient-d615ed9f.js'; | ||
export { aT as Action, n as Mutation, o as MutationState, aU as getDefaultState } from './queryClient-158dd7f5.js'; | ||
import './subscribable.js'; |
@@ -1,28 +0,14 @@ | ||
var __accessCheck = (obj, member, msg) => { | ||
if (!member.has(obj)) | ||
throw TypeError("Cannot " + msg); | ||
}; | ||
var __privateGet = (obj, member, getter) => { | ||
__accessCheck(obj, member, "read from private field"); | ||
return getter ? getter.call(obj) : member.get(obj); | ||
}; | ||
var __privateAdd = (obj, member, value) => { | ||
if (member.has(obj)) | ||
throw TypeError("Cannot add the same private member more than once"); | ||
member instanceof WeakSet ? member.add(obj) : member.set(obj, value); | ||
}; | ||
var __privateSet = (obj, member, value, setter) => { | ||
__accessCheck(obj, member, "write to private field"); | ||
setter ? setter.call(obj, value) : member.set(obj, value); | ||
return value; | ||
}; | ||
var __privateMethod = (obj, member, method) => { | ||
__accessCheck(obj, member, "access private method"); | ||
return method; | ||
}; | ||
import { | ||
__privateAdd, | ||
__privateGet, | ||
__privateMethod, | ||
__privateSet | ||
} from "./chunk-WPSKCR32.js"; | ||
// src/mutation.ts | ||
import { notifyManager } from "./notifyManager.js"; | ||
import { Removable } from "./removable.js"; | ||
import { canFetch, createRetryer } from "./retryer.js"; | ||
var _observers, _defaultOptions, _mutationCache, _retryer, _dispatch, dispatch_fn; | ||
import { notifyManager } from "./notifyManager"; | ||
import { Removable } from "./removable"; | ||
import { canFetch, createRetryer } from "./retryer"; | ||
class Mutation extends Removable { | ||
var Mutation = class extends Removable { | ||
constructor(config) { | ||
@@ -183,3 +169,3 @@ super(); | ||
} | ||
} | ||
}; | ||
_observers = new WeakMap(); | ||
@@ -186,0 +172,0 @@ _defaultOptions = new WeakMap(); |
@@ -1,3 +0,3 @@ | ||
export { M as MutationCache } from './queryClient-d615ed9f.js'; | ||
export { M as MutationCache } from './queryClient-158dd7f5.js'; | ||
import './subscribable.js'; | ||
import './removable.js'; |
@@ -1,33 +0,15 @@ | ||
var __accessCheck = (obj, member, msg) => { | ||
if (!member.has(obj)) | ||
throw TypeError("Cannot " + msg); | ||
}; | ||
var __privateGet = (obj, member, getter) => { | ||
__accessCheck(obj, member, "read from private field"); | ||
return getter ? getter.call(obj) : member.get(obj); | ||
}; | ||
var __privateAdd = (obj, member, value) => { | ||
if (member.has(obj)) | ||
throw TypeError("Cannot add the same private member more than once"); | ||
member instanceof WeakSet ? member.add(obj) : member.set(obj, value); | ||
}; | ||
var __privateSet = (obj, member, value, setter) => { | ||
__accessCheck(obj, member, "write to private field"); | ||
setter ? setter.call(obj, value) : member.set(obj, value); | ||
return value; | ||
}; | ||
var __privateWrapper = (obj, member, setter, getter) => ({ | ||
set _(value) { | ||
__privateSet(obj, member, value, setter); | ||
}, | ||
get _() { | ||
return __privateGet(obj, member, getter); | ||
} | ||
}); | ||
import { | ||
__privateAdd, | ||
__privateGet, | ||
__privateSet, | ||
__privateWrapper | ||
} from "./chunk-WPSKCR32.js"; | ||
// src/mutationCache.ts | ||
import { notifyManager } from "./notifyManager.js"; | ||
import { Mutation } from "./mutation.js"; | ||
import { matchMutation, noop } from "./utils.js"; | ||
import { Subscribable } from "./subscribable.js"; | ||
var _mutations, _mutationId, _resuming; | ||
import { notifyManager } from "./notifyManager"; | ||
import { Mutation } from "./mutation"; | ||
import { matchMutation, noop } from "./utils"; | ||
import { Subscribable } from "./subscribable"; | ||
class MutationCache extends Subscribable { | ||
var MutationCache = class extends Subscribable { | ||
constructor(config = {}) { | ||
@@ -102,3 +84,3 @@ super(); | ||
} | ||
} | ||
}; | ||
_mutations = new WeakMap(); | ||
@@ -105,0 +87,0 @@ _mutationId = new WeakMap(); |
import './subscribable.js'; | ||
export { d as MutationObserver } from './queryClient-d615ed9f.js'; | ||
export { d as MutationObserver } from './queryClient-158dd7f5.js'; | ||
import './removable.js'; |
@@ -1,29 +0,15 @@ | ||
var __accessCheck = (obj, member, msg) => { | ||
if (!member.has(obj)) | ||
throw TypeError("Cannot " + msg); | ||
}; | ||
var __privateGet = (obj, member, getter) => { | ||
__accessCheck(obj, member, "read from private field"); | ||
return getter ? getter.call(obj) : member.get(obj); | ||
}; | ||
var __privateAdd = (obj, member, value) => { | ||
if (member.has(obj)) | ||
throw TypeError("Cannot add the same private member more than once"); | ||
member instanceof WeakSet ? member.add(obj) : member.set(obj, value); | ||
}; | ||
var __privateSet = (obj, member, value, setter) => { | ||
__accessCheck(obj, member, "write to private field"); | ||
setter ? setter.call(obj, value) : member.set(obj, value); | ||
return value; | ||
}; | ||
var __privateMethod = (obj, member, method) => { | ||
__accessCheck(obj, member, "access private method"); | ||
return method; | ||
}; | ||
import { | ||
__privateAdd, | ||
__privateGet, | ||
__privateMethod, | ||
__privateSet | ||
} from "./chunk-WPSKCR32.js"; | ||
// src/mutationObserver.ts | ||
import { getDefaultState } from "./mutation.js"; | ||
import { notifyManager } from "./notifyManager.js"; | ||
import { Subscribable } from "./subscribable.js"; | ||
import { shallowEqualObjects } from "./utils.js"; | ||
var _client, _currentResult, _currentMutation, _mutateOptions, _updateResult, updateResult_fn, _notify, notify_fn; | ||
import { getDefaultState } from "./mutation"; | ||
import { notifyManager } from "./notifyManager"; | ||
import { Subscribable } from "./subscribable"; | ||
import { shallowEqualObjects } from "./utils"; | ||
class MutationObserver extends Subscribable { | ||
var MutationObserver = class extends Subscribable { | ||
constructor(client, options) { | ||
@@ -85,3 +71,3 @@ super(); | ||
} | ||
} | ||
}; | ||
_client = new WeakMap(); | ||
@@ -88,0 +74,0 @@ _currentResult = new WeakMap(); |
@@ -1,2 +0,5 @@ | ||
import { scheduleMicrotask } from "./utils"; | ||
import "./chunk-WPSKCR32.js"; | ||
// src/notifyManager.ts | ||
import { scheduleMicrotask } from "./utils.js"; | ||
function createNotifyManager() { | ||
@@ -67,3 +70,3 @@ let queue = []; | ||
} | ||
const notifyManager = createNotifyManager(); | ||
var notifyManager = createNotifyManager(); | ||
export { | ||
@@ -70,0 +73,0 @@ createNotifyManager, |
@@ -1,23 +0,12 @@ | ||
var __accessCheck = (obj, member, msg) => { | ||
if (!member.has(obj)) | ||
throw TypeError("Cannot " + msg); | ||
}; | ||
var __privateGet = (obj, member, getter) => { | ||
__accessCheck(obj, member, "read from private field"); | ||
return getter ? getter.call(obj) : member.get(obj); | ||
}; | ||
var __privateAdd = (obj, member, value) => { | ||
if (member.has(obj)) | ||
throw TypeError("Cannot add the same private member more than once"); | ||
member instanceof WeakSet ? member.add(obj) : member.set(obj, value); | ||
}; | ||
var __privateSet = (obj, member, value, setter) => { | ||
__accessCheck(obj, member, "write to private field"); | ||
setter ? setter.call(obj, value) : member.set(obj, value); | ||
return value; | ||
}; | ||
import { | ||
__privateAdd, | ||
__privateGet, | ||
__privateSet | ||
} from "./chunk-WPSKCR32.js"; | ||
// src/onlineManager.ts | ||
import { Subscribable } from "./subscribable.js"; | ||
import { isServer } from "./utils.js"; | ||
var _online, _cleanup, _setup; | ||
import { Subscribable } from "./subscribable"; | ||
import { isServer } from "./utils"; | ||
class OnlineManager extends Subscribable { | ||
var OnlineManager = class extends Subscribable { | ||
constructor() { | ||
@@ -72,7 +61,7 @@ super(); | ||
} | ||
} | ||
}; | ||
_online = new WeakMap(); | ||
_cleanup = new WeakMap(); | ||
_setup = new WeakMap(); | ||
const onlineManager = new OnlineManager(); | ||
var onlineManager = new OnlineManager(); | ||
export { | ||
@@ -79,0 +68,0 @@ OnlineManager, |
@@ -1,2 +0,2 @@ | ||
import { a7 as QueryObserverResult, b as QueryClient, B as QueryObserverOptions, aA as NotifyOptions, j as Query, p as QueryKey, c as QueryObserver } from './queryClient-d615ed9f.js'; | ||
import { a7 as QueryObserverResult, b as QueryClient, B as QueryObserverOptions, aB as NotifyOptions, j as Query, p as QueryKey, c as QueryObserver } from './queryClient-158dd7f5.js'; | ||
import { Subscribable } from './subscribable.js'; | ||
@@ -3,0 +3,0 @@ import './removable.js'; |
@@ -1,28 +0,13 @@ | ||
var __accessCheck = (obj, member, msg) => { | ||
if (!member.has(obj)) | ||
throw TypeError("Cannot " + msg); | ||
}; | ||
var __privateGet = (obj, member, getter) => { | ||
__accessCheck(obj, member, "read from private field"); | ||
return getter ? getter.call(obj) : member.get(obj); | ||
}; | ||
var __privateAdd = (obj, member, value) => { | ||
if (member.has(obj)) | ||
throw TypeError("Cannot add the same private member more than once"); | ||
member instanceof WeakSet ? member.add(obj) : member.set(obj, value); | ||
}; | ||
var __privateSet = (obj, member, value, setter) => { | ||
__accessCheck(obj, member, "write to private field"); | ||
setter ? setter.call(obj, value) : member.set(obj, value); | ||
return value; | ||
}; | ||
var __privateMethod = (obj, member, method) => { | ||
__accessCheck(obj, member, "access private method"); | ||
return method; | ||
}; | ||
var _client, _result, _queries, _observers, _options, _combinedResult, _setResult, setResult_fn, _combineResult, combineResult_fn, _findMatchingObservers, findMatchingObservers_fn, _onUpdate, onUpdate_fn, _notify, notify_fn; | ||
import { notifyManager } from "./notifyManager"; | ||
import { QueryObserver } from "./queryObserver"; | ||
import { Subscribable } from "./subscribable"; | ||
import { replaceEqualDeep } from "./utils"; | ||
import { | ||
__privateAdd, | ||
__privateGet, | ||
__privateMethod, | ||
__privateSet | ||
} from "./chunk-WPSKCR32.js"; | ||
// src/queriesObserver.ts | ||
import { notifyManager } from "./notifyManager.js"; | ||
import { QueryObserver } from "./queryObserver.js"; | ||
import { Subscribable } from "./subscribable.js"; | ||
import { replaceEqualDeep } from "./utils.js"; | ||
function difference(array1, array2) { | ||
@@ -36,3 +21,4 @@ return array1.filter((x) => !array2.includes(x)); | ||
} | ||
class QueriesObserver extends Subscribable { | ||
var _client, _result, _queries, _observers, _options, _combinedResult, _setResult, setResult_fn, _combineResult, combineResult_fn, _findMatchingObservers, findMatchingObservers_fn, _onUpdate, onUpdate_fn, _notify, notify_fn; | ||
var QueriesObserver = class extends Subscribable { | ||
constructor(client, queries, options) { | ||
@@ -139,3 +125,3 @@ super(); | ||
} | ||
} | ||
}; | ||
_client = new WeakMap(); | ||
@@ -142,0 +128,0 @@ _result = new WeakMap(); |
import './removable.js'; | ||
export { b1 as Action, aZ as FetchContext, a_ as FetchDirection, a$ as FetchMeta, b0 as FetchOptions, j as Query, ay as QueryBehavior, l as QueryState, b2 as SetStateOptions } from './queryClient-d615ed9f.js'; | ||
export { b2 as Action, a_ as FetchContext, a$ as FetchDirection, b0 as FetchMeta, b1 as FetchOptions, j as Query, az as QueryBehavior, l as QueryState, b3 as SetStateOptions } from './queryClient-158dd7f5.js'; | ||
import './subscribable.js'; |
@@ -1,29 +0,15 @@ | ||
var __accessCheck = (obj, member, msg) => { | ||
if (!member.has(obj)) | ||
throw TypeError("Cannot " + msg); | ||
}; | ||
var __privateGet = (obj, member, getter) => { | ||
__accessCheck(obj, member, "read from private field"); | ||
return getter ? getter.call(obj) : member.get(obj); | ||
}; | ||
var __privateAdd = (obj, member, value) => { | ||
if (member.has(obj)) | ||
throw TypeError("Cannot add the same private member more than once"); | ||
member instanceof WeakSet ? member.add(obj) : member.set(obj, value); | ||
}; | ||
var __privateSet = (obj, member, value, setter) => { | ||
__accessCheck(obj, member, "write to private field"); | ||
setter ? setter.call(obj, value) : member.set(obj, value); | ||
return value; | ||
}; | ||
var __privateMethod = (obj, member, method) => { | ||
__accessCheck(obj, member, "access private method"); | ||
return method; | ||
}; | ||
import { | ||
__privateAdd, | ||
__privateGet, | ||
__privateMethod, | ||
__privateSet | ||
} from "./chunk-WPSKCR32.js"; | ||
// src/query.ts | ||
import { noop, replaceData, timeUntilStale } from "./utils.js"; | ||
import { notifyManager } from "./notifyManager.js"; | ||
import { canFetch, createRetryer, isCancelledError } from "./retryer.js"; | ||
import { Removable } from "./removable.js"; | ||
var _initialState, _revertState, _cache, _promise, _retryer, _observers, _defaultOptions, _abortSignalConsumed, _setOptions, setOptions_fn, _dispatch, dispatch_fn; | ||
import { noop, replaceData, timeUntilStale } from "./utils"; | ||
import { notifyManager } from "./notifyManager"; | ||
import { canFetch, createRetryer, isCancelledError } from "./retryer"; | ||
import { Removable } from "./removable"; | ||
class Query extends Removable { | ||
var Query = class extends Removable { | ||
constructor(config) { | ||
@@ -281,3 +267,3 @@ super(); | ||
} | ||
} | ||
}; | ||
_initialState = new WeakMap(); | ||
@@ -284,0 +270,0 @@ _revertState = new WeakMap(); |
@@ -1,3 +0,3 @@ | ||
export { Q as QueryCache, a as QueryCacheNotifyEvent, b3 as QueryStore } from './queryClient-d615ed9f.js'; | ||
export { Q as QueryCache, a as QueryCacheNotifyEvent, b4 as QueryStore } from './queryClient-158dd7f5.js'; | ||
import './subscribable.js'; | ||
import './removable.js'; |
@@ -1,25 +0,14 @@ | ||
var __accessCheck = (obj, member, msg) => { | ||
if (!member.has(obj)) | ||
throw TypeError("Cannot " + msg); | ||
}; | ||
var __privateGet = (obj, member, getter) => { | ||
__accessCheck(obj, member, "read from private field"); | ||
return getter ? getter.call(obj) : member.get(obj); | ||
}; | ||
var __privateAdd = (obj, member, value) => { | ||
if (member.has(obj)) | ||
throw TypeError("Cannot add the same private member more than once"); | ||
member instanceof WeakSet ? member.add(obj) : member.set(obj, value); | ||
}; | ||
var __privateSet = (obj, member, value, setter) => { | ||
__accessCheck(obj, member, "write to private field"); | ||
setter ? setter.call(obj, value) : member.set(obj, value); | ||
return value; | ||
}; | ||
import { | ||
__privateAdd, | ||
__privateGet, | ||
__privateSet | ||
} from "./chunk-WPSKCR32.js"; | ||
// src/queryCache.ts | ||
import { hashQueryKeyByOptions, matchQuery } from "./utils.js"; | ||
import { Query } from "./query.js"; | ||
import { notifyManager } from "./notifyManager.js"; | ||
import { Subscribable } from "./subscribable.js"; | ||
var _queries; | ||
import { hashQueryKeyByOptions, matchQuery } from "./utils"; | ||
import { Query } from "./query"; | ||
import { notifyManager } from "./notifyManager"; | ||
import { Subscribable } from "./subscribable"; | ||
class QueryCache extends Subscribable { | ||
var QueryCache = class extends Subscribable { | ||
constructor(config = {}) { | ||
@@ -111,3 +100,3 @@ super(); | ||
} | ||
} | ||
}; | ||
_queries = new WeakMap(); | ||
@@ -114,0 +103,0 @@ export { |
@@ -1,3 +0,3 @@ | ||
export { b as QueryClient } from './queryClient-d615ed9f.js'; | ||
export { b as QueryClient } from './queryClient-158dd7f5.js'; | ||
import './removable.js'; | ||
import './subscribable.js'; |
@@ -1,29 +0,10 @@ | ||
var __accessCheck = (obj, member, msg) => { | ||
if (!member.has(obj)) | ||
throw TypeError("Cannot " + msg); | ||
}; | ||
var __privateGet = (obj, member, getter) => { | ||
__accessCheck(obj, member, "read from private field"); | ||
return getter ? getter.call(obj) : member.get(obj); | ||
}; | ||
var __privateAdd = (obj, member, value) => { | ||
if (member.has(obj)) | ||
throw TypeError("Cannot add the same private member more than once"); | ||
member instanceof WeakSet ? member.add(obj) : member.set(obj, value); | ||
}; | ||
var __privateSet = (obj, member, value, setter) => { | ||
__accessCheck(obj, member, "write to private field"); | ||
setter ? setter.call(obj, value) : member.set(obj, value); | ||
return value; | ||
}; | ||
var __privateWrapper = (obj, member, setter, getter) => ({ | ||
set _(value) { | ||
__privateSet(obj, member, value, setter); | ||
}, | ||
get _() { | ||
return __privateGet(obj, member, getter); | ||
} | ||
}); | ||
var _queryCache, _mutationCache, _defaultOptions, _queryDefaults, _mutationDefaults, _mountCount, _unsubscribeFocus, _unsubscribeOnline; | ||
import { | ||
__privateAdd, | ||
__privateGet, | ||
__privateSet, | ||
__privateWrapper | ||
} from "./chunk-WPSKCR32.js"; | ||
// src/queryClient.ts | ||
import { | ||
functionalUpdate, | ||
@@ -34,10 +15,11 @@ hashKey, | ||
partialMatchKey | ||
} from "./utils"; | ||
import { QueryCache } from "./queryCache"; | ||
import { MutationCache } from "./mutationCache"; | ||
import { focusManager } from "./focusManager"; | ||
import { onlineManager } from "./onlineManager"; | ||
import { notifyManager } from "./notifyManager"; | ||
import { infiniteQueryBehavior } from "./infiniteQueryBehavior"; | ||
class QueryClient { | ||
} from "./utils.js"; | ||
import { QueryCache } from "./queryCache.js"; | ||
import { MutationCache } from "./mutationCache.js"; | ||
import { focusManager } from "./focusManager.js"; | ||
import { onlineManager } from "./onlineManager.js"; | ||
import { notifyManager } from "./notifyManager.js"; | ||
import { infiniteQueryBehavior } from "./infiniteQueryBehavior.js"; | ||
var _queryCache, _mutationCache, _defaultOptions, _queryDefaults, _mutationDefaults, _mountCount, _unsubscribeFocus, _unsubscribeOnline; | ||
var QueryClient = class { | ||
constructor(config = {}) { | ||
@@ -293,3 +275,3 @@ __privateAdd(this, _queryCache, void 0); | ||
} | ||
} | ||
}; | ||
_queryCache = new WeakMap(); | ||
@@ -296,0 +278,0 @@ _mutationCache = new WeakMap(); |
import './subscribable.js'; | ||
export { aA as NotifyOptions, az as ObserverFetchOptions, c as QueryObserver } from './queryClient-d615ed9f.js'; | ||
export { aB as NotifyOptions, aA as ObserverFetchOptions, c as QueryObserver } from './queryClient-158dd7f5.js'; | ||
import './removable.js'; |
@@ -1,25 +0,10 @@ | ||
var __accessCheck = (obj, member, msg) => { | ||
if (!member.has(obj)) | ||
throw TypeError("Cannot " + msg); | ||
}; | ||
var __privateGet = (obj, member, getter) => { | ||
__accessCheck(obj, member, "read from private field"); | ||
return getter ? getter.call(obj) : member.get(obj); | ||
}; | ||
var __privateAdd = (obj, member, value) => { | ||
if (member.has(obj)) | ||
throw TypeError("Cannot add the same private member more than once"); | ||
member instanceof WeakSet ? member.add(obj) : member.set(obj, value); | ||
}; | ||
var __privateSet = (obj, member, value, setter) => { | ||
__accessCheck(obj, member, "write to private field"); | ||
setter ? setter.call(obj, value) : member.set(obj, value); | ||
return value; | ||
}; | ||
var __privateMethod = (obj, member, method) => { | ||
__accessCheck(obj, member, "access private method"); | ||
return method; | ||
}; | ||
var _client, _currentQuery, _currentQueryInitialState, _currentResult, _currentResultState, _currentResultOptions, _selectError, _selectFn, _selectResult, _lastQueryWithDefinedData, _staleTimeoutId, _refetchIntervalId, _currentRefetchInterval, _trackedProps, _executeFetch, executeFetch_fn, _updateStaleTimeout, updateStaleTimeout_fn, _computeRefetchInterval, computeRefetchInterval_fn, _updateRefetchInterval, updateRefetchInterval_fn, _updateTimers, updateTimers_fn, _clearStaleTimeout, clearStaleTimeout_fn, _clearRefetchInterval, clearRefetchInterval_fn, _updateQuery, updateQuery_fn, _notify, notify_fn; | ||
import { | ||
__privateAdd, | ||
__privateGet, | ||
__privateMethod, | ||
__privateSet | ||
} from "./chunk-WPSKCR32.js"; | ||
// src/queryObserver.ts | ||
import { | ||
isServer, | ||
@@ -31,8 +16,9 @@ isValidTimeout, | ||
timeUntilStale | ||
} from "./utils"; | ||
import { notifyManager } from "./notifyManager"; | ||
import { focusManager } from "./focusManager"; | ||
import { Subscribable } from "./subscribable"; | ||
import { canFetch } from "./retryer"; | ||
class QueryObserver extends Subscribable { | ||
} from "./utils.js"; | ||
import { notifyManager } from "./notifyManager.js"; | ||
import { focusManager } from "./focusManager.js"; | ||
import { Subscribable } from "./subscribable.js"; | ||
import { canFetch } from "./retryer.js"; | ||
var _client, _currentQuery, _currentQueryInitialState, _currentResult, _currentResultState, _currentResultOptions, _selectError, _selectFn, _selectResult, _lastQueryWithDefinedData, _staleTimeoutId, _refetchIntervalId, _currentRefetchInterval, _trackedProps, _executeFetch, executeFetch_fn, _updateStaleTimeout, updateStaleTimeout_fn, _computeRefetchInterval, computeRefetchInterval_fn, _updateRefetchInterval, updateRefetchInterval_fn, _updateTimers, updateTimers_fn, _clearStaleTimeout, clearStaleTimeout_fn, _clearRefetchInterval, clearRefetchInterval_fn, _updateQuery, updateQuery_fn, _notify, notify_fn; | ||
var QueryObserver = class extends Subscribable { | ||
constructor(client, options) { | ||
@@ -346,3 +332,3 @@ super(); | ||
} | ||
} | ||
}; | ||
_client = new WeakMap(); | ||
@@ -349,0 +335,0 @@ _currentQuery = new WeakMap(); |
@@ -1,22 +0,11 @@ | ||
var __accessCheck = (obj, member, msg) => { | ||
if (!member.has(obj)) | ||
throw TypeError("Cannot " + msg); | ||
}; | ||
var __privateGet = (obj, member, getter) => { | ||
__accessCheck(obj, member, "read from private field"); | ||
return getter ? getter.call(obj) : member.get(obj); | ||
}; | ||
var __privateAdd = (obj, member, value) => { | ||
if (member.has(obj)) | ||
throw TypeError("Cannot add the same private member more than once"); | ||
member instanceof WeakSet ? member.add(obj) : member.set(obj, value); | ||
}; | ||
var __privateSet = (obj, member, value, setter) => { | ||
__accessCheck(obj, member, "write to private field"); | ||
setter ? setter.call(obj, value) : member.set(obj, value); | ||
return value; | ||
}; | ||
import { | ||
__privateAdd, | ||
__privateGet, | ||
__privateSet | ||
} from "./chunk-WPSKCR32.js"; | ||
// src/removable.ts | ||
import { isServer, isValidTimeout } from "./utils.js"; | ||
var _gcTimeout; | ||
import { isServer, isValidTimeout } from "./utils"; | ||
class Removable { | ||
var Removable = class { | ||
constructor() { | ||
@@ -48,3 +37,3 @@ __privateAdd(this, _gcTimeout, void 0); | ||
} | ||
} | ||
}; | ||
_gcTimeout = new WeakMap(); | ||
@@ -51,0 +40,0 @@ export { |
@@ -1,3 +0,3 @@ | ||
export { C as CancelledError, aW as RetryDelayValue, aV as RetryValue, aU as Retryer, aX as canFetch, aY as createRetryer, g as isCancelledError } from './queryClient-d615ed9f.js'; | ||
export { C as CancelledError, aX as RetryDelayValue, aW as RetryValue, aV as Retryer, aY as canFetch, aZ as createRetryer, g as isCancelledError } from './queryClient-158dd7f5.js'; | ||
import './removable.js'; | ||
import './subscribable.js'; |
@@ -1,4 +0,7 @@ | ||
import { focusManager } from "./focusManager"; | ||
import { onlineManager } from "./onlineManager"; | ||
import { sleep } from "./utils"; | ||
import "./chunk-WPSKCR32.js"; | ||
// src/retryer.ts | ||
import { focusManager } from "./focusManager.js"; | ||
import { onlineManager } from "./onlineManager.js"; | ||
import { sleep } from "./utils.js"; | ||
function defaultRetryDelay(failureCount) { | ||
@@ -10,3 +13,3 @@ return Math.min(1e3 * 2 ** failureCount, 3e4); | ||
} | ||
class CancelledError { | ||
var CancelledError = class { | ||
constructor(options) { | ||
@@ -16,3 +19,3 @@ this.revert = options == null ? void 0 : options.revert; | ||
} | ||
} | ||
}; | ||
function isCancelledError(value) { | ||
@@ -19,0 +22,0 @@ return value instanceof CancelledError; |
@@ -1,2 +0,5 @@ | ||
class Subscribable { | ||
import "./chunk-WPSKCR32.js"; | ||
// src/subscribable.ts | ||
var Subscribable = class { | ||
constructor() { | ||
@@ -21,3 +24,3 @@ this.listeners = /* @__PURE__ */ new Set(); | ||
} | ||
} | ||
}; | ||
export { | ||
@@ -24,0 +27,0 @@ Subscribable |
@@ -1,3 +0,3 @@ | ||
export { au as CancelOptions, D as DefaultError, at as DefaultOptions, z as DefaultPageParam, H as DefaultedInfiniteQueryObserverOptions, E as DefaultedQueryObserverOptions, a6 as DefinedQueryObserverResult, K as FetchInfiniteQueryOptions, Z as FetchNextPageOptions, _ as FetchPreviousPageOptions, J as FetchQueryOptions, a0 as FetchStatus, v as GetNextPageParamFunction, G as GetPreviousPageParamFunction, w as InfiniteData, a8 as InfiniteQueryObserverBaseResult, aa as InfiniteQueryObserverLoadingErrorResult, a9 as InfiniteQueryObserverLoadingResult, F as InfiniteQueryObserverOptions, ab as InfiniteQueryObserverRefetchErrorResult, ad as InfiniteQueryObserverResult, ac as InfiniteQueryObserverSuccessResult, A as InfiniteQueryPageParamsOptions, I as InitialDataFunction, X as InvalidateOptions, S as InvalidateQueryFilters, al as MutateFunction, ak as MutateOptions, ah as MutationFunction, ae as MutationKey, ag as MutationMeta, am as MutationObserverBaseResult, ap as MutationObserverErrorResult, an as MutationObserverIdleResult, ao as MutationObserverLoadingResult, aj as MutationObserverOptions, ar as MutationObserverResult, aq as MutationObserverSuccessResult, ai as MutationOptions, af as MutationStatus, N as NetworkMode, ax as NotifyEvent, aw as NotifyEventType, P as PlaceholderDataFunction, t as QueriesPlaceholderDataFunction, as as QueryClientConfig, q as QueryFunction, s as QueryFunctionContext, p as QueryKey, u as QueryKeyHashFunction, x as QueryMeta, a1 as QueryObserverBaseResult, a3 as QueryObserverLoadingErrorResult, a2 as QueryObserverLoadingResult, B as QueryObserverOptions, a4 as QueryObserverRefetchErrorResult, a7 as QueryObserverResult, a5 as QueryObserverSuccessResult, y as QueryOptions, $ as QueryStatus, O as RefetchOptions, V as RefetchQueryFilters, R as Register, Y as ResetOptions, L as ResultOptions, av as SetDataOptions, T as ThrowOnError, W as WithRequired } from './queryClient-d615ed9f.js'; | ||
export { av as CancelOptions, D as DefaultError, au as DefaultOptions, z as DefaultPageParam, H as DefaultedInfiniteQueryObserverOptions, E as DefaultedQueryObserverOptions, ad as DefinedInfiniteQueryObserverResult, a6 as DefinedQueryObserverResult, K as FetchInfiniteQueryOptions, Z as FetchNextPageOptions, _ as FetchPreviousPageOptions, J as FetchQueryOptions, a0 as FetchStatus, v as GetNextPageParamFunction, G as GetPreviousPageParamFunction, w as InfiniteData, a8 as InfiniteQueryObserverBaseResult, aa as InfiniteQueryObserverLoadingErrorResult, a9 as InfiniteQueryObserverLoadingResult, F as InfiniteQueryObserverOptions, ab as InfiniteQueryObserverRefetchErrorResult, ae as InfiniteQueryObserverResult, ac as InfiniteQueryObserverSuccessResult, A as InfiniteQueryPageParamsOptions, I as InitialDataFunction, X as InvalidateOptions, S as InvalidateQueryFilters, am as MutateFunction, al as MutateOptions, ai as MutationFunction, af as MutationKey, ah as MutationMeta, an as MutationObserverBaseResult, aq as MutationObserverErrorResult, ao as MutationObserverIdleResult, ap as MutationObserverLoadingResult, ak as MutationObserverOptions, as as MutationObserverResult, ar as MutationObserverSuccessResult, aj as MutationOptions, ag as MutationStatus, N as NetworkMode, ay as NotifyEvent, ax as NotifyEventType, P as PlaceholderDataFunction, t as QueriesPlaceholderDataFunction, at as QueryClientConfig, q as QueryFunction, s as QueryFunctionContext, p as QueryKey, u as QueryKeyHashFunction, x as QueryMeta, a1 as QueryObserverBaseResult, a3 as QueryObserverLoadingErrorResult, a2 as QueryObserverLoadingResult, B as QueryObserverOptions, a4 as QueryObserverRefetchErrorResult, a7 as QueryObserverResult, a5 as QueryObserverSuccessResult, y as QueryOptions, $ as QueryStatus, O as RefetchOptions, V as RefetchQueryFilters, R as Register, Y as ResetOptions, L as ResultOptions, aw as SetDataOptions, T as ThrowOnError, W as WithRequired } from './queryClient-158dd7f5.js'; | ||
import './removable.js'; | ||
import './subscribable.js'; |
@@ -1,3 +0,3 @@ | ||
export { aB as DataUpdateFunction, e as MutationFilters, f as QueryFilters, aC as QueryTypeFilter, U as Updater, aQ as addToEnd, aR as addToStart, aE as functionalUpdate, h as hashKey, aI as hashQueryKeyByOptions, aL as isPlainArray, aM as isPlainObject, i as isServer, aF as isValidTimeout, k as keepPreviousData, aH as matchMutation, m as matchQuery, aD as noop, aJ as partialMatchKey, aP as replaceData, r as replaceEqualDeep, aO as scheduleMicrotask, aK as shallowEqualObjects, aN as sleep, aG as timeUntilStale } from './queryClient-d615ed9f.js'; | ||
export { aC as DataUpdateFunction, e as MutationFilters, f as QueryFilters, aD as QueryTypeFilter, U as Updater, aR as addToEnd, aS as addToStart, aF as functionalUpdate, h as hashKey, aJ as hashQueryKeyByOptions, aM as isPlainArray, aN as isPlainObject, i as isServer, aG as isValidTimeout, k as keepPreviousData, aI as matchMutation, m as matchQuery, aE as noop, aK as partialMatchKey, aQ as replaceData, r as replaceEqualDeep, aP as scheduleMicrotask, aL as shallowEqualObjects, aO as sleep, aH as timeUntilStale } from './queryClient-158dd7f5.js'; | ||
import './removable.js'; | ||
import './subscribable.js'; |
@@ -1,2 +0,5 @@ | ||
const isServer = typeof window === "undefined" || "Deno" in window; | ||
import "./chunk-WPSKCR32.js"; | ||
// src/utils.ts | ||
var isServer = typeof window === "undefined" || "Deno" in window; | ||
function noop() { | ||
@@ -3,0 +6,0 @@ return void 0; |
@@ -1,4 +0,5 @@ | ||
import { Subscribable } from "./subscribable"; | ||
import { isServer } from "./utils"; | ||
class FocusManager extends Subscribable { | ||
// src/focusManager.ts | ||
import { Subscribable } from "./subscribable.js"; | ||
import { isServer } from "./utils.js"; | ||
var FocusManager = class extends Subscribable { | ||
#focused; | ||
@@ -60,4 +61,4 @@ #cleanup; | ||
} | ||
} | ||
const focusManager = new FocusManager(); | ||
}; | ||
var focusManager = new FocusManager(); | ||
export { | ||
@@ -64,0 +65,0 @@ FocusManager, |
@@ -1,2 +0,2 @@ | ||
import { n as Mutation, j as Query, y as QueryOptions, ai as MutationOptions, b as QueryClient, ae as MutationKey, o as MutationState, ag as MutationMeta, p as QueryKey, l as QueryState, x as QueryMeta } from './queryClient-d615ed9f.js'; | ||
import { n as Mutation, j as Query, y as QueryOptions, aj as MutationOptions, b as QueryClient, af as MutationKey, o as MutationState, ah as MutationMeta, p as QueryKey, l as QueryState, x as QueryMeta } from './queryClient-158dd7f5.js'; | ||
import './removable.js'; | ||
@@ -3,0 +3,0 @@ import './subscribable.js'; |
@@ -0,1 +1,2 @@ | ||
// src/hydration.ts | ||
function dehydrateMutation(mutation) { | ||
@@ -2,0 +3,0 @@ return { |
@@ -1,2 +0,2 @@ | ||
export { au as CancelOptions, C as CancelledError, D as DefaultError, at as DefaultOptions, z as DefaultPageParam, H as DefaultedInfiniteQueryObserverOptions, E as DefaultedQueryObserverOptions, a6 as DefinedQueryObserverResult, K as FetchInfiniteQueryOptions, Z as FetchNextPageOptions, _ as FetchPreviousPageOptions, J as FetchQueryOptions, a0 as FetchStatus, v as GetNextPageParamFunction, G as GetPreviousPageParamFunction, w as InfiniteData, a8 as InfiniteQueryObserverBaseResult, aa as InfiniteQueryObserverLoadingErrorResult, a9 as InfiniteQueryObserverLoadingResult, F as InfiniteQueryObserverOptions, ab as InfiniteQueryObserverRefetchErrorResult, ad as InfiniteQueryObserverResult, ac as InfiniteQueryObserverSuccessResult, A as InfiniteQueryPageParamsOptions, I as InitialDataFunction, X as InvalidateOptions, S as InvalidateQueryFilters, al as MutateFunction, ak as MutateOptions, n as Mutation, M as MutationCache, e as MutationFilters, ah as MutationFunction, ae as MutationKey, ag as MutationMeta, d as MutationObserver, am as MutationObserverBaseResult, ap as MutationObserverErrorResult, an as MutationObserverIdleResult, ao as MutationObserverLoadingResult, aj as MutationObserverOptions, ar as MutationObserverResult, aq as MutationObserverSuccessResult, ai as MutationOptions, o as MutationState, af as MutationStatus, N as NetworkMode, ax as NotifyEvent, aw as NotifyEventType, P as PlaceholderDataFunction, t as QueriesPlaceholderDataFunction, j as Query, Q as QueryCache, a as QueryCacheNotifyEvent, b as QueryClient, as as QueryClientConfig, f as QueryFilters, q as QueryFunction, s as QueryFunctionContext, p as QueryKey, u as QueryKeyHashFunction, x as QueryMeta, c as QueryObserver, a1 as QueryObserverBaseResult, a3 as QueryObserverLoadingErrorResult, a2 as QueryObserverLoadingResult, B as QueryObserverOptions, a4 as QueryObserverRefetchErrorResult, a7 as QueryObserverResult, a5 as QueryObserverSuccessResult, y as QueryOptions, l as QueryState, $ as QueryStatus, O as RefetchOptions, V as RefetchQueryFilters, R as Register, Y as ResetOptions, L as ResultOptions, av as SetDataOptions, T as ThrowOnError, U as Updater, W as WithRequired, h as hashKey, g as isCancelledError, i as isServer, k as keepPreviousData, m as matchQuery, r as replaceEqualDeep } from './queryClient-d615ed9f.js'; | ||
export { av as CancelOptions, C as CancelledError, D as DefaultError, au as DefaultOptions, z as DefaultPageParam, H as DefaultedInfiniteQueryObserverOptions, E as DefaultedQueryObserverOptions, ad as DefinedInfiniteQueryObserverResult, a6 as DefinedQueryObserverResult, K as FetchInfiniteQueryOptions, Z as FetchNextPageOptions, _ as FetchPreviousPageOptions, J as FetchQueryOptions, a0 as FetchStatus, v as GetNextPageParamFunction, G as GetPreviousPageParamFunction, w as InfiniteData, a8 as InfiniteQueryObserverBaseResult, aa as InfiniteQueryObserverLoadingErrorResult, a9 as InfiniteQueryObserverLoadingResult, F as InfiniteQueryObserverOptions, ab as InfiniteQueryObserverRefetchErrorResult, ae as InfiniteQueryObserverResult, ac as InfiniteQueryObserverSuccessResult, A as InfiniteQueryPageParamsOptions, I as InitialDataFunction, X as InvalidateOptions, S as InvalidateQueryFilters, am as MutateFunction, al as MutateOptions, n as Mutation, M as MutationCache, e as MutationFilters, ai as MutationFunction, af as MutationKey, ah as MutationMeta, d as MutationObserver, an as MutationObserverBaseResult, aq as MutationObserverErrorResult, ao as MutationObserverIdleResult, ap as MutationObserverLoadingResult, ak as MutationObserverOptions, as as MutationObserverResult, ar as MutationObserverSuccessResult, aj as MutationOptions, o as MutationState, ag as MutationStatus, N as NetworkMode, ay as NotifyEvent, ax as NotifyEventType, P as PlaceholderDataFunction, t as QueriesPlaceholderDataFunction, j as Query, Q as QueryCache, a as QueryCacheNotifyEvent, b as QueryClient, at as QueryClientConfig, f as QueryFilters, q as QueryFunction, s as QueryFunctionContext, p as QueryKey, u as QueryKeyHashFunction, x as QueryMeta, c as QueryObserver, a1 as QueryObserverBaseResult, a3 as QueryObserverLoadingErrorResult, a2 as QueryObserverLoadingResult, B as QueryObserverOptions, a4 as QueryObserverRefetchErrorResult, a7 as QueryObserverResult, a5 as QueryObserverSuccessResult, y as QueryOptions, l as QueryState, $ as QueryStatus, O as RefetchOptions, V as RefetchQueryFilters, R as Register, Y as ResetOptions, L as ResultOptions, aw as SetDataOptions, T as ThrowOnError, U as Updater, W as WithRequired, h as hashKey, g as isCancelledError, i as isServer, k as keepPreviousData, m as matchQuery, r as replaceEqualDeep } from './queryClient-158dd7f5.js'; | ||
export { QueriesObserver, QueriesObserverOptions } from './queriesObserver.js'; | ||
@@ -3,0 +3,0 @@ export { InfiniteQueryObserver } from './infiniteQueryObserver.js'; |
@@ -1,12 +0,13 @@ | ||
import { CancelledError } from "./retryer"; | ||
import { QueryCache } from "./queryCache"; | ||
import { QueryClient } from "./queryClient"; | ||
import { QueryObserver } from "./queryObserver"; | ||
import { QueriesObserver } from "./queriesObserver"; | ||
import { InfiniteQueryObserver } from "./infiniteQueryObserver"; | ||
import { MutationCache } from "./mutationCache"; | ||
import { MutationObserver } from "./mutationObserver"; | ||
import { notifyManager } from "./notifyManager"; | ||
import { focusManager } from "./focusManager"; | ||
import { onlineManager } from "./onlineManager"; | ||
// src/index.ts | ||
import { CancelledError } from "./retryer.js"; | ||
import { QueryCache } from "./queryCache.js"; | ||
import { QueryClient } from "./queryClient.js"; | ||
import { QueryObserver } from "./queryObserver.js"; | ||
import { QueriesObserver } from "./queriesObserver.js"; | ||
import { InfiniteQueryObserver } from "./infiniteQueryObserver.js"; | ||
import { MutationCache } from "./mutationCache.js"; | ||
import { MutationObserver } from "./mutationObserver.js"; | ||
import { notifyManager } from "./notifyManager.js"; | ||
import { focusManager } from "./focusManager.js"; | ||
import { onlineManager } from "./onlineManager.js"; | ||
import { | ||
@@ -18,4 +19,4 @@ hashKey, | ||
keepPreviousData | ||
} from "./utils"; | ||
import { isCancelledError } from "./retryer"; | ||
} from "./utils.js"; | ||
import { isCancelledError } from "./retryer.js"; | ||
import { | ||
@@ -26,4 +27,4 @@ dehydrate, | ||
defaultShouldDehydrateMutation | ||
} from "./hydration"; | ||
export * from "./types"; | ||
} from "./hydration.js"; | ||
export * from "./types.js"; | ||
export { | ||
@@ -30,0 +31,0 @@ CancelledError, |
@@ -1,2 +0,2 @@ | ||
import { ay as QueryBehavior, w as InfiniteData, A as InfiniteQueryPageParamsOptions } from './queryClient-d615ed9f.js'; | ||
import { az as QueryBehavior, w as InfiniteData, A as InfiniteQueryPageParamsOptions } from './queryClient-158dd7f5.js'; | ||
import './removable.js'; | ||
@@ -3,0 +3,0 @@ import './subscribable.js'; |
@@ -1,2 +0,3 @@ | ||
import { addToEnd, addToStart } from "./utils"; | ||
// src/infiniteQueryBehavior.ts | ||
import { addToEnd, addToStart } from "./utils.js"; | ||
function infiniteQueryBehavior(pages) { | ||
@@ -3,0 +4,0 @@ return { |
@@ -1,2 +0,2 @@ | ||
import { D as DefaultError, w as InfiniteData, p as QueryKey, c as QueryObserver, ad as InfiniteQueryObserverResult, az as ObserverFetchOptions, b as QueryClient, F as InfiniteQueryObserverOptions, aA as NotifyOptions, H as DefaultedInfiniteQueryObserverOptions, Z as FetchNextPageOptions, _ as FetchPreviousPageOptions, j as Query } from './queryClient-d615ed9f.js'; | ||
import { D as DefaultError, w as InfiniteData, p as QueryKey, c as QueryObserver, ae as InfiniteQueryObserverResult, aA as ObserverFetchOptions, b as QueryClient, F as InfiniteQueryObserverOptions, aB as NotifyOptions, H as DefaultedInfiniteQueryObserverOptions, Z as FetchNextPageOptions, _ as FetchPreviousPageOptions, j as Query } from './queryClient-158dd7f5.js'; | ||
import './removable.js'; | ||
@@ -3,0 +3,0 @@ import './subscribable.js'; |
@@ -1,2 +0,3 @@ | ||
import { QueryObserver } from "./queryObserver"; | ||
// src/infiniteQueryObserver.ts | ||
import { QueryObserver } from "./queryObserver.js"; | ||
import { | ||
@@ -6,4 +7,4 @@ hasNextPage, | ||
infiniteQueryBehavior | ||
} from "./infiniteQueryBehavior"; | ||
class InfiniteQueryObserver extends QueryObserver { | ||
} from "./infiniteQueryBehavior.js"; | ||
var InfiniteQueryObserver = class extends QueryObserver { | ||
// eslint-disable-next-line @typescript-eslint/no-useless-constructor | ||
@@ -64,3 +65,3 @@ constructor(client, options) { | ||
} | ||
} | ||
}; | ||
export { | ||
@@ -67,0 +68,0 @@ InfiniteQueryObserver |
import './removable.js'; | ||
export { aS as Action, n as Mutation, o as MutationState, aT as getDefaultState } from './queryClient-d615ed9f.js'; | ||
export { aT as Action, n as Mutation, o as MutationState, aU as getDefaultState } from './queryClient-158dd7f5.js'; | ||
import './subscribable.js'; |
@@ -1,5 +0,6 @@ | ||
import { notifyManager } from "./notifyManager"; | ||
import { Removable } from "./removable"; | ||
import { canFetch, createRetryer } from "./retryer"; | ||
class Mutation extends Removable { | ||
// src/mutation.ts | ||
import { notifyManager } from "./notifyManager.js"; | ||
import { Removable } from "./removable.js"; | ||
import { canFetch, createRetryer } from "./retryer.js"; | ||
var Mutation = class extends Removable { | ||
constructor(config) { | ||
@@ -216,3 +217,3 @@ super(); | ||
} | ||
} | ||
}; | ||
function getDefaultState() { | ||
@@ -219,0 +220,0 @@ return { |
@@ -1,3 +0,3 @@ | ||
export { M as MutationCache } from './queryClient-d615ed9f.js'; | ||
export { M as MutationCache } from './queryClient-158dd7f5.js'; | ||
import './subscribable.js'; | ||
import './removable.js'; |
@@ -1,6 +0,7 @@ | ||
import { notifyManager } from "./notifyManager"; | ||
import { Mutation } from "./mutation"; | ||
import { matchMutation, noop } from "./utils"; | ||
import { Subscribable } from "./subscribable"; | ||
class MutationCache extends Subscribable { | ||
// src/mutationCache.ts | ||
import { notifyManager } from "./notifyManager.js"; | ||
import { Mutation } from "./mutation.js"; | ||
import { matchMutation, noop } from "./utils.js"; | ||
import { Subscribable } from "./subscribable.js"; | ||
var MutationCache = class extends Subscribable { | ||
constructor(config = {}) { | ||
@@ -75,3 +76,3 @@ super(); | ||
} | ||
} | ||
}; | ||
export { | ||
@@ -78,0 +79,0 @@ MutationCache |
import './subscribable.js'; | ||
export { d as MutationObserver } from './queryClient-d615ed9f.js'; | ||
export { d as MutationObserver } from './queryClient-158dd7f5.js'; | ||
import './removable.js'; |
@@ -1,6 +0,7 @@ | ||
import { getDefaultState } from "./mutation"; | ||
import { notifyManager } from "./notifyManager"; | ||
import { Subscribable } from "./subscribable"; | ||
import { shallowEqualObjects } from "./utils"; | ||
class MutationObserver extends Subscribable { | ||
// src/mutationObserver.ts | ||
import { getDefaultState } from "./mutation.js"; | ||
import { notifyManager } from "./notifyManager.js"; | ||
import { Subscribable } from "./subscribable.js"; | ||
import { shallowEqualObjects } from "./utils.js"; | ||
var MutationObserver = class extends Subscribable { | ||
constructor(client, options) { | ||
@@ -104,3 +105,3 @@ super(); | ||
} | ||
} | ||
}; | ||
export { | ||
@@ -107,0 +108,0 @@ MutationObserver |
@@ -1,2 +0,3 @@ | ||
import { scheduleMicrotask } from "./utils"; | ||
// src/notifyManager.ts | ||
import { scheduleMicrotask } from "./utils.js"; | ||
function createNotifyManager() { | ||
@@ -67,3 +68,3 @@ let queue = []; | ||
} | ||
const notifyManager = createNotifyManager(); | ||
var notifyManager = createNotifyManager(); | ||
export { | ||
@@ -70,0 +71,0 @@ createNotifyManager, |
@@ -1,4 +0,5 @@ | ||
import { Subscribable } from "./subscribable"; | ||
import { isServer } from "./utils"; | ||
class OnlineManager extends Subscribable { | ||
// src/onlineManager.ts | ||
import { Subscribable } from "./subscribable.js"; | ||
import { isServer } from "./utils.js"; | ||
var OnlineManager = class extends Subscribable { | ||
#online = true; | ||
@@ -51,4 +52,4 @@ #cleanup; | ||
} | ||
} | ||
const onlineManager = new OnlineManager(); | ||
}; | ||
var onlineManager = new OnlineManager(); | ||
export { | ||
@@ -55,0 +56,0 @@ OnlineManager, |
@@ -1,2 +0,2 @@ | ||
import { a7 as QueryObserverResult, b as QueryClient, B as QueryObserverOptions, aA as NotifyOptions, j as Query, p as QueryKey, c as QueryObserver } from './queryClient-d615ed9f.js'; | ||
import { a7 as QueryObserverResult, b as QueryClient, B as QueryObserverOptions, aB as NotifyOptions, j as Query, p as QueryKey, c as QueryObserver } from './queryClient-158dd7f5.js'; | ||
import { Subscribable } from './subscribable.js'; | ||
@@ -3,0 +3,0 @@ import './removable.js'; |
@@ -1,5 +0,6 @@ | ||
import { notifyManager } from "./notifyManager"; | ||
import { QueryObserver } from "./queryObserver"; | ||
import { Subscribable } from "./subscribable"; | ||
import { replaceEqualDeep } from "./utils"; | ||
// src/queriesObserver.ts | ||
import { notifyManager } from "./notifyManager.js"; | ||
import { QueryObserver } from "./queryObserver.js"; | ||
import { Subscribable } from "./subscribable.js"; | ||
import { replaceEqualDeep } from "./utils.js"; | ||
function difference(array1, array2) { | ||
@@ -13,3 +14,3 @@ return array1.filter((x) => !array2.includes(x)); | ||
} | ||
class QueriesObserver extends Subscribable { | ||
var QueriesObserver = class extends Subscribable { | ||
#client; | ||
@@ -175,3 +176,3 @@ #result; | ||
} | ||
} | ||
}; | ||
export { | ||
@@ -178,0 +179,0 @@ QueriesObserver |
import './removable.js'; | ||
export { b1 as Action, aZ as FetchContext, a_ as FetchDirection, a$ as FetchMeta, b0 as FetchOptions, j as Query, ay as QueryBehavior, l as QueryState, b2 as SetStateOptions } from './queryClient-d615ed9f.js'; | ||
export { b2 as Action, a_ as FetchContext, a$ as FetchDirection, b0 as FetchMeta, b1 as FetchOptions, j as Query, az as QueryBehavior, l as QueryState, b3 as SetStateOptions } from './queryClient-158dd7f5.js'; | ||
import './subscribable.js'; |
@@ -1,6 +0,7 @@ | ||
import { noop, replaceData, timeUntilStale } from "./utils"; | ||
import { notifyManager } from "./notifyManager"; | ||
import { canFetch, createRetryer, isCancelledError } from "./retryer"; | ||
import { Removable } from "./removable"; | ||
class Query extends Removable { | ||
// src/query.ts | ||
import { noop, replaceData, timeUntilStale } from "./utils.js"; | ||
import { notifyManager } from "./notifyManager.js"; | ||
import { canFetch, createRetryer, isCancelledError } from "./retryer.js"; | ||
import { Removable } from "./removable.js"; | ||
var Query = class extends Removable { | ||
constructor(config) { | ||
@@ -332,3 +333,3 @@ super(); | ||
} | ||
} | ||
}; | ||
function getDefaultState(options) { | ||
@@ -335,0 +336,0 @@ const data = typeof options.initialData === "function" ? options.initialData() : options.initialData; |
@@ -1,3 +0,3 @@ | ||
export { Q as QueryCache, a as QueryCacheNotifyEvent, b3 as QueryStore } from './queryClient-d615ed9f.js'; | ||
export { Q as QueryCache, a as QueryCacheNotifyEvent, b4 as QueryStore } from './queryClient-158dd7f5.js'; | ||
import './subscribable.js'; | ||
import './removable.js'; |
@@ -1,6 +0,7 @@ | ||
import { hashQueryKeyByOptions, matchQuery } from "./utils"; | ||
import { Query } from "./query"; | ||
import { notifyManager } from "./notifyManager"; | ||
import { Subscribable } from "./subscribable"; | ||
class QueryCache extends Subscribable { | ||
// src/queryCache.ts | ||
import { hashQueryKeyByOptions, matchQuery } from "./utils.js"; | ||
import { Query } from "./query.js"; | ||
import { notifyManager } from "./notifyManager.js"; | ||
import { Subscribable } from "./subscribable.js"; | ||
var QueryCache = class extends Subscribable { | ||
constructor(config = {}) { | ||
@@ -92,3 +93,3 @@ super(); | ||
} | ||
} | ||
}; | ||
export { | ||
@@ -95,0 +96,0 @@ QueryCache |
@@ -1,3 +0,3 @@ | ||
export { b as QueryClient } from './queryClient-d615ed9f.js'; | ||
export { b as QueryClient } from './queryClient-158dd7f5.js'; | ||
import './removable.js'; | ||
import './subscribable.js'; |
@@ -0,1 +1,2 @@ | ||
// src/queryClient.ts | ||
import { | ||
@@ -7,10 +8,10 @@ functionalUpdate, | ||
partialMatchKey | ||
} from "./utils"; | ||
import { QueryCache } from "./queryCache"; | ||
import { MutationCache } from "./mutationCache"; | ||
import { focusManager } from "./focusManager"; | ||
import { onlineManager } from "./onlineManager"; | ||
import { notifyManager } from "./notifyManager"; | ||
import { infiniteQueryBehavior } from "./infiniteQueryBehavior"; | ||
class QueryClient { | ||
} from "./utils.js"; | ||
import { QueryCache } from "./queryCache.js"; | ||
import { MutationCache } from "./mutationCache.js"; | ||
import { focusManager } from "./focusManager.js"; | ||
import { onlineManager } from "./onlineManager.js"; | ||
import { notifyManager } from "./notifyManager.js"; | ||
import { infiniteQueryBehavior } from "./infiniteQueryBehavior.js"; | ||
var QueryClient = class { | ||
#queryCache; | ||
@@ -263,3 +264,3 @@ #mutationCache; | ||
} | ||
} | ||
}; | ||
export { | ||
@@ -266,0 +267,0 @@ QueryClient |
import './subscribable.js'; | ||
export { aA as NotifyOptions, az as ObserverFetchOptions, c as QueryObserver } from './queryClient-d615ed9f.js'; | ||
export { aB as NotifyOptions, aA as ObserverFetchOptions, c as QueryObserver } from './queryClient-158dd7f5.js'; | ||
import './removable.js'; |
@@ -0,1 +1,2 @@ | ||
// src/queryObserver.ts | ||
import { | ||
@@ -8,8 +9,8 @@ isServer, | ||
timeUntilStale | ||
} from "./utils"; | ||
import { notifyManager } from "./notifyManager"; | ||
import { focusManager } from "./focusManager"; | ||
import { Subscribable } from "./subscribable"; | ||
import { canFetch } from "./retryer"; | ||
class QueryObserver extends Subscribable { | ||
} from "./utils.js"; | ||
import { notifyManager } from "./notifyManager.js"; | ||
import { focusManager } from "./focusManager.js"; | ||
import { Subscribable } from "./subscribable.js"; | ||
import { canFetch } from "./retryer.js"; | ||
var QueryObserver = class extends Subscribable { | ||
constructor(client, options) { | ||
@@ -404,3 +405,3 @@ super(); | ||
} | ||
} | ||
}; | ||
function shouldLoadOnMount(query, options) { | ||
@@ -407,0 +408,0 @@ return options.enabled !== false && !query.state.dataUpdatedAt && !(query.state.status === "error" && options.retryOnMount === false); |
@@ -1,3 +0,4 @@ | ||
import { isServer, isValidTimeout } from "./utils"; | ||
class Removable { | ||
// src/removable.ts | ||
import { isServer, isValidTimeout } from "./utils.js"; | ||
var Removable = class { | ||
#gcTimeout; | ||
@@ -27,3 +28,3 @@ destroy() { | ||
} | ||
} | ||
}; | ||
export { | ||
@@ -30,0 +31,0 @@ Removable |
@@ -1,3 +0,3 @@ | ||
export { C as CancelledError, aW as RetryDelayValue, aV as RetryValue, aU as Retryer, aX as canFetch, aY as createRetryer, g as isCancelledError } from './queryClient-d615ed9f.js'; | ||
export { C as CancelledError, aX as RetryDelayValue, aW as RetryValue, aV as Retryer, aY as canFetch, aZ as createRetryer, g as isCancelledError } from './queryClient-158dd7f5.js'; | ||
import './removable.js'; | ||
import './subscribable.js'; |
@@ -1,4 +0,5 @@ | ||
import { focusManager } from "./focusManager"; | ||
import { onlineManager } from "./onlineManager"; | ||
import { sleep } from "./utils"; | ||
// src/retryer.ts | ||
import { focusManager } from "./focusManager.js"; | ||
import { onlineManager } from "./onlineManager.js"; | ||
import { sleep } from "./utils.js"; | ||
function defaultRetryDelay(failureCount) { | ||
@@ -10,3 +11,3 @@ return Math.min(1e3 * 2 ** failureCount, 3e4); | ||
} | ||
class CancelledError { | ||
var CancelledError = class { | ||
constructor(options) { | ||
@@ -16,3 +17,3 @@ this.revert = options?.revert; | ||
} | ||
} | ||
}; | ||
function isCancelledError(value) { | ||
@@ -19,0 +20,0 @@ return value instanceof CancelledError; |
@@ -1,2 +0,3 @@ | ||
class Subscribable { | ||
// src/subscribable.ts | ||
var Subscribable = class { | ||
constructor() { | ||
@@ -21,3 +22,3 @@ this.listeners = /* @__PURE__ */ new Set(); | ||
} | ||
} | ||
}; | ||
export { | ||
@@ -24,0 +25,0 @@ Subscribable |
@@ -1,3 +0,3 @@ | ||
export { au as CancelOptions, D as DefaultError, at as DefaultOptions, z as DefaultPageParam, H as DefaultedInfiniteQueryObserverOptions, E as DefaultedQueryObserverOptions, a6 as DefinedQueryObserverResult, K as FetchInfiniteQueryOptions, Z as FetchNextPageOptions, _ as FetchPreviousPageOptions, J as FetchQueryOptions, a0 as FetchStatus, v as GetNextPageParamFunction, G as GetPreviousPageParamFunction, w as InfiniteData, a8 as InfiniteQueryObserverBaseResult, aa as InfiniteQueryObserverLoadingErrorResult, a9 as InfiniteQueryObserverLoadingResult, F as InfiniteQueryObserverOptions, ab as InfiniteQueryObserverRefetchErrorResult, ad as InfiniteQueryObserverResult, ac as InfiniteQueryObserverSuccessResult, A as InfiniteQueryPageParamsOptions, I as InitialDataFunction, X as InvalidateOptions, S as InvalidateQueryFilters, al as MutateFunction, ak as MutateOptions, ah as MutationFunction, ae as MutationKey, ag as MutationMeta, am as MutationObserverBaseResult, ap as MutationObserverErrorResult, an as MutationObserverIdleResult, ao as MutationObserverLoadingResult, aj as MutationObserverOptions, ar as MutationObserverResult, aq as MutationObserverSuccessResult, ai as MutationOptions, af as MutationStatus, N as NetworkMode, ax as NotifyEvent, aw as NotifyEventType, P as PlaceholderDataFunction, t as QueriesPlaceholderDataFunction, as as QueryClientConfig, q as QueryFunction, s as QueryFunctionContext, p as QueryKey, u as QueryKeyHashFunction, x as QueryMeta, a1 as QueryObserverBaseResult, a3 as QueryObserverLoadingErrorResult, a2 as QueryObserverLoadingResult, B as QueryObserverOptions, a4 as QueryObserverRefetchErrorResult, a7 as QueryObserverResult, a5 as QueryObserverSuccessResult, y as QueryOptions, $ as QueryStatus, O as RefetchOptions, V as RefetchQueryFilters, R as Register, Y as ResetOptions, L as ResultOptions, av as SetDataOptions, T as ThrowOnError, W as WithRequired } from './queryClient-d615ed9f.js'; | ||
export { av as CancelOptions, D as DefaultError, au as DefaultOptions, z as DefaultPageParam, H as DefaultedInfiniteQueryObserverOptions, E as DefaultedQueryObserverOptions, ad as DefinedInfiniteQueryObserverResult, a6 as DefinedQueryObserverResult, K as FetchInfiniteQueryOptions, Z as FetchNextPageOptions, _ as FetchPreviousPageOptions, J as FetchQueryOptions, a0 as FetchStatus, v as GetNextPageParamFunction, G as GetPreviousPageParamFunction, w as InfiniteData, a8 as InfiniteQueryObserverBaseResult, aa as InfiniteQueryObserverLoadingErrorResult, a9 as InfiniteQueryObserverLoadingResult, F as InfiniteQueryObserverOptions, ab as InfiniteQueryObserverRefetchErrorResult, ae as InfiniteQueryObserverResult, ac as InfiniteQueryObserverSuccessResult, A as InfiniteQueryPageParamsOptions, I as InitialDataFunction, X as InvalidateOptions, S as InvalidateQueryFilters, am as MutateFunction, al as MutateOptions, ai as MutationFunction, af as MutationKey, ah as MutationMeta, an as MutationObserverBaseResult, aq as MutationObserverErrorResult, ao as MutationObserverIdleResult, ap as MutationObserverLoadingResult, ak as MutationObserverOptions, as as MutationObserverResult, ar as MutationObserverSuccessResult, aj as MutationOptions, ag as MutationStatus, N as NetworkMode, ay as NotifyEvent, ax as NotifyEventType, P as PlaceholderDataFunction, t as QueriesPlaceholderDataFunction, at as QueryClientConfig, q as QueryFunction, s as QueryFunctionContext, p as QueryKey, u as QueryKeyHashFunction, x as QueryMeta, a1 as QueryObserverBaseResult, a3 as QueryObserverLoadingErrorResult, a2 as QueryObserverLoadingResult, B as QueryObserverOptions, a4 as QueryObserverRefetchErrorResult, a7 as QueryObserverResult, a5 as QueryObserverSuccessResult, y as QueryOptions, $ as QueryStatus, O as RefetchOptions, V as RefetchQueryFilters, R as Register, Y as ResetOptions, L as ResultOptions, aw as SetDataOptions, T as ThrowOnError, W as WithRequired } from './queryClient-158dd7f5.js'; | ||
import './removable.js'; | ||
import './subscribable.js'; |
@@ -1,3 +0,3 @@ | ||
export { aB as DataUpdateFunction, e as MutationFilters, f as QueryFilters, aC as QueryTypeFilter, U as Updater, aQ as addToEnd, aR as addToStart, aE as functionalUpdate, h as hashKey, aI as hashQueryKeyByOptions, aL as isPlainArray, aM as isPlainObject, i as isServer, aF as isValidTimeout, k as keepPreviousData, aH as matchMutation, m as matchQuery, aD as noop, aJ as partialMatchKey, aP as replaceData, r as replaceEqualDeep, aO as scheduleMicrotask, aK as shallowEqualObjects, aN as sleep, aG as timeUntilStale } from './queryClient-d615ed9f.js'; | ||
export { aC as DataUpdateFunction, e as MutationFilters, f as QueryFilters, aD as QueryTypeFilter, U as Updater, aR as addToEnd, aS as addToStart, aF as functionalUpdate, h as hashKey, aJ as hashQueryKeyByOptions, aM as isPlainArray, aN as isPlainObject, i as isServer, aG as isValidTimeout, k as keepPreviousData, aI as matchMutation, m as matchQuery, aE as noop, aK as partialMatchKey, aQ as replaceData, r as replaceEqualDeep, aP as scheduleMicrotask, aL as shallowEqualObjects, aO as sleep, aH as timeUntilStale } from './queryClient-158dd7f5.js'; | ||
import './removable.js'; | ||
import './subscribable.js'; |
@@ -1,2 +0,3 @@ | ||
const isServer = typeof window === "undefined" || "Deno" in window; | ||
// src/utils.ts | ||
var isServer = typeof window === "undefined" || "Deno" in window; | ||
function noop() { | ||
@@ -3,0 +4,0 @@ return void 0; |
{ | ||
"name": "@tanstack/query-core", | ||
"version": "5.0.0-alpha.88", | ||
"version": "5.0.0-alpha.90", | ||
"description": "The framework agnostic core that powers TanStack Query", | ||
@@ -5,0 +5,0 @@ "author": "tannerlinsley", |
@@ -588,2 +588,9 @@ /* istanbul ignore file */ | ||
export type DefinedInfiniteQueryObserverResult< | ||
TData = unknown, | ||
TError = DefaultError, | ||
> = | ||
| InfiniteQueryObserverRefetchErrorResult<TData, TError> | ||
| InfiniteQueryObserverSuccessResult<TData, TError> | ||
export type InfiniteQueryObserverResult< | ||
@@ -595,4 +602,3 @@ TData = unknown, | ||
| InfiniteQueryObserverLoadingResult<TData, TError> | ||
| InfiniteQueryObserverRefetchErrorResult<TData, TError> | ||
| InfiniteQueryObserverSuccessResult<TData, TError> | ||
| DefinedInfiniteQueryObserverResult<TData, TError> | ||
@@ -599,0 +605,0 @@ export type MutationKey = readonly unknown[] |
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
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
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
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
284
1749650
26727