From 9ba3e13d7f93265fae4dd11d871829a4c345f4c9 Mon Sep 17 00:00:00 2001 From: Alex Cicovic <23142906+acicovic@users.noreply.github.com> Date: Thu, 2 Oct 2025 17:02:46 +0300 Subject: [PATCH] Revert "build(deps-dev): bump @wordpress/api-fetch from 7.29.0 to 7.32.0" --- package-lock.json | 192 ++++++++++++++++-- package.json | 2 +- .../common/providers/base-provider.tsx | 2 +- 3 files changed, 178 insertions(+), 18 deletions(-) diff --git a/package-lock.json b/package-lock.json index ac361b249a..1cc3fec3f3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -27,7 +27,7 @@ "@types/wordpress__edit-post": "^8.4.2", "@types/wordpress__wordcount": "^2.4.5", "@typescript-eslint/eslint-plugin": "^6.21.0", - "@wordpress/api-fetch": "7.32", + "@wordpress/api-fetch": "7.29", "@wordpress/babel-preset-default": "^7.42.0", "@wordpress/block-editor": "^15.5.0", "@wordpress/blocks": "^15.5.0", @@ -7967,15 +7967,15 @@ } }, "node_modules/@wordpress/api-fetch": { - "version": "7.32.0", - "resolved": "https://registry.npmjs.org/@wordpress/api-fetch/-/api-fetch-7.32.0.tgz", - "integrity": "sha512-kTufX1lhb7AG7J3KMoDOKO9IKWVwWemf/TqaqiRYNC06uxXPl/VPBJC6AzInirsNw0BZknssje+g7Fc6WbrBFA==", + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@wordpress/api-fetch/-/api-fetch-7.29.0.tgz", + "integrity": "sha512-5Z3qtbMCqbvpqHufIxI85T3sloCN5c/10BKd9hzdllEpTONhUAWf42jsVyBYsXh2ZHvq0FekQhs2RdE30cLKAA==", "dev": true, "license": "GPL-2.0-or-later", "dependencies": { "@babel/runtime": "7.25.7", - "@wordpress/i18n": "^6.5.0", - "@wordpress/url": "^4.32.0" + "@wordpress/i18n": "^6.2.0", + "@wordpress/url": "^4.29.0" }, "engines": { "node": ">=18.12.0", @@ -8066,7 +8066,7 @@ "@emotion/styled": "^11.6.0", "@react-spring/web": "^9.4.5", "@wordpress/a11y": "^4.32.0", - "@wordpress/api-fetch": "7.32", + "@wordpress/api-fetch": "^7.32.0", "@wordpress/blob": "^4.32.0", "@wordpress/block-serialization-default-parser": "^5.32.0", "@wordpress/blocks": "^15.5.0", @@ -8121,6 +8121,22 @@ "react-dom": "^18.0.0" } }, + "node_modules/@wordpress/block-editor/node_modules/@wordpress/api-fetch": { + "version": "7.32.0", + "resolved": "https://registry.npmjs.org/@wordpress/api-fetch/-/api-fetch-7.32.0.tgz", + "integrity": "sha512-kTufX1lhb7AG7J3KMoDOKO9IKWVwWemf/TqaqiRYNC06uxXPl/VPBJC6AzInirsNw0BZknssje+g7Fc6WbrBFA==", + "dev": true, + "license": "GPL-2.0-or-later", + "dependencies": { + "@babel/runtime": "7.25.7", + "@wordpress/i18n": "^6.5.0", + "@wordpress/url": "^4.32.0" + }, + "engines": { + "node": ">=18.12.0", + "npm": ">=8.19.2" + } + }, "node_modules/@wordpress/block-editor/node_modules/@wordpress/keycodes": { "version": "4.32.0", "resolved": "https://registry.npmjs.org/@wordpress/keycodes/-/keycodes-4.32.0.tgz", @@ -8171,7 +8187,7 @@ "dependencies": { "@babel/runtime": "7.25.7", "@wordpress/a11y": "^4.32.0", - "@wordpress/api-fetch": "7.32", + "@wordpress/api-fetch": "^7.32.0", "@wordpress/autop": "^4.32.0", "@wordpress/blob": "^4.32.0", "@wordpress/block-editor": "^15.5.0", @@ -8222,6 +8238,22 @@ "react-dom": "^18.0.0" } }, + "node_modules/@wordpress/block-library/node_modules/@wordpress/api-fetch": { + "version": "7.32.0", + "resolved": "https://registry.npmjs.org/@wordpress/api-fetch/-/api-fetch-7.32.0.tgz", + "integrity": "sha512-kTufX1lhb7AG7J3KMoDOKO9IKWVwWemf/TqaqiRYNC06uxXPl/VPBJC6AzInirsNw0BZknssje+g7Fc6WbrBFA==", + "dev": true, + "license": "GPL-2.0-or-later", + "dependencies": { + "@babel/runtime": "7.25.7", + "@wordpress/i18n": "^6.5.0", + "@wordpress/url": "^4.32.0" + }, + "engines": { + "node": ">=18.12.0", + "npm": ">=8.19.2" + } + }, "node_modules/@wordpress/block-library/node_modules/@wordpress/keycodes": { "version": "4.32.0", "resolved": "https://registry.npmjs.org/@wordpress/keycodes/-/keycodes-4.32.0.tgz", @@ -8529,7 +8561,7 @@ "license": "GPL-2.0-or-later", "dependencies": { "@babel/runtime": "7.25.7", - "@wordpress/api-fetch": "7.32", + "@wordpress/api-fetch": "^7.32.0", "@wordpress/block-editor": "^15.5.0", "@wordpress/blocks": "^15.5.0", "@wordpress/compose": "^7.32.0", @@ -8560,6 +8592,22 @@ "react-dom": "^18.0.0" } }, + "node_modules/@wordpress/core-data/node_modules/@wordpress/api-fetch": { + "version": "7.32.0", + "resolved": "https://registry.npmjs.org/@wordpress/api-fetch/-/api-fetch-7.32.0.tgz", + "integrity": "sha512-kTufX1lhb7AG7J3KMoDOKO9IKWVwWemf/TqaqiRYNC06uxXPl/VPBJC6AzInirsNw0BZknssje+g7Fc6WbrBFA==", + "dev": true, + "license": "GPL-2.0-or-later", + "dependencies": { + "@babel/runtime": "7.25.7", + "@wordpress/i18n": "^6.5.0", + "@wordpress/url": "^4.32.0" + }, + "engines": { + "node": ">=18.12.0", + "npm": ">=8.19.2" + } + }, "node_modules/@wordpress/core-data/node_modules/@wordpress/undo-manager": { "version": "1.32.0", "resolved": "https://registry.npmjs.org/@wordpress/undo-manager/-/undo-manager-1.32.0.tgz", @@ -9115,7 +9163,7 @@ "dependencies": { "@babel/runtime": "7.25.7", "@wordpress/a11y": "^4.32.0", - "@wordpress/api-fetch": "7.32", + "@wordpress/api-fetch": "^7.32.0", "@wordpress/block-editor": "^15.5.0", "@wordpress/block-library": "^9.32.0", "@wordpress/blocks": "^15.5.0", @@ -9154,6 +9202,22 @@ "react-dom": "^18.0.0" } }, + "node_modules/@wordpress/edit-post/node_modules/@wordpress/api-fetch": { + "version": "7.32.0", + "resolved": "https://registry.npmjs.org/@wordpress/api-fetch/-/api-fetch-7.32.0.tgz", + "integrity": "sha512-kTufX1lhb7AG7J3KMoDOKO9IKWVwWemf/TqaqiRYNC06uxXPl/VPBJC6AzInirsNw0BZknssje+g7Fc6WbrBFA==", + "dev": true, + "license": "GPL-2.0-or-later", + "dependencies": { + "@babel/runtime": "7.25.7", + "@wordpress/i18n": "^6.5.0", + "@wordpress/url": "^4.32.0" + }, + "engines": { + "node": ">=18.12.0", + "npm": ">=8.19.2" + } + }, "node_modules/@wordpress/edit-post/node_modules/@wordpress/keycodes": { "version": "4.32.0", "resolved": "https://registry.npmjs.org/@wordpress/keycodes/-/keycodes-4.32.0.tgz", @@ -9189,7 +9253,7 @@ "dependencies": { "@babel/runtime": "7.25.7", "@wordpress/a11y": "^4.32.0", - "@wordpress/api-fetch": "7.32", + "@wordpress/api-fetch": "^7.32.0", "@wordpress/blob": "^4.32.0", "@wordpress/block-editor": "^15.5.0", "@wordpress/blocks": "^15.5.0", @@ -9244,6 +9308,22 @@ "react-dom": "^18.0.0" } }, + "node_modules/@wordpress/editor/node_modules/@wordpress/api-fetch": { + "version": "7.32.0", + "resolved": "https://registry.npmjs.org/@wordpress/api-fetch/-/api-fetch-7.32.0.tgz", + "integrity": "sha512-kTufX1lhb7AG7J3KMoDOKO9IKWVwWemf/TqaqiRYNC06uxXPl/VPBJC6AzInirsNw0BZknssje+g7Fc6WbrBFA==", + "dev": true, + "license": "GPL-2.0-or-later", + "dependencies": { + "@babel/runtime": "7.25.7", + "@wordpress/i18n": "^6.5.0", + "@wordpress/url": "^4.32.0" + }, + "engines": { + "node": ">=18.12.0", + "npm": ">=8.19.2" + } + }, "node_modules/@wordpress/editor/node_modules/@wordpress/keycodes": { "version": "4.32.0", "resolved": "https://registry.npmjs.org/@wordpress/keycodes/-/keycodes-4.32.0.tgz", @@ -9668,7 +9748,7 @@ "license": "GPL-2.0-or-later", "dependencies": { "@babel/runtime": "7.25.7", - "@wordpress/api-fetch": "7.32", + "@wordpress/api-fetch": "^7.32.0", "@wordpress/blob": "^4.32.0", "@wordpress/block-editor": "^15.5.0", "@wordpress/blocks": "^15.5.0", @@ -9704,6 +9784,22 @@ "react": "^18.0.0" } }, + "node_modules/@wordpress/fields/node_modules/@wordpress/api-fetch": { + "version": "7.32.0", + "resolved": "https://registry.npmjs.org/@wordpress/api-fetch/-/api-fetch-7.32.0.tgz", + "integrity": "sha512-kTufX1lhb7AG7J3KMoDOKO9IKWVwWemf/TqaqiRYNC06uxXPl/VPBJC6AzInirsNw0BZknssje+g7Fc6WbrBFA==", + "dev": true, + "license": "GPL-2.0-or-later", + "dependencies": { + "@babel/runtime": "7.25.7", + "@wordpress/i18n": "^6.5.0", + "@wordpress/url": "^4.32.0" + }, + "engines": { + "node": ">=18.12.0", + "npm": ">=8.19.2" + } + }, "node_modules/@wordpress/fields/node_modules/@wordpress/warning": { "version": "3.32.0", "resolved": "https://registry.npmjs.org/@wordpress/warning/-/warning-3.32.0.tgz", @@ -9982,7 +10078,7 @@ "license": "GPL-2.0-or-later", "dependencies": { "@babel/runtime": "7.25.7", - "@wordpress/api-fetch": "7.32", + "@wordpress/api-fetch": "^7.32.0", "@wordpress/blob": "^4.32.0", "@wordpress/element": "^6.32.0", "@wordpress/i18n": "^6.5.0", @@ -9993,6 +10089,22 @@ "npm": ">=8.19.2" } }, + "node_modules/@wordpress/media-utils/node_modules/@wordpress/api-fetch": { + "version": "7.32.0", + "resolved": "https://registry.npmjs.org/@wordpress/api-fetch/-/api-fetch-7.32.0.tgz", + "integrity": "sha512-kTufX1lhb7AG7J3KMoDOKO9IKWVwWemf/TqaqiRYNC06uxXPl/VPBJC6AzInirsNw0BZknssje+g7Fc6WbrBFA==", + "dev": true, + "license": "GPL-2.0-or-later", + "dependencies": { + "@babel/runtime": "7.25.7", + "@wordpress/i18n": "^6.5.0", + "@wordpress/url": "^4.32.0" + }, + "engines": { + "node": ">=18.12.0", + "npm": ">=8.19.2" + } + }, "node_modules/@wordpress/notices": { "version": "5.32.0", "resolved": "https://registry.npmjs.org/@wordpress/notices/-/notices-5.32.0.tgz", @@ -10716,7 +10828,7 @@ "license": "GPL-2.0-or-later", "dependencies": { "@babel/runtime": "7.25.7", - "@wordpress/api-fetch": "7.32", + "@wordpress/api-fetch": "^7.32.0", "@wordpress/blocks": "^15.5.0", "@wordpress/components": "^30.5.0", "@wordpress/compose": "^7.32.0", @@ -10735,6 +10847,22 @@ "react-dom": "^18.0.0" } }, + "node_modules/@wordpress/server-side-render/node_modules/@wordpress/api-fetch": { + "version": "7.32.0", + "resolved": "https://registry.npmjs.org/@wordpress/api-fetch/-/api-fetch-7.32.0.tgz", + "integrity": "sha512-kTufX1lhb7AG7J3KMoDOKO9IKWVwWemf/TqaqiRYNC06uxXPl/VPBJC6AzInirsNw0BZknssje+g7Fc6WbrBFA==", + "dev": true, + "license": "GPL-2.0-or-later", + "dependencies": { + "@babel/runtime": "7.25.7", + "@wordpress/i18n": "^6.5.0", + "@wordpress/url": "^4.32.0" + }, + "engines": { + "node": ">=18.12.0", + "npm": ">=8.19.2" + } + }, "node_modules/@wordpress/shortcode": { "version": "4.32.0", "resolved": "https://registry.npmjs.org/@wordpress/shortcode/-/shortcode-4.32.0.tgz", @@ -10854,7 +10982,7 @@ "license": "GPL-2.0-or-later", "dependencies": { "@babel/runtime": "7.25.7", - "@wordpress/api-fetch": "7.32", + "@wordpress/api-fetch": "^7.32.0", "@wordpress/blob": "^4.32.0", "@wordpress/compose": "^7.32.0", "@wordpress/data": "^10.32.0", @@ -10874,6 +11002,22 @@ "react-dom": "^18.0.0" } }, + "node_modules/@wordpress/upload-media/node_modules/@wordpress/api-fetch": { + "version": "7.32.0", + "resolved": "https://registry.npmjs.org/@wordpress/api-fetch/-/api-fetch-7.32.0.tgz", + "integrity": "sha512-kTufX1lhb7AG7J3KMoDOKO9IKWVwWemf/TqaqiRYNC06uxXPl/VPBJC6AzInirsNw0BZknssje+g7Fc6WbrBFA==", + "dev": true, + "license": "GPL-2.0-or-later", + "dependencies": { + "@babel/runtime": "7.25.7", + "@wordpress/i18n": "^6.5.0", + "@wordpress/url": "^4.32.0" + }, + "engines": { + "node": ">=18.12.0", + "npm": ">=8.19.2" + } + }, "node_modules/@wordpress/url": { "version": "4.32.0", "resolved": "https://registry.npmjs.org/@wordpress/url/-/url-4.32.0.tgz", @@ -10927,7 +11071,7 @@ "license": "GPL-2.0-or-later", "dependencies": { "@babel/runtime": "7.25.7", - "@wordpress/api-fetch": "7.32", + "@wordpress/api-fetch": "^7.32.0", "@wordpress/block-editor": "^15.5.0", "@wordpress/blocks": "^15.5.0", "@wordpress/components": "^30.5.0", @@ -10949,6 +11093,22 @@ "react-dom": "^18.0.0" } }, + "node_modules/@wordpress/widgets/node_modules/@wordpress/api-fetch": { + "version": "7.32.0", + "resolved": "https://registry.npmjs.org/@wordpress/api-fetch/-/api-fetch-7.32.0.tgz", + "integrity": "sha512-kTufX1lhb7AG7J3KMoDOKO9IKWVwWemf/TqaqiRYNC06uxXPl/VPBJC6AzInirsNw0BZknssje+g7Fc6WbrBFA==", + "dev": true, + "license": "GPL-2.0-or-later", + "dependencies": { + "@babel/runtime": "7.25.7", + "@wordpress/i18n": "^6.5.0", + "@wordpress/url": "^4.32.0" + }, + "engines": { + "node": ">=18.12.0", + "npm": ">=8.19.2" + } + }, "node_modules/@wordpress/wordcount": { "version": "4.32.0", "resolved": "https://registry.npmjs.org/@wordpress/wordcount/-/wordcount-4.32.0.tgz", diff --git a/package.json b/package.json index e45705f6fc..e8fa7cff51 100644 --- a/package.json +++ b/package.json @@ -54,7 +54,7 @@ "@types/wordpress__edit-post": "^8.4.2", "@types/wordpress__wordcount": "^2.4.5", "@typescript-eslint/eslint-plugin": "^6.21.0", - "@wordpress/api-fetch": "7.32", + "@wordpress/api-fetch": "7.29", "@wordpress/babel-preset-default": "^7.42.0", "@wordpress/block-editor": "^15.5.0", "@wordpress/blocks": "^15.5.0", diff --git a/src/content-helper/common/providers/base-provider.tsx b/src/content-helper/common/providers/base-provider.tsx index 85cf93b48c..fbe10859d6 100644 --- a/src/content-helper/common/providers/base-provider.tsx +++ b/src/content-helper/common/providers/base-provider.tsx @@ -148,7 +148,7 @@ export abstract class BaseProvider { options.signal = abortController.signal; try { - const response = await apiFetch>( options as APIFetchOptions ); + const response = await apiFetch>( options ); // Validate API side errors. if ( response.error ) {