Packages

dotenv

18.0.10 · 9 Nov 2026BSD-2-Clause284.8M / weekRepositoryHomepagenpmAtom feed

Upgrading dotenv From 4.0.0 to 5.0.0

1 release in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 4.0.0Latest18.0.10
  1. 4.0.0yours
  2. 5.0.0target
3
changes to make
0
advisories fixed
3
new
0
fixes

Before you upgrade

Tick each one off as you go
  • Breaking5.0.0
  • Breaking5.0.0
  • Breaking5.0.0

Release by release

  1. 5.0.0

    Migration needed29 Jan 20183 new
    • Breaking

      Breaking: default path is now path.resolve(process.cwd(), '.env')

    • Breaking

      Breaking: does not write over keys already in process.env if the key has a falsy value

    • Breaking

      Testing against Node v7

    • New

      Testing against Node v8 and v9

    • New

      Documentation on trim behavior of values

    • New

      Documentation on how to use with import

1 other line we could not sort, mostly version bumps
  • Using const and let instead of var

    5.0.0

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.