@tanstack/vue-query 5.51.21 → 5.51.24

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/README.md CHANGED
@@ -36,11 +36,23 @@ Visit https://tanstack.com/query/latest/docs/vue/overview
36
36
 
37
37
  ```bash
38
38
  $ npm i @tanstack/vue-query
39
- # or
39
+ ```
40
+
41
+ or
42
+
43
+ ```bash
40
44
  $ pnpm add @tanstack/vue-query
41
- # or
45
+ ```
46
+
47
+ or
48
+
49
+ ```bash
42
50
  $ yarn add @tanstack/vue-query
43
- # or
51
+ ```
52
+
53
+ or
54
+
55
+ ```bash
44
56
  $ bun add @tanstack/vue-query
45
57
  ```
46
58
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/vue-query",
3
- "version": "5.51.21",
3
+ "version": "5.51.24",
4
4
  "description": "Hooks for managing, caching and syncing asynchronous and remote data in Vue",
5
5
  "author": "Damian Osipiuk",
6
6
  "license": "MIT",
@@ -49,7 +49,7 @@
49
49
  "@tanstack/match-sorter-utils": "^8.15.1",
50
50
  "@vue/devtools-api": "^6.6.3",
51
51
  "vue-demi": "^0.14.10",
52
- "@tanstack/query-core": "5.51.21"
52
+ "@tanstack/query-core": "5.51.24"
53
53
  },
54
54
  "devDependencies": {
55
55
  "@vitejs/plugin-vue": "^5.1.1",
@@ -83,7 +83,7 @@ describe('useIsMutating', () => {
83
83
  })
84
84
 
85
85
  describe('useMutationState', () => {
86
- it('should return variables after calling mutate', async () => {
86
+ it('should return variables after calling mutate 1', async () => {
87
87
  const mutationKey = ['mutation']
88
88
  const variables = 'foo123'
89
89
 
@@ -102,7 +102,7 @@ describe('useMutationState', () => {
102
102
  expect(mutationState.value).toEqual([variables])
103
103
  })
104
104
 
105
- it('should return variables after calling mutate', async () => {
105
+ it('should return variables after calling mutate 2', async () => {
106
106
  const queryClient = useQueryClient()
107
107
  queryClient.clear()
108
108
  const mutationKey = ['mutation']
@@ -130,7 +130,7 @@ describe('useMutation', () => {
130
130
  expect(
131
131
  (relevantMutation?.options.mutationKey as Array<MutationKeyTest>)[0]
132
132
  ?.otherObject.name === 'someOtherObjectName',
133
- )
133
+ ).toBe(true)
134
134
  })
135
135
 
136
136
  test('should allow for non-options object (mutationFn or mutationKey) passed as arg1 & arg2 to trigger reactive updates', async () => {
@@ -57,7 +57,7 @@ describe('UseQueries config object overload', () => {
57
57
  expectTypeOf(queriesState[0].data).toEqualTypeOf<{ wow: boolean }>()
58
58
  })
59
59
 
60
- it('it should be possible to define a different TData than TQueryFnData using select with queryOptions spread into useQueries', () => {
60
+ it('should be possible to define a different TData than TQueryFnData using select with queryOptions spread into useQueries', () => {
61
61
  const query1 = queryOptions({
62
62
  queryKey: ['key'],
63
63
  queryFn: () => Promise.resolve(1),
@@ -43,7 +43,7 @@ describe('useQuery', () => {
43
43
  expectTypeOf(data).toEqualTypeOf<{ wow: boolean }>()
44
44
  })
45
45
 
46
- it('it should be possible to define a different TData than TQueryFnData using select with queryOptions spread into useQuery', () => {
46
+ it('should be possible to define a different TData than TQueryFnData using select with queryOptions spread into useQuery', () => {
47
47
  const options = queryOptions({
48
48
  queryKey: ['key'],
49
49
  queryFn: () => Promise.resolve(1),