@tanstack/svelte-query 5.0.0-alpha.19 → 5.0.0-alpha.21

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.
@@ -8,16 +8,6 @@ export function createBaseQuery(options, Observer, queryClient) {
8
8
  const defaultedOptionsStore = derived(optionsStore, ($options) => {
9
9
  const defaultedOptions = client.defaultQueryOptions($options);
10
10
  defaultedOptions._optimisticResults = 'optimistic';
11
- // Include callbacks in batch renders
12
- if (defaultedOptions.onError) {
13
- defaultedOptions.onError = notifyManager.batchCalls(defaultedOptions.onError);
14
- }
15
- if (defaultedOptions.onSuccess) {
16
- defaultedOptions.onSuccess = notifyManager.batchCalls(defaultedOptions.onSuccess);
17
- }
18
- if (defaultedOptions.onSettled) {
19
- defaultedOptions.onSettled = notifyManager.batchCalls(defaultedOptions.onSettled);
20
- }
21
11
  return defaultedOptions;
22
12
  });
23
13
  const observer = new Observer(client, get(defaultedOptionsStore));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/svelte-query",
3
- "version": "5.0.0-alpha.19",
3
+ "version": "5.0.0-alpha.21",
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,7 +14,7 @@
14
14
  "module": "build/lib/index.js",
15
15
  "type": "module",
16
16
  "devDependencies": {
17
- "@sveltejs/package": "^1.0.0",
17
+ "@sveltejs/package": "^2.0.2",
18
18
  "@sveltejs/vite-plugin-svelte": "^2.0.2",
19
19
  "@testing-library/svelte": "^3.2.2",
20
20
  "eslint-plugin-svelte": "^2.14.1",
@@ -26,7 +26,7 @@
26
26
  "vite": "^4.0.0"
27
27
  },
28
28
  "dependencies": {
29
- "@tanstack/query-core": "5.0.0-alpha.19"
29
+ "@tanstack/query-core": "5.0.0-alpha.21"
30
30
  },
31
31
  "peerDependencies": {
32
32
  "svelte": "^3.54.0"
@@ -46,6 +46,6 @@
46
46
  "test:eslint": "eslint --ext .svelte,.ts ./src",
47
47
  "test:lib": "vitest run --coverage",
48
48
  "test:lib:dev": "pnpm run test:lib --watch",
49
- "build": "svelte-package && rimraf ./build/lib/package.json"
49
+ "build": "svelte-package --input ./src --output ./build/lib && rimraf ./build/lib/__tests__"
50
50
  }
51
51
  }
@@ -30,25 +30,6 @@ export function createBaseQuery<
30
30
  const defaultedOptions = client.defaultQueryOptions($options)
31
31
  defaultedOptions._optimisticResults = 'optimistic'
32
32
 
33
- // Include callbacks in batch renders
34
- if (defaultedOptions.onError) {
35
- defaultedOptions.onError = notifyManager.batchCalls(
36
- defaultedOptions.onError,
37
- )
38
- }
39
-
40
- if (defaultedOptions.onSuccess) {
41
- defaultedOptions.onSuccess = notifyManager.batchCalls(
42
- defaultedOptions.onSuccess,
43
- )
44
- }
45
-
46
- if (defaultedOptions.onSettled) {
47
- defaultedOptions.onSettled = notifyManager.batchCalls(
48
- defaultedOptions.onSettled,
49
- )
50
- }
51
-
52
33
  return defaultedOptions
53
34
  })
54
35
 
@@ -1,9 +0,0 @@
1
- .DS_Store
2
- node_modules
3
- /build
4
- /.svelte-kit
5
- /package
6
- .env
7
- .env.*
8
- !.env.example
9
- !lib/