Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update dependency react-router to v5 #701

Closed
wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Dec 27, 2018

This PR contains the following updates:

Package Type Update Change
react-router dependencies major 3.2.4 -> 5.1.2

Release Notes

ReactTraining/react-router

v5.1.2

Compare Source

List of commits
Bugfixes
  • Fix lingering <Link ref> error on React 15 (#​6954)

v5.1.1

Compare Source

List of commits
Bugfixes
  • Fix issue with useParams reading from null object (#​6940)
  • Fix regression passing ref to functional components in React <= 16.2 (#​6934)
  • Fix regression passing empty string to matchPath (#​6941)

v5.1.0

Compare Source

Read the blog post
List of commits
Features
  • Add useParams, useLocation, useHistory, and useRouteMatch hooks (d6224d6)
  • Add support for forwardRef in <Link> (b5528ed)
  • Add support for functions in <Link to> and <NavLink to> (#​5331, #​5368)
  • Add <Link component> API (#​5437)
Bugfixes
  • Don't render <Route children> elements when the <Route> does not match (9665659)

v5.0.1

Compare Source

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

Compare Source

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';

<BrowserRouter>
  <Route />
</BrowserRouter>

Refactor as follows:

// These are both from the same build and use the same context object
// so there won't be a mismatch :)
import { BrowserRouter, Route } from 'react-router-dom';
  • In development mode, we now throw an error when using 2 different builds (see b2c6fa0), i.E. combining CJS imports with ESM imports.

New Features

<Route path={["/BigApple", "/NYC", "NewYork"]} component={NewYork} />

Full Changelog

  • <Route /> now supports multiple child nodes when using react >= 16.0.
  • Migrated to new react context API, with a polyfill for react versions < 16.2
  • Removed deprecated lifecycle methods componentWillMount and componentWillReceiveProps
  • Introduced more warnings in development builds
  • Changed build-process to rollup:
    • Smaller build size
    • Package now includes pre-minified files
    • Package now consists of single-file builds that include all modules.
  • Upgraded to history 4.9.0
  • Per file imports are deprecated and will be removed in a future major version. For now, a warning will be logged.
  • Made sure that react router conforms to react <StrictMode/>
  • Fixed <Link /> not working properly with target="_self" - #​6138 (thanks @​ericyang89)
  • Fixed prop-type warning when using forwardRef - #​6417 (thanks @​frehner and @​eXon)
  • Added support for createRef in - #​6567 (thanks @​gcangussu)
  • Removed use of eval in development to be compliant with unsafe-eval CSP - #​6611
  • Migrated to babel-preset-env
  • Improved testing infrastructure to improve developer workflow
  • Several docs improvements - #​6410 (thanks @​justsml)

v4.3.1

Compare Source

Just a patch to fix an accidental move of warning from a normal dependency to a devDependency, which was causing issues with installation.

v4.3.0

Compare Source

The major new things of this release are Redirect with params (see #​5209) and the new generatePath API. We also cleaned up the code with Prettier, so browsing through it should be more enjoyable.

One other thing to mention, while I have your attention, is the deprecation of react-router-redux. It's no longer maintained and has a number of fundamental problems (particularly around time travel). Integrating Redux and the DOM History API is challenging because they don't maintain the same semantics and the resulting integration is error prone. Getting to the router context will be easier in future versions of React Router, so the main motivations for needing it will be going away. So, while I would advise against trying to integrate the two, for those that still want this functionality can turn to libraries like @​supasate's connected-react-router.

Changes

v4.2.0

Aug 23, 2017

v4.1.1

Compare Source

Apr 12, 2017

  • Fixes for the various PropTypes related issues.

Note: This work is still ongoing, as the React team still has some outstanding issues to figure out themselves. Keep an eye on this issue and the prop-types repo for updates as we all work through this craziness.

v4.1.0

Compare Source

Apr 11, 2017

  • Add wrappedComponent to the component returned by withRouter
  • Add wrappedComponentRef prop to the component returned by withRouter
  • Add non-react static methods and properties of the wrapped component to the component returned by withRouter

v4.0.0

Compare Source

Mar 10, 2017

  • Released! No code changes from 4.0.0-beta.8

Renovate configuration

📅 Schedule: At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻️ Rebasing: Whenever PR becomes conflicted, or if you modify the PR title to begin with "rebase!".

🔕 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

Available now for Enterprise: Renovate Pro with real-time webhook handling and priority job queue.

@renovate renovate bot force-pushed the renovate/major-reactrouter-monorepo branch from dc3c96b to e9637b9 Compare February 27, 2019 23:48
@renovate renovate bot force-pushed the renovate/major-reactrouter-monorepo branch from e9637b9 to fa0a8b2 Compare March 16, 2019 01:15
@renovate renovate bot changed the title fix(deps): update dependency react-router to v4 fix(deps): update dependency react-router to v5 Mar 18, 2019
@renovate renovate bot force-pushed the renovate/major-reactrouter-monorepo branch 3 times, most recently from 38bacf1 to 15cb109 Compare March 22, 2019 22:00
@renovate renovate bot force-pushed the renovate/major-reactrouter-monorepo branch from 15cb109 to 063ef4e Compare March 29, 2019 21:07
@renovate renovate bot force-pushed the renovate/major-reactrouter-monorepo branch 2 times, most recently from 8bdedf3 to 2d7e81b Compare May 9, 2019 20:42
@renovate renovate bot force-pushed the renovate/major-reactrouter-monorepo branch from 2d7e81b to 11b01b2 Compare May 10, 2019 20:31
@renovate
Copy link
Contributor Author

renovate bot commented May 24, 2019

PR has been edited

👷 This PR has received other commits, so Renovate will stop updating it to avoid conflicts or other problems. If you wish to abandon your changes and have Renovate start over you may click the "rebase" checkbox in the PR body/description.

@renovate renovate bot force-pushed the renovate/major-reactrouter-monorepo branch 3 times, most recently from 7c246de to 53f009d Compare June 8, 2019 07:00
@renovate renovate bot force-pushed the renovate/major-reactrouter-monorepo branch 2 times, most recently from 0a14142 to 7865a4c Compare June 29, 2019 20:06
@kosssi kosssi removed their request for review July 10, 2019 14:06
@renovate renovate bot force-pushed the renovate/major-reactrouter-monorepo branch from 7865a4c to 48fdbbd Compare July 16, 2019 20:49
@renovate renovate bot changed the title fix(deps): update dependency react-router to v5 Update dependency react-router to v5 Jul 17, 2019
@renovate renovate bot changed the title Update dependency react-router to v5 fix(deps): update dependency react-router to v5 Jul 18, 2019
@renovate renovate bot force-pushed the renovate/major-reactrouter-monorepo branch 2 times, most recently from 39a6764 to e6a920d Compare August 21, 2019 21:52
@renovate renovate bot force-pushed the renovate/major-reactrouter-monorepo branch 3 times, most recently from 6ede876 to 0932170 Compare September 2, 2019 21:35
@renovate renovate bot force-pushed the renovate/major-reactrouter-monorepo branch from 0932170 to a16f851 Compare September 5, 2019 20:49
@renovate renovate bot force-pushed the renovate/major-reactrouter-monorepo branch from a16f851 to d4787bf Compare September 24, 2019 20:49
@ptbrowne ptbrowne force-pushed the renovate/major-reactrouter-monorepo branch from d4787bf to 3bcdc70 Compare September 26, 2019 14:15
@renovate renovate bot force-pushed the renovate/major-reactrouter-monorepo branch from 3bcdc70 to 63c9025 Compare September 27, 2019 23:16
@renovate renovate bot force-pushed the renovate/major-reactrouter-monorepo branch from 63c9025 to 1bdd6fc Compare September 30, 2019 23:28
@ptbrowne ptbrowne force-pushed the master branch 3 times, most recently from bf49acb to 47f8e48 Compare June 2, 2020 20:43
@renovate renovate bot requested a review from Crash-- as a code owner September 9, 2020 06:56
@renovate renovate bot requested a review from a team as a code owner December 3, 2020 14:04
@flohhhh flohhhh closed this Nov 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants