-
Notifications
You must be signed in to change notification settings - Fork 299
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
moment.js is deprecated and should be replaced #672
Comments
See #12 (comment) |
Maybe as well use |
I propose to use dayjs instead of moment.js in the future. Dayjs has a good support for locals and is very small. An alternative would be to use native date functionalities (e.g. |
I would suggest the following procedure:
|
Any progress on this? Momentjs is a big ball of ugly bloat. |
I am in favour of day.js ... can I take the responsible person for this PR? |
Instead on just using dayjs we could introduce a neutral adapter layer. Similar of what chart.js is doing with their "adapters". This is not a trivial task to do, but well-tested PRs are very welcomed! |
@mojoaxel What about date.io? https://github.com/dmtrKovalenko/date-io |
date-io looks really promising. It looks like it does not support tree-shaking, but that is maybe a price we should pay!? merge-requests welcome! |
…idden\nremove parameter moment from DateUtil.getHiddenDurationBefore
Hi All, is this still in the roadmap ? |
Bump |
This should help, it's merged but is unfortunately not released yet |
moment.js consideres itself now deprecated.
moment.js takes up over 10% of the bundle size:
The vis.js universe should switch to a different library (e.g. Luxon, Day.js, date-fns, js-Joda)
The text was updated successfully, but these errors were encountered: