LaunchPadLab / lp-components

Our Components
http://lp-components.herokuapp.com
MIT License
5 stars 1 forks source link

fix(deps): update dependency react-router to v6 - autoclosed #502

Closed renovate[bot] closed 2 years ago

renovate[bot] commented 2 years ago

WhiteSource Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
react-router ^3.2.1 -> ^6.0.0 age adoption passing confidence

Release Notes

remix-run/react-router ### [`v6.0.0`](https://togithub.com/remix-run/react-router/releases/v6.0.0) [Compare Source](https://togithub.com/remix-run/react-router/compare/v5.2.1...v6.0.0) React Router v6 is here! Please go read [our blog post for more information on all the great stuff in v6](https://remix.run/blog/react-router-v6) including [notes about how to upgrade from React Router v5](https://remix.run/blog/react-router-v6#upgrading-to-react-router-v6) and Reach Router. ### [`v5.2.1`](https://togithub.com/remix-run/react-router/releases/v5.2.1) [Compare Source](https://togithub.com/remix-run/react-router/compare/v5.2.0...v5.2.1) This release fixes a bug with `` so that, when the `to` location is the same as the current, the history state entry is replaced instead of pushed to the stack. See [https://github.com/remix-run/react-router/issues/5362](https://togithub.com/remix-run/react-router/issues/5362) for details. 🥳 Thanks to [@​guidobouman](https://togithub.com/guidobouman) for the PR and for everyone else who weighed in for the fix! ### [`v5.2.0`](https://togithub.com/remix-run/react-router/releases/v5.2.0) [Compare Source](https://togithub.com/remix-run/react-router/compare/v5.1.2...v5.2.0) This release includes a notable performance boost by separating the "Router" context from the "History" context internally. We also allow every element type for `Link`'s `component` prop and support a `sensitive` prop on NavLink for control over case sensitive matching. Enjoy! #### [Changes](https://togithub.com/ReactTraining/react-router/compare/v5.1.2...v5.2.0) - Add `sensitive` prop on NavLink ([#​7251](https://togithub.com/remix-run/react-router/issues/7251) by [@​caseywebdev](https://togithub.com/caseywebdev)) - Fix Link `component` prop type check ([#​7276](https://togithub.com/remix-run/react-router/issues/7276) by [@​ypyakymiv](https://togithub.com/ypyakymiv)) - Update `mini-create-react-context` ([#​7288](https://togithub.com/remix-run/react-router/issues/7288) by [@​patricksmms](https://togithub.com/patricksmms)) - Separate `history` to its own context ([#​7103](https://togithub.com/remix-run/react-router/issues/7103) by [@​illuminist](https://togithub.com/illuminist)) ### [`v5.1.2`](https://togithub.com/remix-run/react-router/releases/v5.1.2) [Compare Source](https://togithub.com/remix-run/react-router/compare/v5.1.1...v5.1.2) ##### [List of commits](https://togithub.com/ReactTraining/react-router/compare/v5.1.1...v5.1.2) ##### Bugfixes - Fix lingering `` error on React 15 ([#​6954](https://togithub.com/remix-run/react-router/issues/6954)) ### [`v5.1.1`](https://togithub.com/remix-run/react-router/releases/v5.1.1) [Compare Source](https://togithub.com/remix-run/react-router/compare/v5.1.0...v5.1.1) ##### [List of commits](https://togithub.com/ReactTraining/react-router/compare/v5.1.0...v5.1.1) ##### Bugfixes - Fix issue with useParams reading from null object ([#​6940](https://togithub.com/remix-run/react-router/issues/6940)) - Fix regression passing ref to functional components in React <= 16.2 ([#​6934](https://togithub.com/remix-run/react-router/issues/6934)) - Fix regression passing empty string to matchPath ([#​6941](https://togithub.com/remix-run/react-router/issues/6941)) ### [`v5.1.0`](https://togithub.com/remix-run/react-router/releases/v5.1.0) [Compare Source](https://togithub.com/remix-run/react-router/compare/v5.0.1...v5.1.0) ##### [Read the blog post](https://reacttraining.com/blog/react-router-v5-1/) ##### [List of commits](https://togithub.com/ReactTraining/react-router/compare/v5.0.1...v5.1.0) ##### Features - Add `useParams`, `useLocation`, `useHistory`, and `useRouteMatch` hooks ([`d6224d6`](https://togithub.com/remix-run/react-router/commit/d6224d6a)) - Add support for `forwardRef` in `` ([`b5528ed`](https://togithub.com/remix-run/react-router/commit/b5528ed6)) - Add support for functions in `` and `` ([#​5331](https://togithub.com/remix-run/react-router/issues/5331), [#​5368](https://togithub.com/remix-run/react-router/issues/5368)) - Add `` API ([#​5437](https://togithub.com/remix-run/react-router/issues/5437)) ##### Bugfixes - Don't render `` elements when the `` does not match ([`9665659`](https://togithub.com/remix-run/react-router/commit/96656595)) ### [`v5.0.1`](https://togithub.com/remix-run/react-router/releases/v5.0.1) [Compare Source](https://togithub.com/remix-run/react-router/compare/v5.0.0...v5.0.1) ##### [Changes](https://togithub.com/ReactTraining/react-router/compare/v5.0.0...v5.0.1) ##### Updates - Reduced component depth in withRouter() HOC. ([`10d78bb`](https://togithub.com/remix-run/react-router/commit/10d78bb)) - Changed misleading warning when withRouter is used outside a Router ([`10d78bb`](https://togithub.com/remix-run/react-router/commit/10d78bb)) - Reduced install size and bundle size by switching to mini-create-react-context ([`992af48`](https://togithub.com/remix-run/react-router/commit/992af48)) ##### Bugfixes - Fixed display name for router context consumer and provider ([`6a99c93`](https://togithub.com/remix-run/react-router/commit/6a99c93)) - Fixed infinite loop caused by Redirect in some scenarios ([`017f692`](https://togithub.com/remix-run/react-router/commit/017f692) and [`2ce1d32`](https://togithub.com/remix-run/react-router/commit/2ce1d32)) - Fixed license issue for react context polyfill ([`f9849c8`](https://togithub.com/remix-run/react-router/commit/f9849c8), then [`992af48`](https://togithub.com/remix-run/react-router/commit/992af48)) - Fixed Redirect throwing an exception in StaticRouter without context ([`3ccbd19`](https://togithub.com/remix-run/react-router/commit/3ccbd19)) - Fixed regression in matchPath that caused an exception for empty paths ([`7bd1407`](https://togithub.com/remix-run/react-router/commit/7bd1407)) - Fixed page reload when an exception was thrown in Link onClick ([`82ce94c`](https://togithub.com/remix-run/react-router/commit/82ce94c)) - Fixed warning about createRef or useRef values in wrappedComponentRef when using withRouter() ([`56c829b`](https://togithub.com/remix-run/react-router/commit/56c829b)) - Fixed withRouter() wrapped component inside NavLink not working properly ([`a38ef04`](https://togithub.com/remix-run/react-router/commit/a38ef04)) - Fixed CJS build - previously, incorrect exports were emitted ([`caa9950`](https://togithub.com/remix-run/react-router/commit/caa9950)) 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/remix-run/react-router/releases/v5.0.0) [Compare Source](https://togithub.com/remix-run/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/remix-run/react-router/commit/b2c6fa0)), i.E. combining CJS imports with ESM imports. #### New Features - `` now supports an array of paths - [#​5889](https://togithub.com/remix-run/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/remix-run/react-router/issues/6138) (thanks [@​ericyang89](https://togithub.com/ericyang89)) - Fixed prop-type warning when using forwardRef - [#​6417](https://togithub.com/remix-run/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/remix-run/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/remix-run/react-router/issues/6611) - Migrated to `babel-preset-env` - Improved testing infrastructure to improve developer workflow - Several docs improvements - [#​6410](https://togithub.com/remix-run/react-router/issues/6410) (thanks [@​justsml](https://togithub.com/justsml)) ### [`v4.3.1`](https://togithub.com/remix-run/react-router/releases/v4.3.1) [Compare Source](https://togithub.com/remix-run/react-router/compare/v4.3.0...v4.3.1) 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`](https://togithub.com/remix-run/react-router/releases/v4.3.0) [Compare Source](https://togithub.com/remix-run/react-router/compare/v4.2.0...v4.3.0) The major new things of this release are Redirect with params (see [#​5209](https://togithub.com/remix-run/react-router/issues/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](https://togithub.com/supasate)'s [connected-react-router](https://togithub.com/supasate/connected-react-router). #### [Changes](https://togithub.com/ReactTraining/react-router/compare/v4.2.0...v4.3.0) - Use the `pretty` option in generatePath ([#​6172](https://togithub.com/remix-run/react-router/issues/6172) by [@​sibelius](https://togithub.com/sibelius)) - aria-current has incorrect value "true" ([#​6118](https://togithub.com/remix-run/react-router/issues/6118) by [@​brandonrninefive](https://togithub.com/brandonrninefive)) - Redirect with parameters ([#​5209](https://togithub.com/remix-run/react-router/issues/5209) by [@​dlindenkreuz](https://togithub.com/dlindenkreuz)) - Fix with missing pathname: `` ([#​5489](https://togithub.com/remix-run/react-router/issues/5489) by [@​pshrmn](https://togithub.com/pshrmn)) - Escape NavLink path to allow special characters in path. ([#​5596](https://togithub.com/remix-run/react-router/issues/5596) by [@​esiegel](https://togithub.com/esiegel)) - Expose `generatePath` ([#​5661](https://togithub.com/remix-run/react-router/issues/5661) by [@​rybon](https://togithub.com/rybon)) - Use named import of history module. ([#​5589](https://togithub.com/remix-run/react-router/issues/5589) by [@​RoboBurned](https://togithub.com/RoboBurned)) - Hoist dependencies for smaller UMD builds ([#​5720](https://togithub.com/remix-run/react-router/issues/5720) by [@​pshrmn](https://togithub.com/pshrmn)) - Remove aria-current from navLink when inactive ([#​5508](https://togithub.com/remix-run/react-router/issues/5508) by [@​AlmeroSteyn](https://togithub.com/AlmeroSteyn)) - Add invariant for missing "to" property on `` ([#​5792](https://togithub.com/remix-run/react-router/issues/5792) by [@​selbekk](https://togithub.com/selbekk)) - Use Prettier on the code ([`e6f9017`](https://togithub.com/remix-run/react-router/commit/e6f9017) by [@​mjackson](https://togithub.com/mjackson)) - Fix pathless route's match when parent is null ([#​5964](https://togithub.com/remix-run/react-router/issues/5964) by [@​pshrmn](https://togithub.com/pshrmn)) - Use history.createLocation in `` ([#​5722](https://togithub.com/remix-run/react-router/issues/5722) by [@​pshrmn](https://togithub.com/pshrmn)) ### [`v4.2.0`](https://togithub.com/remix-run/react-router/releases/v4.2.0) > Aug 23, 2017 - Re-run Redirect on props update ([#​5162] by [@​alexilyaev](https://togithub.com/alexilyaev)) - Prevent remounts on routes with the same component in renderRoutes ([#​5430] by [@​artywhite](https://togithub.com/artywhite)) - Case sensitive routes ([#​5438] by [@​paustria](https://togithub.com/paustria)) - Use direct imports in platform packages ([#​5095] by [@​ruiaraujo](https://togithub.com/ruiaraujo)) - Add optional otherProps argument renderRoutes ([#​5137] by [@​jharris4](https://togithub.com/jharris4)) - Bump hoist-non-react-statics ([#​5347] by [@​roderickhsiao](https://togithub.com/roderickhsiao)) - 3x build speed improvements on CI ([ea1212a] by [@​timdorr](https://togithub.com/timdorr)) - Use Jest for testing ([172dc16] by [@​mjackson](https://togithub.com/mjackson)) - Explicit error using Route outside of Router ([#​4939] by [@​eXon](https://togithub.com/eXon)) - react-router-native Link improvements ([#​4816] by [@​benstepp](https://togithub.com/benstepp)) - aria-current on NavLink ([#​4708] by [@​JasonEtco](https://togithub.com/JasonEtco)) - Make AndroidBackButton a generic BackButton component ([#​5295] by [@​DonnieWest](https://togithub.com/DonnieWest)) - Access Link's underlying node via innerRef ([#​5294] by [@​danielberndt](https://togithub.com/danielberndt)) - Return null from react-router-native DeepLinking if children is undefined ([#​5278] by [@​seekshiva](https://togithub.com/seekshiva)) - Warn when using the history prop on a pre-configured Router ([#​5151] by [@​Aprillion](https://togithub.com/Aprillion)) - Fix memory leak in ConnectedRouter during server side rendering ([#​5203] by [@​klis87](https://togithub.com/klis87)) - Reorder NavLink activeClassName/className priority ([#​5109] by [@​carloluis](https://togithub.com/carloluis)) - Change react-native BackAndroid to BackHandler ([#​5093] by [@​SeanGroff](https://togithub.com/SeanGroff)) - Fix react-router-native StackRouter ([#​5071] by [@​kafein](https://togithub.com/kafein)) [ea1212a]: https://togithub.com/ReactTraining/react-router/commit/ea1212a [172dc16]: https://togithub.com/ReactTraining/react-router/commit/172dc16 [#​5162]: https://togithub.com/ReactTraining/react-router/pull/5162 [#​5430]: https://togithub.com/ReactTraining/react-router/pull/5430 [#​5438]: https://togithub.com/ReactTraining/react-router/pull/5438 [#​5095]: https://togithub.com/ReactTraining/react-router/pull/5095 [#​5137]: https://togithub.com/ReactTraining/react-router/pull/5137 [#​5347]: https://togithub.com/ReactTraining/react-router/pull/5347 [#​4939]: https://togithub.com/ReactTraining/react-router/pull/4939 [#​4816]: https://togithub.com/ReactTraining/react-router/pull/4816 [#​4708]: https://togithub.com/ReactTraining/react-router/pull/4708 [#​5295]: https://togithub.com/ReactTraining/react-router/pull/5295 [#​5294]: https://togithub.com/ReactTraining/react-router/pull/5294 [#​5278]: https://togithub.com/ReactTraining/react-router/pull/5278 [#​5151]: https://togithub.com/ReactTraining/react-router/pull/5151 [#​5203]: https://togithub.com/ReactTraining/react-router/pull/5203 [#​5109]: https://togithub.com/ReactTraining/react-router/pull/5109 [#​5093]: https://togithub.com/ReactTraining/react-router/pull/5093 [#​5071]: https://togithub.com/ReactTraining/react-router/pull/5071 ### [`v4.1.1`](https://togithub.com/remix-run/react-router/releases/v4.1.1) [Compare Source](https://togithub.com/remix-run/react-router/compare/v4.1.0...v4.1.1) > 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](https://togithub.com/facebook/react/issues/9398) and [the `prop-types` repo](https://togithub.com/reactjs/prop-types) for updates as we all work through this craziness. ### [`v4.1.0`](https://togithub.com/remix-run/react-router/releases/v4.1.0) [Compare Source](https://togithub.com/remix-run/react-router/compare/v4.0.0...v4.1.0) > 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`](https://togithub.com/remix-run/react-router/releases/v4.0.0) [Compare Source](https://togithub.com/remix-run/react-router/compare/v3.2.6...v4.0.0) > Mar 10, 2017 - Released! No code changes from 4.0.0-beta.8 ### [`v3.2.6`](https://togithub.com/remix-run/react-router/releases/v3.2.6) [Compare Source](https://togithub.com/remix-run/react-router/compare/v3.2.5...v3.2.6) - Upgrade hoist-non-react-statics/react-is to support newer React APIs ([#​7182](https://togithub.com/remix-run/react-router/issues/7182) by [@​henryqdineen](https://togithub.com/henryqdineen))

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 you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.



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