@tanstack/solid-query 5.48.0 → 5.49.0

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/solid-query",
3
- "version": "5.48.0",
3
+ "version": "5.49.0",
4
4
  "description": "Primitives for managing, caching and syncing asynchronous and remote data in Solid",
5
5
  "author": "tannerlinsley",
6
6
  "license": "MIT",
@@ -45,7 +45,7 @@
45
45
  ],
46
46
  "dependencies": {
47
47
  "solid-js": "^1.8.17",
48
- "@tanstack/query-core": "5.48.0"
48
+ "@tanstack/query-core": "5.49.0"
49
49
  },
50
50
  "devDependencies": {
51
51
  "tsup-preset-solid": "^2.2.0",
@@ -166,7 +166,7 @@ describe('useInfiniteQuery', () => {
166
166
  const start = 1
167
167
  const state = createInfiniteQuery(() => ({
168
168
  queryKey: key,
169
- queryFn: async ({ pageParam }) => {
169
+ queryFn: ({ pageParam }) => {
170
170
  if (pageParam === 2) {
171
171
  throw new Error('error')
172
172
  }
@@ -4435,6 +4435,7 @@ describe('createQuery', () => {
4435
4435
  readonly [typeof key, number]
4436
4436
  > = async (ctx) => {
4437
4437
  const [, limit] = ctx.queryKey
4438
+ // eslint-disable-next-line ts/no-unnecessary-condition
4438
4439
  const value = limit % 2 && ctx.signal ? 'abort' : `data ${limit}`
4439
4440
  await sleep(25)
4440
4441
  return value
@@ -121,7 +121,7 @@ describe("useQuery's in Suspense mode", () => {
121
121
 
122
122
  await waitFor(() => rendered.getByText('data: 1'))
123
123
 
124
- // eslint-disable-next-line @cspell/spellchecker
124
+ // eslint-disable-next-line cspell/spellchecker
125
125
  // TODO(lukemurray): in react this is 1 in solid this is 2 because suspense
126
126
  // occurs on read.
127
127
  expect(states.length).toBe(2)
@@ -133,7 +133,7 @@ describe("useQuery's in Suspense mode", () => {
133
133
  fireEvent.click(rendered.getByText('next'))
134
134
  await waitFor(() => rendered.getByText('data: 2'))
135
135
 
136
- // eslint-disable-next-line @cspell/spellchecker
136
+ // eslint-disable-next-line cspell/spellchecker
137
137
  // TODO(lukemurray): in react this is 2 and in solid it is 4
138
138
  expect(states.length).toBe(4)
139
139
  expect(states[3]).toMatchObject({