@tanstack/svelte-query 4.21.0 → 4.22.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/svelte-query",
3
- "version": "4.21.0",
3
+ "version": "4.22.1",
4
4
  "description": "Primitives for managing, caching and syncing asynchronous and remote data in Svelte",
5
5
  "author": "Dre Johnson",
6
6
  "license": "MIT",
@@ -14,14 +14,12 @@
14
14
  "module": "build/lib/index.js",
15
15
  "type": "module",
16
16
  "devDependencies": {
17
- "@sveltejs/adapter-auto": "^1.0.0",
18
- "@sveltejs/kit": "^1.0.0",
19
17
  "@sveltejs/package": "^1.0.0",
18
+ "@sveltejs/vite-plugin-svelte": "^2.0.2",
20
19
  "@testing-library/svelte": "^3.2.2",
21
20
  "@vitest/coverage-istanbul": "^0.26.3",
22
21
  "eslint-plugin-svelte": "^2.14.1",
23
22
  "jsdom": "^20.0.3",
24
- "rimraf": "^3.0.2",
25
23
  "svelte": "^3.54.0",
26
24
  "svelte-check": "^2.9.2",
27
25
  "tslib": "^2.4.1",
@@ -30,7 +28,7 @@
30
28
  "vitest": "^0.26.3"
31
29
  },
32
30
  "dependencies": {
33
- "@tanstack/query-core": "4.21.0"
31
+ "@tanstack/query-core": "4.22.0"
34
32
  },
35
33
  "peerDependencies": {
36
34
  "svelte": "^3.54.0"
@@ -46,9 +44,11 @@
46
44
  ],
47
45
  "scripts": {
48
46
  "clean": "rimraf ./build",
49
- "build": "svelte-kit sync && svelte-package && rimraf ./build/lib/package.json",
50
- "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
51
- "test:eslint": "svelte-kit sync && ../../node_modules/.bin/eslint --ext .svelte,.ts ./src",
52
- "test:jest": "svelte-kit sync && vitest run --coverage"
47
+ "test:types": "svelte-check --tsconfig ./tsconfig.json",
48
+ "test:eslint": "eslint --ext .svelte,.ts ./src",
49
+ "test:lib": "vitest run --coverage true",
50
+ "test:lib:dev": "vitest watch",
51
+ "test:lib:publish": "vitest run --coverage false",
52
+ "build": "svelte-package && rimraf ./build/lib/package.json"
53
53
  }
54
54
  }
File without changes
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
- import { createMutation, QueryClient } from '../lib'
3
- import { setQueryClientContext } from '../lib/context'
2
+ import { createMutation, QueryClient } from '../index'
3
+ import { setQueryClientContext } from '../context'
4
4
 
5
5
  export let queryFn: () => Promise<string>
6
6
 
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
- import { createQuery, QueryClient } from '../lib'
3
- import { setQueryClientContext } from '../lib/context'
2
+ import { createQuery, QueryClient } from '../index'
3
+ import { setQueryClientContext } from '../context'
4
4
 
5
5
  export let queryKey: Array<string>
6
6
  export let queryFn: () => Promise<string>
@@ -4,7 +4,7 @@ import {
4
4
  QueryClient,
5
5
  type QueryClientConfig,
6
6
  type MutationOptions,
7
- } from '../lib'
7
+ } from '../index'
8
8
 
9
9
  export function createQueryClient(config?: QueryClientConfig): QueryClient {
10
10
  vi.spyOn(console, 'error').mockImplementation(() => undefined)
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes