use-travel
Version:
A React hook for state time travel with undo, redo, reset, rebase and archive functionalities.
103 lines (102 loc) • 3.13 kB
JSON
{
"name": "use-travel",
"version": "1.9.0",
"description": "A React hook for state time travel with undo, redo, reset, rebase 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",
"packageManager": "pnpm@10.34.4",
"sideEffects": false,
"files": [
"dist"
],
"publishConfig": {
"access": "public"
},
"scripts": {
"test": "pnpm run test:types && vitest run",
"test:types": "tsc -p tsconfig.typecheck.json",
"test:coverage": "pnpm run test:types && vitest run --coverage && coveralls < coverage/lcov.info",
"clean": "rimraf dist",
"build": "pnpm run clean && pnpm run test:types && tsc --skipLibCheck && pnpm run build:prod",
"build:prod": "NODE_ENV=production rollup --config --bundleConfigAsCjs",
"build:doc": "typedoc --plugin typedoc-plugin-markdown --out docs src/index.ts",
"commit": "pnpm exec 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": {
"@babel/core": "^7.29.7",
"@babel/plugin-transform-react-jsx": "^7.29.7",
"@rollup/plugin-commonjs": "^28.0.6",
"@rollup/plugin-node-resolve": "^16.0.1",
"@rollup/plugin-replace": "^6.0.2",
"@rollup/plugin-terser": "^0.4.4",
"@testing-library/react": "^14.2.1",
"@types/node": "^18.15.5",
"@types/react": "^18.2.66",
"@typescript-eslint/eslint-plugin": "^8.44.1",
"@typescript-eslint/parser": "^8.44.1",
"@vitest/coverage-v8": "^2.1.4",
"babel-plugin-react-compiler": "1.0.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",
"jsdom": "^27.0.0",
"mutative": "^1.3.0",
"prettier": "^3.2.5",
"react": "^18.2.0",
"react-compiler-runtime": "1.0.0",
"react-dom": "^18.2.0",
"rimraf": "^4.4.0",
"rollup": "^4.52.3",
"travels": "^1.3.1",
"ts-node": "^10.9.2",
"tslib": "^2.8.1",
"typedoc": "^0.26.11",
"typedoc-plugin-markdown": "^4.2.10",
"typescript": "^5.9.2",
"vitest": "^2.1.4",
"yargs": "^17.7.2"
},
"config": {
"commitizen": {
"path": "cz-conventional-changelog"
}
},
"peerDependencies": {
"@types/react": "^17.0 || ^18.0 || ^19.0",
"mutative": "^1.3.0",
"react": "^17.0 || ^18.0 || ^19.0",
"travels": "^1.3.1"
},
"dependencies": {
"@types/use-sync-external-store": "^1.5.0",
"use-sync-external-store": "^1.6.0"
}
}