react-router-dom-v5-compat 6.21.3 → 6.22.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/dist/main.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * React Router DOM v5 Compat v6.21.3
2
+ * React Router DOM v5 Compat v6.22.0
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -15,6 +15,7 @@ export { AbortedDeferredError, Await, MemoryRouter, Navigate, NavigationType, Ou
15
15
  export { UNSAFE_DataRouterContext, UNSAFE_DataRouterStateContext, UNSAFE_NavigationContext, UNSAFE_LocationContext, UNSAFE_RouteContext, UNSAFE_useRouteId, } from "react-router";
16
16
  declare global {
17
17
  var __staticRouterHydrationData: HydrationState | undefined;
18
+ var __reactRouterVersion: string;
18
19
  interface Document {
19
20
  startViewTransition(cb: () => Promise<void> | void): ViewTransition;
20
21
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * React Router DOM v5 Compat v6.21.3
2
+ * React Router DOM v5 Compat v6.22.0
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -241,6 +241,21 @@
241
241
  _excluded2 = ["aria-current", "caseSensitive", "className", "end", "style", "to", "unstable_viewTransition", "children"],
242
242
  _excluded3 = ["fetcherKey", "navigate", "reloadDocument", "replace", "state", "method", "action", "onSubmit", "relative", "preventScrollReset", "unstable_viewTransition"];
243
243
  //#endregion
244
+ // HEY YOU! DON'T TOUCH THIS VARIABLE!
245
+ //
246
+ // It is replaced with the proper version at build time via a babel plugin in
247
+ // the rollup config.
248
+ //
249
+ // Export a global property onto the window for React Router detection by the
250
+ // Core Web Vitals Technology Report. This way they can configure the `wappalyzer`
251
+ // to detect and properly classify live websites as being built with React Router:
252
+ // https://github.com/HTTPArchive/wappalyzer/blob/main/src/technologies/r.json
253
+ const REACT_ROUTER_VERSION = "6";
254
+ try {
255
+ window.__reactRouterVersion = REACT_ROUTER_VERSION;
256
+ } catch (e) {
257
+ // no-op
258
+ }
244
259
 
245
260
  ////////////////////////////////////////////////////////////////////////////////
246
261
  //#region Routers