react-router
Advanced tools
Comparing version
MIT License | ||
Copyright (c) React Training 2015-2019 | ||
Copyright (c) Remix Software 2020-2022 | ||
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 |
139
package.json
{ | ||
"name": "react-router", | ||
"version": "0.0.0-experimental-f3b593c3", | ||
"version": "0.0.0-experimental-f62145588", | ||
"description": "Declarative routing for React", | ||
@@ -21,15 +21,129 @@ "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": { | ||
".": { | ||
"react-server": { | ||
"module": "./dist/development/index-react-server.mjs", | ||
"default": "./dist/development/index-react-server.js" | ||
}, | ||
"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" | ||
} | ||
}, | ||
"./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" | ||
} | ||
}, | ||
"./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" | ||
} | ||
}, | ||
"./internal/react-server-client": { | ||
"react-server": { | ||
"module": "./dist/development/index-react-server-client.mjs", | ||
"default": "./dist/development/index-react-server-client.js" | ||
}, | ||
"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" | ||
} | ||
}, | ||
"./package.json": "./package.json" | ||
}, | ||
"wireit": { | ||
"build": { | ||
"command": "premove dist && tsup && tsup --config tsup.config.rsc.ts", | ||
"files": [ | ||
"lib/**", | ||
"*.ts", | ||
"tsconfig.json", | ||
"package.json" | ||
], | ||
"output": [ | ||
"dist/**" | ||
] | ||
} | ||
}, | ||
"dependencies": { | ||
"@remix-run/router": "0.0.0-experimental-f3b593c3" | ||
"cookie": "^1.0.1", | ||
"set-cookie-parser": "^2.6.0" | ||
}, | ||
"devDependencies": { | ||
"react": "^18.2.0" | ||
"@testing-library/jest-dom": "^6.6.3", | ||
"@testing-library/react": "^16.3.0", | ||
"@testing-library/user-event": "^14.6.1", | ||
"@types/set-cookie-parser": "^2.4.1", | ||
"jest-environment-jsdom": "^29.6.2", | ||
"premove": "^4.0.0", | ||
"react": "^19.1.0", | ||
"react-dom": "^19.1.0", | ||
"react-test-renderer": "^19.1.0", | ||
"tsup": "^8.3.0", | ||
"typescript": "^5.1.6", | ||
"undici": "^6.19.2", | ||
"wireit": "0.14.9" | ||
}, | ||
"peerDependencies": { | ||
"react": ">=16.8" | ||
"react": ">=18", | ||
"react-dom": ">=18" | ||
}, | ||
"peerDependenciesMeta": { | ||
"react-dom": { | ||
"optional": true | ||
} | ||
}, | ||
"files": [ | ||
@@ -42,4 +156,9 @@ "dist/", | ||
"engines": { | ||
"node": ">=14" | ||
"node": ">=20.0.0" | ||
}, | ||
"scripts": { | ||
"build": "wireit", | ||
"watch": "tsup --watch & tsup --config tsup.config.rsc.ts --watch", | ||
"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 | ||
``` |
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
Network access
Supply chain riskThis module accesses the network.
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
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
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
3203163
345.9%68
209.09%76950
1628.05%2
-50%21
-47.5%4
100%13
1200%8
-52.94%2
Infinity%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed