Project

General

Profile

Actions

Cleanup #47556

open

mgr/dashboard: Remove Moment.js

Added by Tiago Melo over 3 years ago. Updated about 3 years ago.

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.

Actions #1

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.

Actions #2

Updated by Tiago Melo over 3 years ago

  • Assignee deleted (Tiago Melo)
Actions #3

Updated by Ernesto Puerta about 3 years ago

  • Project changed from mgr to Dashboard
  • Category changed from 132 to General
Actions

Also available in: Atom PDF