Date library dependency in v8
See original GitHub issueDayPicker relies on some date manipulation functions to work. Until v8 I’ve been maintaining a custom set of utilities to keep the bundle size small.
I underestimated the difficulties working with dates and other abstractions required to support localization, so I decided to switch to date-fns
.
This choice is raising some valid concerns in the community, which I would like to collect here.
References:
Issue Analytics
- State:
- Created 4 years ago
- Reactions:3
- Comments:15 (1 by maintainers)
Top Results From Across the Web
Intl.RelativeTimeFormat - V8 JavaScript engine
Intl.RelativeTimeFormat enables localized formatting of relative times without sacrificing performance.
Read more >Support Library Packages - Android Developers
v8 Support Library This library provides specific feature sets and can be included in your application independently from other libraries.
Read more >Chapter 18 The V8 Engine | JavaScript for R
To use NPM packages we need browserify, a node library to bundle all dependencies of an NPM package into a single file, which...
Read more >Date-fns vs MomentJS: Choosing the Right Date Utility Library
MomentJS is one of the most used JavaScript date libraries among software ... (on the right, its dependency graph, auto-generated by Bit) ...
Read more >npm-outdated
Use --all to find all outdated meta-dependencies as well. ... no semver range) will install whatever's tagged as latest . once is just...
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 Free
Top 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
I think the main issue here are localization-based calculations (eg first day of the week). I’d go with date-fns and study the problem with a lower priority. There are many options out there! I really want to push date-fns, it is good for the ecosystem.
Different approaches can be tried after the release. But i’d better discuss real use cases like yours first…
Is it possible to somehow use v8 without date-fns? We are using dayjs in our project, v7’s formatDate and parseDate props are very convenient. I don’t want to bring extra dependency.