react-router-native 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 +17 -3
- package/dist/index.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,26 @@
|
|
|
1
1
|
# `react-router-native`
|
|
2
2
|
|
|
3
|
+
## 6.21.0-pre.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies:
|
|
8
|
+
- `react-router@6.21.0-pre.2`
|
|
9
|
+
|
|
10
|
+
## 6.21.0-pre.1
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies:
|
|
15
|
+
- `react-router@6.21.0-pre.1`
|
|
16
|
+
|
|
3
17
|
## 6.21.0-pre.0
|
|
4
18
|
|
|
5
19
|
### Minor Changes
|
|
6
20
|
|
|
7
|
-
- Add a new `future.v7_relativeSplatPath` flag to
|
|
21
|
+
- 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
22
|
|
|
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/
|
|
23
|
+
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
24
|
|
|
11
25
|
**The Bug**
|
|
12
26
|
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 +64,7 @@
|
|
|
50
64
|
|
|
51
65
|
**The Problem**
|
|
52
66
|
|
|
53
|
-
The problem is that this concept of ignoring part of a
|
|
67
|
+
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
68
|
|
|
55
69
|
```jsx
|
|
56
70
|
// If we are on URL /dashboard/team, and we want to link to /dashboard/team:
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-router-native",
|
|
3
|
-
"version": "6.21.0-pre.
|
|
3
|
+
"version": "6.21.0-pre.2",
|
|
4
4
|
"description": "Declarative routing for React Native applications",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"types": "./dist/index.d.ts",
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@ungap/url-search-params": "^0.2.2",
|
|
25
|
-
"react-router": "6.21.0-pre.
|
|
25
|
+
"react-router": "6.21.0-pre.2"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"react": "^18.2.0",
|