✨ New Features
options.pattern
- is a new configuration option that allows customizing the default.env*
files' naming convention. The default value of the pattern is.env[.node_env][.local]
as of the current default naming convention (see PR #71 for more details).options.debug
- is another new configuration option that if enabled, turns on dotenv-flow debug messaging (PR #76).- "In package" type definitions (
.d.ts
files) for better support of typescript and improved code completion (PR: #77). .config()
method is now returning an.error
if none of the appropriate.env*
files is present (PR: #70).- dotenv has been updated to v16.0.0 which adds support of multiline values, inline comments, and backticks in
.env*
files (by @aymericbouzy in #54).
💥 BREAKING CHANGES
- "In package" type definitions (
.d.ts
files) replace the "Definitely Typed"@types/dotenv-flow
package but might be conflicting. If you have@types/dotenv-flow
typings package in yourpackage.json
dependencies, please make sure to remove it once you upgrade dotenv-flow to v4 or above. .config()
method is now returning an.error
if none of the appropriate.env*
files is present (PR: #70).- Previously deprecated
options.cwd
has been removed, please useoptions.path
instead (PR: #72). - The exposed internal API method
.listDotenvFiles(dirname, options)
has been replaced with.listFiles(options)
. If you're using the method, please replace it with the new one. It receives optionaloptions.path
,options.node_env
, andoptions.pattern
and returns a list of existing.env*
files (PR: #75). - Updating dotenv brings multiline values, inline comments, and backticks support. Please check the contents of your
.env*
files and make sure that all the#
and backtick symbols are properly quoted if they are part of the value. - Dropped Node.js versions support prior to v12.
👏 New Contributors
- @aymericbouzy made their first contribution in #54