Update dependency react-router to v5#30
Open
dev-mend-for-fd.fxlcf.dpdns.org[bot] wants to merge 1 commit intoalphafrom
Open
Update dependency react-router to v5#30dev-mend-for-fd.fxlcf.dpdns.org[bot] wants to merge 1 commit intoalphafrom
dev-mend-for-fd.fxlcf.dpdns.org[bot] wants to merge 1 commit intoalphafrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:
4.x→5.xBy merging this PR, the below vulnerabilities will be automatically resolved:
Release Notes
remix-run/react-router (react-router)
v5.0.0Compare 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-routerandreact-router-dom(react-router-nativefor 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.componentWillMountandcomponentWillReceiveProps<StrictMode/><Link />not working properly with target="_self" - #6138 (thanks @ericyang89)evalin development to be compliant with unsafe-eval CSP - #6611babel-preset-env