Actions
Cleanup #47556
openmgr/dashboard: Remove Moment.js
Status:
New
Priority:
Normal
Assignee:
-
Category:
General
Target version:
-
% Done:
0%
Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:
Description
Moment.js team has decided to start discouraging using their library and recommend using other alternatives.
The main reasons for this decision is the size of the library and the usage of mutable objects.
You can read more at https://momentjs.com/docs/#/-project-status/
Although removing Moment.js will not reduce our build, since it is still being used by Chart.js, we should start to consider replacing it.
Updated by Tiago Melo over 3 years ago
I did some initial replacement testing with 3 of the recommended replacements:
https://github.com/tspmelo/ceph/tree/wip-moment-luxon
https://github.com/tspmelo/ceph/tree/wip-moment-dayjs
https://github.com/tspmelo/ceph/tree/wip-moment-datefns
Some are still not finished and might not work.
Updated by Ernesto Puerta about 3 years ago
- Project changed from mgr to Dashboard
- Category changed from 132 to General
Actions