Releases: kerimdzhanov/dotenv-flow
Releases · kerimdzhanov/dotenv-flow
v4.1.0
✨ 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
🐛 Bug Fixes
📃 Full Changelog
v4.0.0
✨ 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
📃 Full Changelog
v4.0.0-rc.3
✨ 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.
🏗️ 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
- @aymericbouzy made their first contribution in #54
Full Changelog
v4.0.0-rc.2
✨ 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.
🏗️ Release Candidate 2 Updates
- fix(dotenv-flow): mark typings' files as "publishing to npm
New Contributors
- @aymericbouzy made their first contribution in #54
Full Changelog
v4.0.0-rc.1
✨ 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
Full Changelog
v3.3.0
What's Changed
- Added the ability to
import dotenvFlow from 'dotenv-flow'
orrequire '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[email protected]
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