react-router-dom
Advanced tools
Comparing version 6.24.0 to 6.24.1-pre.0
# `react-router-dom` | ||
## 6.24.1-pre.0 | ||
### Patch Changes | ||
- Remove `polyfill.io` reference from warning message because the domain was sold and has since been determined to serve malware. See https://sansec.io/research/polyfill-supply-chain-attack. ([#11741](https://github.com/remix-run/react-router/pull/11741)) | ||
- Export `NavLinkRenderProps` type for easier typing of custom `NavLink` callback ([#11553](https://github.com/remix-run/react-router/pull/11553)) | ||
- Updated dependencies: | ||
- `@remix-run/router@1.17.1-pre.0` | ||
- `react-router@6.24.1-pre.0` | ||
## 6.24.0 | ||
@@ -4,0 +14,0 @@ |
@@ -108,3 +108,3 @@ /** | ||
export declare const Link: React.ForwardRefExoticComponent<LinkProps & React.RefAttributes<HTMLAnchorElement>>; | ||
type NavLinkRenderProps = { | ||
export type NavLinkRenderProps = { | ||
isActive: boolean; | ||
@@ -111,0 +111,0 @@ isPending: boolean; |
/** | ||
* React Router DOM v6.24.0 | ||
* React Router DOM v6.24.1-pre.0 | ||
* | ||
@@ -1021,3 +1021,3 @@ * Copyright (c) Remix Software Inc. | ||
function useSearchParams(defaultInit) { | ||
process.env.NODE_ENV !== "production" ? UNSAFE_warning(typeof URLSearchParams !== "undefined", "You cannot use the `useSearchParams` hook in a browser that does not " + "support the URLSearchParams API. If you need to support Internet " + "Explorer 11, we recommend you load a polyfill such as " + "https://github.com/ungap/url-search-params\n\n" + "If you're unsure how to load polyfills, we recommend you check out " + "https://polyfill.io/v3/ which provides some recommendations about how " + "to load polyfills only for users that need them, instead of for every " + "user.") : void 0; | ||
process.env.NODE_ENV !== "production" ? UNSAFE_warning(typeof URLSearchParams !== "undefined", "You cannot use the `useSearchParams` hook in a browser that does not " + "support the URLSearchParams API. If you need to support Internet " + "Explorer 11, we recommend you load a polyfill such as " + "https://github.com/ungap/url-search-params.") : void 0; | ||
let defaultSearchParamsRef = React.useRef(createSearchParams(defaultInit)); | ||
@@ -1024,0 +1024,0 @@ let hasSetSearchParamsRef = React.useRef(false); |
/** | ||
* React Router DOM v6.24.0 | ||
* React Router DOM v6.24.1-pre.0 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* React Router DOM v6.24.0 | ||
* React Router DOM v6.24.1-pre.0 | ||
* | ||
@@ -1061,3 +1061,3 @@ * Copyright (c) Remix Software Inc. | ||
function useSearchParams(defaultInit) { | ||
UNSAFE_warning(typeof URLSearchParams !== "undefined", `You cannot use the \`useSearchParams\` hook in a browser that does not ` + `support the URLSearchParams API. If you need to support Internet ` + `Explorer 11, we recommend you load a polyfill such as ` + `https://github.com/ungap/url-search-params\n\n` + `If you're unsure how to load polyfills, we recommend you check out ` + `https://polyfill.io/v3/ which provides some recommendations about how ` + `to load polyfills only for users that need them, instead of for every ` + `user.`) ; | ||
UNSAFE_warning(typeof URLSearchParams !== "undefined", `You cannot use the \`useSearchParams\` hook in a browser that does not ` + `support the URLSearchParams API. If you need to support Internet ` + `Explorer 11, we recommend you load a polyfill such as ` + `https://github.com/ungap/url-search-params.`) ; | ||
let defaultSearchParamsRef = React.useRef(createSearchParams(defaultInit)); | ||
@@ -1064,0 +1064,0 @@ let hasSetSearchParamsRef = React.useRef(false); |
/** | ||
* React Router DOM v6.24.0 | ||
* React Router DOM v6.24.1-pre.0 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* React Router DOM v6.24.0 | ||
* React Router DOM v6.24.1-pre.0 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
{ | ||
"name": "react-router-dom", | ||
"version": "6.24.0", | ||
"version": "6.24.1-pre.0", | ||
"description": "Declarative routing for React web applications", | ||
@@ -26,4 +26,4 @@ "keywords": [ | ||
"dependencies": { | ||
"@remix-run/router": "1.17.0", | ||
"react-router": "6.24.0" | ||
"@remix-run/router": "1.17.1-pre.0", | ||
"react-router": "6.24.1-pre.0" | ||
}, | ||
@@ -30,0 +30,0 @@ "devDependencies": { |
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
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
331
51
142
890054
3
8
+ Added@remix-run/router@1.17.1-pre.0(transitive)
+ Addedreact-router@6.24.1-pre.0(transitive)
- Removed@remix-run/router@1.17.0(transitive)
- Removedreact-router@6.24.0(transitive)
Updatedreact-router@6.24.1-pre.0