Skip to content

Commit 18dc8b8

Browse files
chore: Update version for release (pre) (#12184)
1 parent fde6951 commit 18dc8b8

File tree

22 files changed

+172
-13
lines changed

22 files changed

+172
-13
lines changed

.changeset/pre.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
"lemon-files-care",
4343
"link-prefetching",
4444
"little-cooks-pull",
45+
"long-peas-doubt",
4546
"moody-kids-count",
4647
"nice-pillows-hunt",
4748
"nine-ravens-work",
@@ -58,12 +59,16 @@
5859
"route-component-export-props",
5960
"router-provider-hydration",
6061
"silly-papayas-trade",
62+
"silver-cats-shave",
63+
"sour-cycles-lie",
64+
"strange-jeans-give",
6165
"stupid-days-heal",
6266
"tall-mangos-add",
6367
"tasty-penguins-live",
6468
"thin-nails-turn",
6569
"three-seals-play",
6670
"tidy-clouds-lay",
71+
"tidy-pens-help",
6772
"tough-pens-brush",
6873
"twelve-cheetahs-pretend",
6974
"twenty-carrots-yawn",
@@ -73,6 +78,7 @@
7378
"vite-manifest-location",
7479
"warm-melons-shop",
7580
"weak-goats-cross",
76-
"weak-otters-dance"
81+
"weak-otters-dance",
82+
"wet-actors-act"
7783
]
7884
}

CHANGELOG.md

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,8 @@ The following APIs have been removed in React Router v7:
285285

286286
React Router v7 requires the following minimum versions:
287287

