@tanstack/query-core 5.22.2 → 5.24.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": "5.22.2",
3
+ "version": "5.24.1",
4
4
  "description": "The framework agnostic core that powers TanStack Query",
5
5
  "author": "tannerlinsley",
6
6
  "license": "MIT",
@@ -356,16 +356,6 @@ describe('queryClient', () => {
356
356
  }),
357
357
  )
358
358
  })
359
-
360
- test('should set 10k data in less than 500ms', () => {
361
- const key = queryKey()
362
- const start = performance.now()
363
- for (let i = 0; i < 10000; i++) {
364
- queryClient.setQueryData([key, i], i)
365
- }
366
- const end = performance.now()
367
- expect(end - start).toBeLessThan(500)
368
- })
369
359
  })
370
360
 
371
361
  describe('setQueriesData', () => {
@@ -429,38 +419,6 @@ describe('queryClient', () => {
429
419
  queryClient.setQueryData([key, 'id'], 'bar')
430
420
  expect(queryClient.getQueryData([key])).toBeUndefined()
431
421
  })
432
-
433
- test('should get 10k queries in less than 500ms', () => {
434
- const key = queryKey()
435
- for (let i = 0; i < 10000; i++) {
436
- queryClient.setQueryData([key, i], i)
437
- }
438
-
439
- const start = performance.now()
440
- for (let i = 0; i < 10000; i++) {
441
- queryClient.getQueryData([key, i])
442
- }
443
- const end = performance.now()
444
-
445
- expect(end - start).toBeLessThan(500)
446
- })
447
- })
448
-
449
- describe('getQueryState', () => {
450
- test('should get 10k queries in less than 500ms', () => {
451
- const key = queryKey()
452
- for (let i = 0; i < 10000; i++) {
453
- queryClient.setQueryData([key, i], i)
454
- }
455
-
456
- const start = performance.now()
457
- for (let i = 0; i < 10000; i++) {
458
- queryClient.getQueryState([key, i])
459
- }
460
- const end = performance.now()
461
-
462
- expect(end - start).toBeLessThan(500)
463
- })
464
422
  })
465
423
 
466
424
  describe('ensureQueryData', () => {