Skip to content

Commit

Permalink
chore: release prep for 7.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
evanshortiss committed Aug 31, 2022
1 parent 1ca2976 commit a7493c8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions API.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ A complete listing of the `env-var` API.
* [asArray()](#asarraydelimiter-string)
* [asBool()](#asbool)
* [asBoolStrict()](#asboolstrict)
* [asEmailString()](#asemailstring)
* [asEnum()](#asenumvalidvalues-string)
* [asFloat()](#asfloat)
* [asFloatNegative()](#asfloatnegative)
Expand Down Expand Up @@ -196,6 +197,11 @@ Attempt to parse the variable to a Boolean. Throws an exception if parsing
fails. The var must be set to either "true" or "false" (upper or lowercase) to
succeed.

#### asEmailString()

Read the variable and validate that it's an email address. Throws an exception
if the value is not an email address.

#### asEnum(validValues: string[])

Converts the value to a string, and matches against the list of valid values.
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 7.2.0 (01/09/2022)
* Add `asEmailString()` accessor (#146)

## 7.1.1 (28/10/2021)
* Fix duplicate identifier error for TypeScript builds (#151)

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "env-var",
"version": "7.1.1",
"version": "7.2.0",
"description": "Verification, sanitization, and type coercion for environment variables in Node.js",
"main": "env-var.js",
"typings": "env-var.d.ts",
Expand Down

0 comments on commit a7493c8

Please sign in to comment.