This repository was archived by the owner on Oct 2, 2019. It is now read-only.
Depend to react-native as a peer#42
Open
jevakallio wants to merge 3 commits into
Open
Conversation
|
👍 |
Contributor
|
+1 |
|
+2 |
When using release candidate versions of the framework, incompatibilities should be allowed to occur to discovers issues so necessary changes can made before stable releases.
Author
|
I updated the pull request to consider all release candidates as valid versions, because even with the peerDependencies modification the @t4t5 if you'd be so kind, would you consider this pull request? Having to keep a personal fork up to date every two weeks in order to use this component is getting a bit cumbersome :) |
This reverts commit 868cdc8.
Author
|
Reverted the release candidate change, apparently in reality npm version checking does not work identically with the semver checker I used. Can't think of a great way to allowing the release candidates, but the above still stands for the stable versions. |
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
I'm proposing two changes to how
react-nativedependencies should be handled:Consider
react-nativea peer dependency.This library is a plugin, it does not make use of React native, it adds functionality to it. As such there will never be a project that uses
react-native-router, but does not already import React native.Defining
react-nativeas a dependency can cause issues when the relaxed semver requirement allows different versions of the framework do be installed by different plugins, and the dependent project itself. This just broke my build when upgrading toreact-native0.6.0, and prevented me from using 0.6.0-rc without forkingreact-native-router. See: facebook/react-native#1606 (comment)Consider
react-nativeto be always forwards compatible.Facebook has now moved to a two week release cycle, where they release a new minor version every two weeks and simultaneously release a release candidate of the next minor version.
While there may be breaking changes in the future, arbitrarily preventing users of
react-native-routerto upgrade is a bigger limitation.