diff --git a/.changeset/calm-wombats-design.md b/.changeset/calm-wombats-design.md deleted file mode 100644 index 5b74838f7a..0000000000 --- a/.changeset/calm-wombats-design.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -"react-router-dom": patch -"react-router": patch -"@remix-run/router": patch ---- - -- Fix bug when submitting to the current contextual route (parent route with an index child) when an `?index` param already exists from a prior submission -- Fix `useFormAction` bug - when removing `?index` param it would not keep other non-Remix `index` params diff --git a/.changeset/chatty-impalas-pump.md b/.changeset/chatty-impalas-pump.md deleted file mode 100644 index d630262cf8..0000000000 --- a/.changeset/chatty-impalas-pump.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@remix-run/router": patch ---- - -Fix bug with fetchers not persisting `preventScrollReset` through redirects during concurrent fetches diff --git a/.changeset/gold-frogs-pump.md b/.changeset/gold-frogs-pump.md deleted file mode 100644 index 46228fd4af..0000000000 --- a/.changeset/gold-frogs-pump.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -"@remix-run/router": patch ---- - -Remove internal cache to fix issues with interrupted `patchRoutesOnNavigation` calls - -- We used to cache in-progress calls to `patchRoutesOnNavigation` internally so that multiple navigations with the same start/end would only execute the function once and use the same promise -- However, this approach was at odds with `patch` short circuiting if a navigation was interrupted (and the `request.signal` aborted) since the first invocation's `patch` would no-op -- This cache also made some assumptions as to what a valid cache key might be - and is oblivious to any other application-state changes that may have occurred -- So, the cache has been removed because in _most_ cases, repeated calls to something like `import()` for async routes will already be cached automatically - and if not it's easy enough for users to implement this cache in userland diff --git a/.changeset/happy-grapes-fry.md b/.changeset/happy-grapes-fry.md deleted file mode 100644 index f0e409c544..0000000000 --- a/.changeset/happy-grapes-fry.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"react-router-dom": minor -"react-router": minor -"@remix-run/router": minor ---- - -Stabilize `unstable_patchRoutesOnNavigation` diff --git a/.changeset/itchy-shoes-sort.md b/.changeset/itchy-shoes-sort.md deleted file mode 100644 index 8b0e68a090..0000000000 --- a/.changeset/itchy-shoes-sort.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@remix-run/router": patch ---- - -Avoid unnecessary `console.error` on fetcher abort due to back-to-back revalidation calls diff --git a/.changeset/nasty-queens-leave.md b/.changeset/nasty-queens-leave.md deleted file mode 100644 index 73c5f677d4..0000000000 --- a/.changeset/nasty-queens-leave.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"react-router-dom": minor -"react-router": minor -"@remix-run/router": minor ---- - -Stabilize `unstable_dataStrategy` diff --git a/.changeset/pre.json b/.changeset/pre.json deleted file mode 100644 index 54b35a1d50..0000000000 --- a/.changeset/pre.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "mode": "exit", - "tag": "pre", - "initialVersions": { - "react-router": "6.26.2", - "react-router-dom": "6.26.2", - "react-router-dom-v5-compat": "6.26.2", - "react-router-native": "6.26.2", - "@remix-run/router": "1.19.2" - }, - "changesets": [ - "calm-wombats-design", - "chatty-impalas-pump", - "gold-frogs-pump", - "happy-grapes-fry", - "itchy-shoes-sort", - "nasty-queens-leave", - "shy-chicken-talk", - "silly-walls-sit", - "soft-maps-fix", - "stabilize-flush-sync", - "stabilize-view-transitions", - "unlucky-keys-collect" - ] -} diff --git a/.changeset/shy-chicken-talk.md b/.changeset/shy-chicken-talk.md deleted file mode 100644 index 9ebf7ed55b..0000000000 --- a/.changeset/shy-chicken-talk.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@remix-run/router": patch ---- - -Expose errors thrown from `patchRoutesOnNavigation` directly to `useRouteError` instead of wrapping them in a 400 `ErrorResponse` instance diff --git a/.changeset/silly-walls-sit.md b/.changeset/silly-walls-sit.md deleted file mode 100644 index 73dc699e78..0000000000 --- a/.changeset/silly-walls-sit.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -"react-router-dom": patch -"react-router": patch -"@remix-run/router": patch ---- - -- Fix types for `RouteObject` within `PatchRoutesOnNavigationFunction`'s `patch` method so it doesn't expect agnostic route objects passed to `patch` -- Add new `PatchRoutesOnNavigationFunctionArgs` type for convenience diff --git a/.changeset/soft-maps-fix.md b/.changeset/soft-maps-fix.md deleted file mode 100644 index c083ee2a65..0000000000 --- a/.changeset/soft-maps-fix.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@remix-run/router": patch ---- - -Fix bugs with partialHydration when hydrating with errors diff --git a/.changeset/stabilize-flush-sync.md b/.changeset/stabilize-flush-sync.md deleted file mode 100644 index 950ebe9d9f..0000000000 --- a/.changeset/stabilize-flush-sync.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"react-router-dom": minor -"react-router": minor -"@remix-run/router": minor ---- - -Stabilize the `unstable_flushSync` option for navigations and fetchers diff --git a/.changeset/stabilize-view-transitions.md b/.changeset/stabilize-view-transitions.md deleted file mode 100644 index 1cc8d1c5ca..0000000000 --- a/.changeset/stabilize-view-transitions.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"react-router-dom": minor -"react-router": minor -"@remix-run/router": minor ---- - -Stabilize the `unstable_viewTransition` option for navigations and the corresponding `unstable_useViewTransitionState` hook diff --git a/.changeset/unlucky-keys-collect.md b/.changeset/unlucky-keys-collect.md deleted file mode 100644 index f69f7fb700..0000000000 --- a/.changeset/unlucky-keys-collect.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@remix-run/router": patch ---- - -Remove internal `discoveredRoutes` FIFO queue from `unstable_patchRoutesOnNavigation` diff --git a/packages/react-router-dom-v5-compat/CHANGELOG.md b/packages/react-router-dom-v5-compat/CHANGELOG.md index a9301b6136..880b080208 100644 --- a/packages/react-router-dom-v5-compat/CHANGELOG.md +++ b/packages/react-router-dom-v5-compat/CHANGELOG.md @@ -1,22 +1,13 @@ # `react-router-dom-v5-compat` -## 6.27.0-pre.1 +## 6.27.0 ### Patch Changes - Updated dependencies: - - `@remix-run/router@1.20.0-pre.1` - - `react-router@6.27.0-pre.1` - - `react-router-dom@6.27.0-pre.1` - -## 6.27.0-pre.0 - -### Patch Changes - -- Updated dependencies: - - `react-router-dom@6.27.0-pre.0` - - `react-router@6.27.0-pre.0` - - `@remix-run/router@1.20.0-pre.0` + - `react-router-dom@6.27.0` + - `react-router@6.27.0` + - `@remix-run/router@1.20.0` ## 6.26.2 diff --git a/packages/react-router-dom-v5-compat/package.json b/packages/react-router-dom-v5-compat/package.json index a8101c9675..acf2f20eb0 100644 --- a/packages/react-router-dom-v5-compat/package.json +++ b/packages/react-router-dom-v5-compat/package.json @@ -1,6 +1,6 @@ { "name": "react-router-dom-v5-compat", - "version": "6.27.0-pre.1", + "version": "6.27.0", "description": "Migration path to React Router v6 from v4/5", "keywords": [ "react", diff --git a/packages/react-router-dom/CHANGELOG.md b/packages/react-router-dom/CHANGELOG.md index d4e6ccc13a..3e21a1bc03 100644 --- a/packages/react-router-dom/CHANGELOG.md +++ b/packages/react-router-dom/CHANGELOG.md @@ -1,31 +1,24 @@ # `react-router-dom` -## 6.27.0-pre.1 - -### Patch Changes - -- Updated dependencies: - - `@remix-run/router@1.20.0-pre.1` - - `react-router@6.27.0-pre.1` - -## 6.27.0-pre.0 +## 6.27.0 ### Minor Changes - Stabilize `unstable_patchRoutesOnNavigation` ([#11973](https://github.com/remix-run/react-router/pull/11973)) + - Add new `PatchRoutesOnNavigationFunctionArgs` type for convenience ([#11967](https://github.com/remix-run/react-router/pull/11967)) - Stabilize `unstable_dataStrategy` ([#11974](https://github.com/remix-run/react-router/pull/11974)) - Stabilize the `unstable_flushSync` option for navigations and fetchers ([#11989](https://github.com/remix-run/react-router/pull/11989)) - Stabilize the `unstable_viewTransition` option for navigations and the corresponding `unstable_useViewTransitionState` hook ([#11989](https://github.com/remix-run/react-router/pull/11989)) ### Patch Changes -- - Fix bug when submitting to the current contextual route (parent route with an index child) when an `?index` param already exists from a prior submission ([#12003](https://github.com/remix-run/react-router/pull/12003)) - - Fix `useFormAction` bug - when removing `?index` param it would not keep other non-Remix `index` params -- - Fix types for `RouteObject` within `PatchRoutesOnNavigationFunction`'s `patch` method so it doesn't expect agnostic route objects passed to `patch` ([#11967](https://github.com/remix-run/react-router/pull/11967)) - - Add new `PatchRoutesOnNavigationFunctionArgs` type for convenience +- Fix bug when submitting to the current contextual route (parent route with an index child) when an `?index` param already exists from a prior submission ([#12003](https://github.com/remix-run/react-router/pull/12003)) +- Fix `useFormAction` bug - when removing `?index` param it would not keep other non-Remix `index` params ([#12003](https://github.com/remix-run/react-router/pull/12003)) +- Fix types for `RouteObject` within `PatchRoutesOnNavigationFunction`'s `patch` method so it doesn't expect agnostic route objects passed to `patch` ([#11967](https://github.com/remix-run/react-router/pull/11967)) + - Updated dependencies: - - `react-router@6.27.0-pre.0` - - `@remix-run/router@1.20.0-pre.0` + - `react-router@6.27.0` + - `@remix-run/router@1.20.0` ## 6.26.2 diff --git a/packages/react-router-dom/package.json b/packages/react-router-dom/package.json index 62530a89fc..d29d37c9f9 100644 --- a/packages/react-router-dom/package.json +++ b/packages/react-router-dom/package.json @@ -1,6 +1,6 @@ { "name": "react-router-dom", - "version": "6.27.0-pre.1", + "version": "6.27.0", "description": "Declarative routing for React web applications", "keywords": [ "react", diff --git a/packages/react-router-native/CHANGELOG.md b/packages/react-router-native/CHANGELOG.md index 06a0977e98..6525041376 100644 --- a/packages/react-router-native/CHANGELOG.md +++ b/packages/react-router-native/CHANGELOG.md @@ -1,18 +1,11 @@ # `react-router-native` -## 6.27.0-pre.1 +## 6.27.0 ### Patch Changes - Updated dependencies: - - `react-router@6.27.0-pre.1` - -## 6.27.0-pre.0 - -### Patch Changes - -- Updated dependencies: - - `react-router@6.27.0-pre.0` + - `react-router@6.27.0` ## 6.26.2 diff --git a/packages/react-router-native/package.json b/packages/react-router-native/package.json index 3b0bd4e926..594307de28 100644 --- a/packages/react-router-native/package.json +++ b/packages/react-router-native/package.json @@ -1,6 +1,6 @@ { "name": "react-router-native", - "version": "6.27.0-pre.1", + "version": "6.27.0", "description": "Declarative routing for React Native applications", "keywords": [ "react", diff --git a/packages/react-router/CHANGELOG.md b/packages/react-router/CHANGELOG.md index 164d15135f..1058ba9cd0 100644 --- a/packages/react-router/CHANGELOG.md +++ b/packages/react-router/CHANGELOG.md @@ -1,29 +1,23 @@ # `react-router` -## 6.27.0-pre.1 - -### Patch Changes - -- Updated dependencies: - - `@remix-run/router@1.20.0-pre.1` - -## 6.27.0-pre.0 +## 6.27.0 ### Minor Changes - Stabilize `unstable_patchRoutesOnNavigation` ([#11973](https://github.com/remix-run/react-router/pull/11973)) + - Add new `PatchRoutesOnNavigationFunctionArgs` type for convenience ([#11967](https://github.com/remix-run/react-router/pull/11967)) - Stabilize `unstable_dataStrategy` ([#11974](https://github.com/remix-run/react-router/pull/11974)) - Stabilize the `unstable_flushSync` option for navigations and fetchers ([#11989](https://github.com/remix-run/react-router/pull/11989)) - Stabilize the `unstable_viewTransition` option for navigations and the corresponding `unstable_useViewTransitionState` hook ([#11989](https://github.com/remix-run/react-router/pull/11989)) ### Patch Changes -- - Fix bug when submitting to the current contextual route (parent route with an index child) when an `?index` param already exists from a prior submission ([#12003](https://github.com/remix-run/react-router/pull/12003)) - - Fix `useFormAction` bug - when removing `?index` param it would not keep other non-Remix `index` params -- - Fix types for `RouteObject` within `PatchRoutesOnNavigationFunction`'s `patch` method so it doesn't expect agnostic route objects passed to `patch` ([#11967](https://github.com/remix-run/react-router/pull/11967)) - - Add new `PatchRoutesOnNavigationFunctionArgs` type for convenience +- Fix bug when submitting to the current contextual route (parent route with an index child) when an `?index` param already exists from a prior submission ([#12003](https://github.com/remix-run/react-router/pull/12003)) +- Fix `useFormAction` bug - when removing `?index` param it would not keep other non-Remix `index` params ([#12003](https://github.com/remix-run/react-router/pull/12003)) +- Fix types for `RouteObject` within `PatchRoutesOnNavigationFunction`'s `patch` method so it doesn't expect agnostic route objects passed to `patch` ([#11967](https://github.com/remix-run/react-router/pull/11967)) + - Updated dependencies: - - `@remix-run/router@1.20.0-pre.0` + - `@remix-run/router@1.20.0` ## 6.26.2 diff --git a/packages/react-router/package.json b/packages/react-router/package.json index 87c0c51275..af43a86a41 100644 --- a/packages/react-router/package.json +++ b/packages/react-router/package.json @@ -1,6 +1,6 @@ { "name": "react-router", - "version": "6.27.0-pre.1", + "version": "6.27.0", "description": "Declarative routing for React", "keywords": [ "react", diff --git a/packages/router/CHANGELOG.md b/packages/router/CHANGELOG.md index c6958dcc72..cd603d8fda 100644 --- a/packages/router/CHANGELOG.md +++ b/packages/router/CHANGELOG.md @@ -1,36 +1,29 @@ # `@remix-run/router` -## 1.20.0-pre.1 - -### Patch Changes - -- Expose errors thrown from `patchRoutesOnNavigation` directly to `useRouteError` instead of wrapping them in a 400 `ErrorResponse` instance ([#12111](https://github.com/remix-run/react-router/pull/12111)) - -## 1.20.0-pre.0 +## 1.20.0 ### Minor Changes - Stabilize `unstable_patchRoutesOnNavigation` ([#11973](https://github.com/remix-run/react-router/pull/11973)) + - Add new `PatchRoutesOnNavigationFunctionArgs` type for convenience ([#11967](https://github.com/remix-run/react-router/pull/11967)) - Stabilize `unstable_dataStrategy` ([#11974](https://github.com/remix-run/react-router/pull/11974)) - Stabilize the `unstable_flushSync` option for navigations and fetchers ([#11989](https://github.com/remix-run/react-router/pull/11989)) - Stabilize the `unstable_viewTransition` option for navigations and the corresponding `unstable_useViewTransitionState` hook ([#11989](https://github.com/remix-run/react-router/pull/11989)) ### Patch Changes -- - Fix bug when submitting to the current contextual route (parent route with an index child) when an `?index` param already exists from a prior submission ([#12003](https://github.com/remix-run/react-router/pull/12003)) - - Fix `useFormAction` bug - when removing `?index` param it would not keep other non-Remix `index` params +- Fix bug when submitting to the current contextual route (parent route with an index child) when an `?index` param already exists from a prior submission ([#12003](https://github.com/remix-run/react-router/pull/12003)) +- Fix `useFormAction` bug - when removing `?index` param it would not keep other non-Remix `index` params ([#12003](https://github.com/remix-run/react-router/pull/12003)) - Fix bug with fetchers not persisting `preventScrollReset` through redirects during concurrent fetches ([#11999](https://github.com/remix-run/react-router/pull/11999)) - Remove internal cache to fix issues with interrupted `patchRoutesOnNavigation` calls ([#12055](https://github.com/remix-run/react-router/pull/12055)) - - We used to cache in-progress calls to `patchRoutesOnNavigation` internally so that multiple navigations with the same start/end would only execute the function once and use the same promise - However, this approach was at odds with `patch` short circuiting if a navigation was interrupted (and the `request.signal` aborted) since the first invocation's `patch` would no-op - This cache also made some assumptions as to what a valid cache key might be - and is oblivious to any other application-state changes that may have occurred - So, the cache has been removed because in _most_ cases, repeated calls to something like `import()` for async routes will already be cached automatically - and if not it's easy enough for users to implement this cache in userland - - Avoid unnecessary `console.error` on fetcher abort due to back-to-back revalidation calls ([#12050](https://github.com/remix-run/react-router/pull/12050)) -- - Fix types for `RouteObject` within `PatchRoutesOnNavigationFunction`'s `patch` method so it doesn't expect agnostic route objects passed to `patch` ([#11967](https://github.com/remix-run/react-router/pull/11967)) - - Add new `PatchRoutesOnNavigationFunctionArgs` type for convenience -- Fix bugs with partialHydration when hydrating with errors ([#12070](https://github.com/remix-run/react-router/pull/12070)) +- Expose errors thrown from `patchRoutesOnNavigation` directly to `useRouteError` instead of wrapping them in a 400 `ErrorResponse` instance ([#12111](https://github.com/remix-run/react-router/pull/12111)) +- Fix types for `RouteObject` within `PatchRoutesOnNavigationFunction`'s `patch` method so it doesn't expect agnostic route objects passed to `patch` ([#11967](https://github.com/remix-run/react-router/pull/11967)) +- Fix bugs with `partialHydration` when hydrating with errors ([#12070](https://github.com/remix-run/react-router/pull/12070)) - Remove internal `discoveredRoutes` FIFO queue from `unstable_patchRoutesOnNavigation` ([#11977](https://github.com/remix-run/react-router/pull/11977)) ## 1.19.2 diff --git a/packages/router/package.json b/packages/router/package.json index b74695879e..01671eee31 100644 --- a/packages/router/package.json +++ b/packages/router/package.json @@ -1,6 +1,6 @@ { "name": "@remix-run/router", - "version": "1.20.0-pre.1", + "version": "1.20.0", "description": "Nested/Data-driven/Framework-agnostic Routing", "keywords": [ "remix",