From 557826355cea5a14fc1083b77461085bd28a6915 Mon Sep 17 00:00:00 2001 From: Roman Date: Sat, 30 May 2026 19:23:12 +0100 Subject: [PATCH] chore(deps): remove `aggregate-error` polyfill --- index.js | 1 - lib/get-pkg.js | 1 - lib/set-npmrc-auth.js | 1 - lib/verify-auth.js | 1 - package-lock.json | 2 -- package.json | 1 - test/verify-auth.test.js | 1 - 7 files changed, 8 deletions(-) diff --git a/index.js b/index.js index d43ada7e..8062ef65 100644 --- a/index.js +++ b/index.js @@ -1,5 +1,4 @@ import { castArray, defaultTo } from "lodash-es"; -import AggregateError from "aggregate-error"; import { temporaryFile } from "tempy"; import getPkg from "./lib/get-pkg.js"; import verifyNpmConfig from "./lib/verify-config.js"; diff --git a/lib/get-pkg.js b/lib/get-pkg.js index 706a2f7f..560b537a 100644 --- a/lib/get-pkg.js +++ b/lib/get-pkg.js @@ -1,6 +1,5 @@ import path from "path"; import { readPackage } from "read-pkg"; -import AggregateError from "aggregate-error"; import getError from "./get-error.js"; export default async function ({ pkgRoot }, { cwd }) { diff --git a/lib/set-npmrc-auth.js b/lib/set-npmrc-auth.js index a8534ca7..39ffa3d9 100644 --- a/lib/set-npmrc-auth.js +++ b/lib/set-npmrc-auth.js @@ -3,7 +3,6 @@ import rc from "rc"; import fs from "fs-extra"; import getAuthToken from "registry-auth-token"; import nerfDart from "nerf-dart"; -import AggregateError from "aggregate-error"; import getError from "./get-error.js"; import { OFFICIAL_REGISTRY } from "./definitions/constants.js"; diff --git a/lib/verify-auth.js b/lib/verify-auth.js index d0993376..b2c453c7 100644 --- a/lib/verify-auth.js +++ b/lib/verify-auth.js @@ -1,6 +1,5 @@ import { execa } from "execa"; import normalizeUrl from "normalize-url"; -import AggregateError from "aggregate-error"; import getRegistry from "./get-registry.js"; import setNpmrcAuth from "./set-npmrc-auth.js"; import getError from "./get-error.js"; diff --git a/package-lock.json b/package-lock.json index aacee79e..5e2647b2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,7 +11,6 @@ "dependencies": { "@actions/core": "^3.0.0", "@semantic-release/error": "^4.0.0", - "aggregate-error": "^5.0.0", "env-ci": "^11.2.0", "execa": "^9.0.0", "fs-extra": "^11.0.0", @@ -1329,7 +1328,6 @@ "dependencies": { "@actions/core": "^3.0.0", "@semantic-release/error": "^4.0.0", - "aggregate-error": "^5.0.0", "env-ci": "^11.2.0", "execa": "^9.0.0", "fs-extra": "^11.0.0", diff --git a/package.json b/package.json index a064bd33..9831fcc9 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,6 @@ "dependencies": { "@actions/core": "^3.0.0", "@semantic-release/error": "^4.0.0", - "aggregate-error": "^5.0.0", "env-ci": "^11.2.0", "execa": "^9.0.0", "fs-extra": "^11.0.0", diff --git a/test/verify-auth.test.js b/test/verify-auth.test.js index 2c166e4b..5f94c243 100644 --- a/test/verify-auth.test.js +++ b/test/verify-auth.test.js @@ -1,6 +1,5 @@ import test from "ava"; import * as td from "testdouble"; -import AggregateError from "aggregate-error"; import { OFFICIAL_REGISTRY } from "../lib/definitions/constants.js"; let execa, verifyAuth, getRegistry, setNpmrcAuth, oidcContextEstablished;