UNPKG

use-track-history

Version:

React hook to track state history with undo/redo functionality

78 lines (77 loc) 2.12 kB
{ "name": "use-track-history", "version": "1.2.0", "description": "React hook to track state history with undo/redo functionality", "type": "module", "main": "./dist/index.js", "module": "./dist/index.esm.js", "types": "./dist/index.d.ts", "exports": { ".": { "types": "./dist/index.d.ts", "import": "./dist/index.esm.js", "require": "./dist/index.js", "default": "./dist/index.js" } }, "files": [ "dist" ], "sideEffects": false, "scripts": { "build": "tsc && rollup -c", "test": "jest --coverage", "lint": "eslint src/ --ext .ts,.tsx", "typecheck": "tsc --noEmit", "semantic-release": "semantic-release" }, "repository": { "type": "git", "url": "https://github.com/tschoffelen/use-track-history.git" }, "keywords": [ "react", "hook", "history", "undo", "redo" ], "author": "Thomas Schoffelen", "license": "MIT", "bugs": { "url": "https://github.com/tschoffelen/use-track-history/issues" }, "homepage": "https://github.com/tschoffelen/use-track-history#readme", "peerDependencies": { "react": ">=17.0.0" }, "devDependencies": { "@eslint/js": "^9.0.0", "@rollup/plugin-commonjs": "^28.0.3", "@rollup/plugin-node-resolve": "^16.0.1", "@rollup/plugin-typescript": "^12.1.2", "@testing-library/dom": "^10.4.0", "@testing-library/jest-dom": "^6.6.3", "@testing-library/react": "^16.2.0", "@types/jest": "^29.0.0", "@types/react": "^19.0.12", "@types/react-dom": "^19.0.4", "@typescript-eslint/eslint-plugin": "^8.28.0", "@typescript-eslint/parser": "^8.28.0", "eslint": "^9.23.0", "eslint-plugin-react": "^7.33.2", "eslint-plugin-react-hooks": "^5.2.0", "jest": "^29.0.0", "jest-environment-jsdom": "^29.0.0", "react": "^19.0.0", "react-dom": "^19.0.0", "rollup": "^4.37.0", "rollup-plugin-peer-deps-external": "^2.0.0", "semantic-release": "^24.2.3", "ts-jest": "^29.0.0", "tslib": "^2.8.1", "typescript": "^5.8.2", "typescript-eslint": "^7.0.0" }, "dependencies": {} }