Skip to content

Commit cc9a5c4

Browse files
committed
Merge branch 'release-next'
2 parents 50a6f10 + 8ce83ab commit cc9a5c4

File tree

17 files changed

+150
-58
lines changed

17 files changed

+150
-58
lines changed

contributors.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@
7575
- JakubDrozd
7676
- janpaepke
7777
- jasonpaulos
78+
- JesusTheHun
7879
- jimniels
7980
- jmargeta
8081
- johnpangalos

packages/react-router-dom-v5-compat/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# `react-router-dom-v5-compat`
22

3+
## 6.6.2
4+
5+
### Patch Changes
6+
7+
- Updated dependencies:
8+
9+
10+
311
## 6.6.1
412

513
### Patch Changes

packages/react-router-dom-v5-compat/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-router-dom-v5-compat",
3-
"version": "6.6.1",
3+
"version": "6.6.2",
44
"description": "Migration path to React Router v6 from v4/5",
55
"keywords": [
66
"react",
@@ -24,7 +24,7 @@
2424
"types": "./dist/index.d.ts",
2525
"dependencies": {
2626
"history": "^5.3.0",
27-
"react-router": "6.6.1"
27+
"react-router": "6.6.2"
2828
},
2929
"peerDependencies": {
3030
"react": ">=16.8",

packages/react-router-dom/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# `react-router-dom`
22

3+
## 6.6.2
4+
5+
### Patch Changes
6+
7+
- Ensure `useId` consistency during SSR ([#9805](https://github.com/remix-run/react-router/pull/9805))
8+
- Updated dependencies:
9+
10+
311
## 6.6.1
412

513
### Patch Changes

packages/react-router-dom/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,6 @@ export {
178178
export {
179179
UNSAFE_DataRouterContext,
180180
UNSAFE_DataRouterStateContext,
181-
UNSAFE_DataStaticRouterContext,
182181
UNSAFE_NavigationContext,
183182
UNSAFE_LocationContext,
184183
UNSAFE_RouteContext,

packages/react-router-dom/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-router-dom",
3-
"version": "6.6.1",
3+
"version": "6.6.2",
44
"description": "Declarative routing for React web applications",
55
"keywords": [
66
"react",
@@ -24,7 +24,7 @@
2424
"types": "./dist/index.d.ts",
2525
"dependencies": {
2626
"@remix-run/router": "1.2.1",
27-
"react-router": "6.6.1"
27+
"react-router": "6.6.2"
2828
},
2929
"devDependencies": {
3030
"react": "^18.2.0",

packages/react-router-dom/server.tsx

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ import {
2727
Router,
2828
UNSAFE_DataRouterContext as DataRouterContext,
2929
UNSAFE_DataRouterStateContext as DataRouterStateContext,
30-
UNSAFE_DataStaticRouterContext as DataStaticRouterContext,
3130
UNSAFE_enhanceManualRouteObjects as enhanceManualRouteObjects,
3231
} from "react-router-dom";
3332

@@ -98,6 +97,7 @@ export function StaticRouterProvider({
9897
router,
9998
navigator: getStatelessNavigator(),
10099
static: true,
100+
staticContext: context,
101101
basename: context.basename || "/",
102102
};
103103

@@ -119,22 +119,18 @@ export function StaticRouterProvider({
119119

120120
return (
121121
<>
122-
<DataStaticRouterContext.Provider value={context}>
123-
<DataRouterContext.Provider value={dataRouterContext}>
124-
<DataRouterStateContext.Provider
125-
value={dataRouterContext.router.state}
122+
<DataRouterContext.Provider value={dataRouterContext}>
123+
<DataRouterStateContext.Provider value={dataRouterContext.router.state}>
124+
<Router
125+
basename={dataRouterContext.basename}
126+
location={dataRouterContext.router.state.location}
127+
navigationType={dataRouterContext.router.state.historyAction}
128+
navigator={dataRouterContext.navigator}
126129
>
127-
<Router
128-
basename={dataRouterContext.basename}
129-
location={dataRouterContext.router.state.location}
130-
navigationType={dataRouterContext.router.state.historyAction}
131-
navigator={dataRouterContext.navigator}
132-
>
133-
<Routes />
134-
</Router>
135-
</DataRouterStateContext.Provider>
136-
</DataRouterContext.Provider>
137-
</DataStaticRouterContext.Provider>
130+
<Routes />
131+
</Router>
132+
</DataRouterStateContext.Provider>
133+
</DataRouterContext.Provider>
138134
{hydrateScript ? (
139135
<script
140136
suppressHydrationWarning

packages/react-router-native/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# `react-router-native`
22

3+
## 6.6.2
4+
5+
### Patch Changes
6+
7+
- Updated dependencies:
8+
9+
310
## 6.6.1
411

512
### Patch Changes

packages/react-router-native/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,6 @@ export {
125125
export {
126126
UNSAFE_DataRouterContext,
127127
UNSAFE_DataRouterStateContext,
128-
UNSAFE_DataStaticRouterContext,
129128
UNSAFE_NavigationContext,
130129
UNSAFE_LocationContext,
131130
UNSAFE_RouteContext,

packages/react-router-native/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-router-native",
3-
"version": "6.6.1",
3+
"version": "6.6.2",
44
"description": "Declarative routing for React Native applications",
55
"keywords": [
66
"react",
@@ -22,7 +22,7 @@
2222
"types": "./dist/index.d.ts",
2323
"dependencies": {
2424
"@ungap/url-search-params": "^0.1.4",
25-
"react-router": "6.6.1"
25+
"react-router": "6.6.2"
2626
},
2727
"devDependencies": {
2828
"react": "^18.2.0",

0 commit comments

Comments
 (0)