New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-router-dom-v5-compat

Package Overview
Dependencies
Maintainers
1
Versions
269
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-router-dom-v5-compat - npm Package Compare versions

Comparing version 6.4.0-pre.14 to 6.4.0-pre.15

8

CHANGELOG.md
# react-router-dom-v5-compat
## 6.4.0-pre.15
### Patch Changes
- Updated dependencies
- react-router@6.4.0-pre.15
- react-router-dom@6.4.0-pre.15
## 6.4.0-pre.14

@@ -4,0 +12,0 @@

32

dist/index.js
/**
* React Router DOM v5 Compat v6.4.0-pre.14
* React Router DOM v5 Compat v6.4.0-pre.15
*

@@ -197,3 +197,3 @@ * Copyright (c) Remix Software Inc.

function BrowserRouter(_ref3) {
function BrowserRouter(_ref) {
let {

@@ -203,3 +203,3 @@ basename,

window
} = _ref3;
} = _ref;
let historyRef = React.useRef();

@@ -233,3 +233,3 @@

function HashRouter(_ref4) {
function HashRouter(_ref2) {
let {

@@ -239,3 +239,3 @@ basename,

window
} = _ref4;
} = _ref2;
let historyRef = React.useRef();

@@ -271,3 +271,3 @@

function HistoryRouter(_ref5) {
function HistoryRouter(_ref3) {
let {

@@ -277,3 +277,3 @@ basename,

history
} = _ref5;
} = _ref3;
const [state, setState] = React.useState({

@@ -300,3 +300,3 @@ action: history.action,

const Link = /*#__PURE__*/React.forwardRef(function LinkWithRef(_ref6, ref) {
const Link = /*#__PURE__*/React.forwardRef(function LinkWithRef(_ref4, ref) {
let {

@@ -311,4 +311,4 @@ onClick,

preventScrollReset
} = _ref6,
rest = _objectWithoutPropertiesLoose(_ref6, _excluded);
} = _ref4,
rest = _objectWithoutPropertiesLoose(_ref4, _excluded);

@@ -354,3 +354,3 @@ let href = useHref(to, {

const NavLink = /*#__PURE__*/React.forwardRef(function NavLinkWithRef(_ref7, ref) {
const NavLink = /*#__PURE__*/React.forwardRef(function NavLinkWithRef(_ref5, ref) {
let {

@@ -364,4 +364,4 @@ "aria-current": ariaCurrentProp = "page",

children
} = _ref7,
rest = _objectWithoutPropertiesLoose(_ref7, _excluded2);
} = _ref5,
rest = _objectWithoutPropertiesLoose(_ref5, _excluded2);

@@ -438,3 +438,3 @@ let path = useResolvedPath(to);

const FormImpl = /*#__PURE__*/React.forwardRef((_ref8, forwardedRef) => {
const FormImpl = /*#__PURE__*/React.forwardRef((_ref6, forwardedRef) => {
let {

@@ -449,4 +449,4 @@ reloadDocument,

relative
} = _ref8,
props = _objectWithoutPropertiesLoose(_ref8, _excluded3);
} = _ref6,
props = _objectWithoutPropertiesLoose(_ref6, _excluded3);

@@ -453,0 +453,0 @@ let submit = useSubmitImpl(fetcherKey, routeId);

/**
* React Router DOM v5 Compat v6.4.0-pre.14
* React Router DOM v5 Compat v6.4.0-pre.15
*

@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc.

import type { FormEncType, FormMethod } from "@remix-run/router";
import { RelativeRoutingType } from "react-router";
import type { RelativeRoutingType } from "react-router";
export declare const defaultMethod = "get";

@@ -4,0 +4,0 @@ export declare function isHtmlElement(object: any): object is HTMLElement;

@@ -7,3 +7,3 @@ /**

import type { NavigateOptions, RelativeRoutingType, RouteObject, To } from "react-router";
import type { Fetcher, FormEncType, FormMethod, GetScrollRestorationKeyFunction, History, HydrationState } from "@remix-run/router";
import type { Fetcher, FormEncType, FormMethod, GetScrollRestorationKeyFunction, History, HydrationState, Router as RemixRouter } from "@remix-run/router";
import type { SubmitOptions, ParamKeyValuePair, URLSearchParamsInit } from "./dom";

@@ -13,32 +13,19 @@ import { createSearchParams } from "./dom";

export { createSearchParams };
export type { ActionFunction, ActionFunctionArgs, AwaitProps, DataMemoryRouterProps, DataRouteMatch, DataRouteObject, Fetcher, Hash, IndexRouteProps, JsonFunction, LayoutRouteProps, LoaderFunction, LoaderFunctionArgs, Location, MemoryRouterProps, NavigateFunction, NavigateOptions, NavigateProps, Navigation, Navigator, OutletProps, Params, ParamParseKey, Path, PathMatch, Pathname, PathPattern, PathRouteProps, RedirectFunction, RelativeRoutingType, RouteMatch, RouteObject, RouteProps, RouterProps, RoutesProps, Search, ShouldRevalidateFunction, To, } from "react-router";
export { AbortedDeferredError, Await, DataMemoryRouter, MemoryRouter, Navigate, NavigationType, Outlet, Route, Router, Routes, createPath, createRoutesFromChildren, defer, isRouteErrorResponse, generatePath, json, matchPath, matchRoutes, parsePath, redirect, renderMatches, resolvePath, useActionData, useAsyncError, useAsyncValue, useHref, useInRouterContext, useLoaderData, useLocation, useMatch, useMatches, useNavigate, useNavigation, useNavigationType, useOutlet, useOutletContext, useParams, useResolvedPath, useRevalidator, useRouteError, useRouteLoaderData, useRoutes, } from "react-router";
export type { ActionFunction, ActionFunctionArgs, AwaitProps, DataMemoryRouterProps, DataRouteMatch, DataRouteObject, Fetcher, Hash, IndexRouteProps, JsonFunction, LayoutRouteProps, LoaderFunction, LoaderFunctionArgs, Location, MemoryRouterProps, NavigateFunction, NavigateOptions, NavigateProps, Navigation, Navigator, OutletProps, Params, ParamParseKey, Path, PathMatch, Pathname, PathPattern, PathRouteProps, RedirectFunction, RelativeRoutingType, RouteMatch, RouteObject, RouteProps, RouterProps, RouterProviderProps, RoutesProps, Search, ShouldRevalidateFunction, To, } from "react-router";
export { AbortedDeferredError, Await, MemoryRouter, Navigate, NavigationType, Outlet, Route, Router, RouterProvider, Routes, createMemoryRouter, createPath, createRoutesFromChildren, createRoutesFromElements, defer, isRouteErrorResponse, generatePath, json, matchPath, matchRoutes, parsePath, redirect, renderMatches, resolvePath, useActionData, useAsyncError, useAsyncValue, useHref, useInRouterContext, useLoaderData, useLocation, useMatch, useMatches, useNavigate, useNavigation, useNavigationType, useOutlet, useOutletContext, useParams, useResolvedPath, useRevalidator, useRouteError, useRouteLoaderData, useRoutes, } from "react-router";
/** @internal */
export { UNSAFE_DataRouter, UNSAFE_DataRouterProvider, UNSAFE_DataRouterContext, UNSAFE_DataRouterStateContext, UNSAFE_DataStaticRouterContext, UNSAFE_NavigationContext, UNSAFE_LocationContext, UNSAFE_RouteContext, UNSAFE_enhanceManualRouteObjects, } from "react-router";
export { UNSAFE_DataRouterContext, UNSAFE_DataRouterStateContext, UNSAFE_DataStaticRouterContext, UNSAFE_NavigationContext, UNSAFE_LocationContext, UNSAFE_RouteContext, UNSAFE_enhanceManualRouteObjects, } from "react-router";
declare global {
var __staticRouterHydrationData: HydrationState | undefined;
}
/**
* Unit-testing-only function to reset the router between tests
* @private
*/
export declare function _resetModuleScope(): void;
export interface DataBrowserRouterProps {
export declare function createBrowserRouter(routes: RouteObject[], opts?: {
basename?: string;
children?: React.ReactNode;
hydrationData?: HydrationState;
fallbackElement?: React.ReactNode;
routes?: RouteObject[];
window?: Window;
}
export declare function DataBrowserRouter({ basename, children, fallbackElement, hydrationData, routes, window: windowProp, }: DataBrowserRouterProps): React.ReactElement;
export interface DataHashRouterProps {
}): RemixRouter;
export declare function createHashRouter(routes: RouteObject[], opts?: {
basename?: string;
children?: React.ReactNode;
hydrationData?: HydrationState;
fallbackElement?: React.ReactNode;
routes?: RouteObject[];
window?: Window;
}
export declare function DataHashRouter({ basename, children, hydrationData, fallbackElement, routes, window: windowProp, }: DataBrowserRouterProps): React.ReactElement;
}): RemixRouter;
export interface BrowserRouterProps {

@@ -45,0 +32,0 @@ basename?: string;

/**
* React Router DOM v5 Compat v6.4.0-pre.14
* React Router DOM v5 Compat v6.4.0-pre.15
*

@@ -212,2 +212,5 @@ * Copyright (c) Remix Software Inc.

_excluded3 = ["reloadDocument", "replace", "method", "action", "onSubmit", "fetcherKey", "routeId", "relative"];
////////////////////////////////////////////////////////////////////////////////
//#region Components
////////////////////////////////////////////////////////////////////////////////

@@ -217,3 +220,3 @@ /**

*/
function BrowserRouter(_ref3) {
function BrowserRouter(_ref) {
let {

@@ -223,3 +226,3 @@ basename,

window
} = _ref3;
} = _ref;
let historyRef = React__namespace.useRef();

@@ -253,3 +256,3 @@

*/
function HashRouter(_ref4) {
function HashRouter(_ref2) {
let {

@@ -259,3 +262,3 @@ basename,

window
} = _ref4;
} = _ref2;
let historyRef = React__namespace.useRef();

@@ -291,3 +294,3 @@

*/
function HistoryRouter(_ref5) {
function HistoryRouter(_ref3) {
let {

@@ -297,3 +300,3 @@ basename,

history
} = _ref5;
} = _ref3;
const [state, setState] = React__namespace.useState({

@@ -320,3 +323,3 @@ action: history.action,

*/
const Link = /*#__PURE__*/React__namespace.forwardRef(function LinkWithRef(_ref6, ref) {
const Link = /*#__PURE__*/React__namespace.forwardRef(function LinkWithRef(_ref4, ref) {
let {

@@ -331,4 +334,4 @@ onClick,

preventScrollReset
} = _ref6,
rest = _objectWithoutPropertiesLoose(_ref6, _excluded);
} = _ref4,
rest = _objectWithoutPropertiesLoose(_ref4, _excluded);

@@ -373,3 +376,3 @@ let href = reactRouter.useHref(to, {

*/
const NavLink = /*#__PURE__*/React__namespace.forwardRef(function NavLinkWithRef(_ref7, ref) {
const NavLink = /*#__PURE__*/React__namespace.forwardRef(function NavLinkWithRef(_ref5, ref) {
let {

@@ -383,4 +386,4 @@ "aria-current": ariaCurrentProp = "page",

children
} = _ref7,
rest = _objectWithoutPropertiesLoose(_ref7, _excluded2);
} = _ref5,
rest = _objectWithoutPropertiesLoose(_ref5, _excluded2);

@@ -456,3 +459,3 @@ let path = reactRouter.useResolvedPath(to);

const FormImpl = /*#__PURE__*/React__namespace.forwardRef((_ref8, forwardedRef) => {
const FormImpl = /*#__PURE__*/React__namespace.forwardRef((_ref6, forwardedRef) => {
let {

@@ -467,4 +470,4 @@ reloadDocument,

relative
} = _ref8,
props = _objectWithoutPropertiesLoose(_ref8, _excluded3);
} = _ref6,
props = _objectWithoutPropertiesLoose(_ref6, _excluded3);

@@ -471,0 +474,0 @@ let submit = useSubmitImpl(fetcherKey, routeId);

/**
* React Router DOM v5 Compat v6.4.0-pre.14
* React Router DOM v5 Compat v6.4.0-pre.15
*

@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc.

{
"name": "react-router-dom-v5-compat",
"version": "6.4.0-pre.14",
"version": "6.4.0-pre.15",
"description": "Migration path to React Router v6 from v4/5",

@@ -27,3 +27,3 @@ "keywords": [

"history": "^5.3.0",
"react-router": "6.4.0-pre.14"
"react-router": "6.4.0-pre.15"
},

@@ -30,0 +30,0 @@ "peerDependencies": {

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 not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc