npm dotenv-flow 4.0.0-rc.2
v4.0.0-rc.2

latest releases: 4.1.0, 4.0.1, 4.0.0...
13 months ago

✨ 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 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.
  • Dropped Node.js versions support prior to v12.

🏗️ Release Candidate 2 Updates

  • fix(dotenv-flow): mark typings' files as "publishing to npm

New Contributors

Full Changelog

v3.3.0...v4.0.0-rc.2

Don't miss a new dotenv-flow release

NewReleases is sending notifications on new releases.