react-router-dom-v5-compat 6.21.0-pre.0 → 6.21.0-pre.2

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,12 +1,28 @@
1
1
  # `react-router-dom-v5-compat`
2
2
 
3
+ ## 6.21.0-pre.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies:
8
+ - `react-router-dom@6.21.0-pre.2`
9
+ - `react-router@6.21.0-pre.2`
10
+
11
+ ## 6.21.0-pre.1
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies:
16
+ - `react-router-dom@6.21.0-pre.1`
17
+ - `react-router@6.21.0-pre.1`
18
+
3
19
  ## 6.21.0-pre.0
4
20
 
5
21
  ### Minor Changes
6
22
 
7
- - Add a new `future.v7_relativeSplatPath` flag to implenent a breaking bug fix to relative routing when inside a splat route. ([#11087](https://github.com/remix-run/react-router/pull/11087))
23
+ - Add a new `future.v7_relativeSplatPath` flag to implement a breaking bug fix to relative routing when inside a splat route. ([#11087](https://github.com/remix-run/react-router/pull/11087))
8
24
 
9
- This fix was originally added in [#10983](https://github.com/remix-run/react-router/issues/10983) and was later reverted in [#11078](https://github.com/remix-run/react-router/issues/110788) because it was determined that a large number of existing applications were relying on the buggy behavior (see [#11052](https://github.com/remix-run/react-router/issues/11052))
25
+ This fix was originally added in [#10983](https://github.com/remix-run/react-router/issues/10983) and was later reverted in [#11078](https://github.com/remix-run/react-router/pull/11078) because it was determined that a large number of existing applications were relying on the buggy behavior (see [#11052](https://github.com/remix-run/react-router/issues/11052))
10
26
 
11
27
  **The Bug**
12
28
  The buggy behavior is that without this flag, the default behavior when resolving relative paths is to _ignore_ any splat (`*`) portion of the current route path.
@@ -50,7 +66,7 @@
50
66
 
51
67
  **The Problem**
52
68
 
53
- The problem is that this concept of ignoring part of a pth breaks a lot of other assumptions in React Router - namely that `"."` always means the current location pathname for that route. When we ignore the splat portion, we start getting invalid paths when using `"."`:
69
+ The problem is that this concept of ignoring part of a path breaks a lot of other assumptions in React Router - namely that `"."` always means the current location pathname for that route. When we ignore the splat portion, we start getting invalid paths when using `"."`:
54
70
 
55
71
  ```jsx
56
72
  // If we are on URL /dashboard/team, and we want to link to /dashboard/team:
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * React Router DOM v5 Compat v6.21.0-pre.0
2
+ * React Router DOM v5 Compat v6.21.0-pre.2
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -549,10 +549,7 @@ function RouterProvider(_ref) {
549
549
  router,
550
550
  navigator,
551
551
  static: false,
552
- basename,
553
- future: {
554
- v7_relativeSplatPath: router.future.v7_relativeSplatPath
555
- }
552
+ basename
556
553
  }), [router, navigator, basename]);
557
554
  // The fragment and {null} here are important! We need them to keep React 18's
558
555
  // useId happy when we are server-rendering since we may have a <script> here
@@ -572,7 +569,10 @@ function RouterProvider(_ref) {
572
569
  basename: basename,
573
570
  location: state.location,
574
571
  navigationType: state.historyAction,
575
- navigator: navigator
572
+ navigator: navigator,
573
+ future: {
574
+ v7_relativeSplatPath: router.future.v7_relativeSplatPath
575
+ }
576
576
  }, state.initialized ? /*#__PURE__*/React.createElement(DataRoutes, {
577
577
  routes: router.routes,
578
578
  future: router.future,