Luchanso / new-year-chain

Blockchain for your new year resolution
1 stars 0 forks source link

fix(deps): update reactrouter monorepo to v5 (major) #36

Open renovate[bot] opened 5 years ago

renovate[bot] commented 5 years ago

This PR contains the following updates:

Package Type Update Change
react-router dependencies major 4.3.1 -> 5.0.1
react-router-dom dependencies major 4.3.1 -> 5.0.1

Release Notes

ReactTraining/react-router ### [`v5.0.1`](https://togithub.com/ReactTraining/react-router/releases/v5.0.1) [Compare Source](https://togithub.com/ReactTraining/react-router/compare/v5.0.0...v5.0.1) #### [Changes](https://togithub.com/ReactTraining/react-router/compare/v5.0.0...v5.0.1) ##### Bugfixes: - Fixed display name for router context consumer and provider ([`6a99c93`](https://togithub.com/ReactTraining/react-router/commit/6a99c93)) - Fixed infinite loop caused by Redirect in some scenarios ([`017f692`](https://togithub.com/ReactTraining/react-router/commit/017f692) and [`2ce1d32`](https://togithub.com/ReactTraining/react-router/commit/2ce1d32)) - Fixed license issue for react context polyfill ([`f9849c8`](https://togithub.com/ReactTraining/react-router/commit/f9849c8), then [`992af48`](https://togithub.com/ReactTraining/react-router/commit/992af48)) - Fixed Redirect throwing an exception in StaticRouter without context ([`3ccbd19`](https://togithub.com/ReactTraining/react-router/commit/3ccbd19)) - Fixed regression in matchPath that caused an exception for empty paths ([`7bd1407`](https://togithub.com/ReactTraining/react-router/commit/7bd1407)) - Fixed page reload when an exception was thrown in Link onClick ([`82ce94c`](https://togithub.com/ReactTraining/react-router/commit/82ce94c)) - Fixed warning about createRef or useRef values in wrappedComponentRef when using withRouter() ([`56c829b`](https://togithub.com/ReactTraining/react-router/commit/56c829b)) - Fixed withRouter() wrapped component inside NavLink not working properly ([`a38ef04`](https://togithub.com/ReactTraining/react-router/commit/a38ef04)) - Fixed CJS build - previously, incorrect exports were emitted ([`caa9950`](https://togithub.com/ReactTraining/react-router/commit/caa9950)) ##### Changes: - Reduced component depth in withRouter() HOC. ([`10d78bb`](https://togithub.com/ReactTraining/react-router/commit/10d78bb)) - Changed misleading warning when withRouter is used outside a Router ([`10d78bb`](https://togithub.com/ReactTraining/react-router/commit/10d78bb)) - Reduced install size and bundle size by switching to mini-create-react-context ([`992af48`](https://togithub.com/ReactTraining/react-router/commit/992af48)) Thanks to [@​StringEpsilon](https://togithub.com/StringEpsilon) for [putting this list together](https://togithub.com/ReactTraining/react-router/issues/6739#issue-442975900). Enjoy! ### [`v5.0.0`](https://togithub.com/ReactTraining/react-router/releases/v5.0.0) [Compare Source](https://togithub.com/ReactTraining/react-router/compare/v4.3.1...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 :) import { BrowserRouter, Route } from 'react-router-dom'; ``` - In development mode, we now throw an error when using 2 different builds (see [`b2c6fa0`](https://togithub.com/ReactTraining/react-router/commit/b2c6fa0)), i.E. combining CJS imports with ESM imports. #### New Features - `` now supports an array of paths - [#​5889](https://togithub.com/ReactTraining/react-router/issues/5889) (thanks [@​baronswindle](https://togithub.com/baronswindle)) ```jsx ``` #### [Full Changelog](https://togithub.com/ReactTraining/react-router/compare/v4.3.1...v5.0.0) - `` 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 `` - Fixed `` not working properly with target="\_self" - [#​6138](https://togithub.com/ReactTraining/react-router/issues/6138) (thanks [@​ericyang89](https://togithub.com/ericyang89)) - Fixed prop-type warning when using forwardRef - [#​6417](https://togithub.com/ReactTraining/react-router/issues/6417) (thanks [@​frehner](https://togithub.com/frehner) and [@​eXon](https://togithub.com/eXon)) - Added support for createRef in - [#​6567](https://togithub.com/ReactTraining/react-router/issues/6567) (thanks [@​gcangussu](https://togithub.com/gcangussu)) - Removed use of `eval` in development to be compliant with unsafe-eval CSP - [#​6611](https://togithub.com/ReactTraining/react-router/issues/6611) - Migrated to `babel-preset-env` - Improved testing infrastructure to improve developer workflow - Several docs improvements - [#​6410](https://togithub.com/ReactTraining/react-router/issues/6410) (thanks [@​justsml](https://togithub.com/justsml))

Renovate configuration

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

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

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

:no_bell: Ignore: Close this PR and you won't be reminded about these updates again.



This PR has been generated by Renovate Bot. View repository job log here.