@tanstack/solid-query 5.0.0-beta.0 → 5.0.0-beta.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/solid-query",
|
|
3
|
-
"version": "5.0.0-beta.
|
|
3
|
+
"version": "5.0.0-beta.1",
|
|
4
4
|
"description": "Primitives for managing, caching and syncing asynchronous and remote data in Solid",
|
|
5
5
|
"author": "tannerlinsley",
|
|
6
6
|
"license": "MIT",
|
|
@@ -16,22 +16,24 @@
|
|
|
16
16
|
"types": "./build/index.d.ts",
|
|
17
17
|
"browser": {},
|
|
18
18
|
"exports": {
|
|
19
|
-
"solid": {
|
|
20
|
-
"development": "./build/dev.js",
|
|
21
|
-
"import": "./build/index.js"
|
|
22
|
-
},
|
|
23
19
|
"development": {
|
|
24
20
|
"import": {
|
|
25
21
|
"types": "./build/index.d.ts",
|
|
26
22
|
"default": "./build/dev.js"
|
|
27
23
|
},
|
|
28
|
-
"require":
|
|
24
|
+
"require": {
|
|
25
|
+
"types": "./build/index.d.cts",
|
|
26
|
+
"default": "./build/dev.cjs"
|
|
27
|
+
}
|
|
29
28
|
},
|
|
30
29
|
"import": {
|
|
31
30
|
"types": "./build/index.d.ts",
|
|
32
31
|
"default": "./build/index.js"
|
|
33
32
|
},
|
|
34
|
-
"require":
|
|
33
|
+
"require": {
|
|
34
|
+
"types": "./build/index.d.cts",
|
|
35
|
+
"default": "./build/index.cjs"
|
|
36
|
+
}
|
|
35
37
|
},
|
|
36
38
|
"sideEffects": [
|
|
37
39
|
"./src/setBatchUpdatesFn.ts"
|
|
@@ -41,14 +43,15 @@
|
|
|
41
43
|
"src"
|
|
42
44
|
],
|
|
43
45
|
"dependencies": {
|
|
46
|
+
"solid-js": "^1.7.8",
|
|
44
47
|
"@tanstack/query-core": "5.0.0-beta.0"
|
|
45
48
|
},
|
|
46
49
|
"devDependencies": {
|
|
47
|
-
"tsup-preset-solid": "^0.1
|
|
48
|
-
"vite-plugin-solid": "^2.
|
|
50
|
+
"tsup-preset-solid": "^2.0.1",
|
|
51
|
+
"vite-plugin-solid": "^2.7.0"
|
|
49
52
|
},
|
|
50
53
|
"peerDependencies": {
|
|
51
|
-
"solid-js": "^1.6.
|
|
54
|
+
"solid-js": "^1.6.0"
|
|
52
55
|
},
|
|
53
56
|
"scripts": {
|
|
54
57
|
"clean": "rimraf ./build && rimraf ./coverage",
|
|
@@ -1452,7 +1452,7 @@ describe('createQuery', () => {
|
|
|
1452
1452
|
return (
|
|
1453
1453
|
<div>
|
|
1454
1454
|
<h1>
|
|
1455
|
-
data: {state.data}, count: {count}, isFetching:{' '}
|
|
1455
|
+
data: {state.data}, count: {count()}, isFetching:{' '}
|
|
1456
1456
|
{String(state.isFetching)}
|
|
1457
1457
|
</h1>
|
|
1458
1458
|
<button onClick={() => setCount(1)}>inc</button>
|
|
@@ -4265,7 +4265,7 @@ describe('createQuery', () => {
|
|
|
4265
4265
|
return (
|
|
4266
4266
|
<div>
|
|
4267
4267
|
<h2>Data: {JSON.stringify(state.data)}</h2>
|
|
4268
|
-
<h2>forceValue: {forceValue}</h2>
|
|
4268
|
+
<h2>forceValue: {forceValue()}</h2>
|
|
4269
4269
|
<button onClick={forceUpdate}>forceUpdate</button>
|
|
4270
4270
|
</div>
|
|
4271
4271
|
)
|
|
@@ -4320,7 +4320,7 @@ describe('createQuery', () => {
|
|
|
4320
4320
|
return (
|
|
4321
4321
|
<div>
|
|
4322
4322
|
<h2>Data: {JSON.stringify(state.data)}</h2>
|
|
4323
|
-
<h2>forceValue: {forceValue}</h2>
|
|
4323
|
+
<h2>forceValue: {forceValue()}</h2>
|
|
4324
4324
|
<button onClick={forceUpdate}>forceUpdate</button>
|
|
4325
4325
|
</div>
|
|
4326
4326
|
)
|