All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- Options specific to
dotenv-safe
(example
andallowEmptyValues
) can now be set with theDOTENV_CONFIG_EXAMPLE
andDOTENV_CONFIG_ALLOW_EMPTY_VALUES
environment variables when preloading.
- Breaking:
dotenv
is now a peer dependency ofdotenv-safe
. If you already use a previousdotenv-safe
version in your application, yourpackage-lock.json
will already reference a specificdotenv
version and no action is required. Otherwise, runningnpm install dotenv-safe
will automatically install the latestdotenv
version, which may have breaking changes. You can runnpm list dotenv
to confirm whichdotenv
version is being used by your application.
- Add missing package-lock.json.
- Upgraded
dotenv
dependency to version 8.2.0. See dotenv's CHANGELOG for more details.
- Upgraded
dotenv
dependency to version 8.1.0. See dotenv's CHANGELOG for more details
- Upgraded
dotenv
dependency to version 6.1.0. See dotenv's CHANGELOG for more details
- Upgraded
dotenv
dependency to version 6.0.0. See dotenv's CHANGELOG for more details
- Restored config.js file for preloading
example
option as an alias ofsample
- Testing against Node v8 and v9
- Breaking: Updated to dotenv 5.0.0. See dotenv's CHANGELOG for more details
- Slightly reworded error messages
- Updated code to use ES6 syntax features
- Testing against Node v7
- Fix installation instructions for yarn. Released only to update README on npmjs.com.
- Bump
dotenv
dependency
- Fix missing variables not being shown in stack traces while running on Node 7
- Fix missing
MissingEnvVarsError.js
error when callingload()
load
method returns a result object instead oftrue
- Throw a dedicated
MissingEnvVarsError
instead of a genericError
if variables are missing.
- Compare example file to actual environment instead of
.env
. This makes it easier to usedotenv-safe
in CI environments, where variables are likely to be injected by some external mechanism.
- Add
files
property topackage.json
, reduces dependency size.
- Bump
dotenv
dependency version.
- Fix
allowEmptyValues
to throw error when variable is missing.
- Add
allowEmptyValues
option.
- Allow
dotenv-safe
to be preloaded.
- Literally nothing. No idea why this release exists at all.
- Ignore empty environment variables when comparing current environment to the
.env
file.
- Don't load
.env.sample
automatically
- Change
.env.example
to take priority over.env.sample
if both exist.
- Update README on npm.
- Update README on npm.
- Initial release.