react-query
Version:
Hooks for managing, caching and syncing asynchronous and remote data in React
195 lines (194 loc) • 7.39 kB
JSON
{
"name": "react-query",
"version": "4.0.0-beta.9",
"description": "Hooks for managing, caching and syncing asynchronous and remote data in React",
"author": "tannerlinsley",
"license": "MIT",
"repository": "tannerlinsley/react-query",
"homepage": "https://github.com/tannerlinsley/react-query#readme",
"funding": {
"type": "github",
"url": "https://github.com/sponsors/tannerlinsley"
},
"main": "lib/index.js",
"module": "lib/index.mjs",
"types": "lib/index.d.ts",
"unpkg": "dist/react-query.development.js",
"sideEffects": [
"lib/index.js",
"lib/index.mjs",
"lib/reactjs/index.js",
"lib/reactjs/index.mjs",
"lib/reactjs/setBatchUpdatesFn.js",
"lib/reactjs/setBatchUpdatesFn.mjs"
],
"exports": {
".": {
"import": "./lib/index.mjs",
"default": "./lib/index.js"
},
"./package.json": "./package.json",
"./core": {
"import": "./lib/core/index.mjs",
"default": "./lib/core/index.js"
},
"./reactjs": {
"import": "./lib/reactjs/index.mjs",
"default": "./lib/reactjs/index.js"
},
"./devtools": {
"development": {
"import": "./lib/devtools/index.mjs",
"default": "./lib/devtools/index.js"
},
"import": "./lib/devtools/noop.mjs",
"default": "./lib/devtools/noop.js"
},
"./devtools/development": {
"import": "./lib/devtools/index.mjs",
"default": "./lib/devtools/index.js"
},
"./persistQueryClient": {
"import": "./lib/persistQueryClient/index.mjs",
"default": "./lib/persistQueryClient/index.js"
},
"./createWebStoragePersister": {
"import": "./lib/createWebStoragePersister/index.mjs",
"default": "./lib/createWebStoragePersister/index.js"
},
"./createAsyncStoragePersister": {
"import": "./lib/createAsyncStoragePersister/index.mjs",
"default": "./lib/createAsyncStoragePersister/index.js"
},
"./broadcastQueryClient-experimental": {
"import": "./lib/broadcastQueryClient-experimental/index.mjs",
"default": "./lib/broadcastQueryClient-experimental/index.js"
}
},
"scripts": {
"test": "is-ci \"test:ci\" \"test:dev\"",
"test:dev": "npm run test:types && npm run test:format && npm run test:eslint && npm run test:codemod && jest --watch",
"test:dev:17": "npm run test:types && npm run test:format && npm run test:eslint && npm run test:codemod && REACTJS_VERSION=17 jest --watch",
"test:ci": "npm run test:types && npm run test:format && npm run test:eslint && npm run test:codemod && jest",
"test:coverage": "yarn test:ci; open coverage/lcov-report/index.html",
"test:format": "yarn prettier --check",
"test:types": "tsc",
"test:eslint": "eslint --ext .ts,.tsx ./src",
"test:size": "yarn build:umd && bundlewatch",
"test:codemod": "jest --config codemods/jest.config.js",
"build": "yarn build:commonjs && yarn build:es && yarn build:umd && yarn build:types",
"build:commonjs": "rimraf './lib/**/*.js' && cross-env BABEL_ENV=commonjs babel --extensions .ts,.tsx --ignore ./src/**/tests/**/* ./src --out-dir lib",
"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",
"build:umd": "rimraf ./dist && cross-env NODE_ENV=production rollup -c && rollup-plugin-visualizer stats-react.json",
"build:types": "rimraf './lib/**/*.d.ts' && tsc --project ./tsconfig.types.json",
"watch": "yarn watch:commonjs && watch:es & yarn watch:umd & yarn watch:types",
"watch:commonjs": "rimraf './lib/**/*.js' && cross-env BABEL_ENV=commonjs babel --watch --extensions .ts,.tsx --ignore ./src/**/tests/**/* ./src --out-dir lib",
"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",
"watch:umd": "rimraf ./dist && cross-env NODE_ENV=production rollup -w -c && rollup-plugin-visualizer stats-react.json",
"watch:types": "rimraf './lib/**/*.d.ts' && tsc --watch --project ./tsconfig.types.json",
"now-build": "yarn && cd www && yarn && yarn build",
"prettier": "prettier \"{.,src,src/**,example/src,example/src/**,types}/*.{md,js,jsx,ts,tsx,json}\"",
"start": "yarn watch",
"format": "yarn prettier --write",
"stats": "open ./stats.html"
},
"files": [
"dist",
"lib",
"core",
"devtools",
"persistQueryClient",
"createWebStoragePersister",
"createAsyncStoragePersister",
"broadcastQueryClient-experimental",
"reactjs",
"codemods",
"!codemods/jest.config.js",
"!codemods/**/__testfixtures__",
"!codemods/**/__tests__"
],
"dependencies": {
"@babel/runtime": "^7.17.9",
"@types/use-sync-external-store": "^0.0.3",
"broadcast-channel": "^3.4.1",
"match-sorter": "^6.0.2",
"use-sync-external-store": "^1.0.0"
},
"peerDependencies": {
"react": "^16.8.0 || ^17.0.0 || ^18.0.0"
},
"peerDependenciesMeta": {
"react-dom": {
"optional": true
},
"react-native": {
"optional": true
}
},
"devDependencies": {
"@babel/cli": "^7.17.6",
"@babel/core": "^7.17.9",
"@babel/plugin-transform-runtime": "^7.17.0",
"@babel/preset-env": "^7.16.11",
"@babel/preset-react": "^7.16.7",
"@babel/preset-typescript": "^7.16.7",
"@rollup/plugin-babel": "^5.3.1",
"@rollup/plugin-commonjs": "21.1.0",
"@rollup/plugin-node-resolve": "^13.2.1",
"@rollup/plugin-replace": "^4.0.0",
"@testing-library/jest-dom": "^5.14.1",
"@testing-library/react": "^13.0.0",
"@testing-library/react-17": "npm:@testing-library/react@^12.1.4",
"@types/jest": "^26.0.4",
"@types/jscodeshift": "^0.11.3",
"@types/node": "^16.11.10",
"@types/react": "^18.0.0",
"@types/react-dom": "^18.0.0",
"@typescript-eslint/eslint-plugin": "^5.6.0",
"@typescript-eslint/parser": "^5.6.0",
"babel-eslint": "^10.1.0",
"babel-jest": "^26.0.1",
"babel-plugin-add-import-extension": "^1.6.0",
"bundlewatch": "^0.3.2",
"cross-env": "^7.0.2",
"eslint": "7.x",
"eslint-config-prettier": "^6.11.0",
"eslint-config-react-app": "^5.2.1",
"eslint-config-standard": "^14.1.1",
"eslint-config-standard-react": "^9.2.0",
"eslint-plugin-flowtype": "5.x",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-jsx-a11y": "6.x",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^3.1.3",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-react": "7.20.0",
"eslint-plugin-react-hooks": "^4.3.0",
"eslint-plugin-standard": "^4.0.1",
"is-ci-cli": "^2.1.1",
"jest": "^26.0.1",
"jscodeshift": "^0.13.1",
"prettier": "2.2.1",
"react": "^18.0.0",
"react-17": "npm:react@^17.0.2",
"react-dom": "^18.0.0",
"react-dom-17": "npm:react-dom@^17.0.2",
"react-error-boundary": "^3.1.4",
"replace": "^1.2.0",
"rimraf": "^3.0.2",
"rollup": "^2.70.2",
"rollup-plugin-node-externals": "^4.0.0",
"rollup-plugin-size": "^0.2.2",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-visualizer": "^5.6.0",
"type-fest": "^0.21.0",
"typescript": "4.5.3"
},
"bundlewatch": {
"files": [
{
"path": "dist/*.production.min.js"
}
]
}
}