Releases: humanwhocodes/env
Releases · humanwhocodes/env
v2.1.4
v2.1.3
v2.1.2
v2.1.1
v2.1.0
v2.0.1
v2.0.0
v1.0.1
v1.0.0
Overview
This version updates the require()
method and the required
property so both will throw not only when an environment variable doesn't exist, but also when the environment variable is an empty string. While this is an unlikely scenario in local development, it becomes more likely when using a continuous integration (CI) environment where you often need to define environment variable values in a location separate from where they are used. These changes help to identify such problems.
For backwards compatibility, a new exists
property was added that works the same as required
in versions prior to v1.0.0. Additionally, a new has()
method was added to allow you to check for the existence of an environment variable directly.
Changelog
v0.4.0
- 78a7685 Chore: Update release script to tweet out release info (@nzakas)
- ae84ae4 Upgrade: Bump acorn from 6.3.0 to 6.4.1 (#4) (@dependabot[bot])
- 1bab294 Chore: Add .gitattributes (@nzakas)
- 4b41385 Docs: Fix last example (closes #5) (@nzakas)
- 6b234be New: Add Env#first() method (@nzakas)
- 55b75bb Chore: Add funding link to package.json (@nzakas)
- 8d44670 Build: Update CI to include pull requests (@nzakas)