This repository has been archived by the owner on Mar 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 41
removed react peer dependency, upgraded to new react and helpers version #25
Closed
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,9 +28,6 @@ | |
"email": "[email protected]" | ||
}, | ||
"main": "dist/react-json-editor.js", | ||
"peerDependencies": { | ||
"react": ">=0.12.2 <1.0.0" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/ismaelga/react-json-editor.git" | ||
|
@@ -48,10 +45,10 @@ | |
"jsx-loader": "^0.12.2", | ||
"marked": "^0.3.3", | ||
"purecss": "^0.5.0", | ||
"react": "^0.14.6", | ||
"react-addons-test-utils": "^0.14.6", | ||
"react-addons-update": "^0.14.6", | ||
"react-dom": "^0.14.6", | ||
"react": "^15.0.2", | ||
"react-addons-test-utils": "^15.0.2", | ||
"react-addons-update": "^15.0.2", | ||
"react-dom": "^15.0.2", | ||
"react-ghfork": "^0.3.0", | ||
"react-hot-loader": "^1.1.6", | ||
"style-loader": "^0.8.3", | ||
|
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should go with
"react": "^0.14.0 || ^15.0.0"
instead of removing it completely.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ismaelga ok, can I ask why we need a peer dependency? Is it due to lumc-nested/nested-editor#54?
Do we use lumc-nested/nested-editor?
Overall I love this project by the way. Very comprehensive.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@newbreedofgeek Projects using react-json-editor will already have their own React and this module will need to support that version rather than use its own. Hence it's a peer dependency.
Also it avoids having multiple versions of the same module being bundled in the same project.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jahed Ack on the peer dependency. Whats the status of this? I'm from the https://github.com/lumc-nested/nested-editor team as referenced above and we would like to move to React 15.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@marksantcroos I ended up dropping my dependency on this project. Though, last I checked, the change @ismaelga suggested worked fine, so you can probably fork the repo, make the change and use the fork. Or submit a PR and hope this repo is still being maintained.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jahed Thanks for your reply. I will indeed do what you and @ismaelga suggested and create a new PR. For my interest, what did you end up replacing it with?
@ismaelga Are you yourself still dependent on this project?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi guys! I haven't given the proper attention to this repo since I don't use it anymore and also because there is a great alternative now https://github.com/mozilla-services/react-jsonschema-form
That said. I will try to give attention to the open issues some day soon. And make sure it works with latest React version