From 01827ff955d0d41e312556e66e6e4fe783ad0ea9 Mon Sep 17 00:00:00 2001 From: Dave Horton Date: Thu, 9 Jul 2026 08:06:44 -0400 Subject: [PATCH] fix(deps): drop conflicting utf-8-validate/bufferutil optionalDependencies The optionalDependencies pinned utf-8-validate ^6.0.3, but ws@8 only accepts ^5.0.2 as its optional peer and ibm-watson's websocket dep hard-requires ^5.0.2. That 5.x-vs-6.x split forced a dual-version tree that npm 10 and npm 11 lay out differently, so a lockfile generated with npm 11 (local) failed 'npm ci' under npm 10 (CI, node 20) with 'Missing: utf-8-validate@5.0.10 from lock file'. The 6.x pin never accelerated ws anyway. Removing it collapses to a single utf-8-validate 5.0.10 that both npm majors resolve identically. Co-Authored-By: Claude Opus 4.8 --- package-lock.json | 24 +++--------------------- package.json | 4 ---- 2 files changed, 3 insertions(+), 25 deletions(-) diff --git a/package-lock.json b/package-lock.json index d0a32029..bcd62467 100644 --- a/package-lock.json +++ b/package-lock.json @@ -59,10 +59,6 @@ }, "engines": { "node": ">= 20.x" - }, - "optionalDependencies": { - "bufferutil": "^4.0.8", - "utf-8-validate": "^6.0.3" } }, "node_modules/@aws-crypto/sha256-browser": { @@ -10953,12 +10949,11 @@ } }, "node_modules/utf-8-validate": { - "version": "6.0.6", - "resolved": "https://registry.npmjs.org/utf-8-validate/-/utf-8-validate-6.0.6.tgz", - "integrity": "sha512-q3l3P9UtEEiAHcsgsqTgf9PPjctrDWoIXW3NpOHFdRDbLvu4DLIcxHangJ4RLrWkBcKjmcs/6NkerI8T/rE4LA==", + "version": "5.0.10", + "resolved": "https://registry.npmjs.org/utf-8-validate/-/utf-8-validate-5.0.10.tgz", + "integrity": "sha512-Z6czzLq4u8fPOyx7TU6X3dvUZVvoJmxSQ+IcrlmagKhilxlhZgxPK6C5Jqbkw1IDUmFTM+cz9QDnnLTwDz/2gQ==", "hasInstallScript": true, "license": "MIT", - "optional": true, "dependencies": { "node-gyp-build": "^4.3.0" }, @@ -11101,19 +11096,6 @@ "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", "license": "MIT" }, - "node_modules/websocket/node_modules/utf-8-validate": { - "version": "5.0.10", - "resolved": "https://registry.npmjs.org/utf-8-validate/-/utf-8-validate-5.0.10.tgz", - "integrity": "sha512-Z6czzLq4u8fPOyx7TU6X3dvUZVvoJmxSQ+IcrlmagKhilxlhZgxPK6C5Jqbkw1IDUmFTM+cz9QDnnLTwDz/2gQ==", - "hasInstallScript": true, - "license": "MIT", - "dependencies": { - "node-gyp-build": "^4.3.0" - }, - "engines": { - "node": ">=6.14.2" - } - }, "node_modules/whatwg-url": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", diff --git a/package.json b/package.json index f1be8b6e..63e2330c 100644 --- a/package.json +++ b/package.json @@ -72,9 +72,5 @@ "nyc": "^15.1.0", "proxyquire": "^2.1.3", "tape": "^5.7.5" - }, - "optionalDependencies": { - "bufferutil": "^4.0.8", - "utf-8-validate": "^6.0.3" } }