-
-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update react/react-dom to 16.13.0 and docgen to 5.3.0 [ref dash#1531] #117
Conversation
@AnnMarieW Thank you for opening the PR, the updated docstring looks much better! And thank you for the thorough and well-written PR description. @alexcjohnson @Marc-Andre-Rivet I noticed that the dash version in |
@xhlulu I'm glad you like it! I forgot to mention that I also used the latest version of dash to rebuild and run the tests. The main issue I ran into was that docgen 2.21.0 didn't recognized PropTypes.exact so it needed to be upgraded. I just bumped it to a version being used in dash-table |
hah yes, 0.39 is stretching the definition of "fairly" outdated at this point. But what is |
@alexcjohnson Thanks for mentioning this. I've also created a project to track everything relating to tests, as well as opened an issue to track the refactoring of tests. |
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've added the build here in this test branch: https://github.com/plotly/dash-cytoscape/tree/update-docgen
I don't really have anything to say if the tests pass. @alexcjohnson is there anything else before 💃 ?
This looks great to me. @AnnMarieW let's get https://github.com/plotly/dash-docs/pull/1063 merged (WITHOUT any updates to the component packages) before we merge any of the updates to the component packages themselves. |
Sounds good. And plotly/dash#1531 will also need to be merged before updating the component packages? |
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.
@AnnMarieW Sorry for getting back to you so late, I didn't realize dash#1531 was merged! I suggested a few changes and I'll merge it once I figure out what's wrong with the percy tests!
@@ -40,9 +40,9 @@ | |||
"cytoscape-svg": "0.2.0", | |||
"lodash": "^4.17.11", | |||
"ramda": "^0.25.0", | |||
"react": "15.4.2", | |||
"react": "^16.13.1", |
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 wonder if it's better to fix it to 16.13.0 since that's what's done on plotly/dash-core-components
. Not sure if it might break dash if react/react-dom are upgraded beyond that.
"react": "^16.13.1", | |
"react": "16.13.0", |
"react-cytoscapejs": "1.2.1", | ||
"react-dom": "15.4.2" | ||
"react-dom": "^16.13.1" |
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.
Same as above
"react-dom": "^16.13.1" | |
"react-dom": "16.13.0" |
@@ -57,7 +57,7 @@ | |||
"eslint-plugin-import": "^2.12.0", | |||
"eslint-plugin-react": "^7.9.1", | |||
"npm": "^6.14.4", | |||
"react-docgen": "^2.21.0", | |||
"react-docgen": "^5.3.0", |
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.
Wonder if a ~
would be better than ^
here (I just learned the differences here)
Co-authored-by: Xing Han Lu <xhlu+github@pm.me>
Co-authored-by: Xing Han Lu <xhlu+github@pm.me>
Co-authored-by: Xing Han Lu <xhlu+github@pm.me>
@xhlulu Thanks for the suggested changes. I approved the changes from |
@AnnMarieW Thank you! @alexcjohnson I'm happy to merge it as is and I can figure out the right package.json dependencies and building in another PR |
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.
💃
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.
💃
Many warnings are caused by incorrect proptypes introduced in #117
* npm run build with dash 1.20 * Bump ssri from 6.0.1 to 6.0.2 (#131) Bumps [ssri](https://github.com/npm/ssri) from 6.0.1 to 6.0.2. - [Release notes](https://github.com/npm/ssri/releases) - [Changelog](https://github.com/npm/ssri/blob/v6.0.2/CHANGELOG.md) - [Commits](npm/ssri@v6.0.1...v6.0.2) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump ini from 1.3.5 to 1.3.8 (#115) Bumps [ini](https://github.com/isaacs/ini) from 1.3.5 to 1.3.8. - [Release notes](https://github.com/isaacs/ini/releases) - [Commits](npm/ini@v1.3.5...v1.3.8) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump dot-prop from 4.2.0 to 4.2.1 (#124) Bumps [dot-prop](https://github.com/sindresorhus/dot-prop) from 4.2.0 to 4.2.1. - [Release notes](https://github.com/sindresorhus/dot-prop/releases) - [Commits](sindresorhus/dot-prop@v4.2.0...v4.2.1) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * npm audit fix * Update changelog * Fix prop types to stop warnings Many warnings are caused by incorrect proptypes introduced in #117 * npm run build Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This pull request is for updating the docstring comments so they will be compatible with the new style docstrings in dash #1531
This project started with plotly/dash#1205
You can see results for other libraries in dash-doc #https://github.com/plotly/dash-docs/pull/1063
This repo will need to be rebuilt with a more recent version of docgen than the one currently specified (2.21.0). I rebuilt the library with docgen 5.3.0, react 16.13.1 and react-dom 16.13.1. I see that #81 is still open, so I don't know if these version changes will cause any problems. The rebuilt library passed all tests.
Here are some before and after screenshots for dash-cytoscape in dash-docs and in the python console.
Before:
After
In the console: Before:
In the console: After: