-
Notifications
You must be signed in to change notification settings - Fork 0
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
date-fns v3 updates #18
Conversation
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.
a few things. also, maybe we should resolve the test.ts/mts compilation issue before this goes out?
README.md
Outdated
|
||
### Maintenance notes: | ||
|
||
When update the latest code from the original repositories, except making all the necessary changes to make them fully typescript compatible, please remember to carry over the patches to overcoming the following issues: |
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.
update -> updating, overcoming -> overcome
README.md
Outdated
- spring-forward support | ||
- nanosecond support | ||
|
||
please search for `[PATCH:]` in the existing codebase. |
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.
capital P
README.md
Outdated
|
||
please search for `[PATCH:]` in the existing codebase. | ||
|
||
The date-fns tests files are renamed from `test.ts` to `test.mts` so that they can be excluded from being processed by builder bundling. It's a workaround until better approach is available to have a unified control over both regular compilation and bundling. |
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.
...until a better approach is available to have unified control...
case 'PPP': | ||
return formatLong.date({ width: 'long' }); | ||
case 'PPPP': | ||
case "P": |
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.
should we apply our prettier formatting? most of the changes in this file are just formatting changes
my reason for not doing type checking for date-fns's tests are:
what do you think? |
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
Coverage after merging date-fns-v3 into main will be
Coverage Report
|
Beta Published - Install Command: |
✅ PR review status - All reviews completed and approved! |
Fixes #15
reference to slack notes