From 10eca05716e001bbd72f574b2d1d339a4de8ea7d Mon Sep 17 00:00:00 2001 From: Patrick Russell Date: Fri, 22 May 2026 11:59:32 -0700 Subject: [PATCH] fix: remove node-abort-controller polyfill, breaking Node 24 compatibility Node 24 tightened validation in events.setMaxListeners() to require true EventEmitter/EventTarget instances. The node-abort-controller polyfill's AbortSignal is a plain object, causing ERR_INVALID_ARG_TYPE crashes during aio app init. The polyfill was added for Node <=16.13 compat and is no longer needed since engines.node is >=20. Fixes ACNA-4621 --- package.json | 1 - src/BaseCommand.js | 3 --- 2 files changed, 4 deletions(-) diff --git a/package.json b/package.json index 26eef753..4f89065f 100644 --- a/package.json +++ b/package.json @@ -38,7 +38,6 @@ "js-yaml": "^4.1.0", "junk": "^3.1.0", "lodash.clonedeep": "^4.5.0", - "node-abort-controller": "^3.1.1", "open": "^8.4.2", "ora": "^5", "pure-http": "^3", diff --git a/src/BaseCommand.js b/src/BaseCommand.js index e089e067..4ec4f04d 100644 --- a/src/BaseCommand.js +++ b/src/BaseCommand.js @@ -10,9 +10,6 @@ OF ANY KIND, either express or implied. See the License for the specific languag governing permissions and limitations under the License. */ -const { AbortController } = require('node-abort-controller') -global.AbortController = AbortController - const { Command, Flags } = require('@oclif/core') const chalk = require('chalk') const coreConfig = require('@adobe/aio-lib-core-config')