288-
- `node@18`
288+
- `node@20`
289+
- React Router no longer provides an `installGlobals` method to [polyfill](https://reactrouter.com/dev/guides/deploying/custom-node#polyfilling-fetch) the `fetch` API
289290
- `react@18`, `react-dom@18`
290291

291292
#### Adopted Future Flag Behaviors
@@ -693,11 +694,14 @@ async function fakeGetSlugsFromCms() {
693694
- Remove `future.v7_fetcherPersist` flag ([#11731](https://github.com/remix-run/react-router/pull/11731))
694695
- Allow returning `undefined` from loaders and actions ([#11680](https://github.com/remix-run/react-router/pull/11680), [#12057]([https://github.com/remix-run/react-router/pull/1205))
695696
- Use `createRemixRouter`/`RouterProvider` in `entry.client` instead of `RemixBrowser` ([#11469](https://github.com/remix-run/react-router/pull/11469))
697+
- Remove the deprecated `json` utility ([#12146](https://github.com/remix-run/react-router/pull/12146))
698+
- You can use [`Response.json`](https://developer.mozilla.org/en-US/docs/Web/API/Response/json_static) if you still need to construct JSON responses in your app
696699

697700
### Major Changes (`@react-router/*`)
698701

699702
- Remove `future.v3_singleFetch` flag ([#11522](https://github.com/remix-run/react-router/pull/11522))
700-
- Update minimum `node` version to 18 ([#11690](https://github.com/remix-run/react-router/pull/11690))
703+
- Drop support for Node 16 and 18, update minimum Node version to 20 ([#11690](https://github.com/remix-run/react-router/pull/11690), [#12171](https://github.com/remix-run/react-router/pull/12171))
704+
- Remove `installGlobals()` as this should no longer be necessary
701705
- Add `exports` field to all packages ([#11675](https://github.com/remix-run/react-router/pull/11675))
702706
- No longer re-export APIs from `react-router` through different runtime/adapter packages ([#11702](https://github.com/remix-run/react-router/pull/11702))
703707
- For Remix consumers migrating to React Router, the `crypto` global from the [Web Crypto API](https://developer.mozilla.org/en-US/docs/Web/API/Web_Crypto_API) is now required when using cookie and session APIs
@@ -712,6 +716,23 @@ async function fakeGetSlugsFromCms() {
712716
- `createSessionStorageFactory`
713717
- `createCookieSessionStorageFactory`
714718
- `createMemorySessionStorageFactory`
719+
- Consolidate types previously duplicated across `@remix-run/router`, `@remix-run/server-runtime`, and `@remix-run/react` now that they all live in `react-router` ([#12177](https://github.com/remix-run/react-router/pull/12177))
720+
- Examples: `LoaderFunction`, `LoaderFunctionArgs`, `ActionFunction`, `ActionFunctionArgs`, `DataFunctionArgs`, `RouteManifest`, `LinksFunction`, `Route`, `EntryRoute`
721+
- The `RouteManifest` type used by the "remix" code is now slightly stricter because it is using the former `@remix-run/router` `RouteManifest`
722+
- `Record<string, Route> -> Record<string, Route | undefined>`
723+
- Removed `AppData` type in favor of inlining `unknown` in the few locations it was used
724+
- Removed `ServerRuntimeMeta*` types in favor of the `Meta*` types they were duplicated from
725+
- Migrate Remix v2 type generics to React Router ([#12180](https://github.com/remix-run/react-router/pull/12180))
726+
- These generics are provided for Remix v2 migration purposes
727+
- These generics and the APIs they exist on should be considered informally deprecated in favor of the new `Route.*` types
728+
- Anyone migrating from React Router v6 should probably not leverage these new generics and should migrate straight to the `Route.*` types
729+
- For React Router v6 users, these generics are new and should not impact your app, with one exception
730+
- `useFetcher` previously had an optional generic (used primarily by Remix v2) that expected the data type
731+
- This has been updated in v7 to expect the type of the function that generates the data (i.e., `typeof loader`/`typeof action`)
732+
- Therefore, you should update your usages:
733+
-`useFetcher<LoaderData>()`
734+
-`useFetcher<typeof loader>()`
735+
- Update `cookie` dependency to `^1.0.1` - please see the [release notes](https://github.com/jshttp/cookie/releases) for any breaking changes ([#12172](https://github.com/remix-run/react-router/pull/12172))
715736
- `@react-router/cloudflare` - For Remix consumers migrating to React Router, all exports from `@remix-run/cloudflare-pages` are now provided for React Router consumers in the `@react-router/cloudflare` package. There is no longer a separate package for Cloudflare Pages. ([#11801](https://github.com/remix-run/react-router/pull/11801))
716737
- `@react-router/cloudflare` - The `@remix-run/cloudflare-workers` package has been deprecated. Remix consumers migrating to React Router should use the `@react-router/cloudflare` package directly. For guidance on how to use `@react-router/cloudflare` within a Cloudflare Workers context, refer to the Cloudflare Workers template. ([#11801](https://github.com/remix-run/react-router/pull/11801))
717738
- `@react-router/dev` - For Remix consumers migrating to React Router, the `vitePlugin` and `cloudflareDevProxyVitePlugin` exports have been renamed and moved. ([#11904](https://github.com/remix-run/react-router/pull/11904))
@@ -747,6 +768,7 @@ async function fakeGetSlugsFromCms() {
747768

748769
### Patch Changes
749770

771+
- Replace `substr` with `substring` ([#12080](https://github.com/remix-run/react-router/pull/12080))
750772
- `react-router` - Fix redirects returned from loaders/actions using `data()` ([#12021](https://github.com/remix-run/react-router/pull/12021))
751773

752774
### Changes by Package

packages/react-router-architect/CHANGELOG.md

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

3+
## 7.0.0-pre.2
4+
5+
### Patch Changes
6+
7+
- Updated dependencies:
8+
9+
- `@react-router/[email protected]`
10+
311
## 7.0.0-pre.1
412

513
### Patch Changes

packages/react-router-architect/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@react-router/architect",
3-
"version": "7.0.0-pre.1",
3+
"version": "7.0.0-pre.2",
44
"description": "Architect server request handler for React Router",
55
"bugs": {
66
"url": "https://github.com/remix-run/react-router/issues"

packages/react-router-cloudflare/CHANGELOG.md

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

3+
## 7.0.0-pre.2
4+
5+
### Patch Changes
6+
7+
- Updated dependencies:
8+
9+
310
## 7.0.0-pre.1
411

512
### Patch Changes

packages/react-router-cloudflare/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@react-router/cloudflare",
3-
"version": "7.0.0-pre.1",
3+
"version": "7.0.0-pre.2",
44
"description": "Cloudflare platform abstractions for React Router",
55
"bugs": {
66
"url": "https://github.com/remix-run/react-router/issues"

packages/react-router-dev/CHANGELOG.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,26 @@
11
# `@remix-run/dev`
22

3+
## 7.0.0-pre.2
4+
5+
### Major Changes
6+
7+
- - Consolidate types previously duplicated across `@remix-run/router`, `@remix-run/server-runtime`, and `@remix-run/react` now that they all live in `react-router` ([#12177](https://github.com/remix-run/react-router/pull/12177))
8+
- Examples: `LoaderFunction`, `LoaderFunctionArgs`, `ActionFunction`, `ActionFunctionArgs`, `DataFunctionArgs`, `RouteManifest`, `LinksFunction`, `Route`, `EntryRoute`
9+
- The `RouteManifest` type used by the "remix" code is now slightly stricter because it is using the former `@remix-run/router` `RouteManifest`
10+
- `Record<string, Route> -> Record<string, Route | undefined>`
11+
- Removed `AppData` type in favor of inlining `unknown` in the few locations it was used
12+
- Removed `ServerRuntimeMeta*` types in favor of the `Meta*` types they were duplicated from
13+
- Drop support for Node 18, update minimum Node vestion to 20 ([#12171](https://github.com/remix-run/react-router/pull/12171))
14+
15+
- Remove `installGlobals()` as this should no longer be necessary
16+
17+
### Patch Changes
18+
19+
- Updated dependencies:
20+
21+
- `@react-router/[email protected]`
22+
- `@react-router/[email protected]`
23+
324
## 7.0.0-pre.1
425

526
### Minor Changes

packages/react-router-dev/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@react-router/dev",
3-
"version": "7.0.0-pre.1",
3+
"version": "7.0.0-pre.2",
44
"description": "Dev tools and CLI for React Router",
55
"homepage": "https://reactrouter.com",
66
"bugs": {

packages/react-router-dom/CHANGELOG.md

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

3+
## 7.0.0-pre.2
4+
5+
### Patch Changes
6+
7+
- Updated dependencies:
8+
9+
310
## 7.0.0-pre.1
411

512
### Patch Changes

packages/react-router-dom/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-router-dom",
3-
"version": "7.0.0-pre.1",
3+
"version": "7.0.0-pre.2",
44
"description": "Declarative routing for React web applications",
55
"keywords": [
66
"react",

packages/react-router-express/CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
# `@remix-run/express`
22

3+
## 7.0.0-pre.2
4+
5+
### Major Changes
6+
7+
- Drop support for Node 18, update minimum Node vestion to 20 ([#12171](https://github.com/remix-run/react-router/pull/12171))
8+
9+
- Remove `installGlobals()` as this should no longer be necessary
10+
11+
### Patch Changes
12+
13+
- Updated dependencies:
14+
15+
- `@react-router/[email protected]`
16+
317
## 7.0.0-pre.1
418

519
### Patch Changes

packages/react-router-express/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@react-router/express",
3-
"version": "7.0.0-pre.1",
3+
"version": "7.0.0-pre.2",
44
"description": "Express server request handler for React Router",
55
"bugs": {
66
"url": "https://github.com/remix-run/react-router/issues"

packages/react-router-fs-routes/CHANGELOG.md

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

3+
## 7.0.0-pre.2
4+
5+
### Patch Changes
6+
7+
- Updated dependencies:
8+
- `@react-router/[email protected]`
9+
310
## 7.0.0-pre.1
411

512
### Patch Changes

packages/react-router-fs-routes/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@react-router/fs-routes",
3-
"version": "7.0.0-pre.1",
3+
"version": "7.0.0-pre.2",
44
"description": "File system routing conventions for React Router",
55
"bugs": {
66
"url": "https://github.com/remix-run/react-router/issues"

packages/react-router-node/CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# `@remix-run/node`
22

3+
## 7.0.0-pre.2
4+
5+
### Major Changes
6+
7+
- Drop support for Node 18, update minimum Node vestion to 20 ([#12171](https://github.com/remix-run/react-router/pull/12171))
8+
9+
- Remove `installGlobals()` as this should no longer be necessary
10+
11+
### Patch Changes
12+
13+
- Updated dependencies:
14+
15+
316
## 7.0.0-pre.1
417

518
### Patch Changes

packages/react-router-node/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@react-router/node",
3-
"version": "7.0.0-pre.1",
3+
"version": "7.0.0-pre.2",
44
"description": "Node.js platform abstractions for React Router",
55
"bugs": {
66
"url": "https://github.com/remix-run/react-router/issues"

packages/react-router-remix-config-routes-adapter/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# @react-router/remix-config-routes-adapter
22

3+
## 7.0.0-pre.2
4+
5+
### Patch Changes
6+
7+
- Updated dependencies:
8+
- `@react-router/[email protected]`
9+
310
## 7.0.0-pre.1
411

512
### Patch Changes

packages/react-router-remix-config-routes-adapter/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@react-router/remix-config-routes-adapter",
3-
"version": "7.0.0-pre.1",
3+
"version": "7.0.0-pre.2",
44
"description": "Remix config route support for React Router",
55
"bugs": {
66
"url": "https://github.com/remix-run/react-router/issues"

packages/react-router-serve/CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# `@remix-run/serve`
22

3+
## 7.0.0-pre.2
4+
5+
### Patch Changes
6+
7+
- Updated dependencies:
8+
9+
- `@react-router/[email protected]`
10+
- `@react-router/[email protected]`
11+
312
## 7.0.0-pre.1
413

514
### Patch Changes

packages/react-router-serve/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@react-router/serve",
3-
"version": "7.0.0-pre.1",
3+
"version": "7.0.0-pre.2",
44
"description": "Production application server for React Router",
55
"bugs": {
66
"url": "https://github.com/remix-run/react-router/issues"

packages/react-router/CHANGELOG.md

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

3+
## 7.0.0-pre.2
4+
5+
### Major Changes
6+
7+
- Migrate Remix type generics to React Router ([#12180](https://github.com/remix-run/react-router/pull/12180))
8+
9+
- These generics are provided for Remix v2 migration purposes
10+
- These generics and the APIs they exist on should be considered informally deprecated in favor of the new `Route.*` types
11+
- Anyone migrating from React Router v6 should probably not leverage these new generics and should migrate straight to the `Route.*` types
12+
- For React Router v6 users, these generics are new and should not impact your app, with one exception
13+
- `useFetcher` previously had an optional generic (used primarily by Remix v2) that expected the data type
14+
- This has been updated in v7 to expect the type of the function that generates the data (i.e., `typeof loader`/`typeof action`)
15+
- Therefore, you should update your usages:
16+
-`useFetcher<LoaderData>()`
17+
-`useFetcher<typeof loader>()`
18+
19+
- - Consolidate types previously duplicated across `@remix-run/router`, `@remix-run/server-runtime`, and `@remix-run/react` now that they all live in `react-router` ([#12177](https://github.com/remix-run/react-router/pull/12177))
20+
- Examples: `LoaderFunction`, `LoaderFunctionArgs`, `ActionFunction`, `ActionFunctionArgs`, `DataFunctionArgs`, `RouteManifest`, `LinksFunction`, `Route`, `EntryRoute`
21+
- The `RouteManifest` type used by the "remix" code is now slightly stricter because it is using the former `@remix-run/router` `RouteManifest`
22+
- `Record<string, Route> -> Record<string, Route | undefined>`
23+
- Removed `AppData` type in favor of inlining `unknown` in the few locations it was used
24+
- Removed `ServerRuntimeMeta*` types in favor of the `Meta*` types they were duplicated from
25+
- Drop support for Node 18, update minimum Node vestion to 20 ([#12171](https://github.com/remix-run/react-router/pull/12171))
26+
27+
- Remove `installGlobals()` as this should no longer be necessary
28+
29+
- Update `cookie` dependency to `^1.0.1` - please see the [release notes](https://github.com/jshttp/cookie/releases) for any breaking changes ([#12172](https://github.com/remix-run/react-router/pull/12172))
30+
31+
### Patch Changes
32+
33+
- Replace `substr` with `substring` ([#12080](https://github.com/remix-run/react-router/pull/12080))
34+
- Remove the deprecated `json` utility ([#12146](https://github.com/remix-run/react-router/pull/12146))
35+
36+
- You can use [`Response.json`](https://developer.mozilla.org/en-US/docs/Web/API/Response/json_static) if you still need to construct JSON responses in your app
37+
38+
- Updated dependencies:
39+
40+
341
## 7.0.0-pre.1
442

543
### Patch Changes

packages/react-router/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-router",
3-
"version": "7.0.0-pre.1",
3+
"version": "7.0.0-pre.2",
44
"description": "Declarative routing for React",
55
"keywords": [
66
"react",

0 commit comments

Comments
 (0)