All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
- define package.json in exports
- updated dev dependencies via npm audit
- allow for
import "dotenv/config"
- point to exact types file to work with VS Code
- Breaking: drop support for Node v8
- Breaking: drop support for Node v6 (#392)
- Breaking: drop support for Node v6 (#302)
- Fix removing unbalanced quotes (#376)
- Removed
load
alias for config
for consistency throughout code and documentation.
- Support preload configuration via environment variables (#351)
debug
option for config
and parse
methods will turn on logging
- Breaking: drop support for Node v4 (#304)
- Testing against Node v8 and v9
- Documentation on trim behavior of values
- Documentation on how to use with
import
- Breaking: default
path
is now path.resolve(process.cwd(), '.env')
- Breaking: does not write over keys already in
process.env
if the key has a falsy value
- using
const
and let
instead of var
- Return Object with parsed content or error instead of false (#165).
verbose
option removed in favor of returning result.
verbose
option will log any error messages. Off by default.
- parses email addresses correctly
- allow importing config method directly in ES6
- Suppress error messages by default (#154)
- Ignoring more files for NPM to make package download smaller
- False positive test due to case-sensitive variable (#124)
silent
option removed in favor of verbose
- README has shorter description not referencing ruby gem since we don't have or want feature parity
- Variable expansion and escaping so environment variables are encouraged to be fully orthogonal
- Preload hook to require dotenv without including it in your code
- clarified license to be "BSD-2-Clause" in
package.json
- retain spaces in string vars
- Silent option to silence
console.log
when .env
missing
- support for multiple
.env
files. should always use one .env
file for the current environment