-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Optional moment.js Part 1 #1046
Optional moment.js Part 1 #1046
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1046 +/- ##
=========================================
+ Coverage 81.27% 83.1% +1.83%
=========================================
Files 13 13
Lines 721 817 +96
Branches 142 141 -1
=========================================
+ Hits 586 679 +93
Misses 33 33
- Partials 102 105 +3
Continue to review full report at Codecov.
|
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.
Looks good, would be good if someone else could take a look as well.
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.
Looks good to me too.
I don't think we could completely remove moment while maintaining backwards compatibility, but we could probably make it an optional dependency.
Yeah me neither, unless you'd distribute separate builds for versions with and without moment. If that's not an option we'd need a flag somewhere to know which date utils to use and, as you say, moment as an optional dependency. |
Any idea what could be wrong with the failing test? It seems to be occuring also on I'll continue on a branch based on this PR instead of master. |
@prayerslayer It appears to be a fragile test. It looks like it will always fail on the first 2 days of the month. |
Any updates on this? |
@montogeek There's this #1327, but it's quite old by now, and has some blocking open questions. |
Part 1 of #382
date_utils
. (That I found, at least. Since most date properties are still instances of moment I might have missed some.)After this PR I would work on replacing the actual moment instances.