CHANGELOG

Changelog

All notable changes to this project will be documented in this file. See standard-versionarrow-up-right for commit guidelines.

Added

  • Breaking: Backtick support 🎉 (template literals). If you had values containing the backtick character, please quote those values with either single or double quotes.

Changed

v15.0.0 is a major new release with some important breaking changes.

Added

  • Breaking: Multiline parsing support (just works. no need for the flag.)

Changed

  • Breaking: # marks the beginning of a comment (UNLESS the value is wrapped in quotes. Please update your .env files to wrap in quotes any values containing #. For example: SECRET_HASH="something-with-a-#-hash").

..Understandably, (as some teams have noted) this is tedious to do across the entire team. To make it less tedious, we recommend using dotenv cliarrow-up-right going forward. It's an optional plugin that will keep your .env files in sync between machines, environments, or team members.

Removed

  • Breaking: Remove multiline option (just works out of the box now. no need for the flag.)

Changed

Changed

  • Preserve backwards compatibility on exports by re-introducing the prior in-place exports 🐞 (#606arrow-up-right)

Added

Added

  • Add dotenv_config_override cli option

  • Add DOTENV_CONFIG_OVERRIDE command line env option

Added

  • Add React gotcha to FAQ on README

Added

Added

Added

Changed

Added

Changed

  • README updates

  • Minor order adjustment to package json format

Changed

  • Simplified jsdoc for consistency across editors

Changed

  • Improve embedded jsdoc type documentation

Changed

  • README updates and clarifications

Removed

Changed

Changed

Added

  • Add generic support to parse function

  • Allow for import "dotenv/config.js"

  • Add support to resolve home directory in path via ~

9.0.2arrow-up-right (2021-05-10)

Changed

  • Support windows newlines with debug mode

9.0.1arrow-up-right (2021-05-08)

Changed

  • Updates to README

9.0.0arrow-up-right (2021-05-05)

Changed

  • Breaking: drop support for Node v8

8.6.0arrow-up-right (2021-05-05)

Added

  • define package.json in exports

8.5.1arrow-up-right (2021-05-05)

Changed

  • updated dev dependencies via npm audit

8.5.0arrow-up-right (2021-05-05)

Added

  • allow for import "dotenv/config"

8.4.0arrow-up-right (2021-05-05)

Changed

  • point to exact types file to work with VS Code

8.3.0arrow-up-right (2021-05-05)

Changed

  • Breaking: drop support for Node v8 (mistake to be released as minor bump. later bumped to 9.0.0. see above.)

8.2.0arrow-up-right (2019-10-16)

Added

  • TypeScript types

8.1.0arrow-up-right (2019-08-18)

Changed

8.0.0arrow-up-right (2019-05-02)

Changed

7.0.0arrow-up-right - 2019-03-12

Fixed

Removed

  • Removed load alias for config for consistency throughout code and documentation.

6.2.0arrow-up-right - 2018-12-03

Added

6.1.0arrow-up-right - 2018-10-08

Added

  • debug option for config and parse methods will turn on logging

6.0.0arrow-up-right - 2018-06-02

Changed

5.0.0arrow-up-right - 2018-01-29

Added

  • Testing against Node v8 and v9

  • Documentation on trim behavior of values

  • Documentation on how to use with import

Changed

  • 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

Removed

  • Testing against Node v7

4.0.0arrow-up-right - 2016-12-23

Changed

Removed

  • verbose option removed in favor of returning result.

3.0.0arrow-up-right - 2016-12-20

Added

  • verbose option will log any error messages. Off by default.

  • parses email addresses correctly

  • allow importing config method directly in ES6

Changed

  • Suppress error messages by default (#154arrow-up-right)

  • Ignoring more files for NPM to make package download smaller

Fixed

Removed

  • silent option removed in favor of verbose

2.0.0arrow-up-right - 2016-01-20

Added

Changed

  • README has shorter description not referencing ruby gem since we don't have or want feature parity

Removed

  • Variable expansion and escaping so environment variables are encouraged to be fully orthogonal

1.2.0arrow-up-right - 2015-06-20

Added

  • Preload hook to require dotenv without including it in your code

Changed

  • clarified license to be "BSD-2-Clause" in package.json

Fixed

  • retain spaces in string vars

1.1.0arrow-up-right - 2015-03-31

Added

  • Silent option to silence console.log when .env missing

1.0.0arrow-up-right - 2015-03-13

Removed

  • support for multiple .env files. should always use one .env file for the current environment

Last updated