From 01e9ee545a05ae50470a4ad5c73e36d6a8d3b41c Mon Sep 17 00:00:00 2001 From: Ruben Romero Montes Date: Mon, 30 Mar 2026 09:39:54 +0200 Subject: [PATCH] fix: downgrade p-limit from v5 to v4 for webpack compatibility p-limit v5 uses Node.js subpath imports (#async_hooks) which webpack cannot resolve, breaking downstream consumers that bundle the client (e.g., the VS Code extension). v4 has an identical API without the subpath imports. Fixes #443 Co-Authored-By: Claude Opus 4.6 --- package-lock.json | 10 +++++----- package.json | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index 05d039e..96feaf7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -20,7 +20,7 @@ "js-yaml": "^4.1.1", "micromatch": "^4.0.8", "node-fetch": "^3.3.2", - "p-limit": "^5.0.0", + "p-limit": "^4.0.0", "packageurl-js": "~1.0.2", "smol-toml": "^1.6.0", "tree-sitter-requirements": "github:Strum355/tree-sitter-requirements#d0261ee76b84253997fe70d7d397e78c006c3801", @@ -5984,15 +5984,15 @@ } }, "node_modules/p-limit": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-5.0.0.tgz", - "integrity": "sha512-/Eaoq+QyLSiXQ4lyYV23f14mZRQcXnxfHrN0vCai+ak9G0pp9iEQukIIZq5NccEvwRB8PUnZT0KsOoDCINS1qQ==", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-4.0.0.tgz", + "integrity": "sha512-5b0R4txpzjPWVw/cXXUResoD4hb6U/x9BH08L7nw+GN1sezDzPdxeRvpc9c433fZhBan/wusjbCsqwqm4EIBIQ==", "license": "MIT", "dependencies": { "yocto-queue": "^1.0.0" }, "engines": { - "node": ">=18" + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" diff --git a/package.json b/package.json index e21a954..429fa5a 100644 --- a/package.json +++ b/package.json @@ -58,7 +58,7 @@ "js-yaml": "^4.1.1", "micromatch": "^4.0.8", "node-fetch": "^3.3.2", - "p-limit": "^5.0.0", + "p-limit": "^4.0.0", "packageurl-js": "~1.0.2", "smol-toml": "^1.6.0", "tree-sitter-requirements": "github:Strum355/tree-sitter-requirements#d0261ee76b84253997fe70d7d397e78c006c3801",