Release notes
*Sourced from [react-router's releases](https://github.com/ReactTraining/react-router/releases).*
> ## v5.1.2
> ### [List of commits](https://github.com/ReactTraining/react-router/compare/v5.1.1...v5.1.2)
>
> ### Bugfixes
>
> - Fix lingering `` error on React 15 ([#6954](https://github-redirect.dependabot.com/ReactTraining/react-router/issues/6954))
>
> ## v5.1.1
> ### [List of commits](https://github.com/ReactTraining/react-router/compare/v5.1.0...v5.1.1)
>
> ### Bugfixes
>
> - Fix issue with useParams reading from null object ([#6940](https://github-redirect.dependabot.com/ReactTraining/react-router/issues/6940))
> - Fix regression passing ref to functional components in React <= 16.2 ([#6934](https://github-redirect.dependabot.com/ReactTraining/react-router/issues/6934))
> - Fix regression passing empty string to matchPath ([#6941](https://github-redirect.dependabot.com/ReactTraining/react-router/issues/6941))
>
> ## v5.1.0
> ### [Read the blog post](https://reacttraining.com/blog/react-router-v5-1/)
>
> ### [List of commits](https://github.com/ReactTraining/react-router/compare/v5.0.1...v5.1.0)
>
> ### Features
>
> - Add `useParams`, `useLocation`, `useHistory`, and `useRouteMatch` hooks (d6224d6a)
> - Add support for `forwardRef` in `` (b5528ed6)
> - Add support for functions in `` and `` ([#5331](https://github-redirect.dependabot.com/ReactTraining/react-router/issues/5331), [#5368](https://github-redirect.dependabot.com/ReactTraining/react-router/issues/5368))
> - Add `` API ([#5437](https://github-redirect.dependabot.com/ReactTraining/react-router/issues/5437))
>
> ### Bugfixes
>
> - Don't render `` elements when the `` does not match (96656595)
>
> ## v5.0.1
> ### [Changes](https://github.com/ReactTraining/react-router/compare/v5.0.0...v5.0.1)
>
> ### Updates
>
> - Reduced component depth in withRouter() HOC. (10d78bb)
> - Changed misleading warning when withRouter is used outside a Router (10d78bb)
> - Reduced install size and bundle size by switching to mini-create-react-context (992af48)
>
> ### Bugfixes
>
> - Fixed display name for router context consumer and provider (6a99c93)
> - Fixed infinite loop caused by Redirect in some scenarios (017f692 and 2ce1d32)
> - Fixed license issue for react context polyfill (f9849c8, then 992af48)
> - Fixed Redirect throwing an exception in StaticRouter without context (3ccbd19)
> - Fixed regression in matchPath that caused an exception for empty paths (7bd1407)
> - Fixed page reload when an exception was thrown in Link onClick (82ce94c)
> - Fixed warning about createRef or useRef values in wrappedComponentRef when using withRouter() (56c829b)
> ... (truncated)
Commits
- [`f31bb27`](https://github.com/ReactTraining/react-router/commit/f31bb27aa61dd4cb1c3cd9aa78133f739e2e9bb9) v5.1.2
- [`7f63ffe`](https://github.com/ReactTraining/react-router/commit/7f63ffec5879339803efce13474a96bbca3eb6d3) Fix \ ref in React 15.6.2
- [`e4e44ae`](https://github.com/ReactTraining/react-router/commit/e4e44ae8d76496f406d5b3f722744ffa4db68376) Fix deploy script
- [`34667d8`](https://github.com/ReactTraining/react-router/commit/34667d88a51841db512837a435163d0e49432918) Create a support issue template
- [`9876cc7`](https://github.com/ReactTraining/react-router/commit/9876cc7a62aae7deddebc5f6dc1ec33460e47fc6) Move Issue template. Update test case link.
- [`bb9b4fd`](https://github.com/ReactTraining/react-router/commit/bb9b4fdc597dc29b7451723a5351b6cd16d5c1be) Fix typo: useMatch -> useRouteMatch ([#6948](https://github-redirect.dependabot.com/ReactTraining/react-router/issues/6948))
- [`fbb6358`](https://github.com/ReactTraining/react-router/commit/fbb6358dd7f47eedd55d0b63e0725ac335d28bde) v5.1.1
- [`7e09c7b`](https://github.com/ReactTraining/react-router/commit/7e09c7b6c898e19316403db7e2b277f6677833ea) Remove babel-plugin-size-snapshot
- [`6039477`](https://github.com/ReactTraining/react-router/commit/60394775680507d72bcc28a7a2e8d2426e186427) Revert "v5.1.1"
- [`0ae358b`](https://github.com/ReactTraining/react-router/commit/0ae358b0151617566d243811abf64e3fd29e3f2a) Don't specify "dev" dependencies for website
- Additional commits viewable in [compare view](https://github.com/ReactTraining/react-router/compare/v2.8.1...v5.1.2)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
- `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme
Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com):
- Update frequency (including time of day and day of week)
- Pull request limits (per update run and/or open at any time)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)
Finally, you can contact us by mentioning @dependabot.
Bumps react-router from 2.8.1 to 5.1.2.
Release notes
*Sourced from [react-router's releases](https://github.com/ReactTraining/react-router/releases).* > ## v5.1.2 > ### [List of commits](https://github.com/ReactTraining/react-router/compare/v5.1.1...v5.1.2) > > ### Bugfixes > > - Fix lingering `` error on React 15 ([#6954](https://github-redirect.dependabot.com/ReactTraining/react-router/issues/6954)) > > ## v5.1.1 > ### [List of commits](https://github.com/ReactTraining/react-router/compare/v5.1.0...v5.1.1) > > ### Bugfixes > > - Fix issue with useParams reading from null object ([#6940](https://github-redirect.dependabot.com/ReactTraining/react-router/issues/6940)) > - Fix regression passing ref to functional components in React <= 16.2 ([#6934](https://github-redirect.dependabot.com/ReactTraining/react-router/issues/6934)) > - Fix regression passing empty string to matchPath ([#6941](https://github-redirect.dependabot.com/ReactTraining/react-router/issues/6941)) > > ## v5.1.0 > ### [Read the blog post](https://reacttraining.com/blog/react-router-v5-1/) > > ### [List of commits](https://github.com/ReactTraining/react-router/compare/v5.0.1...v5.1.0) > > ### Features > > - Add `useParams`, `useLocation`, `useHistory`, and `useRouteMatch` hooks (d6224d6a) > - Add support for `forwardRef` in `` (b5528ed6) > - Add support for functions in `` and `Commits
- [`f31bb27`](https://github.com/ReactTraining/react-router/commit/f31bb27aa61dd4cb1c3cd9aa78133f739e2e9bb9) v5.1.2 - [`7f63ffe`](https://github.com/ReactTraining/react-router/commit/7f63ffec5879339803efce13474a96bbca3eb6d3) Fix \ ref in React 15.6.2 - [`e4e44ae`](https://github.com/ReactTraining/react-router/commit/e4e44ae8d76496f406d5b3f722744ffa4db68376) Fix deploy script - [`34667d8`](https://github.com/ReactTraining/react-router/commit/34667d88a51841db512837a435163d0e49432918) Create a support issue template - [`9876cc7`](https://github.com/ReactTraining/react-router/commit/9876cc7a62aae7deddebc5f6dc1ec33460e47fc6) Move Issue template. Update test case link. - [`bb9b4fd`](https://github.com/ReactTraining/react-router/commit/bb9b4fdc597dc29b7451723a5351b6cd16d5c1be) Fix typo: useMatch -> useRouteMatch ([#6948](https://github-redirect.dependabot.com/ReactTraining/react-router/issues/6948)) - [`fbb6358`](https://github.com/ReactTraining/react-router/commit/fbb6358dd7f47eedd55d0b63e0725ac335d28bde) v5.1.1 - [`7e09c7b`](https://github.com/ReactTraining/react-router/commit/7e09c7b6c898e19316403db7e2b277f6677833ea) Remove babel-plugin-size-snapshot - [`6039477`](https://github.com/ReactTraining/react-router/commit/60394775680507d72bcc28a7a2e8d2426e186427) Revert "v5.1.1" - [`0ae358b`](https://github.com/ReactTraining/react-router/commit/0ae358b0151617566d243811abf64e3fd29e3f2a) Don't specify "dev" dependencies for website - Additional commits viewable in [compare view](https://github.com/ReactTraining/react-router/compare/v2.8.1...v5.1.2)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language - `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com): - Update frequency (including time of day and day of week) - Pull request limits (per update run and/or open at any time) - Out-of-range updates (receive only lockfile updates, if desired) - Security updates (receive only security updates, if desired) Finally, you can contact us by mentioning @dependabot.