Opened 5 years ago
Closed 5 years ago
#53929 closed defect (bug) (fixed)
Update whatwg-fetch version to match the one in Gutenberg
| Reported by: | Hareesh Pillai | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.9 |
| Component: | Build/Test Tools | Version: | |
| Severity: | normal | Keywords: | good-first-bug has-patch |
| Cc: | Focuses: |
Description
Core currently has whatwg-fetch v3.0.0. Gutenberg has the latest version (v 3.6.2) in the package-lock.json file.
Attachments (1)
Change History (7)
#2
follow-up:
↓ 3
@
5 years ago
- Keywords good-first-bug added
Related #53078.
I was trying to recall the reason why I did not include this update in #53078, but it's not coming to mind. It may have been an oversight. WordPress no longer depends on this polyfill as of [50934].
Based on the release notes, it seems updating this should be straightforward and will bring the latest update of the library to anyone still utilizing it.
Just a note for the contributor creating a patch for this: the version of the script needs to bumped in wp-includes/script-loader.php as well. The package is compiled into a script registered under the wp-polyfill-fetch handle.
#3
in reply to: ↑ 2
@
5 years ago
Thanks for sharing the details, @desrosj.
WordPress no longer depends on this polyfill as of [50934].
In addition to updating, should we also remove this script from loading by default? Perhaps we could open a new ticket for that.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Introduced in [43719] / #45065.