unstale

npm / dotenv

dotenv

What changed in dotenv 8 to 18, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.

3 breaking6 new APIs and options1 performance5 behavior and defaults1 tooling9 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

dotenv 1820 changes

Breaking changes 2

  • Support for .env.vault has been removed.

    18.0.0release notes

  • Preloading has been removed; use the CLI with dotenv run -- your-command instead.

    18.0.0release notes

New APIs and options 4

  • Pass fast: true to opt in to the approximately 2x faster character-scanner parser.

    18.0.0release notes

  • Set DOTENV_FAST=true to opt in to the approximately 2x faster character-scanner parser.

    18.0.0release notes

  • Dotenv now provides a CLI command to run a command with environment variables injected.

    18.0.0release notes

  • The CLI accepts --fast to opt in to the approximately 2x faster character-scanner parser.

    18.0.0release notes

Performance 1

  • Improves performance when processing large .env files.

    18.0.5release notes

Behavior and default changes 4

  • The CLI now permits DOTENV_PATH to be an empty string.

    18.0.9release notes

  • Undefined settings such as quiet: true are treated as null rather than falsey.

    18.0.7release notes

  • Importing dotenv/config now defaults quiet to true.

    18.0.4release notes

  • The injecting message is sent to stderr rather than stdout.

    18.0.0release notes

Tooling 1

Fixes and other changes 8

  • Fixed dotenv.parse in Vite by moving the CLI shebang to a separate entry point.

    18.0.10release notes

  • The fast parser strips appended extra quotes.

    18.0.8release notes

  • The CLI honors the DOTENV_QUIET setting in the .env file.

    18.0.7release notes

  • Uses smarter parseBoolean logic instead of Boolean() to fix override behavior.

    18.0.6release notes

  • Fixes a missing TypeScript module declaration.

    18.0.5release notes

  • Patches the DOTENV_QUIET setting when it is inside an .env file.

    18.0.3release notes

  • Additional edge cases in the fast parser were patched.

    18.0.2release notes

  • Config logging now handles file URLs.

    18.0.1release notes

dotenv 174 changes

New APIs and options 2

  • Adds focused dotenv and dotenvx agent skills for discovery via the skills.sh ecosystem.

    17.4.0release notes

  • DotenvPopulateInput now accepts the NodeJS.ProcessEnv type.

    17.2.4release notes

Behavior and default changes 1

  • Tightens up log output; injection messages now use the format ◇ injecting env (14) from .env.

    17.4.0release notes

Fixes and other changes 1

  • Changes the text from “injecting” to “injected.”

    17.4.1release notes

dotenv 81 changes

Breaking changes 1

  • Support for Node v6 was dropped; developers must use a newer Node version.

    8.0.0release notes