-
Notifications
You must be signed in to change notification settings - Fork 15
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
chore: upgrade @dhis2/prop-types to v3 #750
Conversation
🚀 Deployed on https://pr-750--dhis2-ui.netlify.app |
Test summaryRun details
View run in Cypress Dashboard ➡️ This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard |
61a3aeb
to
0938658
Compare
0938658
to
64e9cff
Compare
In light of some recent developments, I would actually be in favour of perhaps merging this PR with the beta version of the prop-types lib. Manually resolving merge conflicts caused by version bumps is not fun. |
ToDo
Findings regarding the prop-types v1 -> v3 migration
This PR contains relevant changes but also served as a test case for the codemod I produced in dhis2/prop-types#254 and the migration process from v1 to v3 in general. Below are some findings:
package.json
file(s):prop-types
will need to be added as a dependency if it wasn't there already. The only exception would be a theoretical scenario where only our custom prop-types functions are used and no regular prop-types from theprop-types
lib.@dhis2/prop-types
should be removed completely if the project only uses regular prop-types from theprop-types
package.@dhis2/prop-types
package to v3 is another change to thepackage.json
file, but that can be ignored here because I am assuming dependabot PRs which already include this change.)package.json
files to update.I am certain we need to document how to migrate from v1 to v3 (and probably also for v2), but I have a lot of questions about this still, which I will write in bold:
package.json
file(s), and make sense of the changes generated by the codemod.@dhis2/cli-utils-codemods
. Please explain how this would actually work?package.json
file(s) after the codemod ran.