-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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-dates
to 21.8.0
#40801
Update react-dates
to 21.8.0
#40801
Conversation
Size Change: +4.61 kB (0%) Total Size: 1.23 MB
ℹ️ View Unchanged
|
bebb91c
to
867a0f2
Compare
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.
LGTM 🚀
The fact that react-dates
doesn't have a CHANGELOG with what's changed across versions doesn't help, but during my testing I couldn't find any regressions.
The package seems actively maintained, but the latest release is almost 2 years old — IMO we should consider alternatives.
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.
@ciampo was too fast for me 🚀
I tested this as well.
- Publish popover looked & worked ok
- DateTimePicker story works well
- Tests still pass
Haha although the score at this point is probably like Marco 1 - Aaron 93 😅 |
Thanks for reviewing! I found a changelog here just FYI. Not a lot that concerns our usage of the package, really. https://github.com/react-dates/react-dates/blob/master/CHANGELOG.md |
Thank you for surfacing the changelog! I had previously looked into the "releases" section and somehow missed completely the CHANGELOG file 😅 |
What?
Updates the
react-dates
dependency of@wordpress/components
to 21.8.0.Why?
I was hoping that updating
react-dates
would fix theconsole.warn()
that is emitted becauseDayPicker
usescomponentWillReceiveProps
which is deprecated. Unfortunately it does not.Still, it's probably worth updating the package anyway so that we have the latest bug fixes and security fixes.
How?
I bumped the version in
packages/components/package.json
and rannpm install
.Testing Instructions
This PR is based off of #40754 which includes tests. You can also:
DateTimePicker
story to check that there is nothing off.