Skip to content
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

[DT-1079] Switch from MomentJS to DayJS #2740

Merged
merged 1 commit into from
Dec 4, 2024

Conversation

fboulnois
Copy link
Contributor

Addresses

https://broadworkbench.atlassian.net/browse/DT-1079

Summary

Elliot is working on a date picker component that relies on DayJS, which is similar to MomentJS. We only rely on MomentJS for a single page, and the functionality we rely on is very minimal. Also, we already transitively depend on DayJS due to Cypress. Finally, MomentJS is substantially smaller, faster and less outdated.

This PR switches from MomentJS to DayJS.


Have you read Terra's Contributing Guide lately? If not, do that first.

  • Label PR with a Jira ticket number and include a link to the ticket
  • Label PR with a security risk modifier [no, low, medium, high]
  • PR describes scope of changes
  • Get a minimum of one thumbs worth of review, preferably two if enough team members are available
  • Get PO sign-off for all non-trivial UI or workflow changes
  • Verify all tests go green
  • Test this change deployed correctly and works on dev environment after deployment

@fboulnois fboulnois requested a review from a team as a code owner December 3, 2024 19:59
@fboulnois fboulnois requested review from rushtong and pshapiro4broad and removed request for a team December 3, 2024 19:59
@fboulnois fboulnois force-pushed the fb-dt-1079-switch-to-dayjs branch from 5a5c24d to 147b73b Compare December 3, 2024 19:59
@@ -14,11 +14,11 @@
"ajv": "8.17.1",
"ajv-formats": "3.0.1",
"axios": "1.7.8",
"dayjs": "1.11.3",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't switch to the latest version of dayjs to minimize the diffs in the package-lock.json.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm sure we'll get a dependabot PR for that, which will be nice to keep it isolated.

Copy link
Contributor

@rushtong rushtong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏽

@fboulnois fboulnois merged commit 3ec86ff into develop Dec 4, 2024
9 checks passed
@fboulnois fboulnois deleted the fb-dt-1079-switch-to-dayjs branch December 4, 2024 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants