Commit 0066487
authored
Upgrade React Router to v8 (#153)
* Upgrade React Router to v8
Bumps react-router, @react-router/dev, @react-router/node, and
@react-router/serve to 8.2.0, and remix-i18next to 8.0.0 (required,
since it only supports React Router v8 starting at its own v8).
- Migrate i18next.server.ts to remix-i18next's v8 middleware API
(createI18nextMiddleware), replacing the removed RemixI18Next class
and its /server, /client, /react subpath exports.
- Register the i18next middleware in root.tsx so getLocale/getInstance
work from route context; replace useChangeLanguage with a
useTranslation + useEffect sync.
- Fix explicit ns handling in the client and server i18next config:
defaultNS and ns are independent i18next options, so dropping the
namespace helpers without setting ns explicitly would have made the
app preload the wrong ("translation") namespace instead of "common".
- Rename unstable_pattern/unstable_url to pattern/url across loader and
action test helpers (now stable, unprefixed fields in v8).
- Update meta() functions in cmsui, contents, and publicui routes to
read match.loaderData instead of the removed match.data.
- Remove the now-default v8_middleware future flag.
- Bump apps/aurora engines to Node >=22.22.0.
* Fix incidental prettier version bump in lockfile
Running pnpm install for the React Router upgrade had re-resolved
prettier's unpinned devDependency range (packages/tooling: ^3.5.2)
from 3.6.2 to 3.9.5, an unrelated side effect that would have caused
prettier to reformat unrelated files across the repo. Restored the
3.6.2 resolution (matching main) without adding an override, so this
PR stays scoped to the React Router upgrade.
* Revert prettier pin; @react-router/dev v8 requires prettier ^3.8.3
The previous commit treated the prettier 3.6.2 -> 3.9.5 resolution
bump as an unrelated side effect and pinned it back down. That was
wrong: @react-router/dev@8.2.0 has a hard dependency on
`prettier: ^3.8.3`, which packages/tooling's existing ^3.5.2 range
(previously satisfied by 3.6.2) can no longer share a single resolved
version with. pnpm's natural resolution of 3.9.5 (satisfying both
ranges) is correct and necessary for this upgrade, not incidental
drift to suppress.
* Bump prettier to latest, deal with format changes...
* Changelog1 parent 3b21d34 commit 0066487
73 files changed
Lines changed: 1182 additions & 903 deletions
File tree
- apps/aurora
- app
- config/server
- news
- packages
- blocks
- Image
- Video
- news
- cmsui
- components/ObjectBrowserWidget
- news
- routes
- api
- auth
- components
- news
- src/components
- Breadcrumbs
- Calendar
- CheckboxGroup
- Checkbox
- ColorPicker
- ColorWheel
- ComboBox
- DateField
- DatePicker
- DateRangePicker
- DateTimePicker
- ListBox
- MultiSelect
- RangeCalendar
- Select
- TagGroup
- TimeField
- contents
- news
- routes
- layout
- blocks
- news
- plate
- components
- editor/plugins
- ui
- news
- publicui
- news
- routes
- registry
- news
- src
- tooling
- types
- news
- src
- config
- services
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
| 19 | + | |
21 | 20 | | |
22 | 21 | | |
23 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
| 25 | + | |
27 | 26 | | |
28 | 27 | | |
29 | 28 | | |
| |||
38 | 37 | | |
39 | 38 | | |
40 | 39 | | |
41 | | - | |
42 | | - | |
| 40 | + | |
43 | 41 | | |
44 | 42 | | |
45 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
| |||
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
21 | | - | |
22 | | - | |
| 20 | + | |
23 | 21 | | |
24 | 22 | | |
25 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
| 13 | + | |
| 14 | + | |
19 | 15 | | |
20 | 16 | | |
21 | 17 | | |
| |||
36 | 32 | | |
37 | 33 | | |
38 | 34 | | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
| 35 | + | |
52 | 36 | | |
53 | 37 | | |
54 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
18 | 12 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
0 commit comments