Skip to content

Upgrading dotenv 1 to 2

Breaking1.2.0 → 2.0.0Breaking2Other5

BreakingUpgrade verdict

2 breaking changes.

  • Variables are no longer expanded or escaped inside .env files; each value is used exactly as written.
  • Successful calls now give you the parsed values instead of just true.
2 items need code or config changes
Breaking2
Removes variable expansion and escaping so environment variables are fully orthogonal.
Returns the parsed object on success instead of boolean true.