[wp-trac] [WordPress Trac] #52851: Update the `element-closest` polyfill
WordPress Trac
noreply at wordpress.org
Thu Mar 18 15:59:27 UTC 2021
#52851: Update the `element-closest` polyfill
--------------------------------+--------------------
Reporter: desrosj | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.8
Component: External Libraries | Version:
Severity: normal | Keywords:
Focuses: |
--------------------------------+--------------------
The `element-closest` dependency is a polyfill used for the block editor.
A new version is available so this should be updated.
What's not immediately clear is what this polyfill is used for and if it's
still required. It's
[https://github.com/WordPress/gutenberg/blob/08002b8dcb657145e986b257923440be081f9024/docs/contributors/code/scripts.md
#polyfill-scriptsdocumented in the Gutenberg documentation], but is not
defined as a dependency within that repository (most likely because it has
been in Core for some time).
The update has relatively minor changes, but confirming that the areas of
Core relying on this polyfill continue to work properly would be a good
step to take.
Currently, version 2.0.2 is bundled with Core. The latest is now
[https://www.npmjs.com/package/element-closest/v/3.0.2 v3.0.2].
A full list of changes can be found on GitHub:
https://github.com/jonathantneal/closest/blob/master/CHANGELOG.md#302-october-31-2019
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52851>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list