Skip to content

Releases: kerimdzhanov/dotenv-flow

v4.1.0

26 Dec 17:41
Compare
Choose a tag to compare

✨ New Features

  • options.files is a new configuration option that allows explicitly specifying a list (and the order) of .env* files to load (PR: #87).

📃 Full Changelog

v4.0.1...v4.1.0

v4.0.1

06 Nov 15:23
Compare
Choose a tag to compare

🐛 Bug Fixes

  • Fix preloading dotenv-flow/config using Mocha's -r switch (Issue: #81, PR: #82).

📃 Full Changelog

v4.0.0...v4.0.1

v4.0.0

28 Sep 18:06
Compare
Choose a tag to compare

✨ 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.

👏 New Contributors

📃 Full Changelog

v3.3.0...v4.0.0

v4.0.0-rc.3

26 Sep 17:53
Compare
Choose a tag to compare
v4.0.0-rc.3 Pre-release
Pre-release

✨ 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

🏗️ Release Candidate 3 Updates

  • feat(dotenv-flow): expose DEFAULT_PATTERN

New Contributors

Full Changelog

v3.3.0...v4.0.0-rc.3

v4.0.0-rc.2

21 Sep 18:53
Compare
Choose a tag to compare
v4.0.0-rc.2 Pre-release
Pre-release

✨ 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

v4.0.0-rc.1

21 Sep 02:04
Compare
Choose a tag to compare
v4.0.0-rc.1 Pre-release
Pre-release

✨ 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.

New Contributors

Full Changelog

v3.3.0...v4.0.0-rc.1

v3.3.0

26 Aug 00:22
Compare
Choose a tag to compare

What's Changed

  • Added the ability to import dotenvFlow from 'dotenv-flow' or require 'dotenv-flow/config' for importing and autoloading environment variables from TS/ES6+ by @perrin4869 in #57 (commit a20c0f)
  • Upgrade dotenv to v8.6.0 (fully backward compatible with dotenv-flow@v3.x branch)
  • Upgrade test dependencies (mocha, chai, sinon, etc.).

Bug Fixes

  • Fixed: When options.purge_dotenv is provided, load the rest of .env* files even if .env doesn't exist (07502e3), closes #50

New Contributors

Full Changelog

v3.2.0...v3.3.0