@tanstack/react-query-devtools 4.0.11-beta.0 → 4.0.11-beta.4
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/cjs.fallback.js +13 -0
- package/package.json +14 -9
package/cjs.fallback.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// This is the cjs fallback for bundlers that do not support exports.development conditional
|
|
2
|
+
if (process.env.NODE_ENV !== 'development') {
|
|
3
|
+
module.exports = {
|
|
4
|
+
ReactQueryDevtools: function () {
|
|
5
|
+
return null
|
|
6
|
+
},
|
|
7
|
+
ReactQueryDevtoolsPanel: function () {
|
|
8
|
+
return null
|
|
9
|
+
},
|
|
10
|
+
}
|
|
11
|
+
} else {
|
|
12
|
+
module.exports = require('./build/lib/index.js')
|
|
13
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/react-query-devtools",
|
|
3
|
-
"version": "4.0.11-beta.
|
|
3
|
+
"version": "4.0.11-beta.4",
|
|
4
4
|
"description": "TODO",
|
|
5
5
|
"author": "tannerlinsley",
|
|
6
6
|
"license": "MIT",
|
|
@@ -10,15 +10,9 @@
|
|
|
10
10
|
"type": "github",
|
|
11
11
|
"url": "https://github.com/sponsors/tannerlinsley"
|
|
12
12
|
},
|
|
13
|
+
"types": "build/lib/index.d.ts",
|
|
13
14
|
"module": "build/lib/index.mjs",
|
|
14
15
|
"main": "build/lib/index.js",
|
|
15
|
-
"browser": "build/lib/index.js",
|
|
16
|
-
"types": "build/lib/index.d.ts",
|
|
17
|
-
"files": [
|
|
18
|
-
"build/lib/*",
|
|
19
|
-
"build/umd/*",
|
|
20
|
-
"src"
|
|
21
|
-
],
|
|
22
16
|
"exports": {
|
|
23
17
|
".": {
|
|
24
18
|
"development": {
|
|
@@ -29,7 +23,7 @@
|
|
|
29
23
|
"default": {
|
|
30
24
|
"types": "./build/lib/index.d.ts",
|
|
31
25
|
"import": "./build/lib/noop.mjs",
|
|
32
|
-
"default": "./
|
|
26
|
+
"default": "./cjs.fallback.js"
|
|
33
27
|
}
|
|
34
28
|
},
|
|
35
29
|
"./production": {
|
|
@@ -39,6 +33,12 @@
|
|
|
39
33
|
},
|
|
40
34
|
"./package.json": "./package.json"
|
|
41
35
|
},
|
|
36
|
+
"files": [
|
|
37
|
+
"build/lib/*",
|
|
38
|
+
"build/umd/*",
|
|
39
|
+
"cjs.fallback.js",
|
|
40
|
+
"src"
|
|
41
|
+
],
|
|
42
42
|
"scripts": {
|
|
43
43
|
"clean": "rm -rf ./build",
|
|
44
44
|
"test:eslint": "../../node_modules/.bin/eslint --ext .ts,.tsx ./src"
|
|
@@ -48,5 +48,10 @@
|
|
|
48
48
|
"@tanstack/react-query": "^4.0.10",
|
|
49
49
|
"@types/use-sync-external-store": "^0.0.3",
|
|
50
50
|
"use-sync-external-store": "^1.2.0"
|
|
51
|
+
},
|
|
52
|
+
"peerDependencies": {
|
|
53
|
+
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
|
54
|
+
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
|
55
|
+
"@tanstack/react-query": "^4.0.0"
|
|
51
56
|
}
|
|
52
57
|
}
|