You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
"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 your package.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 use options.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 optional options.path, options.node_env, and options.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.