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
refactor: ♻️ migrate moment.js
to dayjs
#14400
refactor: ♻️ migrate moment.js
to dayjs
#14400
Conversation
Yes, these stem from #14390. No need to fix them in this 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.
Thank you for the PR :)
Overall, looks good, my main comment is that we should not include a built-in support for dayjs objects (i.e. they should not be accepted as values by DataTypes.DATE), to avoid needing to introduce another breaking change when Temporal becomes stable
Co-authored-by: Zoé <zoe@ephys.dev>
Co-authored-by: Zoé <zoe@ephys.dev>
Co-authored-by: Zoé <zoe@ephys.dev>
Looks like there is a failing test when the timeZoneOffset is |
Hi @ephys Have you an idea of where is coming from the last CI fail ? (CI / DB2 (Node 14)) |
That DB2 test is randomly failing, you can ignore it. Sorry for having it waste your time |
What's the status of this one? |
Okay, last changes requested are done. |
No conflicts any more 👍 |
@@ -5882,7 +5887,7 @@ moment-timezone@^0.5.15, moment-timezone@^0.5.34: | |||
dependencies: | |||
moment ">= 2.9.0" | |||
|
|||
"moment@>= 2.9.0", moment@^2.29.1, moment@^2.29.3: | |||
"moment@>= 2.9.0", moment@^2.29.3: |
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.
do we still need moment?
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.
Yes, it's still needed, moment is a dependency of snowflake-sdk@1.6.9
and mariadb@2.5.6
.
You might wonder what the point of this PR would be if we keep the moment
dependency.
The advantage will be that it will no longer be an internal dependency of the project.
It will only be needed if the developer needs the mariadb
peer dependency or if the developer is a sequelize contributor because snowflake-sdk
is a development dependency.
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.
Makes sense :)
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 fine overall!
🎉 This PR is included in version 7.0.0-alpha.13 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Pull Request Checklist
Please make sure to review and check all of these items:
yarn test
oryarn test-DIALECT
pass with this change (including linting)?Description Of Change
Migrate
moment.js
todayjs
.Closes: #13372