-
-
Notifications
You must be signed in to change notification settings - Fork 2.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
fix: Mark date
parameter as optional in timezone plugin
#2222
Conversation
Codecov Report
@@ Coverage Diff @@
## dev #2222 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 181 183 +2
Lines 2074 2109 +35
Branches 544 555 +11
=========================================
+ Hits 2074 2109 +35
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Thanks |
## [1.11.8](v1.11.7...v1.11.8) (2023-06-02) ### Bug Fixes * .format add padding to 'YYYY' ([#2231](#2231)) ([00c223b](00c223b)) * Added .valueOf method to Duration class ([#2226](#2226)) ([9b4fcfd](9b4fcfd)) * timezone type mark `date` parameter as optional ([#2222](#2222)) ([b87aa0e](b87aa0e)) * type file first parameter date is optional in isSame(), isBefore(), isAfter() ([#2272](#2272)) ([4d56f3e](4d56f3e))
🎉 This PR is included in version 1.11.8 🎉 The release is available on: Your semantic-release bot 📦🚀 |
## [1.11.8](iamkun/dayjs@v1.11.7...v1.11.8) (2023-06-02) ### Bug Fixes * .format add padding to 'YYYY' ([iamkun#2231](iamkun#2231)) ([00c223b](iamkun@00c223b)) * Added .valueOf method to Duration class ([iamkun#2226](iamkun#2226)) ([9b4fcfd](iamkun@9b4fcfd)) * timezone type mark `date` parameter as optional ([iamkun#2222](iamkun#2222)) ([b87aa0e](iamkun@b87aa0e)) * type file first parameter date is optional in isSame(), isBefore(), isAfter() ([iamkun#2272](iamkun#2272)) ([4d56f3e](iamkun@4d56f3e))
LIke
dayjs()
,dayjs.tz()
falls back to the default time internally if no parameter is passed. But the current Typescript types do not allow for this existing, expected, and correct functionality.