Make WordPress Core

Changeset 50650


Ignore:
Timestamp:
04/02/2021 07:40:43 PM (5 years ago)
Author:
davidbaumwald
Message:

External Libraries: Update Underscore to version 1.12.1.

Full set of changes at https://github.com/jashkenas/underscore/compare/1.8.3...1.12.1.
The new version includes a sourceMappingURL that causes a build failure, so this change
also introduces a task to remove this from the source during the build.

Props mukesh27, hareesh-pillai, desrosj, SergeyBiryukov, TimoTijhof.
Fixes #45785.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Gruntfile.js

    r50445 r50650  
    11271127                                        }
    11281128                                ]
     1129                        },
     1130                        sourceMaps: {
     1131                                options: {
     1132                                        patterns: [
     1133                                                {
     1134                                                        match: new RegExp( '//# sourceMappingURL=.*\\s*' ),
     1135                                                        replacement: ''
     1136                                                }
     1137                                        ]
     1138                                },
     1139                                files: [
     1140                                        {
     1141                                                expand: true,
     1142                                                flatten: true,
     1143                                                src: [
     1144                                                        BUILD_DIR + 'wp-includes/js/underscore.js'
     1145                                                ],
     1146                                                dest: BUILD_DIR + 'wp-includes/js/'
     1147                                        }
     1148                                ]
    11291149                        }
    11301150                },
     
    15701590                                'includes:embed',
    15711591                                'replace:emojiBannerText',
     1592                                'replace:sourceMaps',
    15721593                                'verify:build'
    15731594                        ] );
  • trunk/package-lock.json

    r50615 r50650  
    2305423054                },
    2305523055                "underscore": {
    23056                         "version": "1.8.3",
    23057                         "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.8.3.tgz",
    23058                         "integrity": "sha1-Tz+1OxBuYJf8+ctBCfKl6b36UCI="
     23056                        "version": "1.12.1",
     23057                        "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.12.1.tgz",
     23058                        "integrity": "sha512-hEQt0+ZLDVUMhebKxL4x1BTtDY7bavVofhZ9KZ4aI26X9SRaE+Y3m83XUL1UP2jn8ynjndwCCpEHdUG+9pP1Tw=="
    2305923059                },
    2306023060                "underscore.string": {
  • trunk/package.json

    r50615 r50650  
    146146                "react-dom": "16.13.1",
    147147                "twemoji": "13.0.2",
    148                 "underscore": "1.8.3",
     148                "underscore": "1.12.1",
    149149                "whatwg-fetch": "3.0.0"
    150150        },
Note: See TracChangeset for help on using the changeset viewer.