remix-run/react-router (react-router-dom)
### [`v5.3.4`](https://togithub.com/remix-run/react-router/releases/tag/v5.3.4)
[Compare Source](https://togithub.com/remix-run/react-router/compare/v5.3.3...v5.3.4)
We removed the `mini-create-react-context` dependency, moving it into an internal module to eliminate peer dependency warnings for users on React 18 ([#9382](https://togithub.com/remix-run/react-router/issues/9382)).
**Full Changelog**: https://github.com/remix-run/react-router/compare/v5.3.3...v5.3.4
### [`v5.3.3`](https://togithub.com/remix-run/react-router/releases/tag/v5.3.3)
[Compare Source](https://togithub.com/remix-run/react-router/compare/v5.3.2...v5.3.3)
This release fixes a bad version selector in react-router-native.
### [`v5.3.2`](https://togithub.com/remix-run/react-router/releases/tag/v5.3.2)
[Compare Source](https://togithub.com/remix-run/react-router/compare/v5.3.1...v5.3.2)
- Fix: make v5 Router compatible with v18 StrictMode by [@jgoz](https://togithub.com/jgoz) in [https://github.com/remix-run/react-router/pull/8831](https://togithub.com/remix-run/react-router/pull/8831)
### [`v5.3.1`](https://togithub.com/remix-run/react-router/releases/tag/v5.3.1)
[Compare Source](https://togithub.com/remix-run/react-router/compare/v5.3.0...v5.3.1)
This release adds missing `LICENSE` files to the published build.
### [`v5.3.0`](https://togithub.com/remix-run/react-router/releases/tag/v5.3.0)
[Compare Source](https://togithub.com/remix-run/react-router/compare/v5.2.1...v5.3.0)
This release of `react-router-dom` adds support for passing a function to either the `className` or `style` props to conditionally apply values based on the link's `active` state.
This provides similar functionality as the existing `activeClassName` and `activeStyle` props, but is a bit more powerful. For example, you can now easily apply styles exclusively to an inactive `NavLink` as well. This offers a nicer experience for folks who use utility class-based CSS tools such as Tailwind.
```tsx
function Comp() {
return (
`px-3 py-2 ${isActive ? 'text-gray-200' : 'text-gray-800'}`
}
>
Home
);
}
```
Note that as of `v6.0.0-beta.3`, the `activeClassName` and `activeStyle` props are removed completely. Adding support for functional className and style props to both v5 and v6 will give v5 users an easier upgrade path.
Thanks to [@tim-phillips](https://togithub.com/tim-phillips) for raising the issue that inspired the change! 🥳
### [`v5.2.1`](https://togithub.com/remix-run/react-router/releases/tag/v5.2.1)
[Compare Source](https://togithub.com/remix-run/react-router/compare/v5.2.0...v5.2.1)
This release fixes a bug with `` so that, when the `to` location is the same as the current, the history state entry is replaced instead of pushed to the stack. See [https://github.com/remix-run/react-router/issues/5362](https://togithub.com/remix-run/react-router/issues/5362) for details. 🥳
Thanks to [@guidobouman](https://togithub.com/guidobouman) for the PR and for everyone else who weighed in for the fix!
### [`v5.2.0`](https://togithub.com/remix-run/react-router/releases/tag/v5.2.0)
[Compare Source](https://togithub.com/remix-run/react-router/compare/v5.1.2...v5.2.0)
This release includes a notable performance boost by separating the "Router" context from the "History" context internally. We also allow every element type for `Link`'s `component` prop and support a `sensitive` prop on NavLink for control over case sensitive matching.
Enjoy!
#### [Changes](https://togithub.com/ReactTraining/react-router/compare/v5.1.2...v5.2.0)
- Add `sensitive` prop on NavLink ([#7251](https://togithub.com/remix-run/react-router/issues/7251) by [@caseywebdev](https://togithub.com/caseywebdev))
- Fix Link `component` prop type check ([#7276](https://togithub.com/remix-run/react-router/issues/7276) by [@ypyakymiv](https://togithub.com/ypyakymiv))
- Update `mini-create-react-context` ([#7288](https://togithub.com/remix-run/react-router/issues/7288) by [@patricksmms](https://togithub.com/patricksmms))
- Separate `history` to its own context ([#7103](https://togithub.com/remix-run/react-router/issues/7103) by [@illuminist](https://togithub.com/illuminist))
### [`v5.1.2`](https://togithub.com/remix-run/react-router/releases/tag/v5.1.2)
[Compare Source](https://togithub.com/remix-run/react-router/compare/v5.1.1...v5.1.2)
##### [List of commits](https://togithub.com/ReactTraining/react-router/compare/v5.1.1...v5.1.2)
##### Bugfixes
- Fix lingering `` error on React 15 ([#6954](https://togithub.com/remix-run/react-router/issues/6954))
### [`v5.1.1`](https://togithub.com/remix-run/react-router/releases/tag/v5.1.1)
[Compare Source](https://togithub.com/remix-run/react-router/compare/v5.1.0...v5.1.1)
##### [List of commits](https://togithub.com/ReactTraining/react-router/compare/v5.1.0...v5.1.1)
##### Bugfixes
- Fix issue with useParams reading from null object ([#6940](https://togithub.com/remix-run/react-router/issues/6940))
- Fix regression passing ref to functional components in React <= 16.2 ([#6934](https://togithub.com/remix-run/react-router/issues/6934))
- Fix regression passing empty string to matchPath ([#6941](https://togithub.com/remix-run/react-router/issues/6941))
### [`v5.1.0`](https://togithub.com/remix-run/react-router/releases/tag/v5.1.0)
[Compare Source](https://togithub.com/remix-run/react-router/compare/v5.0.1...v5.1.0)
##### [Read the blog post](https://reacttraining.com/blog/react-router-v5-1/)
##### [List of commits](https://togithub.com/ReactTraining/react-router/compare/v5.0.1...v5.1.0)
##### Features
- Add `useParams`, `useLocation`, `useHistory`, and `useRouteMatch` hooks ([`d6224d6`](https://togithub.com/remix-run/react-router/commit/d6224d6a))
- Add support for `forwardRef` in `` ([`b5528ed`](https://togithub.com/remix-run/react-router/commit/b5528ed6))
- Add support for functions in `` and `` ([#5331](https://togithub.com/remix-run/react-router/issues/5331), [#5368](https://togithub.com/remix-run/react-router/issues/5368))
- Add `` API ([#5437](https://togithub.com/remix-run/react-router/issues/5437))
##### Bugfixes
- Don't render `` elements when the `` does not match ([`9665659`](https://togithub.com/remix-run/react-router/commit/96656595))
### [`v5.0.1`](https://togithub.com/remix-run/react-router/releases/tag/v5.0.1)
[Compare Source](https://togithub.com/remix-run/react-router/compare/v5.0.0...v5.0.1)
##### [Changes](https://togithub.com/ReactTraining/react-router/compare/v5.0.0...v5.0.1)
##### Updates
- Reduced component depth in withRouter() HOC. ([`10d78bb`](https://togithub.com/remix-run/react-router/commit/10d78bb))
- Changed misleading warning when withRouter is used outside a Router ([`10d78bb`](https://togithub.com/remix-run/react-router/commit/10d78bb))
- Reduced install size and bundle size by switching to mini-create-react-context ([`992af48`](https://togithub.com/remix-run/react-router/commit/992af48))
##### Bugfixes
- Fixed display name for router context consumer and provider ([`6a99c93`](https://togithub.com/remix-run/react-router/commit/6a99c93))
- Fixed infinite loop caused by Redirect in some scenarios ([`017f692`](https://togithub.com/remix-run/react-router/commit/017f692) and [`2ce1d32`](https://togithub.com/remix-run/react-router/commit/2ce1d32))
- Fixed license issue for react context polyfill ([`f9849c8`](https://togithub.com/remix-run/react-router/commit/f9849c8), then [`992af48`](https://togithub.com/remix-run/react-router/commit/992af48))
- Fixed Redirect throwing an exception in StaticRouter without context ([`3ccbd19`](https://togithub.com/remix-run/react-router/commit/3ccbd19))
- Fixed regression in matchPath that caused an exception for empty paths ([`7bd1407`](https://togithub.com/remix-run/react-router/commit/7bd1407))
- Fixed page reload when an exception was thrown in Link onClick ([`82ce94c`](https://togithub.com/remix-run/react-router/commit/82ce94c))
- Fixed warning about createRef or useRef values in wrappedComponentRef when using withRouter() ([`56c829b`](https://togithub.com/remix-run/react-router/commit/56c829b))
- Fixed withRouter() wrapped component inside NavLink not working properly ([`a38ef04`](https://togithub.com/remix-run/react-router/commit/a38ef04))
- Fixed CJS build - previously, incorrect exports were emitted ([`caa9950`](https://togithub.com/remix-run/react-router/commit/caa9950))
Thanks to [@StringEpsilon](https://togithub.com/StringEpsilon) for [putting this list together](https://togithub.com/ReactTraining/react-router/issues/6739#issue-442975900). Enjoy!
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
[ ] If you want to rebase/retry this PR, check this box
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This PR contains the following updates:
5.0.0
->5.3.4
Release Notes
remix-run/react-router (react-router-dom)
### [`v5.3.4`](https://togithub.com/remix-run/react-router/releases/tag/v5.3.4) [Compare Source](https://togithub.com/remix-run/react-router/compare/v5.3.3...v5.3.4) We removed the `mini-create-react-context` dependency, moving it into an internal module to eliminate peer dependency warnings for users on React 18 ([#9382](https://togithub.com/remix-run/react-router/issues/9382)). **Full Changelog**: https://github.com/remix-run/react-router/compare/v5.3.3...v5.3.4 ### [`v5.3.3`](https://togithub.com/remix-run/react-router/releases/tag/v5.3.3) [Compare Source](https://togithub.com/remix-run/react-router/compare/v5.3.2...v5.3.3) This release fixes a bad version selector in react-router-native. ### [`v5.3.2`](https://togithub.com/remix-run/react-router/releases/tag/v5.3.2) [Compare Source](https://togithub.com/remix-run/react-router/compare/v5.3.1...v5.3.2) - Fix: make v5 Router compatible with v18 StrictMode by [@jgoz](https://togithub.com/jgoz) in [https://github.com/remix-run/react-router/pull/8831](https://togithub.com/remix-run/react-router/pull/8831) ### [`v5.3.1`](https://togithub.com/remix-run/react-router/releases/tag/v5.3.1) [Compare Source](https://togithub.com/remix-run/react-router/compare/v5.3.0...v5.3.1) This release adds missing `LICENSE` files to the published build. ### [`v5.3.0`](https://togithub.com/remix-run/react-router/releases/tag/v5.3.0) [Compare Source](https://togithub.com/remix-run/react-router/compare/v5.2.1...v5.3.0) This release of `react-router-dom` adds support for passing a function to either the `className` or `style` props to conditionally apply values based on the link's `active` state. This provides similar functionality as the existing `activeClassName` and `activeStyle` props, but is a bit more powerful. For example, you can now easily apply styles exclusively to an inactive `NavLink` as well. This offers a nicer experience for folks who use utility class-based CSS tools such as Tailwind. ```tsx function Comp() { return (Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.