WordPress.org

Make WordPress Core


Ignore:
Timestamp:
06/17/2020 05:38:40 PM (7 months ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package-lock.json

    r48048 r48075  
    1721417214        },
    1721517215        "moment": {
    17216             "version": "2.22.2",
    17217             "resolved": "https://registry.npmjs.org/moment/-/moment-2.22.2.tgz",
    17218             "integrity": "sha1-PCV/mDn8DpP/UxSWMiOeuQeD/2Y="
     17216            "version": "2.26.0",
     17217            "resolved": "https://registry.npmjs.org/moment/-/moment-2.26.0.tgz",
     17218            "integrity": "sha512-oIixUO+OamkUkwjhAVE18rAMfRJNsNe/Stid/gwHSOfHrOtw9EhAY2AHvdKZ/k/MggcYELFCJz/Sn2pL8b8JMw=="
    1721917219        },
    1722017220        "moment-timezone": {
Note: See TracChangeset for help on using the changeset viewer.