You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe
Version 2 of date-fns breaks angular-calendar code
Describe the solution you'd like
Change date-fns adapater codes to support new version
Describe your use case for implementing this feature
I wish to use newer version of date-fns because it brings me more functions and I cannot have two libraries of date-fns in my project, it will make the final bundle larger.
The text was updated successfully, but these errors were encountered:
Thanks so much for opening an issue! If you'd like me to give priority to answering your issue or would just like to support this project, then please consider supporting me on Patreon
While date-fns is in alpha I don't want to support it officially as they could introduce breaking changes to the api which would mean having to makes changes here. As soon as date-fns v2 is stable I'll update the calendar to support it. In the meantime you could write your own date adapter which uses v2, the only thing that needs to change is the max function changed: https://stackblitz.com/edit/angular-xzssvt?file=demo/date-fns-v2-adapter.ts There's no direct dependency by this library on date-fns anymore so it won't appear in your node_modules and you won't get any warnings when using v2 of date-fns.
Is your feature request related to a problem? Please describe
Version 2 of date-fns breaks angular-calendar code
Describe the solution you'd like
Change date-fns adapater codes to support new version
Describe your use case for implementing this feature
I wish to use newer version of date-fns because it brings me more functions and I cannot have two libraries of date-fns in my project, it will make the final bundle larger.
The text was updated successfully, but these errors were encountered: