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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # `react-router-dom-v5-compat`
2
2
 
3
+ ## 6.22.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Include a `window__reactRouterVersion` tag for CWV Report detection ([#11222](https://github.com/remix-run/react-router/pull/11222))
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies:
12
+ - `react-router-dom@6.22.0`
13
+ - `react-router@6.22.0`
14
+
3
15
  ## 6.21.3
4
16
 
5
17
  ### Patch Changes
package/dist/index.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
  *
@@ -212,6 +212,21 @@ function getFormSubmissionInfo(target, basename) {
212
212
  const _excluded = ["onClick", "relative", "reloadDocument", "replace", "state", "target", "to", "preventScrollReset", "unstable_viewTransition"],
213
213
  _excluded2 = ["aria-current", "caseSensitive", "className", "end", "style", "to", "unstable_viewTransition", "children"],
214
214
  _excluded3 = ["fetcherKey", "navigate", "reloadDocument", "replace", "state", "method", "action", "onSubmit", "relative", "preventScrollReset", "unstable_viewTransition"];
215
+ // HEY YOU! DON'T TOUCH THIS VARIABLE!
216
+ //
217
+ // It is replaced with the proper version at build time via a babel plugin in
218
+ // the rollup config.
219
+ //
220
+ // Export a global property onto the window for React Router detection by the
221
+ // Core Web Vitals Technology Report. This way they can configure the `wappalyzer`
222
+ // to detect and properly classify live websites as being built with React Router:
223
+ // https://github.com/HTTPArchive/wappalyzer/blob/main/src/technologies/r.json
224
+ const REACT_ROUTER_VERSION = "6";
225
+ try {
226
+ window.__reactRouterVersion = REACT_ROUTER_VERSION;
227
+ } catch (e) {
228
+ // no-op
229
+ }
215
230
  function createBrowserRouter(routes, opts) {
216
231
  return createRouter({
217
232
  basename: opts == null ? void 0 : opts.basename,