From b28ebf477f2fd3e80f8cab56828c90fbc1e6f2b0 Mon Sep 17 00:00:00 2001 From: Josef Strzibny Date: Mon, 9 Nov 2026 11:03:20 +0100 Subject: [PATCH] Pin dotenv to 17.4.2 for Node.js 7 compatibility dotenv 18 ships dist/index.cjs with object spread syntax, which Node.js 7 to 11 cannot parse. With the wildcard version, the CommonJS smoke tests started failing on Node.js 7 and fail-fast cancelled the rest of the matrix. The Node.js 7+ example had the same problem. Pin the CommonJS smoke test and the Node.js 7+ example to dotenv 17.4.2, the last version that passed the full CommonJS matrix. The ESM smoke tests and the Node.js 14+ example keep the wildcard. Co-authored-by: Claude Opus 5.5 (xhigh effort) --- examples/node/js_node_7_up/package.json | 2 +- smoke_tests/commonjs/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/node/js_node_7_up/package.json b/examples/node/js_node_7_up/package.json index ff501be..641432a 100644 --- a/examples/node/js_node_7_up/package.json +++ b/examples/node/js_node_7_up/package.json @@ -1,6 +1,6 @@ { "dependencies": { - "dotenv": "*", + "dotenv": "17.4.2", "serpapi": "*" }, "scripts": { diff --git a/smoke_tests/commonjs/package.json b/smoke_tests/commonjs/package.json index d1971c6..a665f7f 100644 --- a/smoke_tests/commonjs/package.json +++ b/smoke_tests/commonjs/package.json @@ -1,6 +1,6 @@ { "dependencies": { - "dotenv": "*", + "dotenv": "17.4.2", "serpapi": "../../npm" }, "scripts": {