Skip to content

Commit a7493c8

Browse files
committed
chore: release prep for 7.2.0
1 parent 1ca2976 commit a7493c8

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

API.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ A complete listing of the `env-var` API.
1515
* [asArray()](#asarraydelimiter-string)
1616
* [asBool()](#asbool)
1717
* [asBoolStrict()](#asboolstrict)
18+
* [asEmailString()](#asemailstring)
1819
* [asEnum()](#asenumvalidvalues-string)
1920
* [asFloat()](#asfloat)
2021
* [asFloatNegative()](#asfloatnegative)
@@ -196,6 +197,11 @@ Attempt to parse the variable to a Boolean. Throws an exception if parsing
196197
fails. The var must be set to either "true" or "false" (upper or lowercase) to
197198
succeed.
198199

200+
#### asEmailString()
201+
202+
Read the variable and validate that it's an email address. Throws an exception
203+
if the value is not an email address.
204+
199205
#### asEnum(validValues: string[])
200206

201207
Converts the value to a string, and matches against the list of valid values.

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 7.2.0 (01/09/2022)
2+
* Add `asEmailString()` accessor (#146)
3+
14
## 7.1.1 (28/10/2021)
25
* Fix duplicate identifier error for TypeScript builds (#151)
36

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "env-var",
3-
"version": "7.1.1",
3+
"version": "7.2.0",
44
"description": "Verification, sanitization, and type coercion for environment variables in Node.js",
55
"main": "env-var.js",
66
"typings": "env-var.d.ts",

0 commit comments

Comments
 (0)