fix(deps): update dependency react-router to v5 #9
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^3.0.2
->^5.0.0
Release Notes
ReactTraining/react-router
v5.1.2
Compare Source
List of commits
Bugfixes
<Link ref>
error on React 15 (#6954)v5.1.1
Compare Source
List of commits
Bugfixes
v5.1.0
Compare Source
Read the blog post
List of commits
Features
useParams
,useLocation
,useHistory
, anduseRouteMatch
hooks (d6224d6
)forwardRef
in<Link>
(b5528ed
)<Link to>
and<NavLink to>
(#5331, #5368)<Link component>
API (#5437)Bugfixes
<Route children>
elements when the<Route>
does not match (9665659
)v5.0.1
Compare Source
Changes
Updates
10d78bb
)10d78bb
)992af48
)Bugfixes
6a99c93
)017f692
and2ce1d32
)f9849c8
, then992af48
)3ccbd19
)7bd1407
)82ce94c
)56c829b
)a38ef04
)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.
Please ensure you have upgraded both
react-router
andreact-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 otherreact-router-dom
-specific components. You can ensure you have the correct versions of both packages in your app usingnpm ls react-router react-router-dom
.Breaking Changes
withRouter()
or a<Route/>
instead.Refactor as follows:
b2c6fa0
), i.E. combining CJS imports with ESM imports.New Features
<Route />
now supports an array of paths - #5889 (thanks @baronswindle)Full Changelog
<Route />
now supports multiple child nodes when using react >= 16.0.componentWillMount
andcomponentWillReceiveProps
<StrictMode/>
<Link />
not working properly with target="_self" - #6138 (thanks @ericyang89)eval
in development to be compliant with unsafe-eval CSP - #6611babel-preset-env
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
pretty
option in generatePath (#6172 by @sibelius)<Link to="?foo=bar">
(#5489 by @pshrmn)generatePath
(#5661 by @rybon)<Link>
(#5792 by @selbekk)e6f9017
by @mjackson)<StaticRouter>
(#5722 by @pshrmn)v4.2.0
v4.1.1
Compare Source
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
wrappedComponent
to the component returned bywithRouter
wrappedComponentRef
prop to the component returned bywithRouter
withRouter
v4.0.0
Compare Source
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 tick the rebase/retry checkbox below.
🔕 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.