Skip to content

Commit 558fb81

Browse files
committed
Merge branch 'main' into release-6.4.2-pre.1
2 parents 92425b8 + 60ee7f8 commit 558fb81

37 files changed

+2000
-1560
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: 📝 Comment on Release
2+
3+
on:
4+
workflow_call:
5+
inputs:
6+
ref:
7+
required: true
8+
type: string
9+
10+
jobs:
11+
comment:
12+
name: Comment on Release
13+
if: github.repository == 'remix-run/react-router'
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: ⬇️ Checkout repo
17+
uses: actions/checkout@v3
18+
19+
- name: ⎔ Setup node
20+
uses: actions/setup-node@v3
21+
with:
22+
node-version-file: ".nvmrc"
23+
cache: "yarn"
24+
25+
- name: 📥 Install deps
26+
# even though this is called "npm-install" it does use yarn to install
27+
# because we have a yarn.lock and caches efficiently.
28+
uses: bahmutov/npm-install@v1
29+
30+
- name: 📝 Comment on issues
31+
run: node ./scripts/release/comment.mjs
32+
env:
33+
GITHUB_REPOSITORY: ${{ github.repository }}
34+
GITHUB_TOKEN: ${{ github.token }}
35+
VERSION: ${{ inputs.ref }}

.github/workflows/release.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,11 @@ jobs:
5757
env:
5858
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5959
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
60+
61+
comment:
62+
needs: [release]
63+
name: 📝 Comment on related issues and pull requests
64+
if: github.repository == 'remix-run/react-router'
65+
uses: remix-run/react-router/.github/workflows/release-comments.yml@main
66+
with:
67+
ref: ${{ github.ref }}

DEVELOPMENT.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@
44

55
New releases should be created from release branches originating from the `dev` branch. When you are ready to begin the release process:
66

7+
- Make sure you've pulled all of the changes from GitHub for both `dev` and `main` branches
78
- Check out the `dev` branch
8-
- Make sure you have all of the changes from GitHub
99
- Create a new release branch with the `release-` prefix (eg, `git checkout -b release-v6.5.1`)
1010
- **IMPORTANT:** The `release-` prefix is important, as this is what triggers our GitHub CI workflow that will ultimately publish the release.
11+
- Merge `main` into the release branch
1112

1213
Changesets will do most of the heavy lifting for our releases. When changes are made to the codebase, an accompanying changeset file should be included to document the change. Those files will dictate how Changesets will version our packages and what shows up in the changelogs.
1314

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
React Router is a lightweight, fully-featured routing library for the [React](https://reactjs.org) JavaScript library. React Router runs everywhere that React runs; on the web, on the server (using node.js), and on React Native.
99

10-
If you're new to React Router, we recommend you start with [the getting started guide](/docs/getting-started/installation.md).
10+
If you're new to React Router, we recommend you start with [the tutorial](/docs/start/tutorial.md).
1111

1212
If you're migrating to v6 from v5 (or v4, which is the same as v5), check out [the migration guide](/docs/upgrading/v5.md). If you're migrating from Reach Router, check out [the migration guide for Reach Router](/docs/upgrading/reach.md). If you need to find the code for v5, [it is on the `v5` branch](https://github.com/remix-run/react-router/tree/v5).
1313

contributors.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1+
- abdallah-nour
12
- abhi-kr-2100
23
- Ajayff4
34
- alany411
45
- alexlbr
56
- AmRo045
67
- andreiduca
8+
- aroyan
79
- avipatel97
810
- awreese
911
- aymanemadidi
@@ -19,8 +21,10 @@
1921
- chensokheng
2022
- chrisngobanh
2123
- christopherchudzicki
24+
- christowiz
2225
- coryhouse
2326
- cvbuelow
27+
- dauletbaev
2428
- david-crespo
2529
- dokeet
2630
- edwin177
@@ -82,13 +86,16 @@
8286
- ms10596
8387
- noisypigeon
8488
- p13i
89+
- parched
8590
- paulsmithkc
8691
- pcattori
8792
- petersendidit
8893
- promet99
94+
- pyitphyoaung
8995
- RobHannay
9096
- rtmann
9197
- ryanflorence
98+
- ryanhiebert
9299
- sanketshah19
93100
- senseibarni
94101
- sergiodxa
@@ -106,6 +113,7 @@
106113
- TkDodo
107114
- tkindy
108115
- tlinhart
116+
- triangularcube
109117
- turansky
110118
- tyankatsu0105
111119
- underager

docs/components/link-native.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ function Home() {
3434
return (
3535
<View>
3636
<Text>Welcome!</Text>
37-
<Link to="/profile">Visit your profile</Link>
37+
<Link to="/profile">
38+
<Text>Visit your profile</Text>
39+
</Link>
3840
</View>
3941
);
4042
}

docs/components/link.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ interface LinkProps
2323
reloadDocument?: boolean;
2424
}
2525

26-
type To = Partial<Location> | string;
26+
type To = string | Partial<Path>;
2727
```
2828

2929
</details>

docs/components/scroll-restoration.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Optional prop that defines the key React Router should use to restore scroll pos
3030

3131
```tsx
3232
<ScrollRestoration
33-
getKey={({ location, matches }) => {
33+
getKey={(location, matches) => {
3434
// default behavior
3535
return location.key;
3636
}}
@@ -60,7 +60,7 @@ A solid product decision here is to keep the users scroll position on the home f
6060

6161
```tsx
6262
<ScrollRestoration
63-
getKey={({ location, matches }) => {
63+
getKey={(location, matches) => {
6464
return location.pathname;
6565
}}
6666
/>
@@ -70,7 +70,7 @@ Or you may want to only use the pathname for some paths, and use the normal beha
7070

7171
```tsx
7272
<ScrollRestoration
73-
getKey={({ location, matches }) => {
73+
getKey={(location, matches) => {
7474
const paths = ["/home", "/notifications"];
7575
return paths.includes(location.pathname)
7676
? // home and notifications restore by pathname

docs/elements.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Examples:
4545

4646
<docs-info>`<Link to>` with a `..` behaves differently from a normal `<a href>` when the current URL ends with `/`. `<Link to>` ignores the trailing slash, and removes one URL segment for each `..`. But an `<a href>` value handles `..` differently when the current URL ends with `/` vs when it does not.</docs-info>
4747

48-
<docs-warning>`useMatches` only works with Data Routers, since they know the full route tree up front and can provide all of the current matches. Additionally, `useMatches` will not match down into any descendant route trees since the router isn't aware of the descendant routes.</docs-warning>
48+
<docs-warning>`useMatches` only works with a data router like [`createBrowserRouter`][createbrowserrouter], since they know the full route tree up front and can provide all of the current matches. Additionally, `useMatches` will not match down into any descendant route trees since the router isn't aware of the descendant routes.</docs-warning>
4949

5050
<docs-error>Do not do this</docs-error>
5151

@@ -182,3 +182,4 @@ Lines that overflow:
182182
---
183183

184184
[$link]: https://www.youtube.com/watch?v=dQw4w9WgXcQ
185+
[createbrowserrouter]: ./routers/create-browser-router

docs/fetch/json.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ A shortcut for:
1010
```jsx
1111
new Response(JSON.stringify(someValue), {
1212
headers: {
13-
"Content-Type": "application/json; utf-9",
13+
"Content-Type": "application/json; utf-8",
1414
},
1515
});
1616
```

0 commit comments

Comments
 (0)