Upgrade to date-fns v2
See original GitHub issueAs it ships ES modules we can finally remove all the deep imports and just import directly from date-fns
🎉
Issue Analytics
- State:
- Created 4 years ago
- Reactions:6
- Comments:13 (5 by maintainers)
Top Results From Across the Web
date-fns-upgrade - GitHub
A tool for upgrading date-fns versions. Contribute to date-fns/date-fns-upgrade development by creating an account on GitHub.
Read more >@date-fns/upgrade - npm
A tool for upgrading date-fns versions. Latest version: 1.0.3, last published: 3 years ago. Start using @date-fns/upgrade in your project by ...
Read more >@date-fns/upgrade - npm Package Health Analysis | Snyk
A tool for upgrading date-fns versions For more information about how to use this package see README · Ensure you're using the healthiest...
Read more >modern JavaScript date utility library - date-fns
date -fns provides the most comprehensive yet simple and consistent toolset for manipulating JavaScript dates in a browser & Node.js.
Read more >Updating to v2 date-fns: NaN - Stack Overflow
After the update to the module's v2 this generates the error: date-fns doesn't accept strings as date arguments. Please use 'parseISO' to ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I just published a new beta with date-fns v2, please upgrade and try it today with:
@tom-englert date adapters essentially are already separate modules, but just included in the
angular-calendar
package as sub modules for convenience so you don’t have to npm install even more stuff e.g.and
The only real benefit having them as separate packages would get you is that you could add peer dependencies to date-fns and moment respectively, but that will mostly be solved with optional peer dependencies, and they would have separate versioning from the main package so I could have already released the date-fns v2 adapter as stable already (but you can already use the next version of the calendar with
npm i angular-calendar@next
that has date-fns v2.)