npm / dotenv-defaults
dotenv-defaults
What changed in dotenv-defaults 2 to 6, from its official release notes, upgrade guides and advisories. Also covers @types/dotenv-defaults. Sources checked 2026-10-27.
10 breaking1 new APIs and options2 behavior and defaults1 tooling
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initdotenv-defaults 68 changes
Breaking changes 5
The package now provides config as a named export for ESM imports.
The package is ESM-only; CommonJS require() is no longer supported, so users must use ESM import syntax.
The CLI preload flag changes from -r to --import.
The minimum supported Node.js version is now 18.0.0, up from 12+.
The package now provides parse as a named export for ESM imports.
New APIs and options 1
The package now includes TypeScript type definitions, including ConfigOptions for typing configuration options.
Behavior and default changes 1
Modern package exports improve import resolution.
Tooling 1
The package includes .d.ts files, providing TypeScript support without requiring a build step.
dotenv-defaults 41 changes
Breaking changes 1
Support for Node v10 was dropped.
dotenv-defaults 33 changes
Breaking changes 2
Drops support for dotenv 8 and 9.
Drops support for Node v8 and v9.
Behavior and default changes 1
Adds support for dotenv 10.
dotenv-defaults 22 changes
Breaking changes 2
The load alias for config was removed because it had already been removed in dotenv v7.0.0.
Support for Node v6, which has reached end-of-life, was dropped.