@tanstack/query-core 4.19.0 → 4.19.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/query-core",
3
- "version": "4.19.0",
3
+ "version": "4.19.1",
4
4
  "description": "The framework agnostic core that powers TanStack Query",
5
5
  "author": "tannerlinsley",
6
6
  "license": "MIT",
package/src/types.ts CHANGED
@@ -203,7 +203,7 @@ export interface QueryObserverOptions<
203
203
  */
204
204
  notifyOnChangeProps?: Array<keyof InfiniteQueryObserverResult> | 'all'
205
205
  /**
206
- * This callback will fire any time the query successfully fetches new data or the cache is updated via `setQueryData`.
206
+ * This callback will fire any time the query successfully fetches new data.
207
207
  */
208
208
  onSuccess?: (data: TData) => void
209
209
  /**
package/src/utils.ts CHANGED
@@ -68,7 +68,7 @@ export type QueryTypeFilter = 'all' | 'active' | 'inactive'
68
68
 
69
69
  // UTILS
70
70
 
71
- export const isServer = typeof document === 'undefined'
71
+ export const isServer = typeof window === 'undefined' || 'Deno' in window
72
72
 
73
73
  export function noop(): undefined {
74
74
  return undefined