Release notes
*Sourced from [react-router's releases](https://github.com/ReactTraining/react-router/releases).*
> ## v5.0.1
>
> ## [Changes](https://github.com/ReactTraining/react-router/compare/v5.0.0...v5.0.1)
>
> ### 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)
> - Fixed withRouter() wrapped component inside NavLink not working properly (a38ef04)
> - Fixed CJS build - previously, incorrect exports were emitted (caa9950)
>
> ### Changes:
>
> - 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)
>
> Thanks to [@StringEpsilon](https://github.com/StringEpsilon) for [putting this list together](https://github-redirect.dependabot.com/ReactTraining/react-router/issues/6739#issue-442975900). Enjoy!
>
> ## v5.0.0
> #### Note: While this does have a major version bump, it is actually a minor release. We screwed up some of the dependency version selection in 4.3.1, which necessitated a major bump. See [this blog post](https://reacttraining.com/blog/react-router-v5/) for details.
>
> ### ⚠️ Upgrade Warning ⚠️
> Please ensure you have upgraded both `react-router` and `react-router-dom` (`react-router-native` for RN users) to the _exact same_ version. If different versions of those two packages are in your application, you will get errors when using `` and other `react-router-dom`-specific components. You can ensure you have the correct versions of both packages in your app using `npm ls react-router react-router-dom`.
>
> ## Breaking Changes
>
> * Since the old context API is no longer used, any access to the old context will fail. Use of the react router context is not supported, please use `withRouter()` or a `` instead.
> * Due to the new context API, mixing of imports will now result in an exception:
>
> ```jsx
> // Be careful, this won't work anymore!
> import BrowserRouter from 'react-router-dom/BrowserRouter';
> import { Route } from 'react-router-dom';
>
>
>
>
> ```
>
> Refactor as follows:
>
> ```js
> // These are both from the same build and use the same context object
> // so there won't be a mismatch :)
> ... (truncated)
Commits
- [`0c9a10d`](https://github.com/ReactTraining/react-router/commit/0c9a10d9807b879912f2dff2fbebffe0aa7048ed) v5.0.1
- [`b0bb959`](https://github.com/ReactTraining/react-router/commit/b0bb9590dcccd5c455770d75b3559431fdfd67ed) Update package locks
- [`8ed894f`](https://github.com/ReactTraining/react-router/commit/8ed894fbce683a23ab109dd633322958897fdcf5) add hooks option to scroll restoration docs ([#6762](https://github-redirect.dependabot.com/ReactTraining/react-router/issues/6762))
- [`0f5d701`](https://github.com/ReactTraining/react-router/commit/0f5d701648568cf95bef66c9be0798c15eef6d50) Small code change in matchPath.md ([#6761](https://github-redirect.dependabot.com/ReactTraining/react-router/issues/6761))
- [`caa9950`](https://github.com/ReactTraining/react-router/commit/caa9950c752386ab1b4db71e322b452d2f72dfca) esModule: false fix read only TypeError in expors ([#6758](https://github-redirect.dependabot.com/ReactTraining/react-router/issues/6758))
- [`bd436ce`](https://github.com/ReactTraining/react-router/commit/bd436ce9aa09213c86ff2554e5b3d9bd512150cc) Merge branch 'website'
- [`a38ef04`](https://github.com/ReactTraining/react-router/commit/a38ef042697ccc1c70bcdaf07d05ad994a31594d) Don't override path in NavLink component. Fixes [#6613](https://github-redirect.dependabot.com/ReactTraining/react-router/issues/6613) ([#6623](https://github-redirect.dependabot.com/ReactTraining/react-router/issues/6623))
- [`97f0eee`](https://github.com/ReactTraining/react-router/commit/97f0eee29509463f9166de9455b2fc8dcdc0b1c0) Removing "update blocking" content ([#6652](https://github-redirect.dependabot.com/ReactTraining/react-router/issues/6652))
- [`56c829b`](https://github.com/ReactTraining/react-router/commit/56c829bfad227ac8c096610e089871d231bf89ea) fix(react-router): Allow string and object refs in withRouter ([#6680](https://github-redirect.dependabot.com/ReactTraining/react-router/issues/6680))
- [`aeccaeb`](https://github.com/ReactTraining/react-router/commit/aeccaebad0fe4de66e96867a2aef3e82774a26fa) Updated some devDependencies to fix audit warnings ([#6741](https://github-redirect.dependabot.com/ReactTraining/react-router/issues/6741))
- Additional commits viewable in [compare view](https://github.com/ReactTraining/react-router/compare/v2.8.1...v5.0.1)
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.0.1.
Release notes
*Sourced from [react-router's releases](https://github.com/ReactTraining/react-router/releases).* > ## v5.0.1 > > ## [Changes](https://github.com/ReactTraining/react-router/compare/v5.0.0...v5.0.1) > > ### 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) > - Fixed withRouter() wrapped component inside NavLink not working properly (a38ef04) > - Fixed CJS build - previously, incorrect exports were emitted (caa9950) > > ### Changes: > > - 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) > > Thanks to [@StringEpsilon](https://github.com/StringEpsilon) for [putting this list together](https://github-redirect.dependabot.com/ReactTraining/react-router/issues/6739#issue-442975900). Enjoy! > > ## v5.0.0 > #### Note: While this does have a major version bump, it is actually a minor release. We screwed up some of the dependency version selection in 4.3.1, which necessitated a major bump. See [this blog post](https://reacttraining.com/blog/react-router-v5/) for details. > > ### ⚠️ Upgrade Warning ⚠️ > Please ensure you have upgraded both `react-router` and `react-router-dom` (`react-router-native` for RN users) to the _exact same_ version. If different versions of those two packages are in your application, you will get errors when using `` and other `react-router-dom`-specific components. You can ensure you have the correct versions of both packages in your app using `npm ls react-router react-router-dom`. > > ## Breaking Changes > > * Since the old context API is no longer used, any access to the old context will fail. Use of the react router context is not supported, please use `withRouter()` or a `Commits
- [`0c9a10d`](https://github.com/ReactTraining/react-router/commit/0c9a10d9807b879912f2dff2fbebffe0aa7048ed) v5.0.1 - [`b0bb959`](https://github.com/ReactTraining/react-router/commit/b0bb9590dcccd5c455770d75b3559431fdfd67ed) Update package locks - [`8ed894f`](https://github.com/ReactTraining/react-router/commit/8ed894fbce683a23ab109dd633322958897fdcf5) add hooks option to scroll restoration docs ([#6762](https://github-redirect.dependabot.com/ReactTraining/react-router/issues/6762)) - [`0f5d701`](https://github.com/ReactTraining/react-router/commit/0f5d701648568cf95bef66c9be0798c15eef6d50) Small code change in matchPath.md ([#6761](https://github-redirect.dependabot.com/ReactTraining/react-router/issues/6761)) - [`caa9950`](https://github.com/ReactTraining/react-router/commit/caa9950c752386ab1b4db71e322b452d2f72dfca) esModule: false fix read only TypeError in expors ([#6758](https://github-redirect.dependabot.com/ReactTraining/react-router/issues/6758)) - [`bd436ce`](https://github.com/ReactTraining/react-router/commit/bd436ce9aa09213c86ff2554e5b3d9bd512150cc) Merge branch 'website' - [`a38ef04`](https://github.com/ReactTraining/react-router/commit/a38ef042697ccc1c70bcdaf07d05ad994a31594d) Don't override path in NavLink component. Fixes [#6613](https://github-redirect.dependabot.com/ReactTraining/react-router/issues/6613) ([#6623](https://github-redirect.dependabot.com/ReactTraining/react-router/issues/6623)) - [`97f0eee`](https://github.com/ReactTraining/react-router/commit/97f0eee29509463f9166de9455b2fc8dcdc0b1c0) Removing "update blocking" content ([#6652](https://github-redirect.dependabot.com/ReactTraining/react-router/issues/6652)) - [`56c829b`](https://github.com/ReactTraining/react-router/commit/56c829bfad227ac8c096610e089871d231bf89ea) fix(react-router): Allow string and object refs in withRouter ([#6680](https://github-redirect.dependabot.com/ReactTraining/react-router/issues/6680)) - [`aeccaeb`](https://github.com/ReactTraining/react-router/commit/aeccaebad0fe4de66e96867a2aef3e82774a26fa) Updated some devDependencies to fix audit warnings ([#6741](https://github-redirect.dependabot.com/ReactTraining/react-router/issues/6741)) - Additional commits viewable in [compare view](https://github.com/ReactTraining/react-router/compare/v2.8.1...v5.0.1)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.