Skip to content

Releases: humanwhocodes/env

v2.1.4

05 Mar 02:25
Compare
Choose a tag to compare

v2.1.3

02 Mar 01:57
Compare
Choose a tag to compare

v2.1.2

05 Nov 02:12
Compare
Choose a tag to compare

v2.1.1

04 Nov 18:36
Compare
Choose a tag to compare

v2.1.0

15 Oct 19:25
Compare
Choose a tag to compare

v2.0.1

12 Oct 17:59
Compare
Choose a tag to compare

v2.0.0

09 Oct 16:28
Compare
Choose a tag to compare

v1.0.1

09 Oct 16:00
Compare
Choose a tag to compare

v1.0.0

24 Jul 17:57
Compare
Choose a tag to compare

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

08 Jul 17:22
Compare
Choose a tag to compare