Skip to content

Commit

Permalink
Merge branch 'dev' into markdalgleish/require-web-crypto
Browse files Browse the repository at this point in the history
  • Loading branch information
markdalgleish committed Aug 12, 2024
2 parents 96e6e59 + f470485 commit eecab7d
Show file tree
Hide file tree
Showing 109 changed files with 3,820 additions and 5,365 deletions.
36 changes: 36 additions & 0 deletions .changeset/gold-suns-march.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
"react-router": major
---

Imports/Exports cleanup

- Removed the following exports that were previously public API from `@remix-run/router`
- types
- `AgnosticDataIndexRouteObject`
- `AgnosticDataNonIndexRouteObject`
- `AgnosticDataRouteMatch`
- `AgnosticDataRouteObject`
- `AgnosticIndexRouteObject`
- `AgnosticNonIndexRouteObject`
- `AgnosticRouteMatch`
- `AgnosticRouteObject`
- `TrackedPromise`
- `unstable_AgnosticPatchRoutesOnMissFunction`
- `Action` -> exported as `NavigationType` via `react-router`
- `Router` exported as `RemixRouter` to differentiate from RR's `<Router>`
- API
- `getToPathname` (`@private`)
- `joinPaths` (`@private`)
- `normalizePathname` (`@private`)
- `resolveTo` (`@private`)
- `stripBasename` (`@private`)
- `createBrowserHistory` -> in favor of `createBrowserRouter`
- `createHashHistory` -> in favor of `createHashRouter`
- `createMemoryHistory` -> in favor of `createMemoryRouter`
- `createRouter`
- `createStaticHandler` -> in favor of wrapper `createStaticHandler` in RR Dom
- `getStaticContextFromError`
- Removed the following exports that were previously public API from `react-router`
- `Hash`
- `Pathname`
- `Search`
8 changes: 8 additions & 0 deletions .changeset/twelve-cheetahs-pretend.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
"react-router": major
---

Remove remaining future flags

- React Router `v7_skipActionErrorRevalidation`
- Remix `v3_fetcherPersist`, `v3_relativeSplatPath`, `v3_throwAbortReason`
12 changes: 12 additions & 0 deletions .changeset/weak-goats-cross.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
"react-router": major
---

Add `react-router/dom` subpath export to properly enable `react-dom` as an optional `peerDependency`

- This ensures that we don't blindly `import ReactDOM from "react-dom"` in `<RouterProvider>` in order to access `ReactDOM.flushSync()`, since that would break `createMemoryRouter` use cases in non-DOM environments
- DOM environments should import from `react-router/dom` to get the proper component that makes `ReactDOM.flushSync()` available:
- If you are using the Vite plugin, use this in your `entry.client.tsx`:
- `import { HydratedRouter } from 'react-router/dom'`
- If you are not using the Vite plugin and are manually calling `createBrowserRouter`/`createHashRouter`:
- `import { RouterProvider } from "react-router/dom"`
2 changes: 2 additions & 0 deletions .github/workflows/integration-pr-windows-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ name: PR (Full)
on:
pull_request:
paths:
- "pnpm-lock.yaml"
- "integration/**"
- "packages/react-router-dev/**"
- "!**/*.md"

Expand Down
171 changes: 98 additions & 73 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,170 +13,173 @@ We manage release notes in this file instead of the paginated Github Releases Pa
<summary>Table of Contents</summary>

