mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@55275 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
f29e0fe97d
commit
86dc3ffe0b
6
package-lock.json
generated
6
package-lock.json
generated
@ -9545,9 +9545,9 @@
|
||||
"dev": true
|
||||
},
|
||||
"element-closest": {
|
||||
"version": "2.0.2",
|
||||
"resolved": "https://registry.npmjs.org/element-closest/-/element-closest-2.0.2.tgz",
|
||||
"integrity": "sha1-cqdAoQdFM4LijfnOXbtajfD5Zuw="
|
||||
"version": "3.0.2",
|
||||
"resolved": "https://registry.npmjs.org/element-closest/-/element-closest-3.0.2.tgz",
|
||||
"integrity": "sha512-JxKQiJKX0Zr5Q2/bCaTx8P+UbfyMET1OQd61qu5xQFeWr1km3fGaxelSJtnfT27XQ5Uoztn2yIyeamAc/VX13g=="
|
||||
},
|
||||
"emittery": {
|
||||
"version": "0.8.1",
|
||||
|
||||
@ -137,7 +137,7 @@
|
||||
"backbone": "1.4.1",
|
||||
"clipboard": "2.0.11",
|
||||
"core-js-url-browser": "3.6.4",
|
||||
"element-closest": "^2.0.2",
|
||||
"element-closest": "^3.0.2",
|
||||
"formdata-polyfill": "4.0.10",
|
||||
"hoverintent": "2.2.1",
|
||||
"imagesloaded": "4.1.4",
|
||||
|
||||
@ -114,7 +114,7 @@ function wp_default_packages_vendor( $scripts ) {
|
||||
'wp-polyfill-node-contains' => '4.6.0',
|
||||
'wp-polyfill-url' => '3.6.4',
|
||||
'wp-polyfill-dom-rect' => '4.6.0',
|
||||
'wp-polyfill-element-closest' => '2.0.2',
|
||||
'wp-polyfill-element-closest' => '3.0.2',
|
||||
'wp-polyfill-object-fit' => '2.3.5',
|
||||
'wp-polyfill-inert' => '3.1.2',
|
||||
'wp-polyfill' => '3.15.0',
|
||||
|
||||
@ -65,7 +65,7 @@ module.exports = function( env = { environment: 'production', watch: false, buil
|
||||
'lodash.js': 'lodash/lodash.js',
|
||||
'wp-polyfill.js': '@wordpress/babel-preset-default/build/polyfill.js',
|
||||
'wp-polyfill-fetch.js': 'whatwg-fetch/dist/fetch.umd.js',
|
||||
'wp-polyfill-element-closest.js': 'element-closest/element-closest.js',
|
||||
'wp-polyfill-element-closest.js': 'element-closest/browser.js',
|
||||
'wp-polyfill-node-contains.js': 'polyfill-library/polyfills/__dist/Node.prototype.contains/raw.js',
|
||||
'wp-polyfill-url.js': 'core-js-url-browser/url.js',
|
||||
'wp-polyfill-dom-rect.js': 'polyfill-library/polyfills/__dist/DOMRect/raw.js',
|
||||
@ -81,6 +81,7 @@ module.exports = function( env = { environment: 'production', watch: false, buil
|
||||
const minifiedVendors = {
|
||||
'lodash.min.js': 'lodash/lodash.min.js',
|
||||
'wp-polyfill.min.js': '@wordpress/babel-preset-default/build/polyfill.min.js',
|
||||
'wp-polyfill-element-closest.min.js': 'element-closest/browser.js',
|
||||
'wp-polyfill-formdata.min.js': 'formdata-polyfill/formdata.min.js',
|
||||
'wp-polyfill-url.min.js': 'core-js-url-browser/url.min.js',
|
||||
'wp-polyfill-object-fit.min.js': 'objectFitPolyfill/dist/objectFitPolyfill.min.js',
|
||||
@ -93,7 +94,6 @@ module.exports = function( env = { environment: 'production', watch: false, buil
|
||||
const minifyVendors = {
|
||||
'regenerator-runtime.min.js': 'regenerator-runtime/runtime.js',
|
||||
'wp-polyfill-fetch.min.js': 'whatwg-fetch/dist/fetch.umd.js',
|
||||
'wp-polyfill-element-closest.min.js': 'element-closest/element-closest.js',
|
||||
'wp-polyfill-node-contains.min.js': 'polyfill-library/polyfills/__dist/Node.prototype.contains/raw.js',
|
||||
'wp-polyfill-dom-rect.min.js': 'polyfill-library/polyfills/__dist/DOMRect/raw.js',
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user