[wp-trac] [WordPress Trac] #50408: Update moment.js lib to its latest version

WordPress Trac noreply at wordpress.org
Wed Jun 17 17:38:55 UTC 2020


#50408: Update moment.js lib to its latest version
--------------------------------+-----------------------------
 Reporter:  yoancutillas        |       Owner:  SergeyBiryukov
     Type:  defect (bug)        |      Status:  closed
 Priority:  normal              |   Milestone:  5.5
Component:  External Libraries  |     Version:  5.4.2
 Severity:  normal              |  Resolution:  fixed
 Keywords:                      |     Focuses:
--------------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * owner:  (none) => SergeyBiryukov
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"48075" 48075]:
 {{{
 #!CommitTicketReference repository="" revision="48075"
 External Libraries: Update Moment.js to 2.26.0.

 Changelog: https://github.com/moment/moment/compare/2.22.2...2.26.0

 This commit also fixes a deprecation warning regarding the usage of
 `moment.locale()` to set locale properties.

 As of Moment.js 2.12.0, `moment.locale()` is deprecated and
 `moment.updateLocale()` should be used instead.

 Additionally, minimize `moment.js` as part of build process to remove the
 source map reference.

 This avoids a `sourceMappingURL` being in the minified file, as we don't
 ship source maps.

 Props yoancutillas, SergeyBiryukov.
 Fixes #50408.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/50408#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list