- [React Router Releases](#react-router-releases)
- [v6.25.1](#v6251)
- [v6.26.0](#v6260)
- [Minor Changes](#minor-changes)
- [Patch Changes](#patch-changes)
- [v6.25.1](#v6251)
- [Patch Changes](#patch-changes-1)
- [v6.25.0](#v6250)
- [What's Changed](#whats-changed)
- [Stabilized `v7_skipActionErrorRevalidation`](#stabilized-v7_skipactionerrorrevalidation)
- [Minor Changes](#minor-changes)
- [Patch Changes](#patch-changes-1)
- [v6.24.1](#v6241)
- [Minor Changes](#minor-changes-1)
- [Patch Changes](#patch-changes-2)
- [v6.24.1](#v6241)
- [Patch Changes](#patch-changes-3)
- [v6.24.0](#v6240)
- [What's Changed](#whats-changed-1)
- [Lazy Route Discovery (a.k.a. "Fog of War")](#lazy-route-discovery-aka-fog-of-war)
- [Minor Changes](#minor-changes-1)
- [Patch Changes](#patch-changes-3)
- [v6.23.1](#v6231)
- [Minor Changes](#minor-changes-2)
- [Patch Changes](#patch-changes-4)
- [v6.23.1](#v6231)
- [Patch Changes](#patch-changes-5)
- [v6.23.0](#v6230)
- [What's Changed](#whats-changed-2)
- [Data Strategy (unstable)](#data-strategy-unstable)
- [Skip Action Error Revalidation (unstable)](#skip-action-error-revalidation-unstable)
- [Minor Changes](#minor-changes-2)
- [Minor Changes](#minor-changes-3)
- [v6.22.3](#v6223)
- [Patch Changes](#patch-changes-5)
- [v6.22.2](#v6222)
- [Patch Changes](#patch-changes-6)
- [v6.22.1](#v6221)
- [v6.22.2](#v6222)
- [Patch Changes](#patch-changes-7)
- [v6.22.1](#v6221)
- [Patch Changes](#patch-changes-8)
- [v6.22.0](#v6220)
- [What's Changed](#whats-changed-3)
- [Core Web Vitals Technology Report Flag](#core-web-vitals-technology-report-flag)
- [Minor Changes](#minor-changes-3)
- [Patch Changes](#patch-changes-8)
- [v6.21.3](#v6213)
- [Minor Changes](#minor-changes-4)
- [Patch Changes](#patch-changes-9)
- [v6.21.2](#v6212)
- [v6.21.3](#v6213)
- [Patch Changes](#patch-changes-10)
- [v6.21.1](#v6211)
- [v6.21.2](#v6212)
- [Patch Changes](#patch-changes-11)
- [v6.21.1](#v6211)
- [Patch Changes](#patch-changes-12)
- [v6.21.0](#v6210)
- [What's Changed](#whats-changed-4)
- [`future.v7_relativeSplatPath`](#futurev7_relativesplatpath)
- [Partial Hydration](#partial-hydration)
- [Minor Changes](#minor-changes-4)
- [Patch Changes](#patch-changes-12)
- [v6.20.1](#v6201)
- [Patch Changes](#patch-changes-13)
- [v6.20.0](#v6200)
- [Minor Changes](#minor-changes-5)
- [Patch Changes](#patch-changes-13)
- [v6.20.1](#v6201)
- [Patch Changes](#patch-changes-14)
- [v6.20.0](#v6200)
- [Minor Changes](#minor-changes-6)
- [Patch Changes](#patch-changes-15)
- [v6.19.0](#v6190)
- [What's Changed](#whats-changed-5)
- [`unstable_flushSync` API](#unstable_flushsync-api)
- [Minor Changes](#minor-changes-6)
- [Patch Changes](#patch-changes-15)
- [Minor Changes](#minor-changes-7)
- [Patch Changes](#patch-changes-16)
- [v6.18.0](#v6180)
- [What's Changed](#whats-changed-6)
- [New Fetcher APIs](#new-fetcher-apis)
- [Persistence Future Flag (`future.v7_fetcherPersist`)](#persistence-future-flag-futurev7_fetcherpersist)
- [Minor Changes](#minor-changes-7)
- [Patch Changes](#patch-changes-16)
- [Minor Changes](#minor-changes-8)
- [Patch Changes](#patch-changes-17)
- [v6.17.0](#v6170)
- [What's Changed](#whats-changed-7)
- [View Transitions 🚀](#view-transitions-)
- [Minor Changes](#minor-changes-8)
- [Patch Changes](#patch-changes-17)
- [v6.16.0](#v6160)
- [Minor Changes](#minor-changes-9)
- [Patch Changes](#patch-changes-18)
- [v6.15.0](#v6150)
- [v6.16.0](#v6160)
- [Minor Changes](#minor-changes-10)
- [Patch Changes](#patch-changes-19)
- [v6.14.2](#v6142)
- [v6.15.0](#v6150)
- [Minor Changes](#minor-changes-11)
- [Patch Changes](#patch-changes-20)
- [v6.14.1](#v6141)
- [v6.14.2](#v6142)
- [Patch Changes](#patch-changes-21)
- [v6.14.1](#v6141)
- [Patch Changes](#patch-changes-22)
- [v6.14.0](#v6140)
- [What's Changed](#whats-changed-8)
- [JSON/Text Submissions](#jsontext-submissions)
- [Minor Changes](#minor-changes-11)
- [Patch Changes](#patch-changes-22)
- [Minor Changes](#minor-changes-12)
- [Patch Changes](#patch-changes-23)
- [v6.13.0](#v6130)
- [What's Changed](#whats-changed-9)
- [`future.v7_startTransition`](#futurev7_starttransition)
- [Minor Changes](#minor-changes-12)
- [Patch Changes](#patch-changes-23)
- [v6.12.1](#v6121)
- [Minor Changes](#minor-changes-13)
- [Patch Changes](#patch-changes-24)
- [v6.12.1](#v6121)
- [Patch Changes](#patch-changes-25)
- [v6.12.0](#v6120)
- [What's Changed](#whats-changed-10)
- [`React.startTransition` support](#reactstarttransition-support)
- [Minor Changes](#minor-changes-13)
- [Patch Changes](#patch-changes-25)
- [v6.11.2](#v6112)
- [Minor Changes](#minor-changes-14)
- [Patch Changes](#patch-changes-26)
- [v6.11.1](#v6111)
- [v6.11.2](#v6112)
- [Patch Changes](#patch-changes-27)
- [v6.11.0](#v6110)
- [Minor Changes](#minor-changes-14)
- [v6.11.1](#v6111)
- [Patch Changes](#patch-changes-28)
- [v6.11.0](#v6110)
- [Minor Changes](#minor-changes-15)
- [Patch Changes](#patch-changes-29)
- [v6.10.0](#v6100)
- [What's Changed](#whats-changed-11)
- [Minor Changes](#minor-changes-15)
- [Minor Changes](#minor-changes-16)
- [`future.v7_normalizeFormMethod`](#futurev7_normalizeformmethod)
- [Patch Changes](#patch-changes-29)
- [Patch Changes](#patch-changes-30)
- [v6.9.0](#v690)
- [What's Changed](#whats-changed-12)
- [`Component`/`ErrorBoundary` route properties](#componenterrorboundary-route-properties)
- [Introducing Lazy Route Modules](#introducing-lazy-route-modules)
- [Minor Changes](#minor-changes-16)
- [Patch Changes](#patch-changes-30)
- [v6.8.2](#v682)
- [Minor Changes](#minor-changes-17)
- [Patch Changes](#patch-changes-31)
- [v6.8.1](#v681)
- [v6.8.2](#v682)
- [Patch Changes](#patch-changes-32)
- [v6.8.0](#v680)
- [Minor Changes](#minor-changes-17)
- [v6.8.1](#v681)
- [Patch Changes](#patch-changes-33)
- [v6.7.0](#v670)
- [v6.8.0](#v680)
- [Minor Changes](#minor-changes-18)
- [Patch Changes](#patch-changes-34)
- [v6.6.2](#v662)
- [v6.7.0](#v670)
- [Minor Changes](#minor-changes-19)
- [Patch Changes](#patch-changes-35)
- [v6.6.1](#v661)
- [v6.6.2](#v662)
- [Patch Changes](#patch-changes-36)
- [v6.6.1](#v661)
- [Patch Changes](#patch-changes-37)
- [v6.6.0](#v660)
- [What's Changed](#whats-changed-13)
- [Minor Changes](#minor-changes-19)
- [Patch Changes](#patch-changes-37)
- [v6.5.0](#v650)
- [What's Changed](#whats-changed-14)
- [Minor Changes](#minor-changes-20)
- [Patch Changes](#patch-changes-38)
- [v6.4.5](#v645)
- [v6.5.0](#v650)
- [What's Changed](#whats-changed-14)
- [Minor Changes](#minor-changes-21)
- [Patch Changes](#patch-changes-39)
- [v6.4.4](#v644)
- [v6.4.5](#v645)
- [Patch Changes](#patch-changes-40)
- [v6.4.3](#v643)
- [v6.4.4](#v644)
- [Patch Changes](#patch-changes-41)
- [v6.4.2](#v642)
- [v6.4.3](#v643)
- [Patch Changes](#patch-changes-42)
- [v6.4.1](#v641)
- [v6.4.2](#v642)
- [Patch Changes](#patch-changes-43)
- [v6.4.1](#v641)
- [Patch Changes](#patch-changes-44)
- [v6.4.0](#v640)
- [What's Changed](#whats-changed-15)
- [Remix Data APIs](#remix-data-apis)
- [Patch Changes](#patch-changes-44)
- [Patch Changes](#patch-changes-45)
- [v6.3.0](#v630)
- [Minor Changes](#minor-changes-21)
- [Minor Changes](#minor-changes-22)
- [v6.2.2](#v622)
- [Patch Changes](#patch-changes-45)
- [v6.2.1](#v621)
- [Patch Changes](#patch-changes-46)
- [v6.2.0](#v620)
- [Minor Changes](#minor-changes-22)
- [v6.2.1](#v621)
- [Patch Changes](#patch-changes-47)
- [v6.1.1](#v611)
- [Patch Changes](#patch-changes-48)
- [v6.1.0](#v610)
- [v6.2.0](#v620)
- [Minor Changes](#minor-changes-23)
- [Patch Changes](#patch-changes-48)
- [v6.1.1](#v611)
- [Patch Changes](#patch-changes-49)
- [v6.0.2](#v602)
- [v6.1.0](#v610)
- [Minor Changes](#minor-changes-24)
- [Patch Changes](#patch-changes-50)
- [v6.0.1](#v601)
- [v6.0.2](#v602)
- [Patch Changes](#patch-changes-51)
- [v6.0.1](#v601)
- [Patch Changes](#patch-changes-52)
- [v6.0.0](#v600)

</details>
Expand All @@ -200,6 +203,28 @@ Date: YYYY-MM-DD
**Full Changelog**: [`v6.X.Y...v6.X.Y`](https://github.com/remix-run/react-router/compare/react-router@6.X.Y...react-router@6.X.Y)
-->

## v6.26.0

Date: 2024-08-01

### Minor Changes

- Add a new `replace(url, init?)` alternative to `redirect(url, init?)` that performs a `history.replaceState` instead of a `history.pushState` on client-side navigation redirects ([#11811](https://github.com/remix-run/react-router/pull/11811))
- Add a new `unstable_data()` API for usage with Remix Single Fetch ([#11836](https://github.com/remix-run/react-router/pull/11836))
- This API is not intended for direct usage in React Router SPA applications
- It is primarily intended for usage with `createStaticHandler.query()` to allow loaders/actions to return arbitrary data along with custom `status`/`headers` without forcing the serialization of data into a `Response` instance
- This allows for more advanced serialization tactics via `unstable_dataStrategy` such as serializing via `turbo-stream` in Remix Single Fetch
- ⚠️ This removes the `status` field from `HandlerResult`
- If you need to return a specific `status` from `unstable_dataStrategy` you should instead do so via `unstable_data()`

### Patch Changes

- Fix internal cleanup of interrupted fetchers to avoid invalid revalidations on navigations ([#11839](https://github.com/remix-run/react-router/pull/11839))
- Fix initial hydration behavior when using `future.v7_partialHydration` along with `unstable_patchRoutesOnMiss` ([#11838](https://github.com/remix-run/react-router/pull/11838))
- During initial hydration, `router.state.matches` will now include any partial matches so that we can render ancestor `HydrateFallback` components

**Full Changelog**: [`v6.25.1...v6.26.0`](https://github.com/remix-run/react-router/compare/react-router@6.25.1...react-router@6.26.0)

## v6.25.1

Date: 2024-07-17
Expand Down
Loading

0 comments on commit eecab7d

Please sign in to comment.