@tanstack/query-core 5.0.0 → 5.0.5

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": "5.0.0",
3
+ "version": "5.0.5",
4
4
  "description": "The framework agnostic core that powers TanStack Query",
5
5
  "author": "tannerlinsley",
6
6
  "license": "MIT",
@@ -1,4 +1,4 @@
1
- import { vi } from 'vitest'
1
+ import { beforeEach, describe, expect, it, test, vi } from 'vitest'
2
2
  import { sleep } from '../utils'
3
3
  import { FocusManager } from '../focusManager'
4
4
  import { setIsServer } from './utils'
@@ -1,4 +1,4 @@
1
- import { expect, vi } from 'vitest'
1
+ import { describe, expect, test, vi } from 'vitest'
2
2
  import { QueryCache } from '../queryCache'
3
3
  import { dehydrate, hydrate } from '../hydration'
4
4
  import { MutationCache } from '../mutationCache'
@@ -1,5 +1,5 @@
1
+ import { afterEach, beforeEach, describe, expect, test, vi } from 'vitest'
1
2
  import { waitFor } from '@testing-library/react'
2
- import { vi } from 'vitest'
3
3
  import { CancelledError, InfiniteQueryObserver } from '..'
4
4
  import { createQueryClient, queryKey, sleep } from './utils'
5
5
  import type { InfiniteQueryObserverResult, QueryCache, QueryClient } from '..'
@@ -1,4 +1,4 @@
1
- import { expect, vi } from 'vitest'
1
+ import { afterEach, beforeEach, describe, expect, test, vi } from 'vitest'
2
2
  import { InfiniteQueryObserver } from '..'
3
3
  import { createQueryClient, queryKey, sleep } from './utils'
4
4
  import type { QueryClient } from '..'
@@ -1,5 +1,5 @@
1
+ import { describe, expect, test, vi } from 'vitest'
1
2
  import { waitFor } from '@testing-library/react'
2
- import { vi } from 'vitest'
3
3
  import { MutationCache, MutationObserver } from '..'
4
4
  import { createQueryClient, executeMutation, queryKey, sleep } from './utils'
5
5
 
@@ -1,5 +1,5 @@
1
+ import { afterEach, beforeEach, describe, expect, test, vi } from 'vitest'
1
2
  import { waitFor } from '@testing-library/react'
2
- import { vi } from 'vitest'
3
3
  import { MutationObserver } from '..'
4
4
  import { createQueryClient, sleep } from './utils'
5
5
  import type { QueryClient } from '..'
@@ -1,4 +1,4 @@
1
- import { vi } from 'vitest'
1
+ import { afterEach, beforeEach, describe, expect, test, vi } from 'vitest'
2
2
  import { waitFor } from '@testing-library/react'
3
3
  import { MutationObserver } from '../mutationObserver'
4
4
  import { createQueryClient, executeMutation, queryKey, sleep } from './utils'
@@ -1,4 +1,4 @@
1
- import { vi } from 'vitest'
1
+ import { describe, expect, it, vi } from 'vitest'
2
2
  import { createNotifyManager } from '../notifyManager'
3
3
  import { sleep } from './utils'
4
4
 
@@ -1,4 +1,4 @@
1
- import { vi } from 'vitest'
1
+ import { beforeEach, describe, expect, test, vi } from 'vitest'
2
2
  import { OnlineManager } from '../onlineManager'
3
3
  import { setIsServer, sleep } from './utils'
4
4
 
@@ -1,5 +1,5 @@
1
+ import { afterEach, beforeEach, describe, expect, test, vi } from 'vitest'
1
2
  import { waitFor } from '@testing-library/react'
2
- import { vi } from 'vitest'
3
3
  import { QueriesObserver } from '..'
4
4
  import { createQueryClient, queryKey, sleep } from './utils'
5
5
  import type { QueryClient, QueryObserverResult } from '..'
@@ -1,5 +1,5 @@
1
+ import { afterEach, beforeEach, describe, expect, it, test, vi } from 'vitest'
1
2
  import { waitFor } from '@testing-library/react'
2
- import { vi } from 'vitest'
3
3
  import { QueryObserver, isCancelledError, onlineManager } from '..'
4
4
  import {
5
5
  createQueryClient,
@@ -1,5 +1,5 @@
1
+ import { afterEach, beforeEach, describe, expect, test, vi } from 'vitest'
1
2
  import { waitFor } from '@testing-library/react'
2
- import { vi } from 'vitest'
3
3
  import { QueryCache, QueryClient, QueryObserver } from '..'
4
4
  import { createQueryClient, queryKey, sleep } from './utils'
5
5
 
@@ -1,5 +1,5 @@
1
+ import { afterEach, beforeEach, describe, expect, test, vi } from 'vitest'
1
2
  import { waitFor } from '@testing-library/react'
2
- import '@testing-library/jest-dom'
3
3
 
4
4
  import {
5
5
  MutationObserver,
@@ -1,3 +1,4 @@
1
+ import { describe, it } from 'vitest'
1
2
  import { QueryClient } from '../queryClient'
2
3
  import { doNotExecute } from './utils'
3
4
  import type { Equal, Expect } from './utils'
@@ -1,4 +1,12 @@
1
- import { vi } from 'vitest'
1
+ import {
2
+ afterEach,
3
+ beforeEach,
4
+ describe,
5
+ expect,
6
+ expectTypeOf,
7
+ test,
8
+ vi,
9
+ } from 'vitest'
2
10
  import { QueryObserver, focusManager } from '..'
3
11
  import { createQueryClient, queryKey, sleep } from './utils'
4
12
  import type { QueryClient, QueryObserverResult } from '..'
@@ -1,4 +1,4 @@
1
- import { vi } from 'vitest'
1
+ import { describe, expect, it, vi } from 'vitest'
2
2
  import {
3
3
  addToEnd,
4
4
  addToStart,
@@ -1,5 +1,5 @@
1
- import { act } from '@testing-library/react'
2
1
  import { vi } from 'vitest'
2
+ import { act } from '@testing-library/react'
3
3
  import { QueryClient, onlineManager } from '..'
4
4
  import * as utils from '../utils'
5
5
  import type { SpyInstance } from 'vitest'