UNPKG

use-travel

Version:

A React hook for state time travel with undo, redo, reset and archive functionalities.

102 lines (101 loc) 2.82 kB
{ "name": "use-travel", "version": "1.3.0", "description": "A React hook for state time travel with undo, redo, reset and archive functionalities.", "main": "dist/index.cjs.js", "unpkg": "dist/index.umd.js", "types": "dist/index.d.ts", "umd:main": "dist/index.umd.js", "module": "dist/index.esm.js", "jsnext:main": "dist/index.esm.js", "react-native": "dist/index.esm.js", "typings": "dist/index.d.ts", "source": "src/index.ts", "sideEffects": false, "files": [ "dist" ], "publishConfig": { "access": "public" }, "scripts": { "test": "jest", "test:coverage": "jest --coverage && coveralls < coverage/lcov.info", "clean": "rimraf dist", "build": "yarn clean && tsc --skipLibCheck && yarn build:prod", "build:prod": "NODE_ENV=production rollup --config --bundleConfigAsCjs", "build:doc": "typedoc --plugin typedoc-plugin-markdown --out docs src/index.ts", "commit": "yarn git-cz" }, "repository": { "type": "git", "url": "git+https://github.com/mutativejs/use-travel.git" }, "author": "unadlib", "license": "MIT", "bugs": { "url": "https://github.com/mutativejs/use-travel/issues" }, "homepage": "https://github.com/mutativejs/use-travel#readme", "keywords": [ "use-undo", "undo", "redo", "time travel", "mutative" ], "devDependencies": { "@rollup/plugin-commonjs": "^28.0.0", "@rollup/plugin-node-resolve": "^15.3.0", "@rollup/plugin-replace": "^6.0.1", "@rollup/plugin-terser": "^0.4.4", "@testing-library/react": "^14.2.1", "@types/jest": "^29.5.0", "@types/node": "^18.15.5", "@types/react": "^18.2.66", "@typescript-eslint/eslint-plugin": "^8.15.0", "@typescript-eslint/parser": "^8.15.0", "commitizen": "^4.3.0", "coveralls": "^3.1.1", "eslint": "^9.3.0", "eslint-config-airbnb": "^19.0.4", "eslint-config-prettier": "^9.1.0", "eslint-plugin-import": "^2.29.1", "eslint-plugin-prettier": "^5.1.3", "jest": "^29.7.0", "jest-environment-jsdom": "^29.7.0", "mutative": "^1.2.0", "prettier": "^3.2.5", "react": "^18.2.0", "react-dom": "^18.2.0", "rimraf": "^4.4.0", "rollup": "^4.22.5", "ts-jest": "^29.2.5", "ts-node": "^10.9.2", "tslib": "^2.8.1", "typedoc": "^0.26.11", "typedoc-plugin-markdown": "^4.2.10", "typescript": "^5.8.3", "yargs": "^17.7.2" }, "config": { "commitizen": { "path": "cz-conventional-changelog" } }, "jest": { "preset": "ts-jest", "testEnvironment": "jsdom", "globals": { "__DEV__": false } }, "peerDependencies": { "@types/react": "^17.0 || ^18.0 || ^19.0", "mutative": "^1.2.0", "react": "^17.0 || ^18.0 || ^19.0" }, "dependencies": { "use-mutative": "^1.3.0" } }