Skip to content
This repository has been archived by the owner on Feb 26, 2020. It is now read-only.

Bump react-router from 3.2.0 to 5.1.0 #541

Closed

Conversation

dependabot-preview[bot]
Copy link
Contributor

@dependabot-preview dependabot-preview bot commented Sep 24, 2019

Bumps react-router from 3.2.0 to 5.1.0.

Release notes

Sourced from react-router's releases.

v5.1.0

Changes

Features

  • Added useParams, useLocation, useHistory, and useRouteMatch hooks (d6224d6a)
  • Added support for forwardRef in <Link> (b5528ed6)

Bugfixes

  • Don't render <Route children> elements when the <Route> does not match (96656595)

v5.0.1

Changes

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)
  • Fixed withRouter() wrapped component inside NavLink not working properly (a38ef04)
  • Fixed CJS build - previously, incorrect exports were emitted (caa9950)

Thanks to @​StringEpsilon for putting this list together. 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 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 <Link> 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 <Route/> instead.
  • Due to the new context API, mixing of imports will now result in an exception:
// Be careful, this won't work anymore!
import BrowserRouter from 'react-router-dom/BrowserRouter';
import { Route } from 'react-router-dom';
</tr></table> ... (truncated)
Commits
  • 0c058ad v5.1.0
  • ce2fdc7 Update size snapshots
  • 01ac3d7 Update build step to use yarn instead of npm
  • 8f49b02 Remove docs on context.router
  • 51325d8 Update export style
  • 3debcd4 Add hooks to documentation website
  • 0721144 Update React to 16.8
  • 0f29d23 Update import/export style
  • 443126b Remove react-router-dom shim from website
  • c4a89e1 Use react-app ESLint config and fix a few issues
  • Additional commits viewable in compare view

Dependabot compatibility score

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.

If all status checks pass Dependabot will automatically merge this pull request.


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:

  • Update frequency (including time of day and day of week)
  • Pull request limits (per update run and/or open at any time)
  • Automerge options (never/patch/minor, and dev/runtime dependencies)
  • 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.

@dependabot-preview dependabot-preview bot added the dependencies Pull requests that update a dependency file label Sep 24, 2019
@dependabot-preview dependabot-preview bot force-pushed the dependabot/npm_and_yarn/react-router-5.1.0 branch 2 times, most recently from 9ae5959 to 21b571b Compare September 25, 2019 03:25
@dependabot-preview
Copy link
Contributor Author

One of your CI runs failed on this pull request, so Dependabot won't merge it.

Dependabot will still automatically merge this pull request if you amend it and your tests pass.

@dependabot-preview dependabot-preview bot force-pushed the dependabot/npm_and_yarn/react-router-5.1.0 branch from 21b571b to 53b84bc Compare September 25, 2019 08:11
@dependabot-preview dependabot-preview bot force-pushed the dependabot/npm_and_yarn/react-router-5.1.0 branch from 53b84bc to 23b8ae7 Compare September 25, 2019 11:08
@dependabot-preview
Copy link
Contributor Author

Superseded by #545.

@dependabot-preview dependabot-preview bot deleted the dependabot/npm_and_yarn/react-router-5.1.0 branch October 1, 2019 10:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants