Skip to content

Pin dotenv to 17.4.2 for Node.js 7 compatibility - #58

Open
strzibny wants to merge 1 commit into
masterfrom
pin-dotenv-node7
Open

strzibny wants to merge 1 commit into
masterfrom
pin-dotenv-node7

Conversation

@strzibny

@strzibny strzibny commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

No description provided.

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) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant