mutative
Version:
A JavaScript library for efficient immutable updates
153 lines (152 loc) • 5.1 kB
JSON
{
"name": "mutative",
"version": "0.7.3",
"description": "A JavaScript library for efficient immutable updates",
"main": "dist/index.js",
"module": "dist/mutative.esm.js",
"umd:main": "dist/mutative.umd.production.min.js",
"unpkg": "dist/mutative.umd.production.min.js",
"jsdelivr": "dist/mutative.umd.production.min.js",
"jsnext:main": "dist/mutative.esm.js",
"react-native": "dist/mutative.esm.js",
"source": "src/index.ts",
"types": "dist/index.d.ts",
"exports": {
".": {
"import": "./dist/mutative.esm.mjs",
"require": "./dist/index.js",
"types": "./dist/index.d.ts"
},
"./*": "./*"
},
"files": [
"dist",
"src"
],
"scripts": {
"test": "jest",
"clean": "rimraf dist",
"test:coverage": "jest --coverage && coveralls < coverage/lcov.info",
"perf": "cd test/performance && NODE_ENV='production' ts-node add-data.ts && NODE_ENV='production' ts-node todo.ts && NODE_ENV='production' ts-node incremental.ts",
"benchmark": "yarn build && yarn benchmark:base && yarn benchmark:object && yarn benchmark:array",
"benchmark:base": "NODE_ENV='production' ts-node test/performance/benchmark.ts",
"benchmark:object": "NODE_ENV='production' ts-node test/performance/benchmark-object.ts",
"benchmark:array": "NODE_ENV='production' ts-node test/performance/benchmark-array.ts",
"performance:basic": "cd test/performance && NODE_ENV='production' ts-node index.ts",
"performance:set-map": "cd test/performance && NODE_ENV='production' ts-node set-map.ts",
"performance:big-object": "cd test/performance && NODE_ENV='production' ts-node big-object.ts",
"performance:sample": "cd test/performance && NODE_ENV='production' ts-node sample.ts",
"performance:array-object": "cd test/performance && NODE_ENV='production' ts-node array-object.ts",
"performance": "yarn build && yarn perf && yarn performance:basic && yarn performance:set-map && yarn performance:big-object && yarn performance:sample && yarn performance:array-object",
"build": "tsdx build --format esm,cjs,umd && cp dist/mutative.esm.js dist/mutative.esm.mjs",
"build:doc": "rimraf docs && typedoc --plugin typedoc-plugin-markdown --out docs src/index.ts --readme none",
"commit": "yarn git-cz",
"size": "size-limit",
"analyze": "size-limit --why",
"prettier": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
"publish:docs": "yarn clean && cd website && GIT_USER=unadlib USE_SSH=true yarn run deploy",
"start:docs": "cd website && yarn run start"
},
"size-limit": [
{
"path": "dist/mutative.cjs.production.min.js",
"limit": "5 KB"
},
{
"path": "dist/mutative.esm.js",
"limit": "5 KB"
}
],
"repository": {
"type": "git",
"url": "git+https://github.com/unadlib/mutative.git"
},
"author": "unadlib",
"keywords": [
"mutative",
"immutable",
"mutable",
"immutability",
"mutation"
],
"license": "MIT",
"engines": {
"node": ">=14.0"
},
"bugs": {
"url": "https://github.com/unadlib/mutative/issues"
},
"homepage": "https://github.com/unadlib/mutative#readme",
"devDependencies": {
"@size-limit/esbuild": "^8.2.6",
"@size-limit/esbuild-why": "^8.2.6",
"@size-limit/preset-small-lib": "^8.1.0",
"@size-limit/webpack": "^8.1.0",
"@size-limit/webpack-why": "^8.1.0",
"@types/jest": "^29.4.0",
"@types/node": "^17.0.21",
"@typescript-eslint/eslint-plugin": "^5.58.0",
"@typescript-eslint/parser": "^5.58.0",
"benchmark": "^2.1.4",
"commitizen": "^4.3.0",
"coveralls": "^3.1.1",
"deep-freeze": "^0.0.1",
"eslint": "^8.11.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-jsx-a11y": "^6.7.1",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-react": "^7.32.1",
"fast-json-patch": "^3.1.1",
"immer": "^10.0.3",
"immutable": "^4.0.0",
"jest": "^29.4.0",
"jsdoc-tests": "^1.1.0",
"json2csv": "^5.0.7",
"lodash": "^4.17.21",
"prettier": "^2.8.7",
"quickchart-js": "^3.1.2",
"redux": "^4.2.0",
"rimraf": "^3.0.2",
"rollup": "^2.70.1",
"rollup-plugin-terser": "^7.0.0",
"seamless-immutable": "^7.1.4",
"size-limit": "^8.1.0",
"ts-jest": "^29.1.0",
"ts-node": "^10.9.1",
"tsdx": "^0.14.1",
"tslib": "^2.6.2",
"typedoc": "^0.24.4",
"typedoc-plugin-markdown": "^3.15.1",
"typescript": "^5.3.2",
"yargs": "^17.3.1"
},
"config": {
"commitizen": {
"path": "cz-conventional-changelog"
}
},
"jest": {
"preset": "ts-jest",
"coveragePathIgnorePatterns": [
"<rootDir>/test/"
],
"transform": {
"\\.[jt]sx?$": [
"ts-jest",
{
"tsconfig": {
"noImplicitReturns": false,
"noFallthroughCasesInSwitch": false,
"noUnusedLocals": false,
"noUnusedParameters": false
}
}
]
},
"globals": {
"__DEV__": true
}
}
}