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(exampleandallowEmptyValues) can now be set with theDOTENV_CONFIG_EXAMPLEandDOTENV_CONFIG_ALLOW_EMPTY_VALUESenvironment variables when preloading.
- Breaking:
dotenvis now a peer dependency ofdotenv-safe. If you already use a previousdotenv-safeversion in your application, yourpackage-lock.jsonwill already reference a specificdotenvversion and no action is required. Otherwise, runningnpm install dotenv-safewill automatically install the latestdotenvversion, which may have breaking changes. You can runnpm list dotenvto confirm whichdotenvversion is being used by your application.
- Add missing package-lock.json.
- Upgraded
dotenvdependency to version 8.2.0. See dotenv's CHANGELOG for more details.
- Upgraded
dotenvdependency to version 8.1.0. See dotenv's CHANGELOG for more details
- Upgraded
dotenvdependency to version 6.1.0. See dotenv's CHANGELOG for more details
- Upgraded
dotenvdependency to version 6.0.0. See dotenv's CHANGELOG for more details
- Restored config.js file for preloading
exampleoption 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
dotenvdependency
- Fix missing variables not being shown in stack traces while running on Node 7
- Fix missing
MissingEnvVarsError.jserror when callingload()
loadmethod returns a result object instead oftrue- Throw a dedicated
MissingEnvVarsErrorinstead of a genericErrorif variables are missing.
- Compare example file to actual environment instead of
.env. This makes it easier to usedotenv-safein CI environments, where variables are likely to be injected by some external mechanism.
- Add
filesproperty topackage.json, reduces dependency size.
- Bump
dotenvdependency version.
- Fix
allowEmptyValuesto throw error when variable is missing.
- Add
allowEmptyValuesoption.
- Allow
dotenv-safeto be preloaded.
- Literally nothing. No idea why this release exists at all.
- Ignore empty environment variables when comparing current environment to the
.envfile.
- Don't load
.env.sampleautomatically
- Change
.env.exampleto take priority over.env.sampleif both exist.
- Update README on npm.
- Update README on npm.
- Initial release.