react-router-dom 6.24.0 → 6.24.1-pre.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # `react-router-dom`
2
2
 
3
+ ## 6.24.1-pre.0
4
+
5
+ ### Patch Changes
6
+
7
+ - 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))
8
+ - Export `NavLinkRenderProps` type for easier typing of custom `NavLink` callback ([#11553](https://github.com/remix-run/react-router/pull/11553))
9
+ - Updated dependencies:
10
+ - `@remix-run/router@1.17.1-pre.0`
11
+ - `react-router@6.24.1-pre.0`
12
+
3
13
  ## 6.24.0
4
14
 
5
15
  ### Minor Changes
package/dist/index.d.ts CHANGED
@@ -105,7 +105,7 @@ export interface LinkProps extends Omit<React.AnchorHTMLAttributes<HTMLAnchorEle
105
105
  * The public API for rendering a history-aware `<a>`.
106
106
  */
107
107
  export declare const Link: React.ForwardRefExoticComponent<LinkProps & React.RefAttributes<HTMLAnchorElement>>;
108
- type NavLinkRenderProps = {
108
+ export type NavLinkRenderProps = {
109
109
  isActive: boolean;
110
110
  isPending: boolean;
111
111
  isTransitioning: boolean;
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * React Router DOM v6.24.0
2
+ * React Router DOM v6.24.1-pre.0
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1018,7 +1018,7 @@ function useLinkClickHandler(to, _temp) {
1018
1018
  * URLSearchParams interface.
1019
1019
  */
1020
1020
  function useSearchParams(defaultInit) {
1021
- 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;
1021
+ 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;
1022
1022
  let defaultSearchParamsRef = React.useRef(createSearchParams(defaultInit));
1023
1023
  let hasSetSearchParamsRef = React.useRef(false);
1024
1024
  let location = useLocation();