🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

react-router

Package Overview
Dependencies
Maintainers
4
Versions
852
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-router - npm Package Compare versions

Comparing version

to
0.0.0-nightly-8389d48e0-20250512

dist/development/chunk-2GLUAVRY.mjs

17

dist/development/dom-export.d.ts
import * as React from 'react';
import { R as RouterProviderProps$1 } from './fog-of-war-C4ElybAW.js';
import './route-data-BZ4q5j1Q.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-C4ElybAW.js';
import './route-data-BZ4q5j1Q.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-818d327ce-20241117",
"version": "0.0.0-nightly-8389d48e0-20250512",
"description": "Declarative routing for React",

@@ -21,49 +21,45 @@ "keywords": [

"sideEffects": false,
"types": "./dist/production/index.d.ts",
"main": "./dist/production/index.js",
"module": "./dist/production/index.mjs",
"types": "./dist/development/index.d.ts",
"main": "./dist/development/index.js",
"module": "./dist/development/index.mjs",
"exports": {
".": {
"node": {
"types": "./dist/production/index.d.ts",
"development": {
"module-sync": "./dist/development/index.mjs",
"default": "./dist/development/index.js"
},
"module-sync": "./dist/production/index.mjs",
"default": "./dist/production/index.js"
"types": "./dist/development/index.d.ts",
"module-sync": "./dist/development/index.mjs",
"default": "./dist/development/index.js"
},
"import": {
"types": "./dist/production/index.d.mts",
"development": "./dist/development/index.mjs",
"default": "./dist/production/index.mjs"
"types": "./dist/development/index.d.mts",
"default": "./dist/development/index.mjs"
},
"default": {
"types": "./dist/production/index.d.ts",
"development": "./dist/development/index.js",
"default": "./dist/production/index.js"
"types": "./dist/development/index.d.ts",
"default": "./dist/development/index.js"
}
},
"./route-module": {
"types": "./dist/production/lib/types/route-module.d.ts"
"./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/production/dom-export.d.ts",
"development": {
"module-sync": "./dist/development/dom-export.mjs",
"default": "./dist/development/dom-export.js"
},
"module-sync": "./dist/production/dom-export.mjs",
"default": "./dist/production/dom-export.js"
"types": "./dist/development/dom-export.d.ts",
"module-sync": "./dist/development/dom-export.mjs",
"default": "./dist/development/dom-export.js"
},
"import": {
"types": "./dist/production/dom-export.d.mts",
"development": "./dist/development/dom-export.mjs",
"default": "./dist/production/dom-export.mjs"
"types": "./dist/development/dom-export.d.mts",
"default": "./dist/development/dom-export.mjs"
},
"default": {
"types": "./dist/production/dom-export.d.ts",
"development": "./dist/development/dom-export.js",
"default": "./dist/production/dom-export.js"
"types": "./dist/development/dom-export.d.ts",
"default": "./dist/development/dom-export.js"
}

@@ -88,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",

@@ -122,4 +116,5 @@ "tsup": "^8.3.0",

"scripts": {
"build": "wireit"
"build": "wireit",
"typecheck": "tsc"
}
}

@@ -1,3 +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
```sh
npm i react-router
```

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