UNPKG

@better-hooks/performance

Version:
130 lines (129 loc) 3.63 kB
{ "name": "@better-hooks/performance", "version": "2.1.0", "author": "prc5", "license": "MIT", "description": "React window hooks", "repository": "BetterTyped/react-performance-hooks", "main": "dist/index.cjs.js", "module": "dist/index.esm.js", "types": "dist/index.d.ts", "source": "src/index.ts", "jsnext:main": "dist/index.esm.js", "engines": { "node": ">=8", "npm": ">=5" }, "private": false, "peerDependencies": { "react": ">= 16.8.0" }, "publishConfig": { "access": "public", "registry": "https://registry.npmjs.com/" }, "scripts": { "build": "rollup -c", "prepare": "install-peers && yarn husky install", "lint": "eslint . --ext .js,.jsx,.tsx,.ts --fix", "test": "jest", "release": "yarn semantic-release" }, "eslintConfig": { "extends": [ "react-app", "react-app/jest" ] }, "browserslist": { "production": [ ">0.2%", "not dead", "not op_mini all" ], "development": [ "last 1 chrome version", "last 1 firefox version", "last 1 safari version" ] }, "devDependencies": { "@commitlint/cli": "^17.0.0", "@commitlint/config-conventional": "^17.0.2", "@rollup/plugin-babel": "^5.3.1", "@rollup/plugin-commonjs": "^22.0.2", "@rollup/plugin-node-resolve": "^14.1.0", "@semantic-release/changelog": "^6.0.1", "@semantic-release/commit-analyzer": "^9.0.2", "@semantic-release/git": "^10.0.1", "@semantic-release/github": "^8.0.6", "@semantic-release/npm": "^9.0.1", "@semantic-release/release-notes-generator": "^10.0.3", "@svgr/rollup": "^6.3.1", "@testing-library/jest-dom": "^5.16.5", "@testing-library/react": "^13.4.0", "@testing-library/user-event": "^14.4.3", "@types/jest": "^29.1.1", "@types/node": "^18.7.23", "@types/react": "^18.0.21", "@types/react-dom": "^18.0.6", "@typescript-eslint/eslint-plugin": "^5.28.0", "@typescript-eslint/parser": "^5.28.0", "@zerollup/ts-transform-paths": "^1.7.18", "commitlint": "^17.0.2", "eslint": "^8.17.0", "eslint-config-airbnb": "^19.0.4", "eslint-config-airbnb-typescript": "^17.0.0", "eslint-config-next": "12.1.6", "eslint-config-prettier": "^8.5.0", "eslint-config-react-app": "^7.0.1", "eslint-plugin-import": "^2.26.0", "eslint-plugin-jsx-a11y": "^6.5.1", "eslint-plugin-prettier": "^4.0.0", "eslint-plugin-react": "^7.30.0", "eslint-plugin-react-hooks": "^4.6.0", "gh-pages": "^4.0.0", "husky": "^8.0.1", "install-peers-cli": "^2.2.0", "jest": "^28.1.1", "jest-environment-jsdom": "^28.1.1", "jest-extended": "^2.0.0", "jest-watch-typeahead": "^1.1.0", "postcss": "^8.4.17", "prettier": "^2.6.2", "reflect-metadata": "^0.1.13", "rollup": "^2.79.1", "rollup-plugin-copy": "^3.4.0", "rollup-plugin-delete": "^2.0.0", "rollup-plugin-dts": "^4.2.2", "rollup-plugin-peer-deps-external": "^2.2.4", "rollup-plugin-postcss": "^4.0.2", "rollup-plugin-terser": "^7.0.2", "rollup-plugin-typescript2": "^0.34.0", "rollup-plugin-url": "^3.0.1", "semantic-release": "^19.0.5", "ts-jest": "^28.0.5", "ts-node": "~10.8.0", "tslib": "^2.3.0", "typescript": "^4.8.4" }, "files": [ "dist" ], "keywords": [ "react", "hooks", "performance", "throttle", "debounce", "useDebounce", "useDebounceState", "useDebounceEffect", "useThrottle", "useThrottleState", "useThrottleEffect" ], "dependencies": { "@better-hooks/lifecycle": "^2.0.0" } }