From 17a285a1361f119ae57ecbb134c6c3f5ff888b33 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 30 Aug 2021 13:49:28 +0000 Subject: [PATCH] External Libraries: Update `whatwg-fetch` package to version 3.6.2. This matches the version used in the Gutenberg project. While WordPress core no longer depends on this polyfill as of [50934], this brings the latest updates of the library to anyone still utilizing it. For a full list of changes in this update, see the `whatwg-fetch` GitHub: https://github.com/github/fetch/compare/v3.0.0...v3.6.2 Follow-up to [43719], [50934]. Props hareesh-pillai, rsiddharth, desrosj. Fixes #53929. git-svn-id: https://develop.svn.wordpress.org/trunk@51692 602fd350-edb4-49c9-b593-d223f7449a82 --- package-lock.json | 6 +++--- package.json | 2 +- src/wp-includes/script-loader.php | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index 90ffcd5180..ff7ad249aa 100644 --- a/package-lock.json +++ b/package-lock.json @@ -26436,9 +26436,9 @@ } }, "whatwg-fetch": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/whatwg-fetch/-/whatwg-fetch-3.0.0.tgz", - "integrity": "sha512-9GSJUgz1D4MfyKU7KRqwOjXCXTqWdFNvEr7eUBYchQiVc744mqK/MzXPNR2WsPkmkOa4ywfg8C2n8h+13Bey1Q==" + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/whatwg-fetch/-/whatwg-fetch-3.6.2.tgz", + "integrity": "sha512-bJlen0FcuU/0EMLrdbJ7zOnW6ITZLrZMIarMUVmdKtsGvZna8vxKYaexICWPfZ8qwf9fzNq+UEIZrnSaApt6RA==" }, "whatwg-mimetype": { "version": "2.3.0", diff --git a/package.json b/package.json index ce21d01bc7..6fa0592874 100644 --- a/package.json +++ b/package.json @@ -150,7 +150,7 @@ "regenerator-runtime": "0.13.7", "twemoji": "13.1.0", "underscore": "1.13.1", - "whatwg-fetch": "3.0.0" + "whatwg-fetch": "3.6.2" }, "scripts": { "build": "grunt build", diff --git a/src/wp-includes/script-loader.php b/src/wp-includes/script-loader.php index 608e7936e3..1bd8b12da2 100644 --- a/src/wp-includes/script-loader.php +++ b/src/wp-includes/script-loader.php @@ -101,7 +101,7 @@ function wp_default_packages_vendor( $scripts ) { 'regenerator-runtime' => '0.13.7', 'moment' => '2.29.1', 'lodash' => '4.17.19', - 'wp-polyfill-fetch' => '3.0.0', + 'wp-polyfill-fetch' => '3.6.2', 'wp-polyfill-formdata' => '4.0.0', 'wp-polyfill-node-contains' => '3.105.0', 'wp-polyfill-url' => '3.6.4',