Open History to see the last commit
1{
2 "name": "react-query",
3 "version": "1.0.0-semantic-release",
4 "description": "Hooks for managing, caching and syncing asynchronous and remote data in React",
5 "author": "tannerlinsley",
6 "license": "MIT",
7 "repository": "tannerlinsley/react-query",
8 "homepage": "https://github.com/tannerlinsley/react-query#readme",
9 "funding": {
10 "type": "github",
11 "url": "https://github.com/sponsors/tannerlinsley"
12 },
13 "main": "lib/index.js",
14 "module": "lib/index.mjs",
15 "types": "lib/index.d.ts",
16 "unpkg": "dist/react-query.development.js",
17 "sideEffects": [
18 "lib/index.js",
19 "lib/index.mjs",
20 "lib/reactjs/index.js",
21 "lib/reactjs/index.mjs",
22 "lib/reactjs/setBatchUpdatesFn.js",
23 "lib/reactjs/setBatchUpdatesFn.mjs"
24 ],
25 "exports": {
26 ".": {
27 "import": "./lib/index.mjs",
28 "default": "./lib/index.js"
29 },
30 "./package.json": "./package.json",
31 "./core": {
32 "import": "./lib/core/index.mjs",
33 "default": "./lib/core/index.js"
34 },
35 "./reactjs": {
36 "import": "./lib/reactjs/index.mjs",
37 "default": "./lib/reactjs/index.js"
38 },
39 "./devtools": {
40 "development": {
41 "import": "./lib/devtools/index.mjs",
42 "default": "./lib/devtools/index.js"
43 },
44 "import": "./lib/devtools/noop.mjs",
45 "default": "./lib/devtools/noop.js"
46 },
47 "./devtools/development": {
48 "import": "./lib/devtools/index.mjs",
49 "default": "./lib/devtools/index.js"
50 },
51 "./persistQueryClient": {
52 "import": "./lib/persistQueryClient/index.mjs",
53 "default": "./lib/persistQueryClient/index.js"
54 },
55 "./createWebStoragePersister": {
56 "import": "./lib/createWebStoragePersister/index.mjs",
57 "default": "./lib/createWebStoragePersister/index.js"
58 },
59 "./createAsyncStoragePersister": {
60 "import": "./lib/createAsyncStoragePersister/index.mjs",
61 "default": "./lib/createAsyncStoragePersister/index.js"
62 },
63 "./broadcastQueryClient-experimental": {
64 "import": "./lib/broadcastQueryClient-experimental/index.mjs",
65 "default": "./lib/broadcastQueryClient-experimental/index.js"
66 }
67 },
68 "scripts": {
69 "test": "is-ci \"test:ci\" \"test:dev\"",
70 "test:dev": "npm run test:types && npm run test:format && npm run test:eslint && npm run test:codemod && jest --watch",
71 "test:dev:17": "npm run test:types && npm run test:format && npm run test:eslint && npm run test:codemod && REACTJS_VERSION=17 jest --watch",
72 "test:ci": "npm run test:types && npm run test:format && npm run test:eslint && npm run test:codemod && jest",
73 "test:coverage": "yarn test:ci; open coverage/lcov-report/index.html",
74 "test:format": "yarn prettier --check",
75 "test:types": "tsc",
76 "test:eslint": "eslint --ext .ts,.tsx ./src",
77 "test:size": "yarn build:umd && bundlewatch",
78 "test:codemod": "jest --config codemods/jest.config.js",
79 "build": "yarn build:commonjs && yarn build:es && yarn build:umd && yarn build:types",
80 "build:commonjs": "rimraf './lib/**/*.js' && cross-env BABEL_ENV=commonjs babel --extensions .ts,.tsx --ignore ./src/**/tests/**/* ./src --out-dir lib",
81 "build:es": "rimraf './lib/**/*.mjs' && cross-env BABEL_ENV=es babel --extensions .ts,.tsx --ignore ./src/**/tests/**/* ./src --out-dir lib --out-file-extension .mjs",
82 "build:umd": "rimraf ./dist && cross-env NODE_ENV=production rollup -c && rollup-plugin-visualizer stats-react.json",
83 "build:types": "rimraf './lib/**/*.d.ts' && tsc --project ./tsconfig.types.json",
84 "watch": "yarn watch:commonjs && watch:es & yarn watch:umd & yarn watch:types",
85 "watch:commonjs": "rimraf './lib/**/*.js' && cross-env BABEL_ENV=commonjs babel --watch --extensions .ts,.tsx --ignore ./src/**/tests/**/* ./src --out-dir lib",
86 "watch:es": "rimraf './lib/**/*.mjs' && cross-env BABEL_ENV=es babel --watch --extensions .ts,.tsx --ignore ./src/**/tests/**/* ./src --out-dir lib --out-file-extension .mjs",
87 "watch:umd": "rimraf ./dist && cross-env NODE_ENV=production rollup -w -c && rollup-plugin-visualizer stats-react.json",
88 "watch:types": "rimraf './lib/**/*.d.ts' && tsc --watch --project ./tsconfig.types.json",
89 "now-build": "yarn && cd www && yarn && yarn build",
90 "prettier": "prettier \"{.,src,src/**,example/src,example/src/**,types}/*.{md,js,jsx,ts,tsx,json}\"",
91 "start": "yarn watch",
92 "format": "yarn prettier --write",
93 "stats": "open ./stats.html"
94 },
95 "files": [
96 "dist",
97 "lib",
98 "core",
99 "devtools",
100 "persistQueryClient",
101 "createWebStoragePersister",
102 "createAsyncStoragePersister",
103 "broadcastQueryClient-experimental",
104 "reactjs",
105 "codemods",
106 "!codemods/jest.config.js",
107 "!codemods/**/__testfixtures__",
108 "!codemods/**/__tests__"
109 ],
110 "dependencies": {
111 "@babel/runtime": "^7.17.9",
112 "@types/use-sync-external-store": "^0.0.3",
113 "broadcast-channel": "^3.4.1",
114 "match-sorter": "^6.0.2",
115 "use-sync-external-store": "^1.1.0"
116 },
117 "peerDependencies": {
118 "react": "^16.8.0 || ^17.0.0 || ^18.0.0"
119 },
120 "peerDependenciesMeta": {
121 "react-dom": {
122 "optional": true
123 },
124 "react-native": {
125 "optional": true
126 }
127 },
128 "devDependencies": {
129 "@babel/cli": "^7.17.6",
130 "@babel/core": "^7.17.9",
131 "@babel/plugin-transform-runtime": "^7.17.0",
132 "@babel/preset-env": "^7.16.11",
133 "@babel/preset-react": "^7.16.7",
134 "@babel/preset-typescript": "^7.16.7",
135 "@rollup/plugin-babel": "^5.3.1",
136 "@rollup/plugin-commonjs": "21.1.0",
137 "@rollup/plugin-node-resolve": "^13.2.1",
138 "@rollup/plugin-replace": "^4.0.0",
139 "@testing-library/jest-dom": "^5.14.1",
140 "@testing-library/react": "^13.0.0",
141 "@testing-library/react-17": "npm:@testing-library/react@^12.1.4",
142 "@types/jest": "^26.0.4",
143 "@types/jscodeshift": "^0.11.3",
144 "@types/node": "^16.11.10",
145 "@types/react": "^18.0.0",
146 "@types/react-dom": "^18.0.0",
147 "@typescript-eslint/eslint-plugin": "^5.6.0",
148 "@typescript-eslint/parser": "^5.6.0",
149 "babel-eslint": "^10.1.0",
150 "babel-jest": "^26.0.1",
151 "babel-plugin-add-import-extension": "^1.6.0",
152 "bundlewatch": "^0.3.2",
153 "cross-env": "^7.0.2",
154 "eslint": "7.x",
155 "eslint-config-prettier": "^6.11.0",
156 "eslint-config-react-app": "^5.2.1",
157 "eslint-config-standard": "^14.1.1",
158 "eslint-config-standard-react": "^9.2.0",
159 "eslint-plugin-flowtype": "5.x",
160 "eslint-plugin-import": "^2.22.1",
161 "eslint-plugin-jsx-a11y": "6.x",
162 "eslint-plugin-node": "^11.1.0",
163 "eslint-plugin-prettier": "^3.1.3",
164 "eslint-plugin-promise": "^4.2.1",
165 "eslint-plugin-react": "7.20.0",
166 "eslint-plugin-react-hooks": "^4.3.0",
167 "eslint-plugin-standard": "^4.0.1",
168 "is-ci-cli": "^2.1.1",
169 "jest": "^26.0.1",
170 "jscodeshift": "^0.13.1",
171 "prettier": "2.2.1",
172 "react": "^18.0.0",
173 "react-17": "npm:react@^17.0.2",
174 "react-dom": "^18.0.0",
175 "react-dom-17": "npm:react-dom@^17.0.2",
176 "react-error-boundary": "^3.1.4",
177 "replace": "^1.2.0",
178 "rimraf": "^3.0.2",
179 "rollup": "^2.70.2",
180 "rollup-plugin-node-externals": "^4.0.0",
181 "rollup-plugin-size": "^0.2.2",
182 "rollup-plugin-terser": "^7.0.2",
183 "rollup-plugin-visualizer": "^5.6.0",
184 "typescript": "4.5.3"
185 },
186 "bundlewatch": {
187 "files": [
188 {
189 "path": "dist/*.production.min.js"
190 }
191 ]
192 }
193}