react-router
Advanced tools
Comparing version
import * as React from 'react'; | ||
import { R as RouterProviderProps$1 } from './fog-of-war-DLtn2OLr.js'; | ||
import './route-data-aSUFWnQ6.js'; | ||
import { RouterProviderProps as RouterProviderProps$1, RouterInit } from 'react-router'; | ||
@@ -8,7 +7,17 @@ type RouterProviderProps = Omit<RouterProviderProps$1, "flushSync">; | ||
interface HydratedRouterProps { | ||
/** | ||
* Context object to passed through to `createBrowserRouter` and made available | ||
* to `clientLoader`/`clientActon` functions | ||
*/ | ||
unstable_getContext?: RouterInit["unstable_getContext"]; | ||
} | ||
/** | ||
* @category Router Components | ||
* Framework-mode router component to be used in `entry.client.tsx` to hydrate a | ||
* router from a `ServerRouter` | ||
* | ||
* @category Component Routers | ||
*/ | ||
declare function HydratedRouter(): React.JSX.Element; | ||
declare function HydratedRouter(props: HydratedRouterProps): React.JSX.Element; | ||
export { HydratedRouter, RouterProvider, type RouterProviderProps }; |
import * as React from 'react'; | ||
import { R as RouterProviderProps$1 } from './fog-of-war-DLtn2OLr.js'; | ||
import './route-data-aSUFWnQ6.js'; | ||
import { RouterProviderProps as RouterProviderProps$1, RouterInit } from 'react-router'; | ||
@@ -8,7 +7,17 @@ type RouterProviderProps = Omit<RouterProviderProps$1, "flushSync">; | ||
interface HydratedRouterProps { | ||
/** | ||
* Context object to passed through to `createBrowserRouter` and made available | ||
* to `clientLoader`/`clientActon` functions | ||
*/ | ||
unstable_getContext?: RouterInit["unstable_getContext"]; | ||
} | ||
/** | ||
* @category Router Components | ||
* Framework-mode router component to be used in `entry.client.tsx` to hydrate a | ||
* router from a `ServerRouter` | ||
* | ||
* @category Component Routers | ||
*/ | ||
declare function HydratedRouter(): React.JSX.Element; | ||
declare function HydratedRouter(props: HydratedRouterProps): React.JSX.Element; | ||
export { HydratedRouter, RouterProvider, type RouterProviderProps }; |
{ | ||
"name": "react-router", | ||
"version": "0.0.0-nightly-041701ead-20241222", | ||
"version": "0.0.0-nightly-044ba5e2d-20250605", | ||
"description": "Declarative routing for React", | ||
@@ -40,8 +40,11 @@ "keywords": [ | ||
}, | ||
"./route-module": { | ||
"./internal": { | ||
"node": { | ||
"types": "./dist/development/lib/types/internal.d.ts" | ||
}, | ||
"import": { | ||
"types": "./dist/development/lib/types/route-module.d.mts" | ||
"types": "./dist/development/lib/types/internal.d.mts" | ||
}, | ||
"default": { | ||
"types": "./dist/development/lib/types/route-module.d.ts" | ||
"types": "./dist/development/lib/types/index.d.ts" | ||
} | ||
@@ -81,11 +84,9 @@ }, | ||
"dependencies": { | ||
"@types/cookie": "^0.6.0", | ||
"cookie": "^1.0.1", | ||
"set-cookie-parser": "^2.6.0", | ||
"turbo-stream": "2.4.0" | ||
"set-cookie-parser": "^2.6.0" | ||
}, | ||
"devDependencies": { | ||
"@types/set-cookie-parser": "^2.4.1", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0", | ||
"react": "^19.1.0", | ||
"react-dom": "^19.1.0", | ||
"rimraf": "^6.0.1", | ||
@@ -115,4 +116,5 @@ "tsup": "^8.3.0", | ||
"scripts": { | ||
"build": "wireit" | ||
"build": "wireit", | ||
"typecheck": "tsc" | ||
} | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
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
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
2317206
2.02%4
-33.33%38
-9.52%56660
-2.78%13
44.44%- Removed
- Removed
- Removed
- Removed