Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

build(sdk-js): drop the module resolution TypeScript 7 removed (#1843)

Yudhi Armyndharise1ed5544edd0
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 8c019b9b9..4bd68b329 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -23,6 +23,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
+- The JavaScript SDK CommonJS build no longer sets `moduleResolution` node10, which TypeScript 7 removed; the built output is unchanged.
- The JavaScript SDK smoke check sends requests through both built clients, so the Node 18 CI lane covers the request path.
- Retire the whatsapp-web.js download-mimetype install patch; inbound media downloads now pass the mimetype themselves.
- CI and the weekly security scan run `npm audit` over the JavaScript SDK, and Dependabot watches its lockfile.
diff --git a/sdk/javascript/tsconfig.cjs.json b/sdk/javascript/tsconfig.cjs.json
index cbd709199..2a54bd456 100644
--- a/sdk/javascript/tsconfig.cjs.json
+++ b/sdk/javascript/tsconfig.cjs.json
@@ -2,7 +2,6 @@
"compilerOptions": {
"target": "ES2022",
"module": "CommonJS",
- "moduleResolution": "Node",
"lib": ["ES2022", "DOM"],
"declaration": true,
"strict": true,