From a335dc505a7633684d6f568dc6c2cb6759bed26e Mon Sep 17 00:00:00 2001 From: Cami Blanch Date: Thu, 17 Jul 2025 14:15:10 -0600 Subject: [PATCH 1/3] No long need .default when importing commonjs into esmodules --- rollup.config.mjs | 1 + 1 file changed, 1 insertion(+) diff --git a/rollup.config.mjs b/rollup.config.mjs index 5d2af50..01cdca4 100644 --- a/rollup.config.mjs +++ b/rollup.config.mjs @@ -32,6 +32,7 @@ export default { nodeResolve(), commonjs({ esmExternals: true, + requireReturnsDefault: true, }), json(), terser(), From c30c2d6afc6cd3c244841b61c3a83298b9c398e8 Mon Sep 17 00:00:00 2001 From: Cami Blanch Date: Thu, 17 Jul 2025 14:15:42 -0600 Subject: [PATCH 2/3] Removes .default that is no longer needed and no longer needs an explicit file extension --- src/HttpSender.js | 2 +- tests/{test_ExtractExample.mjs => test_ExtractExample.js} | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename tests/{test_ExtractExample.mjs => test_ExtractExample.js} (100%) diff --git a/src/HttpSender.js b/src/HttpSender.js index 551c66d..f488473 100644 --- a/src/HttpSender.js +++ b/src/HttpSender.js @@ -1,4 +1,4 @@ -const Axios = require("axios").default; +const Axios = require("axios"); const {buildSmartyResponse} = require("../src/util/buildSmartyResponse"); class HttpSender { diff --git a/tests/test_ExtractExample.mjs b/tests/test_ExtractExample.js similarity index 100% rename from tests/test_ExtractExample.mjs rename to tests/test_ExtractExample.js From ef55d15a7097b50c4f589b51dd5b19d557650796 Mon Sep 17 00:00:00 2001 From: Cami Blanch Date: Thu, 17 Jul 2025 14:21:13 -0600 Subject: [PATCH 3/3] Updates node versions --- .github/workflows/node-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/node-tests.yml b/.github/workflows/node-tests.yml index b8f353a..53476e5 100644 --- a/.github/workflows/node-tests.yml +++ b/.github/workflows/node-tests.yml @@ -13,7 +13,7 @@ jobs: strategy: matrix: - node-version: [16.x, 18.x, 20.x] + node-version: [20.x, 22.x, 24.x] steps: - uses: actions/checkout@v2