react-concurrent-router
Version:
Performant routing embracing React concurrent UI patterns
149 lines (148 loc) • 4.45 kB
JSON
{
"name": "react-concurrent-router",
"version": "1.8.0",
"description": "Performant routing embracing React concurrent UI patterns",
"author": "Santino Puleio",
"license": "MIT",
"main": "cjs/index.js",
"module": "esm/index.js",
"unpkg": "umd/react-concurrent-router.production.min.js",
"sideEffects": false,
"type": "module",
"engines": {
"node": ">=20.0.0"
},
"scripts": {
"build": "rimraf dist && yarn build:cjs&& yarn build:esm && yarn build:umd && yarn build:pick",
"build:cjs": "cross-env BABEL_ENV=cjs rollup -c",
"build:esm": "cross-env BABEL_ENV=esm rollup -c",
"build:umd": "cross-env BABEL_ENV=umd rollup -c",
"build:pick": "cherry-pick --cjs-dir cjs --esm-dir esm --cwd dist ../src",
"postbuild:pick": "rimraf dist/utils dist/createRouter dist/RouterContext rmdir",
"format": "prettier-standard 'src/**/*.js'",
"test": "jest --watch",
"testonly": "jest --runInBand --verbose",
"coverage": "jest --coverage",
"postcoverage": "open-cli ./coverage/lcov-report/index.html",
"bundlewatch": "bundlewatch",
"precommit": "lint-staged",
"prepush": "yarn testonly",
"cleanupminified": "rimraf dist/cjs/index.min.js dist/esm/index.min.js",
"copydistfiles": "cp -rf package.json LICENCE README.md dist",
"lint": "standard",
"lint:fix": "standard --fix",
"format:check": "prettier-standard --check 'src/**/*.js'",
"format:fix": "prettier-standard 'src/**/*.js'"
},
"repository": {
"type": "git",
"url": "https://github.com/santino/react-concurrent-router.git"
},
"bugs": {
"url": "https://github.com/santino/react-concurrent-router/issues"
},
"homepage": "https://github.com/santino/react-concurrent-router#readme",
"keywords": [
"react",
"router",
"concurrent",
"route",
"routing",
"preloading",
"prefetching",
"history",
"relay"
],
"bundlewatch": {
"files": [
{
"path": "./dist/cjs/index.min.js",
"maxSize": "8.6 Kb",
"compression": "none"
},
{
"path": "./dist/esm/index.min.js",
"maxSize": "8.1 Kb",
"compression": "none"
},
{
"path": "./dist/umd/react-concurrent-router.production.min.js",
"maxSize": "16 Kb",
"compression": "none"
}
]
},
"publishConfig": {
"directory": "dist"
},
"standard": {
"parser": "@babel/eslint-parser",
"ignore": [
"/dist/"
],
"env": [
"jest"
]
},
"jest": {
"collectCoverageFrom": [
"src/**"
]
},
"lint-staged": {
"*js": [
"prettier-standard --lint"
],
"./README.md": "doctoc"
},
"dependencies": {
"history": "^5.2.0"
},
"devDependencies": {
"@ampproject/rollup-plugin-closure-compiler": "^0.27.0",
"@babel/core": "^7.28.0",
"@babel/eslint-parser": "^7.28.0",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/plugin-proposal-object-rest-spread": "^7.20.7",
"@babel/plugin-proposal-optional-chaining": "^7.21.0",
"@babel/plugin-transform-object-assign": "^7.27.1",
"@babel/plugin-transform-react-constant-elements": "^7.27.1",
"@babel/plugin-transform-runtime": "^7.28.0",
"@babel/preset-env": "^7.28.0",
"@babel/preset-react": "^7.27.1",
"@babel/runtime": "^7.28.2",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "^28.0.6",
"@rollup/plugin-node-resolve": "^16.0.1",
"@testing-library/dom": "^10.4.1",
"@testing-library/jest-dom": "^6.6.4",
"@testing-library/react": "^16.3.0",
"@types/react": "^19.1.8",
"babel-jest": "^29.7.0",
"babel-plugin-transform-react-remove-prop-types": "^0.4.24",
"bundlewatch": "^0.4.1",
"cherry-pick": "^0.5.0",
"coveralls": "^3.1.1",
"cross-env": "^10.0.0",
"doctoc": "^2.2.1",
"dtslint": "^4.2.1",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"lint-staged": "^16.1.2",
"open-cli": "^8.0.0",
"prettier-standard": "^16.4.1",
"prop-types": "^15.8.1",
"react": "^19.1.1",
"react-dom": "^19.1.1",
"rimraf": "^6.0.1",
"rollup": "^4.46.1",
"@rollup/plugin-terser": "^0.4.4",
"standard": "^17.1.2",
"typescript": "^5.8.3"
},
"peerDependencies": {
"@babel/runtime": "^7.11.0",
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
}
}