diff --git a/.changeset/changing-fetcher-key.md b/.changeset/changing-fetcher-key.md deleted file mode 100644 index fc97589d2b..0000000000 --- a/.changeset/changing-fetcher-key.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"react-router-dom": patch ---- - -Fix issue where a changing fetcher `key` in a `useFetcher` that remains mounted wasn't getting picked up diff --git a/.changeset/fix-action-data.md b/.changeset/fix-action-data.md deleted file mode 100644 index 376fc7f141..0000000000 --- a/.changeset/fix-action-data.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"react-router": patch ---- - -Fix `useActionData` so it returns proper contextual action data and not _any_ action data in the tree diff --git a/.changeset/fix-relative-path.md b/.changeset/fix-relative-path.md deleted file mode 100644 index 3da1d1cc13..0000000000 --- a/.changeset/fix-relative-path.md +++ /dev/null @@ -1,23 +0,0 @@ ---- -"@remix-run/router": patch ---- - -Fix `relative="path"` bug where relative path calculations started from the full location pathname, instead of from the current contextual route pathname. - -```jsx - - }> - - -; - -function Component() { - return ( - <> - {/* This is now correctly relative to /a/b, not /a/b/c */} - - - - ); -} -``` diff --git a/.changeset/fix-resolve-path.md b/.changeset/fix-resolve-path.md deleted file mode 100644 index ac876e4812..0000000000 --- a/.changeset/fix-resolve-path.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"react-router": patch ---- - -Fix bug in `useResolvedPath` that would cause `useResolvedPath(".")` in a splat route to lose the splat portion of the URL path. - -- ⚠️ This fixes a quite long-standing bug specifically for `"."` paths inside a splat route which incorrectly dropped the splat portion of the URL. If you are relative routing via `"."` inside a splat route in your application you should double check that your logic is not relying on this buggy behavior and update accordingly. diff --git a/.changeset/flush-sync-router.md b/.changeset/flush-sync-router.md deleted file mode 100644 index 9c0d778fe1..0000000000 --- a/.changeset/flush-sync-router.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@remix-run/router": minor ---- - -Add `unstable_flushSync` option to `router.navigate` and `router.fetch` to tell the React Router layer to opt-out of `React.startTransition` and into `ReactDOM.flushSync` for state updates diff --git a/.changeset/flush-sync.md b/.changeset/flush-sync.md deleted file mode 100644 index ee8253c589..0000000000 --- a/.changeset/flush-sync.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"react-router-dom": minor -"react-router": minor ---- - -Add `unstable_flushSync` option to `useNavigate`/`useSumbit`/`fetcher.load`/`fetcher.submit` to opt-out of `React.startTransition` and into `ReactDOM.flushSync` for state updates diff --git a/.changeset/form-action-index.md b/.changeset/form-action-index.md deleted file mode 100644 index 5d4929f2d1..0000000000 --- a/.changeset/form-action-index.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"react-router-dom": patch ---- - -Fix `useFormAction` which was incorrectly inheriting the `?index` query param from child route `action` submissions diff --git a/.changeset/itchy-items-hang.md b/.changeset/itchy-items-hang.md deleted file mode 100644 index ce2e6f5dfe..0000000000 --- a/.changeset/itchy-items-hang.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"react-router-dom": patch ---- - -Fix `NavLink` `active` logic when `to` location has a trailing slash diff --git a/.changeset/pre.json b/.changeset/pre.json deleted file mode 100644 index 0ca7520e55..0000000000 --- a/.changeset/pre.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "mode": "exit", - "tag": "pre", - "initialVersions": { - "react-router": "6.18.0", - "react-router-dom": "6.18.0", - "react-router-dom-v5-compat": "6.18.0", - "react-router-native": "6.18.0", - "@remix-run/router": "1.11.0" - }, - "changesets": [ - "changing-fetcher-key", - "fix-action-data", - "fix-relative-path", - "fix-resolve-path", - "flush-sync-router", - "flush-sync", - "form-action-index", - "itchy-items-hang", - "stabilize-use-blocker", - "update-useprompt-args" - ] -} diff --git a/.changeset/stabilize-use-blocker.md b/.changeset/stabilize-use-blocker.md deleted file mode 100644 index 52189825bf..0000000000 --- a/.changeset/stabilize-use-blocker.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"react-router": minor ---- - -Remove the `unstable_` prefix from the [`useBlocker`](https://reactrouter.com/en/main/hooks/use-blocker) hook as it's been in use for enough time that we are confident in the API. We do not plan to remove the prefix from `unstable_usePrompt` due to differences in how browsers handle `window.confirm` that prevent React Router from guaranteeing consistent/correct behavior. diff --git a/.changeset/update-useprompt-args.md b/.changeset/update-useprompt-args.md deleted file mode 100644 index 67c2383bcd..0000000000 --- a/.changeset/update-useprompt-args.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"react-router-dom": minor ---- - -Allow `unstable_usePrompt` to accept a `BlockerFunction` in addition to a `boolean` diff --git a/CHANGELOG.md b/CHANGELOG.md index 24b1766230..715d903526 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -168,17 +168,16 @@ function handleClick() { - Add `unstable_flushSync` option to `useNavigate`/`useSubmit`/`fetcher.load`/`fetcher.submit` to opt-out of `React.startTransition` and into `ReactDOM.flushSync` for state updates ([#11005](https://github.com/remix-run/react-router/pull/11005)) - Remove the `unstable_` prefix from the [`useBlocker`](https://reactrouter.com/en/main/hooks/use-blocker) hook as it's been in use for enough time that we are confident in the API ([#10991](https://github.com/remix-run/react-router/pull/10991)) - We do not plan to remove the prefix from `unstable_usePrompt` due to differences in how browsers handle `window.confirm` that prevent React Router from guaranteeing consistent/correct behavior -- Fix types so `unstable_usePrompt` can accept a `BlockerFunction` in addition to a `boolean` ([#10991](https://github.com/remix-run/react-router/pull/10991)) -- `@remix-run/router`: Add `unstable_flushSync` option to `router.navigate` and `router.fetch` to tell the React Router layer to opt-out of `React.startTransition` and into `ReactDOM.flushSync` for state updates ([#11005](https://github.com/remix-run/react-router/pull/11005)) ### Patch Changes -- Fix issue where a changing fetcher `key` in a `useFetcher` that remains mounted wasn't getting picked up ([#11009](https://github.com/remix-run/react-router/pull/11009)) -- Fix `useFormAction` which was incorrectly inheriting the `?index` query param from child route `action` submissions ([#11025](https://github.com/remix-run/react-router/pull/11025)) - Fix `useActionData` so it returns proper contextual action data and not _any_ action data in the tree ([#11023](https://github.com/remix-run/react-router/pull/11023)) -- Fix `NavLink` `active` logic when `to` location has a trailing slash ([#10734](https://github.com/remix-run/react-router/pull/10734)) - Fix bug in `useResolvedPath` that would cause `useResolvedPath(".")` in a splat route to lose the splat portion of the URL path. ([#10983](https://github.com/remix-run/react-router/pull/10983)) - ⚠️ This fixes a quite long-standing bug specifically for `"."` paths inside a splat route which incorrectly dropped the splat portion of the URL. If you are relative routing via `"."` inside a splat route in your application you should double check that your logic is not relying on this buggy behavior and update accordingly. +- Fix issue where a changing fetcher `key` in a `useFetcher` that remains mounted wasn't getting picked up ([#11009](https://github.com/remix-run/react-router/pull/11009)) +- Fix `useFormAction` which was incorrectly inheriting the `?index` query param from child route `action` submissions ([#11025](https://github.com/remix-run/react-router/pull/11025)) +- Fix `NavLink` `active` logic when `to` location has a trailing slash ([#10734](https://github.com/remix-run/react-router/pull/10734)) +- Fix types so `unstable_usePrompt` can accept a `BlockerFunction` in addition to a `boolean` ([#10991](https://github.com/remix-run/react-router/pull/10991)) - Fix `relative="path"` bug where relative path calculations started from the full location pathname, instead of from the current contextual route pathname. ([#11006](https://github.com/remix-run/react-router/pull/11006)) ```jsx diff --git a/packages/react-router-dom-v5-compat/CHANGELOG.md b/packages/react-router-dom-v5-compat/CHANGELOG.md index 50cf4edfe6..9daaed3e3f 100644 --- a/packages/react-router-dom-v5-compat/CHANGELOG.md +++ b/packages/react-router-dom-v5-compat/CHANGELOG.md @@ -1,12 +1,12 @@ # `react-router-dom-v5-compat` -## 6.19.0-pre.0 +## 6.19.0 ### Patch Changes - Updated dependencies: - - `react-router-dom@6.19.0-pre.0` - - `react-router@6.19.0-pre.0` + - `react-router-dom@6.19.0` + - `react-router@6.19.0` ## 6.18.0 diff --git a/packages/react-router-dom-v5-compat/package.json b/packages/react-router-dom-v5-compat/package.json index 43243e4eeb..cb286d1b5d 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.19.0-pre.0", + "version": "6.19.0", "description": "Migration path to React Router v6 from v4/5", "keywords": [ "react", @@ -24,7 +24,7 @@ "types": "./dist/index.d.ts", "dependencies": { "history": "^5.3.0", - "react-router": "6.19.0-pre.0" + "react-router": "6.19.0" }, "peerDependencies": { "react": ">=16.8", diff --git a/packages/react-router-dom/CHANGELOG.md b/packages/react-router-dom/CHANGELOG.md index 768923af2b..8c0555c46e 100644 --- a/packages/react-router-dom/CHANGELOG.md +++ b/packages/react-router-dom/CHANGELOG.md @@ -1,6 +1,6 @@ # `react-router-dom` -## 6.19.0-pre.0 +## 6.19.0 ### Minor Changes @@ -13,8 +13,8 @@ - Fix `useFormAction` which was incorrectly inheriting the `?index` query param from child route `action` submissions ([#11025](https://github.com/remix-run/react-router/pull/11025)) - Fix `NavLink` `active` logic when `to` location has a trailing slash ([#10734](https://github.com/remix-run/react-router/pull/10734)) - Updated dependencies: - - `react-router@6.19.0-pre.0` - - `@remix-run/router@1.12.0-pre.0` + - `react-router@6.19.0` + - `@remix-run/router@1.12.0` ## 6.18.0 diff --git a/packages/react-router-dom/package.json b/packages/react-router-dom/package.json index 361d0ff09f..5e82c7e881 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.19.0-pre.0", + "version": "6.19.0", "description": "Declarative routing for React web applications", "keywords": [ "react", @@ -23,8 +23,8 @@ "module": "./dist/index.js", "types": "./dist/index.d.ts", "dependencies": { - "@remix-run/router": "1.12.0-pre.0", - "react-router": "6.19.0-pre.0" + "@remix-run/router": "1.12.0", + "react-router": "6.19.0" }, "devDependencies": { "react": "^18.2.0", diff --git a/packages/react-router-native/CHANGELOG.md b/packages/react-router-native/CHANGELOG.md index 95c0394019..3861171dc9 100644 --- a/packages/react-router-native/CHANGELOG.md +++ b/packages/react-router-native/CHANGELOG.md @@ -1,11 +1,11 @@ # `react-router-native` -## 6.19.0-pre.0 +## 6.19.0 ### Patch Changes - Updated dependencies: - - `react-router@6.19.0-pre.0` + - `react-router@6.19.0` ## 6.18.0 diff --git a/packages/react-router-native/package.json b/packages/react-router-native/package.json index 1a2d08288c..7c07a0cd7c 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.19.0-pre.0", + "version": "6.19.0", "description": "Declarative routing for React Native applications", "keywords": [ "react", @@ -22,7 +22,7 @@ "types": "./dist/index.d.ts", "dependencies": { "@ungap/url-search-params": "^0.2.2", - "react-router": "6.19.0-pre.0" + "react-router": "6.19.0" }, "devDependencies": { "react": "^18.2.0", diff --git a/packages/react-router/CHANGELOG.md b/packages/react-router/CHANGELOG.md index 37316e35fb..04f4aa57ba 100644 --- a/packages/react-router/CHANGELOG.md +++ b/packages/react-router/CHANGELOG.md @@ -1,6 +1,6 @@ # `react-router` -## 6.19.0-pre.0 +## 6.19.0 ### Minor Changes @@ -15,7 +15,7 @@ - ⚠️ This fixes a quite long-standing bug specifically for `"."` paths inside a splat route which incorrectly dropped the splat portion of the URL. If you are relative routing via `"."` inside a splat route in your application you should double check that your logic is not relying on this buggy behavior and update accordingly. - Updated dependencies: - - `@remix-run/router@1.12.0-pre.0` + - `@remix-run/router@1.12.0` ## 6.18.0 diff --git a/packages/react-router/package.json b/packages/react-router/package.json index d3db56d688..63616e5359 100644 --- a/packages/react-router/package.json +++ b/packages/react-router/package.json @@ -1,6 +1,6 @@ { "name": "react-router", - "version": "6.19.0-pre.0", + "version": "6.19.0", "description": "Declarative routing for React", "keywords": [ "react", @@ -23,7 +23,7 @@ "module": "./dist/index.js", "types": "./dist/index.d.ts", "dependencies": { - "@remix-run/router": "1.12.0-pre.0" + "@remix-run/router": "1.12.0" }, "devDependencies": { "react": "^18.2.0" diff --git a/packages/router/CHANGELOG.md b/packages/router/CHANGELOG.md index 73dc1b9a8a..a77b39087b 100644 --- a/packages/router/CHANGELOG.md +++ b/packages/router/CHANGELOG.md @@ -1,6 +1,6 @@ # `@remix-run/router` -## 1.12.0-pre.0 +## 1.12.0 ### Minor Changes diff --git a/packages/router/package.json b/packages/router/package.json index f1ee032d66..cd617b7d2d 100644 --- a/packages/router/package.json +++ b/packages/router/package.json @@ -1,6 +1,6 @@ { "name": "@remix-run/router", - "version": "1.12.0-pre.0", + "version": "1.12.0", "description": "Nested/Data-driven/Framework-agnostic Routing", "keywords": [ "remix",