From 4fcf0f586f7eb45d2598ab89e7563e5d283e6400 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 23 Feb 2026 06:35:02 +0000 Subject: [PATCH 1/3] deps: bump @eslint/js from 9.39.2 to 10.0.1 Bumps [@eslint/js](https://github.com/eslint/eslint/tree/HEAD/packages/js) from 9.39.2 to 10.0.1. - [Release notes](https://github.com/eslint/eslint/releases) - [Commits](https://github.com/eslint/eslint/commits/HEAD/packages/js) --- updated-dependencies: - dependency-name: "@eslint/js" dependency-version: 10.0.1 dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- package-lock.json | 34 ++++++++++++++-------------------- package.json | 2 +- 2 files changed, 15 insertions(+), 21 deletions(-) diff --git a/package-lock.json b/package-lock.json index b4ab145..b903dcf 100644 --- a/package-lock.json +++ b/package-lock.json @@ -27,7 +27,7 @@ "devDependencies": { "@commitlint/cli": "^20.1.0", "@commitlint/config-conventional": "^20.0.0", - "@eslint/js": "^9.37.0", + "@eslint/js": "^10.0.1", "@types/node": "^25.0.2", "@vitest/coverage-v8": "^4.0.6", "@vitest/ui": "^4.0.6", @@ -912,16 +912,24 @@ } }, "node_modules/@eslint/js": { - "version": "9.39.3", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.39.3.tgz", - "integrity": "sha512-1B1VkCq6FuUNlQvlBYb+1jDu/gV297TIs/OeiaSR9l1H27SVW55ONE1e1Vp16NqP683+xEGzxYtv4XCiDPaQiw==", + "version": "10.0.1", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-10.0.1.tgz", + "integrity": "sha512-zeR9k5pd4gxjZ0abRoIaxdc7I3nDktoXZk2qOv9gCNWx3mVwEn32VRhyLaRsDiJjTs0xq/T8mfPtyuXu7GWBcA==", "dev": true, "license": "MIT", "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + "node": "^20.19.0 || ^22.13.0 || >=24" }, "funding": { "url": "https://eslint.org/donate" + }, + "peerDependencies": { + "eslint": "^10.0.0" + }, + "peerDependenciesMeta": { + "eslint": { + "optional": true + } } }, "node_modules/@eslint/object-schema": { @@ -2897,7 +2905,6 @@ "integrity": "sha512-m0jEgYlYz+mDJZ2+F4v8D1AyQb+QzsNqRuI7xg1VQX/KlKS0qT9r1Mo16yo5F/MtifXFgaofIFsdFMox2SxIbQ==", "devOptional": true, "license": "MIT", - "peer": true, "dependencies": { "undici-types": "~7.16.0" } @@ -3043,7 +3050,6 @@ "integrity": "sha512-CGJ25bc8fRi8Lod/3GHSvXRKi7nBo3kxh0ApW4yCjmrWmRmlT53B5E08XRSZRliygG0aVNxLrBEqPYdz/KcCtQ==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@vitest/utils": "4.0.18", "fflate": "^0.8.2", @@ -3080,7 +3086,6 @@ "integrity": "sha512-UVJyE9MttOsBQIDKw1skb9nAwQuR5wuGD3+82K6JgJlm/Y+KI92oNsMNGZCYdDsVtRHSak0pcV5Dno5+4jh9sw==", "dev": true, "license": "MIT", - "peer": true, "bin": { "acorn": "bin/acorn" }, @@ -3438,7 +3443,6 @@ "integrity": "sha512-itvL5h8RETACmOTFc4UfIyB2RfEHi71Ax6E/PivVxq9NseKbOWpeyHEOIbmAw1rs8Ak0VursQNww7lf7YtUwzg==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "env-paths": "^2.2.1", "import-fresh": "^3.3.0", @@ -3688,7 +3692,6 @@ "integrity": "sha512-20MV9SUdeN6Jd84xESsKhRly+/vxI+hwvpBMA93s+9dAcjdCuCojn4IqUGS3lvVaqjVYGYHSRMCpeFtF2rQYxQ==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@eslint-community/eslint-utils": "^4.8.0", "@eslint-community/regexpp": "^4.12.2", @@ -3745,7 +3748,6 @@ "integrity": "sha512-82GZUjRS0p/jganf6q1rEO25VSoHH0hKPCTrgillPjdI/3bgBhAE1QzHrHTizjpRvy6pGAvKjDJtk2pF9NDq8w==", "dev": true, "license": "MIT", - "peer": true, "bin": { "eslint-config-prettier": "bin/cli.js" }, @@ -4860,7 +4862,6 @@ "dev": true, "hasInstallScript": true, "license": "MIT", - "peer": true, "dependencies": { "@inquirer/confirm": "^5.0.0", "@mswjs/interceptors": "^0.41.2", @@ -5182,7 +5183,6 @@ "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", "dev": true, "license": "MIT", - "peer": true, "engines": { "node": ">=12" }, @@ -5257,7 +5257,6 @@ "integrity": "sha512-UOnG6LftzbdaHZcKoPFtOcCKztrQ57WkHDeRD9t/PTQtmT0NHSeWWepj6pS0z/N7+08BHFDQVUrfmfMRcZwbMg==", "dev": true, "license": "MIT", - "peer": true, "bin": { "prettier": "bin/prettier.cjs" }, @@ -5758,15 +5757,13 @@ "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==", "dev": true, - "license": "0BSD", - "peer": true + "license": "0BSD" }, "node_modules/tsx": { "version": "4.21.0", "resolved": "https://registry.npmjs.org/tsx/-/tsx-4.21.0.tgz", "integrity": "sha512-5C1sg4USs1lfG0GFb2RLXsdpXqBSEhAaA/0kPL01wxzpMqLILNxIxIOKiILz+cdg/pLnOUxFYOR5yhHU666wbw==", "license": "MIT", - "peer": true, "dependencies": { "esbuild": "~0.27.0", "get-tsconfig": "^4.7.5" @@ -5884,7 +5881,6 @@ "integrity": "sha512-AkHmejxWKqssRveezrTjU+m+MMiu1+AIB4yIkqyprxdUZpGRUQo92L5S/FC6sPlPi83PlzT+okNWXOivQpdncg==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@typescript-eslint/scope-manager": "8.56.1-alpha.3", "@typescript-eslint/types": "8.56.1-alpha.3", @@ -6103,7 +6099,6 @@ "integrity": "sha512-w+N7Hifpc3gRjZ63vYBXA56dvvRlNWRczTdmCBBa+CotUzAPf5b7YMdMR/8CQoeYE5LX3W4wj6RYTgonm1b9DA==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "esbuild": "^0.27.0", "fdir": "^6.5.0", @@ -6179,7 +6174,6 @@ "integrity": "sha512-hOQuK7h0FGKgBAas7v0mSAsnvrIgAvWmRFjmzpJ7SwFHH3g1k2u37JtYwOwmEKhK6ZO3v9ggDBBm0La1LCK4uQ==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@vitest/expect": "4.0.18", "@vitest/mocker": "4.0.18", diff --git a/package.json b/package.json index e821dcb..6541095 100644 --- a/package.json +++ b/package.json @@ -44,7 +44,7 @@ "devDependencies": { "@commitlint/cli": "^20.1.0", "@commitlint/config-conventional": "^20.0.0", - "@eslint/js": "^9.37.0", + "@eslint/js": "^10.0.1", "@types/node": "^25.0.2", "@vitest/coverage-v8": "^4.0.6", "@vitest/ui": "^4.0.6", From c7d7265c5c0316b2ed5a4108639f73b928298683 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 23 Feb 2026 06:44:11 +0000 Subject: [PATCH 2/3] Initial plan From 425db9ae5e584901d6feaa0b77ddc2eb15ab92cf Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 23 Feb 2026 06:46:19 +0000 Subject: [PATCH 3/3] fix: resolve lint errors from ESLint 10 upgrade - Add error cause to preserve error chain in retry.ts, authConfig.ts, and fileConfig.ts - Remove useless initial assignment in redeploy.ts Co-authored-by: timowestnosto <13622115+timowestnosto@users.noreply.github.com> --- src/api/retry.ts | 4 +++- src/config/authConfig.ts | 4 ++-- src/config/fileConfig.ts | 4 ++-- src/modules/deployments/redeploy.ts | 2 +- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/api/retry.ts b/src/api/retry.ts index 6c4644e..982603a 100644 --- a/src/api/retry.ts +++ b/src/api/retry.ts @@ -22,7 +22,9 @@ async function executeWithRetry( if (operationType === "fetch") { Logger.error(`${chalk.red("✗")} ${chalk.cyan(filePath)}: ${errorMessage}`) } - throw new Error(`Failed to ${operationType} ${filePath} after ${MAX_RETRIES} retries: ${errorMessage}`) + throw new Error(`Failed to ${operationType} ${filePath} after ${MAX_RETRIES} retries: ${errorMessage}`, { + cause: error + }) } const delay = INITIAL_RETRY_DELAY * Math.pow(2, retryCount) Logger.warn( diff --git a/src/config/authConfig.ts b/src/config/authConfig.ts index 3d7ac48..d9fba43 100644 --- a/src/config/authConfig.ts +++ b/src/config/authConfig.ts @@ -32,10 +32,10 @@ export function parseAuthFile({ allowIncomplete }: { allowIncomplete?: boolean } return AuthConfigSchema.parse(rawConfig) } catch (error) { if (error instanceof z.ZodError) { - throw new Error(`Invalid auth file at ${AuthConfigFilePath}: ${error.message}`) + throw new Error(`Invalid auth file at ${AuthConfigFilePath}: ${error.message}`, { cause: error }) } if (error instanceof SyntaxError) { - throw new Error(`Invalid JSON in auth file at ${AuthConfigFilePath}: ${error.message}`) + throw new Error(`Invalid JSON in auth file at ${AuthConfigFilePath}: ${error.message}`, { cause: error }) } throw error } diff --git a/src/config/fileConfig.ts b/src/config/fileConfig.ts index 02d9e11..64d5063 100644 --- a/src/config/fileConfig.ts +++ b/src/config/fileConfig.ts @@ -29,10 +29,10 @@ export function parseConfigFile({ return PartialPersistentConfigSchema.parse(rawConfig) } catch (error) { if (error instanceof z.ZodError) { - throw new Error(`Invalid configuration file at ${configPath}: ${error.message}`) + throw new Error(`Invalid configuration file at ${configPath}: ${error.message}`, { cause: error }) } if (error instanceof SyntaxError) { - throw new Error(`Invalid JSON in configuration file at ${configPath}: ${error.message}`) + throw new Error(`Invalid JSON in configuration file at ${configPath}: ${error.message}`, { cause: error }) } throw error } diff --git a/src/modules/deployments/redeploy.ts b/src/modules/deployments/redeploy.ts index 3857c50..6203088 100644 --- a/src/modules/deployments/redeploy.ts +++ b/src/modules/deployments/redeploy.ts @@ -14,7 +14,7 @@ type RedeployOptions = { } export async function deploymentsRedeploy({ deploymentId, force }: RedeployOptions) { - let selectedDeployment = null + let selectedDeployment let selectedDeploymentId if (deploymentId) {