Skip to content

[codex] Remove dotenv dependency#2

Closed
sunflower0305 wants to merge 1 commit into
masterfrom
codex/remove-dotenv-dependency
Closed

[codex] Remove dotenv dependency#2
sunflower0305 wants to merge 1 commit into
masterfrom
codex/remove-dotenv-dependency

Conversation

@sunflower0305
Copy link
Copy Markdown
Owner

@sunflower0305 sunflower0305 commented May 1, 2026

What changed

  • Replace dotenv/config with Node's built-in process.loadEnvFile().
  • Remove the dotenv dependency from package metadata and the pnpm lockfile.
  • Raise the package engine requirement to Node.js 20.12+.
  • Load .env files through Node's built-in .env file support.
  • Add direct local integration coverage for .env loading and non-overwrite behavior.

Why

Node.js 20.12+ can load .env files without an external package, so the proxy can reduce one runtime dependency while preserving local .env configuration.

Malformed .env files now fail startup through process.loadEnvFile() instead of being ignored.

Validation

  • npm run build
  • npm run test:proxy-local (48 tests passed)

@sunflower0305 sunflower0305 force-pushed the codex/remove-dotenv-dependency branch from f8dc0ad to 0978777 Compare May 1, 2026 07:26
@sunflower0305
Copy link
Copy Markdown
Owner Author

Superseded by #3 and released in v1.2.0.

@sunflower0305 sunflower0305 deleted the codex/remove-dotenv-dependency branch May 1, 2026 07:58
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