Make WordPress Core

Changeset 55275


Ignore:
Timestamp:
02/07/2023 04:46:34 PM (22 months ago)
Author:
desrosj
Message:

External Libraries: Update element-closest.

This updates the element-closest polyfill to the latest version, 3.0.2.

Because of changes to how the package is now built and distributed, both files for the library now contain minified code.

This library is no longer used by Core itself and maintained as a courtesy. Any projects utilizing it should reevaluate their usage requirements with modern browsers.

Props hareesh-pillai, gziolo, mukesh27, costdev.
Fixes #52851.

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/package-lock.json

    r55269 r55275  
    95469546        },
    95479547        "element-closest": {
    9548             "version": "2.0.2",
    9549             "resolved": "https://registry.npmjs.org/element-closest/-/element-closest-2.0.2.tgz",
    9550             "integrity": "sha1-cqdAoQdFM4LijfnOXbtajfD5Zuw="
     9548            "version": "3.0.2",
     9549            "resolved": "https://registry.npmjs.org/element-closest/-/element-closest-3.0.2.tgz",
     9550            "integrity": "sha512-JxKQiJKX0Zr5Q2/bCaTx8P+UbfyMET1OQd61qu5xQFeWr1km3fGaxelSJtnfT27XQ5Uoztn2yIyeamAc/VX13g=="
    95519551        },
    95529552        "emittery": {
  • trunk/package.json

    r55269 r55275  
    138138        "clipboard": "2.0.11",
    139139        "core-js-url-browser": "3.6.4",
    140         "element-closest": "^2.0.2",
     140        "element-closest": "^3.0.2",
    141141        "formdata-polyfill": "4.0.10",
    142142        "hoverintent": "2.2.1",
  • trunk/src/wp-includes/script-loader.php

    r55271 r55275  
    115115        'wp-polyfill-url'             => '3.6.4',
    116116        'wp-polyfill-dom-rect'        => '4.6.0',
    117         'wp-polyfill-element-closest' => '2.0.2',
     117        'wp-polyfill-element-closest' => '3.0.2',
    118118        'wp-polyfill-object-fit'      => '2.3.5',
    119119        'wp-polyfill-inert'           => '3.1.2',
  • trunk/tools/webpack/packages.js

    r55084 r55275  
    6666        'wp-polyfill.js': '@wordpress/babel-preset-default/build/polyfill.js',
    6767        'wp-polyfill-fetch.js': 'whatwg-fetch/dist/fetch.umd.js',
    68         'wp-polyfill-element-closest.js': 'element-closest/element-closest.js',
     68        'wp-polyfill-element-closest.js': 'element-closest/browser.js',
    6969        'wp-polyfill-node-contains.js': 'polyfill-library/polyfills/__dist/Node.prototype.contains/raw.js',
    7070        'wp-polyfill-url.js': 'core-js-url-browser/url.js',
     
    8282        'lodash.min.js': 'lodash/lodash.min.js',
    8383        'wp-polyfill.min.js': '@wordpress/babel-preset-default/build/polyfill.min.js',
     84        'wp-polyfill-element-closest.min.js': 'element-closest/browser.js',
    8485        'wp-polyfill-formdata.min.js': 'formdata-polyfill/formdata.min.js',
    8586        'wp-polyfill-url.min.js': 'core-js-url-browser/url.min.js',
     
    9495        'regenerator-runtime.min.js': 'regenerator-runtime/runtime.js',
    9596        'wp-polyfill-fetch.min.js': 'whatwg-fetch/dist/fetch.umd.js',
    96         'wp-polyfill-element-closest.min.js': 'element-closest/element-closest.js',
    9797        'wp-polyfill-node-contains.min.js': 'polyfill-library/polyfills/__dist/Node.prototype.contains/raw.js',
    9898        'wp-polyfill-dom-rect.min.js': 'polyfill-library/polyfills/__dist/DOMRect/raw.js',
Note: See TracChangeset for help on using the changeset viewer.