Skip to content

[pull] main from remix-run:main #114

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 28 commits into from
Apr 17, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
6e98814
fix(react-router): Add better error messaging when `getLoadContext` i…
brophdawg11 Apr 4, 2025
bd50e07
Merge branch 'release-next' into dev
brophdawg11 Apr 4, 2025
c923ded
Properly handle redirects in prerendered pages (#13365)
brophdawg11 Apr 7, 2025
9f07f81
Revalidate prerendered paths when param values change (#13380)
brophdawg11 Apr 7, 2025
a87b796
Refactor lazy tests (#13383)
markdalgleish Apr 8, 2025
c63b509
Skip `route.lazy` hydration properties after hydration (#13376)
markdalgleish Apr 8, 2025
710626f
refactor(react-router): internal data strategy (#13253)
brophdawg11 Apr 8, 2025
c40f786
Update LoaderFunctionArgs and friends when middleware is enabled (#13…
brophdawg11 Apr 8, 2025
aae4b2c
Stop inserting null placeholders for non-executed loaders in staticHa…
brophdawg11 Apr 9, 2025
52358da
Refactor dataStrategy for easier RSC abstraction (#13344)
brophdawg11 Apr 9, 2025
9b3accc
fix lint issues
brophdawg11 Apr 9, 2025
8bf7177
Fix flaky split route modules test (#13394)
markdalgleish Apr 10, 2025
416d3e2
Remove missing react-router exports in tests (#13392)
markdalgleish Apr 10, 2025
90695fb
Add `unstable_runClientMiddleware` API for `dataStrategy` (#13395)
brophdawg11 Apr 10, 2025
18f1b70
Refactor dataStrategy for better use with RSC (#13396)
brophdawg11 Apr 10, 2025
65774ea
Support rolldown-vite in integration tests (#13388)
markdalgleish Apr 11, 2025
7bc2422
chore(react-router): remove `@types/cookie` dependency (#13400)
MichaelDeBoey Apr 11, 2025
cd5681b
Slight refactor of fetchAndDecode for RSC (#13409)
brophdawg11 Apr 14, 2025
726b524
Add script for starting a prerelease
brophdawg11 Apr 15, 2025
c97fd4c
Merge branch 'main' into release-next
brophdawg11 Apr 15, 2025
d04ce51
Enter prerelease mode
brophdawg11 Apr 15, 2025
6ce4a79
chore: Update version for release (pre) (#13412)
github-actions[bot] Apr 15, 2025
360726d
Draft release notes
brophdawg11 Apr 15, 2025
77f693c
Update release notes
brophdawg11 Apr 15, 2025
6734abc
Update release notes
brophdawg11 Apr 15, 2025
1c82938
Exit prerelease mode
brophdawg11 Apr 17, 2025
5dd7c15
chore: Update version for release (#13422)
github-actions[bot] Apr 17, 2025
b5ae784
Merge branch 'release-next'
brophdawg11 Apr 17, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: Update version for release (pre) (remix-run#13412)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] authored Apr 15, 2025
commit 6ce4a79774f6f9734b7457463768bc2860398263
12 changes: 11 additions & 1 deletion .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,15 @@
"@playground/split-route-modules-spa": "0.0.0",
"@playground/vite-plugin-cloudflare": "0.0.0"
},
"changesets": []
"changesets": [
"fair-weeks-beam",
"happy-spoons-watch",
"orange-sloths-tease",
"silent-snakes-mix",
"sixty-tigers-poke",
"smart-ads-doubt",
"smart-ligers-lay",
"violet-carrots-work",
"yellow-mangos-impress"
]
}
2 changes: 2 additions & 0 deletions packages/create-react-router/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# `create-react-router`

## 7.5.1-pre.0

## 7.5.0

_No changes_
Expand Down
2 changes: 1 addition & 1 deletion packages/create-react-router/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "create-react-router",
"version": "7.5.0",
"version": "7.5.1-pre.0",
"description": "Create a new React Router app",
"homepage": "https://reactrouter.com",
"bugs": {
Expand Down
8 changes: 8 additions & 0 deletions packages/react-router-architect/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# `@react-router/architect`

## 7.5.1-pre.0

### Patch Changes

- Updated dependencies:
- `[email protected]`
- `@react-router/[email protected]`

## 7.5.0

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/react-router-architect/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@react-router/architect",
"version": "7.5.0",
"version": "7.5.1-pre.0",
"description": "Architect server request handler for React Router",
"bugs": {
"url": "https://github.com/remix-run/react-router/issues"
Expand Down
7 changes: 7 additions & 0 deletions packages/react-router-cloudflare/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# `@react-router/cloudflare`

## 7.5.1-pre.0

### Patch Changes

- Updated dependencies:
- `[email protected]`

## 7.5.0

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/react-router-cloudflare/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@react-router/cloudflare",
"version": "7.5.0",
"version": "7.5.1-pre.0",
"description": "Cloudflare platform abstractions for React Router",
"bugs": {
"url": "https://github.com/remix-run/react-router/issues"
Expand Down
10 changes: 10 additions & 0 deletions packages/react-router-dev/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# `@react-router/dev`

## 7.5.1-pre.0

### Patch Changes

- Fix prerendering when a loader returns a redirect ([#13365](https://github.com/remix-run/react-router/pull/13365))
- Updated dependencies:
- `[email protected]`
- `@react-router/[email protected]`
- `@react-router/[email protected]`

## 7.5.0

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/react-router-dev/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@react-router/dev",
"version": "7.5.0",
"version": "7.5.1-pre.0",
"description": "Dev tools and CLI for React Router",
"homepage": "https://reactrouter.com",
"bugs": {
Expand Down
7 changes: 7 additions & 0 deletions packages/react-router-dom/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# react-router-dom

## 7.5.1-pre.0

### Patch Changes

- Updated dependencies:
- `[email protected]`

## 7.5.0

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/react-router-dom/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-router-dom",
"version": "7.5.0",
"version": "7.5.1-pre.0",
"description": "Declarative routing for React web applications",
"keywords": [
"react",
Expand Down
8 changes: 8 additions & 0 deletions packages/react-router-express/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# `@react-router/express`

## 7.5.1-pre.0

### Patch Changes

- Updated dependencies:
- `[email protected]`
- `@react-router/[email protected]`

## 7.5.0

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/react-router-express/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@react-router/express",
"version": "7.5.0",
"version": "7.5.1-pre.0",
"description": "Express server request handler for React Router",
"bugs": {
"url": "https://github.com/remix-run/react-router/issues"
Expand Down
7 changes: 7 additions & 0 deletions packages/react-router-fs-routes/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# `@react-router/fs-routes`

## 7.5.1-pre.0

### Patch Changes

- Updated dependencies:
- `@react-router/[email protected]`

## 7.5.0

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/react-router-fs-routes/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@react-router/fs-routes",
"version": "7.5.0",
"version": "7.5.1-pre.0",
"description": "File system routing conventions for React Router, for use within routes.ts",
"bugs": {
"url": "https://github.com/remix-run/react-router/issues"
Expand Down
7 changes: 7 additions & 0 deletions packages/react-router-node/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# `@react-router/node`

## 7.5.1-pre.0

### Patch Changes

- Updated dependencies:
- `[email protected]`

## 7.5.0

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/react-router-node/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@react-router/node",
"version": "7.5.0",
"version": "7.5.1-pre.0",
"description": "Node.js platform abstractions for React Router",
"bugs": {
"url": "https://github.com/remix-run/react-router/issues"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# `@react-router/remix-config-routes-adapter`

## 7.5.1-pre.0

### Patch Changes

- Updated dependencies:
- `@react-router/[email protected]`

## 7.5.0

### Patch Changes
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@react-router/remix-routes-option-adapter",
"version": "7.5.0",
"version": "7.5.1-pre.0",
"description": "Adapter for Remix's \"routes\" config option, for use within routes.ts",
"bugs": {
"url": "https://github.com/remix-run/react-router/issues"
Expand Down
9 changes: 9 additions & 0 deletions packages/react-router-serve/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# `@react-router/serve`

## 7.5.1-pre.0

### Patch Changes

- Updated dependencies:
- `[email protected]`
- `@react-router/[email protected]`
- `@react-router/[email protected]`

## 7.5.0

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/react-router-serve/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@react-router/serve",
"version": "7.5.0",
"version": "7.5.1-pre.0",
"description": "Production application server for React Router",
"bugs": {
"url": "https://github.com/remix-run/react-router/issues"
Expand Down
36 changes: 36 additions & 0 deletions packages/react-router/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,41 @@
# `react-router`

## 7.5.1-pre.0

### Patch Changes

- Fix single fetch bug where no revalidation request would be made when navigating upwards to a reused parent route ([#13253](https://github.com/remix-run/react-router/pull/13253))
- When using the object-based `route.lazy` API, the `HydrateFallback` and `hydrateFallbackElement` properties are now skipped when lazy loading routes after hydration. ([#13376](https://github.com/remix-run/react-router/pull/13376))

If you move the code for these properties into a separate file, you can use this optimization to avoid downloading unused hydration code. For example:

```ts
createBrowserRouter([
{
path: "/show/:showId",
lazy: {
loader: async () => (await import("./show.loader.js")).loader,
Component: async () => (await import("./show.component.js")).Component,
HydrateFallback: async () =>
(await import("./show.hydrate-fallback.js")).HydrateFallback,
},
},
]);
```

- Properly revalidate prerendered paths when param values change ([#13380](https://github.com/remix-run/react-router/pull/13380))
- UNSTABLE: Add a new `unstable_runClientMiddleware` argument to `dataStrategy` to enable middleware execution in custom `dataStrategy` implementations ([#13395](https://github.com/remix-run/react-router/pull/13395))
- UNSTABLE: Add better error messaging when `getLoadContext` is not updated to return a `Map`" ([#13242](https://github.com/remix-run/react-router/pull/13242))
- Do not automatically add `null` to `staticHandler.query()` `context.loaderData` if routes do not have loaders ([#13223](https://github.com/remix-run/react-router/pull/13223))

- This was a Remix v2 implementation detail inadvertently left in for React Router v7
- Now that we allow returning `undefined` from loaders, our prior check of `loaderData[routeId] !== undefined` was no longer sufficient and was changed to a `routeId in loaderData` check - these `null` values can cause issues for this new check
- ⚠️ This could be a "breaking bug fix" for you if you are doing manual SSR with `createStaticHandler()`/`<StaticRouterProvider>`, and using `context.loaderData` to control `<RouterProvider>` hydration behavior on the client

- Fix prerendering when a loader returns a redirect ([#13365](https://github.com/remix-run/react-router/pull/13365))
- UNSTABLE: Update context type for `LoaderFunctionArgs`/`ActionFunctionArgs` when middleware is enabled ([#13381](https://github.com/remix-run/react-router/pull/13381))
- Add support for the new `unstable_shouldCallHandler`/`unstable_shouldRevalidateArgs` APIs in `dataStrategy` ([#13253](https://github.com/remix-run/react-router/pull/13253))

## 7.5.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/react-router/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-router",
"version": "7.5.0",
"version": "7.5.1-pre.0",
"description": "Declarative routing for React",
"keywords": [
"react",
Expand Down