react-router
Advanced tools
116
package.json
{ | ||
"name": "react-router", | ||
"version": "0.0.0-experimental-e53172d16", | ||
"version": "0.0.0-experimental-e56aa53bc", | ||
"description": "Declarative routing for React", | ||
@@ -21,16 +21,107 @@ "keywords": [ | ||
"sideEffects": false, | ||
"main": "./dist/main.js", | ||
"unpkg": "./dist/umd/react-router.production.min.js", | ||
"module": "./dist/index.js", | ||
"types": "./dist/index.d.ts", | ||
"types": "./dist/development/index.d.ts", | ||
"main": "./dist/development/index.js", | ||
"module": "./dist/development/index.mjs", | ||
"exports": { | ||
".": { | ||
"node": { | ||
"types": "./dist/development/index.d.ts", | ||
"module": "./dist/development/index.mjs", | ||
"module-sync": "./dist/development/index.mjs", | ||
"default": "./dist/development/index.js" | ||
}, | ||
"module": { | ||
"types": "./dist/development/index.d.mts", | ||
"default": "./dist/development/index.mjs" | ||
}, | ||
"import": { | ||
"types": "./dist/development/index.d.mts", | ||
"default": "./dist/development/index.mjs" | ||
}, | ||
"default": { | ||
"types": "./dist/development/index.d.ts", | ||
"default": "./dist/development/index.js" | ||
} | ||
}, | ||
"./route-module": { | ||
"import": { | ||
"types": "./dist/development/lib/types/route-module.d.mts" | ||
}, | ||
"default": { | ||
"types": "./dist/development/lib/types/route-module.d.ts" | ||
} | ||
}, | ||
"./dom": { | ||
"node": { | ||
"types": "./dist/development/dom-export.d.ts", | ||
"module": "./dist/development/dom-export.mjs", | ||
"module-sync": "./dist/development/dom-export.mjs", | ||
"default": "./dist/development/dom-export.js" | ||
}, | ||
"module": { | ||
"types": "./dist/development/dom-export.d.mts", | ||
"default": "./dist/development/dom-export.mjs" | ||
}, | ||
"import": { | ||
"types": "./dist/development/dom-export.d.mts", | ||
"default": "./dist/development/dom-export.mjs" | ||
}, | ||
"default": { | ||
"types": "./dist/development/dom-export.d.ts", | ||
"default": "./dist/development/dom-export.js" | ||
} | ||
}, | ||
"./rsc": { | ||
"node": { | ||
"types": "./dist/development/rsc-export.d.ts", | ||
"module": "./dist/development/rsc-export.mjs", | ||
"module-sync": "./dist/development/rsc-export.mjs", | ||
"default": "./dist/development/rsc-export.js" | ||
}, | ||
"module": { | ||
"types": "./dist/development/rsc-export.d.mts", | ||
"default": "./dist/development/rsc-export.mjs" | ||
}, | ||
"import": { | ||
"types": "./dist/development/rsc-export.d.mts", | ||
"default": "./dist/development/rsc-export.mjs" | ||
}, | ||
"default": { | ||
"types": "./dist/development/rsc-export.d.ts", | ||
"default": "./dist/development/rsc-export.js" | ||
} | ||
}, | ||
"./package.json": "./package.json" | ||
}, | ||
"wireit": { | ||
"build": { | ||
"command": "rimraf dist && tsup && tsup --config tsup.config.rsc.ts", | ||
"files": [ | ||
"lib/**", | ||
"*.ts", | ||
"tsconfig.json", | ||
"package.json" | ||
], | ||
"output": [ | ||
"dist/**" | ||
] | ||
} | ||
}, | ||
"dependencies": { | ||
"turbo-stream": "^2.0.0" | ||
"cookie": "^1.0.1", | ||
"set-cookie-parser": "^2.6.0", | ||
"turbo-stream": "2.4.0" | ||
}, | ||
"devDependencies": { | ||
"@types/set-cookie-parser": "^2.4.1", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0" | ||
"react-dom": "^18.2.0", | ||
"rimraf": "^6.0.1", | ||
"tsup": "^8.3.0", | ||
"typescript": "^5.1.6", | ||
"wireit": "0.14.9" | ||
}, | ||
"peerDependencies": { | ||
"react": ">=16.8", | ||
"react-dom": ">=16.8" | ||
"react": ">=18", | ||
"react-dom": ">=18" | ||
}, | ||
@@ -49,4 +140,9 @@ "peerDependenciesMeta": { | ||
"engines": { | ||
"node": ">=14.0.0" | ||
"node": ">=20.0.0" | ||
}, | ||
"scripts": { | ||
"build": "wireit", | ||
"watch": "tsup --watch & tsup --config tsup.config.rsc.ts --watch", | ||
"typecheck": "tsc" | ||
} | ||
} |
@@ -1,7 +0,7 @@ | ||
# React Router | ||
`react-router` is the primary package in the React Router project. | ||
The `react-router` package is the heart of [React Router](https://github.com/remix-run/react-router) and provides all the core functionality. | ||
## Installation | ||
If you'd like to extend React Router and you know what you're doing, you should | ||
add `react-router` **as a peer dependency, not a regular dependency** in your | ||
package. | ||
```sh | ||
npm i react-router | ||
``` |
Sorry, the diff of this file is too big to display
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
50
21.95%83160
139.08%2
-33.33%9
-92.62%3324969
-41.37%5
66.67%7
250%