react-router
Advanced tools
Comparing version
MIT License | ||
Copyright (c) React Training 2015-2019 | ||
Copyright (c) Remix Software 2020-2021 | ||
Copyright (c) React Training LLC 2015-2019 | ||
Copyright (c) Remix Software Inc. 2020-2021 | ||
Copyright (c) Shopify Inc. 2022-2023 | ||
@@ -6,0 +7,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy |
126
package.json
{ | ||
"name": "react-router", | ||
"version": "0.0.0-experimental-compat.6", | ||
"author": "Remix Software <hello@remix.run>", | ||
"version": "0.0.0-experimental-d050831b5", | ||
"description": "Declarative routing for React", | ||
"keywords": [ | ||
"react", | ||
"router", | ||
"route", | ||
"routing", | ||
"history", | ||
"link" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/remix-run/react-router.git", | ||
"url": "https://github.com/remix-run/react-router", | ||
"directory": "packages/react-router" | ||
}, | ||
"license": "MIT", | ||
"main": "./main.js", | ||
"module": "./index.js", | ||
"types": "./index.d.ts", | ||
"unpkg": "./umd/react-router.production.min.js", | ||
"peerDependencies": { | ||
"react": ">=16.8" | ||
"author": "Remix Software <hello@remix.run>", | ||
"sideEffects": false, | ||
"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-sync": "./dist/development/index.mjs", | ||
"default": "./dist/development/index.js" | ||
}, | ||
"import": { | ||
"types": "./dist/development/index.d.mts", | ||
"default": "./dist/development/index.mjs" | ||
}, | ||
"default": { | ||
"types": "./dist/development/index.d.ts", | ||
"default": "./dist/development/index.js" | ||
} | ||
}, | ||
"./internal": { | ||
"node": { | ||
"types": "./dist/development/lib/types/internal.d.ts" | ||
}, | ||
"import": { | ||
"types": "./dist/development/lib/types/internal.d.mts" | ||
}, | ||
"default": { | ||
"types": "./dist/development/lib/types/index.d.ts" | ||
} | ||
}, | ||
"./dom": { | ||
"node": { | ||
"types": "./dist/development/dom-export.d.ts", | ||
"module-sync": "./dist/development/dom-export.mjs", | ||
"default": "./dist/development/dom-export.js" | ||
}, | ||
"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" | ||
} | ||
}, | ||
"./package.json": "./package.json" | ||
}, | ||
"wireit": { | ||
"build": { | ||
"command": "rimraf dist && tsup", | ||
"files": [ | ||
"lib/**", | ||
"*.ts", | ||
"tsconfig.json", | ||
"package.json" | ||
], | ||
"output": [ | ||
"dist/**" | ||
] | ||
} | ||
}, | ||
"dependencies": { | ||
"history": "^5.2.0" | ||
"cookie": "^1.0.1", | ||
"set-cookie-parser": "^2.6.0" | ||
}, | ||
"sideEffects": false, | ||
"keywords": [ | ||
"react", | ||
"router", | ||
"route", | ||
"routing", | ||
"history", | ||
"link" | ||
] | ||
} | ||
"devDependencies": { | ||
"@types/set-cookie-parser": "^2.4.1", | ||
"react": "^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": ">=18", | ||
"react-dom": ">=18" | ||
}, | ||
"peerDependenciesMeta": { | ||
"react-dom": { | ||
"optional": true | ||
} | ||
}, | ||
"files": [ | ||
"dist/", | ||
"CHANGELOG.md", | ||
"LICENSE.md", | ||
"README.md" | ||
], | ||
"engines": { | ||
"node": ">=20.0.0" | ||
}, | ||
"scripts": { | ||
"build": "wireit", | ||
"typecheck": "tsc" | ||
} | ||
} |
@@ -1,16 +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 for both | ||
[`react-router-dom`](/packages/react-router-dom) | ||
and | ||
[`react-router-native`](/packages/react-router-native). | ||
## Installation | ||
If you're using React Router, you should never `import` anything directly from | ||
the `react-router` package, but you should have everything you need in either | ||
`react-router-dom` or `react-router-native`. Both of those packages re-export | ||
everything from `react-router`. | ||
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 | ||
``` |
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
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
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
2306402
406.78%38
100%56578
1804.34%2
-33.33%13
-51.85%4
100%7
Infinity%8
-52.94%2
Infinity%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed