From 9076fd3e9b11beb52d08a4d24365e4251ea86cb9 Mon Sep 17 00:00:00 2001 From: Rob Di Marco Date: Mon, 12 Jan 2026 17:04:43 -0500 Subject: [PATCH] fix: modernize TypeScript module resolution to resolve deprecation warnings Updated moduleResolution from deprecated 'node' (node10) to modern alternatives: - ESM configs: 'bundler' for packages and examples that target bundlers - CJS configs: 'node16' for dual-package CommonJS builds This resolves TypeScript 7.0 deprecation warnings while maintaining compatibility. --- examples/basic/tsconfig.json | 2 +- examples/batch-payments/tsconfig.json | 2 +- examples/vercel-sdk/tsconfig.json | 2 +- packages/atxp-client/tsconfig.cjs.json | 2 +- packages/atxp-client/tsconfig.json | 2 +- packages/atxp-common/tsconfig.cjs.json | 2 +- packages/atxp-common/tsconfig.json | 2 +- packages/atxp-express/tsconfig.json | 2 +- packages/atxp-redis/tsconfig.json | 2 +- packages/atxp-server/tsconfig.json | 2 +- packages/atxp-sqlite/tsconfig.json | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) diff --git a/examples/basic/tsconfig.json b/examples/basic/tsconfig.json index 81b118b2..2152c7f4 100644 --- a/examples/basic/tsconfig.json +++ b/examples/basic/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "target": "ES2022", "module": "ESNext", - "moduleResolution": "node", + "moduleResolution": "bundler", "allowSyntheticDefaultImports": true, "esModuleInterop": true, "allowJs": true, diff --git a/examples/batch-payments/tsconfig.json b/examples/batch-payments/tsconfig.json index 893326ad..7f7e4d5f 100644 --- a/examples/batch-payments/tsconfig.json +++ b/examples/batch-payments/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "target": "ES2022", "module": "ES2022", - "moduleResolution": "node", + "moduleResolution": "bundler", "lib": ["ES2022"], "outDir": "./dist", "rootDir": "./src", diff --git a/examples/vercel-sdk/tsconfig.json b/examples/vercel-sdk/tsconfig.json index 81b118b2..2152c7f4 100644 --- a/examples/vercel-sdk/tsconfig.json +++ b/examples/vercel-sdk/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "target": "ES2022", "module": "ESNext", - "moduleResolution": "node", + "moduleResolution": "bundler", "allowSyntheticDefaultImports": true, "esModuleInterop": true, "allowJs": true, diff --git a/packages/atxp-client/tsconfig.cjs.json b/packages/atxp-client/tsconfig.cjs.json index 87f5a7b8..7d139abf 100644 --- a/packages/atxp-client/tsconfig.cjs.json +++ b/packages/atxp-client/tsconfig.cjs.json @@ -2,7 +2,7 @@ "extends": "./tsconfig.json", "compilerOptions": { "module": "CommonJS", - "moduleResolution": "node", + "moduleResolution": "node16", "outDir": "./dist-cjs" } } \ No newline at end of file diff --git a/packages/atxp-client/tsconfig.json b/packages/atxp-client/tsconfig.json index 36aa2bd1..241b1675 100644 --- a/packages/atxp-client/tsconfig.json +++ b/packages/atxp-client/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "target": "ES2020", "module": "ESNext", - "moduleResolution": "node", + "moduleResolution": "bundler", "lib": ["ES2020", "DOM"], "outDir": "./dist", "rootDir": "./src", diff --git a/packages/atxp-common/tsconfig.cjs.json b/packages/atxp-common/tsconfig.cjs.json index 87f5a7b8..7d139abf 100644 --- a/packages/atxp-common/tsconfig.cjs.json +++ b/packages/atxp-common/tsconfig.cjs.json @@ -2,7 +2,7 @@ "extends": "./tsconfig.json", "compilerOptions": { "module": "CommonJS", - "moduleResolution": "node", + "moduleResolution": "node16", "outDir": "./dist-cjs" } } \ No newline at end of file diff --git a/packages/atxp-common/tsconfig.json b/packages/atxp-common/tsconfig.json index 9a7d3d37..b78d35f5 100644 --- a/packages/atxp-common/tsconfig.json +++ b/packages/atxp-common/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "target": "ES2020", "module": "ESNext", - "moduleResolution": "node", + "moduleResolution": "bundler", "lib": ["ES2020", "DOM"], "outDir": "./dist", "rootDir": "./src", diff --git a/packages/atxp-express/tsconfig.json b/packages/atxp-express/tsconfig.json index a217d2df..b7714ca9 100644 --- a/packages/atxp-express/tsconfig.json +++ b/packages/atxp-express/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "target": "ES2020", "module": "ESNext", - "moduleResolution": "node", + "moduleResolution": "bundler", "lib": ["ES2020", "DOM"], "outDir": "./dist", "rootDir": "./src", diff --git a/packages/atxp-redis/tsconfig.json b/packages/atxp-redis/tsconfig.json index 36aa2bd1..241b1675 100644 --- a/packages/atxp-redis/tsconfig.json +++ b/packages/atxp-redis/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "target": "ES2020", "module": "ESNext", - "moduleResolution": "node", + "moduleResolution": "bundler", "lib": ["ES2020", "DOM"], "outDir": "./dist", "rootDir": "./src", diff --git a/packages/atxp-server/tsconfig.json b/packages/atxp-server/tsconfig.json index d85cdb19..2d614886 100644 --- a/packages/atxp-server/tsconfig.json +++ b/packages/atxp-server/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "target": "ES2020", "module": "ESNext", - "moduleResolution": "node", + "moduleResolution": "bundler", "lib": ["ES2020", "DOM"], "outDir": "./dist", "rootDir": "./src", diff --git a/packages/atxp-sqlite/tsconfig.json b/packages/atxp-sqlite/tsconfig.json index 36aa2bd1..241b1675 100644 --- a/packages/atxp-sqlite/tsconfig.json +++ b/packages/atxp-sqlite/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "target": "ES2020", "module": "ESNext", - "moduleResolution": "node", + "moduleResolution": "bundler", "lib": ["ES2020", "DOM"], "outDir": "./dist", "rootDir": "./src",