1 | #### 10.9.0
|
2 |
|
3 | - Added an option to `isURL()` to reject email-like URLs
|
4 | ([#901](https://github.com/chriso/validator.js/pull/901))
|
5 | - Added a `strict` option to `isISO8601()`
|
6 | ([#910](https://github.com/chriso/validator.js/pull/910))
|
7 | - Relaxed `isJWT()` signature requirements
|
8 | ([#906](https://github.com/chriso/validator.js/pull/906))
|
9 | - New and improved locales
|
10 | ([#899](https://github.com/chriso/validator.js/pull/899),
|
11 | [#904](https://github.com/chriso/validator.js/pull/904),
|
12 | [#913](https://github.com/chriso/validator.js/pull/913),
|
13 | [#916](https://github.com/chriso/validator.js/pull/916),
|
14 | [#925](https://github.com/chriso/validator.js/pull/925),
|
15 | [#928](https://github.com/chriso/validator.js/pull/928))
|
16 |
|
17 | #### 10.8.0
|
18 |
|
19 | - Added `isIdentityCard()`
|
20 | ([#846](https://github.com/chriso/validator.js/pull/846))
|
21 | - Better error when validators are passed an invalid type
|
22 | ([#895](https://github.com/chriso/validator.js/pull/895))
|
23 | - Locales are now exported
|
24 | ([#890](https://github.com/chriso/validator.js/pull/890),
|
25 | [#892](https://github.com/chriso/validator.js/pull/892))
|
26 | - New locale
|
27 | ([#896](https://github.com/chriso/validator.js/pull/896))
|
28 |
|
29 | #### 10.7.1
|
30 |
|
31 | - Ignore case when checking URL protocol
|
32 | ([#887](https://github.com/chriso/validator.js/issues/887))
|
33 | - Locale fix
|
34 | ([#889](https://github.com/chriso/validator.js/pull/889))
|
35 |
|
36 | #### 10.7.0
|
37 |
|
38 | - Added `isMagnetURI()` to validate [magnet URIs](https://en.wikipedia.org/wiki/Magnet_URI_scheme)
|
39 | ([#884](https://github.com/chriso/validator.js/pull/884))
|
40 | - Added `isJWT()` to validate [JSON web tokens](https://en.wikipedia.org/wiki/JSON_Web_Token)
|
41 | ([#885](https://github.com/chriso/validator.js/pull/885))
|
42 |
|
43 | #### 10.6.0
|
44 |
|
45 | - Updated `isMobilePhone()` to match any locale's pattern by default
|
46 | ([#874](https://github.com/chriso/validator.js/pull/874))
|
47 | - Added an option to ignore whitespace in `isEmpty()`
|
48 | ([#880](https://github.com/chriso/validator.js/pull/880))
|
49 | - New and improved locales
|
50 | ([#878](https://github.com/chriso/validator.js/pull/878),
|
51 | [#879](https://github.com/chriso/validator.js/pull/879))
|
52 |
|
53 | #### 10.5.0
|
54 |
|
55 | - Disabled domain-specific email validation
|
56 | ([#873](https://github.com/chriso/validator.js/pull/873))
|
57 | - Added support for IP hostnames in `isEmail()`
|
58 | ([#845](https://github.com/chriso/validator.js/pull/845))
|
59 | - Added a `no_symbols` option to `isNumeric()`
|
60 | ([#848](https://github.com/chriso/validator.js/pull/848))
|
61 | - Added a `no_colons` option to `isMACAddress()`
|
62 | ([#849](https://github.com/chriso/validator.js/pull/849))
|
63 | - Updated `isURL()` to reject protocol relative URLs unless a flag is set
|
64 | ([#860](https://github.com/chriso/validator.js/issues/860))
|
65 | - New and improved locales
|
66 | ([#801](https://github.com/chriso/validator.js/pull/801),
|
67 | [#856](https://github.com/chriso/validator.js/pull/856),
|
68 | [#859](https://github.com/chriso/validator.js/issues/859),
|
69 | [#861](https://github.com/chriso/validator.js/pull/861),
|
70 | [#862](https://github.com/chriso/validator.js/pull/862),
|
71 | [#863](https://github.com/chriso/validator.js/pull/863),
|
72 | [#864](https://github.com/chriso/validator.js/pull/864),
|
73 | [#870](https://github.com/chriso/validator.js/pull/870),
|
74 | [#872](https://github.com/chriso/validator.js/pull/872))
|
75 |
|
76 | #### 10.4.0
|
77 |
|
78 | - Added an `isIPRange()` validator
|
79 | ([#842](https://github.com/chriso/validator.js/pull/842))
|
80 | - Accept an array of locales in `isMobilePhone()`
|
81 | ([#742](https://github.com/chriso/validator.js/pull/742))
|
82 | - New locale
|
83 | ([#843](https://github.com/chriso/validator.js/pull/843))
|
84 |
|
85 | #### 10.3.0
|
86 |
|
87 | - Strict Gmail validation in `isEmail()`
|
88 | ([#832](https://github.com/chriso/validator.js/pull/832))
|
89 | - New locales
|
90 | ([#831](https://github.com/chriso/validator.js/pull/831),
|
91 | [#835](https://github.com/chriso/validator.js/pull/835),
|
92 | [#836](https://github.com/chriso/validator.js/pull/836))
|
93 |
|
94 | #### 10.2.0
|
95 |
|
96 | - Export the list of supported locales in `isPostalCode()`
|
97 | ([#830](https://github.com/chriso/validator.js/pull/830))
|
98 |
|
99 | #### 10.1.0
|
100 |
|
101 | - Added an `isISO31661Alpha3()` validator
|
102 | ([#809](https://github.com/chriso/validator.js/pull/809))
|
103 |
|
104 | #### 10.0.0
|
105 |
|
106 | - Allow floating points in `isNumeric()`
|
107 | ([#810](https://github.com/chriso/validator.js/pull/810))
|
108 | - Disallow GMail addresses with multiple consecutive dots, or leading/trailing dots
|
109 | ([#820](https://github.com/chriso/validator.js/pull/820))
|
110 | - Added an `isRFC3339()` validator
|
111 | ([#816](https://github.com/chriso/validator.js/pull/816))
|
112 | - Reject domain parts longer than 63 octets in `isFQDN()`, `isURL()` and `isEmail()`
|
113 | ([bb3e542](https://github.com/chriso/validator.js/commit/bb3e542))
|
114 | - Added a new Amex prefix to `isCreditCard()`
|
115 | ([#805](https://github.com/chriso/validator.js/pull/805))
|
116 | - Fixed `isFloat()` min/max/gt/lt filters when a locale with a comma decimal is used
|
117 | ([2b70821](https://github.com/chriso/validator.js/commit/2b70821))
|
118 | - Normalize Yandex emails
|
119 | ([#807](https://github.com/chriso/validator.js/pull/807))
|
120 | - New locales
|
121 | ([#803](https://github.com/chriso/validator.js/pull/803))
|
122 |
|
123 | #### 9.4.1
|
124 |
|
125 | - Patched a [REDOS](https://en.wikipedia.org/wiki/ReDoS) vulnerability in `isDataURI`
|
126 | - New and improved locales
|
127 | ([#788](https://github.com/chriso/validator.js/pull/788))
|
128 |
|
129 | #### 9.4.0
|
130 |
|
131 | - Added an option to `isMobilePhone` to require a country code
|
132 | ([#769](https://github.com/chriso/validator.js/pull/769))
|
133 | - New and improved locales
|
134 | ([#785](https://github.com/chriso/validator.js/pull/785))
|
135 |
|
136 | #### 9.3.0
|
137 |
|
138 | - New and improved locales
|
139 | ([#763](https://github.com/chriso/validator.js/pull/763),
|
140 | [#768](https://github.com/chriso/validator.js/pull/768),
|
141 | [#774](https://github.com/chriso/validator.js/pull/774),
|
142 | [#777](https://github.com/chriso/validator.js/pull/777),
|
143 | [#779](https://github.com/chriso/validator.js/pull/779))
|
144 |
|
145 | #### 9.2.0
|
146 |
|
147 | - Added an `isMimeType()` validator
|
148 | ([#760](https://github.com/chriso/validator.js/pull/760))
|
149 | - New and improved locales
|
150 | ([#753](https://github.com/chriso/validator.js/pull/753),
|
151 | [#755](https://github.com/chriso/validator.js/pull/755),
|
152 | [#764](https://github.com/chriso/validator.js/pull/764))
|
153 |
|
154 | #### 9.1.2
|
155 |
|
156 | - Fixed a bug with the `isFloat` validator
|
157 | ([#752](https://github.com/chriso/validator.js/pull/752))
|
158 |
|
159 | #### 9.1.1
|
160 |
|
161 | - Locale fixes
|
162 | ([#738](https://github.com/chriso/validator.js/pull/738),
|
163 | [#739](https://github.com/chriso/validator.js/pull/739))
|
164 |
|
165 | #### 9.1.0
|
166 |
|
167 | - Added an `isISO31661Alpha2()` validator
|
168 | ([#734](https://github.com/chriso/validator.js/pull/734))
|
169 | - New locales
|
170 | ([#735](https://github.com/chriso/validator.js/pull/735),
|
171 | [#737](https://github.com/chriso/validator.js/pull/737))
|
172 |
|
173 | #### 9.0.0
|
174 |
|
175 | - `normalizeEmail()` no longer validates the email address
|
176 | ([#725](https://github.com/chriso/validator.js/pull/725))
|
177 | - Added locale-aware validation to `isFloat()` and `isDecimal()`
|
178 | ([#721](https://github.com/chriso/validator.js/pull/721))
|
179 | - Added an `isPort()` validator
|
180 | ([#733](https://github.com/chriso/validator.js/pull/733))
|
181 | - New locales
|
182 | ([#731](https://github.com/chriso/validator.js/pull/731))
|
183 |
|
184 | #### 8.2.0
|
185 |
|
186 | - Added an `isHash()` validator
|
187 | ([#711](https://github.com/chriso/validator.js/pull/711))
|
188 | - Control decimal places in `isCurrency()`
|
189 | ([#713](https://github.com/chriso/validator.js/pull/713))
|
190 | - New and improved locales
|
191 | ([#700](https://github.com/chriso/validator.js/pull/700),
|
192 | [#701](https://github.com/chriso/validator.js/pull/701),
|
193 | [#714](https://github.com/chriso/validator.js/pull/714),
|
194 | [#715](https://github.com/chriso/validator.js/pull/715),
|
195 | [#718](https://github.com/chriso/validator.js/pull/718))
|
196 |
|
197 | #### 8.1.0
|
198 |
|
199 | - Fix `require('validator/lib/isIS8601')` calls
|
200 | ([#688](https://github.com/chriso/validator.js/issues/688))
|
201 | - Added an `isLatLong()` and `isPostalCode()` validator
|
202 | ([#684](https://github.com/chriso/validator.js/pull/684))
|
203 | - Allow comma in email display names
|
204 | ([#692](https://github.com/chriso/validator.js/pull/692))
|
205 | - Add missing string to `unescape()`
|
206 | ([#690](https://github.com/chriso/validator.js/pull/690))
|
207 | - Fix `isMobilePhone()` with Node <= 6.x
|
208 | ([#681](https://github.com/chriso/validator.js/issues/681))
|
209 | - New locales
|
210 | ([#695](https://github.com/chriso/validator.js/pull/695))
|
211 |
|
212 | #### 8.0.0
|
213 |
|
214 | - `isURL()` now requires the `require_tld: false` option to validate `localhost`
|
215 | ([#675](https://github.com/chriso/validator.js/issues/675))
|
216 | - `isURL()` now rejects URLs that are protocol only
|
217 | ([#642](https://github.com/chriso/validator.js/issues/642))
|
218 | - Fixed a bug where `isMobilePhone()` would silently return false if the locale was invalid or unsupported
|
219 | ([#657](https://github.com/chriso/validator.js/issues/657))
|
220 |
|
221 | #### 7.2.0
|
222 |
|
223 | - Added an option to validate any phone locale
|
224 | ([#663](https://github.com/chriso/validator.js/pull/663))
|
225 | - Fixed a bug in credit card validation
|
226 | ([#672](https://github.com/chriso/validator.js/pull/672))
|
227 | - Disallow whitespace, including unicode whitespace, in TLDs
|
228 | ([#677](https://github.com/chriso/validator.js/pull/677))
|
229 | - New locales
|
230 | ([#673](https://github.com/chriso/validator.js/pull/673),
|
231 | [#676](https://github.com/chriso/validator.js/pull/676))
|
232 |
|
233 | #### 7.1.0
|
234 |
|
235 | - Added an `isISRC()` validator for [ISRC](https://en.wikipedia.org/wiki/International_Standard_Recording_Code)
|
236 | ([#660](https://github.com/chriso/validator.js/pull/660))
|
237 | - Fixed a bug in credit card validation
|
238 | ([#670](https://github.com/chriso/validator.js/pull/670))
|
239 | - Reduced the maximum allowed address in `isEmail()` based on
|
240 | [RFC3696 errata](http://www.rfc-editor.org/errata_search.php?rfc=3696&eid=1690)
|
241 | ([#655](https://github.com/chriso/validator.js/issues/655))
|
242 | - New locales
|
243 | ([#647](https://github.com/chriso/validator.js/pull/647),
|
244 | [#667](https://github.com/chriso/validator.js/pull/667),
|
245 | [#667](https://github.com/chriso/validator.js/pull/667),
|
246 | [#671](https://github.com/chriso/validator.js/pull/671))
|
247 |
|
248 | #### 7.0.0
|
249 |
|
250 | - Remove `isDate()`
|
251 |
|
252 | #### 6.3.0
|
253 |
|
254 | - Allow values like `-.01` in `isFloat()`
|
255 | ([#618](https://github.com/chriso/validator.js/issues/618))
|
256 | - New locales
|
257 | ([#616](https://github.com/chriso/validator.js/pull/616),
|
258 | [#622](https://github.com/chriso/validator.js/pull/622),
|
259 | [#627](https://github.com/chriso/validator.js/pull/627),
|
260 | [#630](https://github.com/chriso/validator.js/pull/630))
|
261 |
|
262 | #### 6.2.1
|
263 |
|
264 | - Disallow `<` and `>` in URLs
|
265 | ([#613](https://github.com/chriso/validator.js/issues/613))
|
266 | - New locales
|
267 | ([#610](https://github.com/chriso/validator.js/pull/610))
|
268 |
|
269 | #### 6.2.0
|
270 |
|
271 | - Added an option to require an email display name
|
272 | ([#607](https://github.com/chriso/validator.js/pull/607))
|
273 | - Added support for `lt` and `gt` to `isInt()`
|
274 | ([#588](https://github.com/chriso/validator.js/pull/588))
|
275 | - New locales
|
276 | ([#601](https://github.com/chriso/validator.js/pull/601))
|
277 |
|
278 | #### 6.1.0
|
279 |
|
280 | - Added support for greater or less than in `isFloat()`
|
281 | ([#544](https://github.com/chriso/validator.js/issues/544))
|
282 | - Added support for ISSN validation via `isISSN()`
|
283 | ([#593](https://github.com/chriso/validator.js/pull/593))
|
284 | - Fixed a bug in `normalizeEmail()`
|
285 | ([#594](https://github.com/chriso/validator.js/issues/594))
|
286 | - New locales
|
287 | ([#585](https://github.com/chriso/validator.js/pull/585))
|
288 |
|
289 | #### 6.0.0
|
290 |
|
291 | - Renamed `isNull()` to `isEmpty()`
|
292 | ([#574](https://github.com/chriso/validator.js/issues/574))
|
293 | - Backslash is now escaped in `escape()`
|
294 | ([#516](https://github.com/chriso/validator.js/issues/516))
|
295 | - Improved `normalizeEmail()`
|
296 | ([#583](https://github.com/chriso/validator.js/pull/583))
|
297 | - Allow leading zeroes by default in `isInt()`
|
298 | ([#532](https://github.com/chriso/validator.js/pull/532))
|
299 |
|
300 | #### 5.7.0
|
301 |
|
302 | - Added support for IPv6 in `isURL()`
|
303 | ([#564](https://github.com/chriso/validator.js/issues/564))
|
304 | - Added support for urls without a host (e.g. `file:///foo.txt`) in `isURL()`
|
305 | ([#563](https://github.com/chriso/validator.js/issues/563))
|
306 | - Added support for regular expressions in the `isURL()` host whitelist and blacklist
|
307 | ([#562](https://github.com/chriso/validator.js/issues/562))
|
308 | - Added support for MasterCard 2-Series BIN
|
309 | ([#576](https://github.com/chriso/validator.js/pull/576))
|
310 | - New locales
|
311 | ([#575](https://github.com/chriso/validator.js/pull/575),
|
312 | [#552](https://github.com/chriso/validator.js/issues/552))
|
313 |
|
314 | #### 5.6.0
|
315 |
|
316 | - Added an `isMD5()` validator
|
317 | ([#557](https://github.com/chriso/validator.js/pull/557))
|
318 | - Fixed an exceptional case in `isDate()`
|
319 | ([#566](https://github.com/chriso/validator.js/pull/566))
|
320 | - New locales
|
321 | ([#559](https://github.com/chriso/validator.js/pull/559),
|
322 | [#568](https://github.com/chriso/validator.js/pull/568),
|
323 | [#571](https://github.com/chriso/validator.js/pull/571),
|
324 | [#573](https://github.com/chriso/validator.js/pull/573))
|
325 |
|
326 | #### 5.5.0
|
327 |
|
328 | - Fixed a regex denial of service in `trim()` and `rtrim()`
|
329 | ([#556](https://github.com/chriso/validator.js/pull/556))
|
330 | - Added an Algerian locale to `isMobilePhone()`
|
331 | ([#540](https://github.com/chriso/validator.js/pull/540))
|
332 | - Fixed the Hungarian locale in `isAlpha()` and `isAlphanumeric()`
|
333 | ([#541](https://github.com/chriso/validator.js/pull/541))
|
334 | - Added a Polish locale to `isMobilePhone()`
|
335 | ([#545](https://github.com/chriso/validator.js/pull/545))
|
336 |
|
337 | #### 5.4.0
|
338 |
|
339 | - Accept Union Pay credit cards in `isCreditCard()`
|
340 | ([#539](https://github.com/chriso/validator.js/pull/539))
|
341 | - Added Danish locale to `isMobilePhone()`
|
342 | ([#538](https://github.com/chriso/validator.js/pull/538))
|
343 | - Added Hungarian locales to `isAlpha()`, `isAlphanumeric()` and `isMobilePhone()`
|
344 | ([#537](https://github.com/chriso/validator.js/pull/537))
|
345 |
|
346 | #### 5.3.0
|
347 |
|
348 | - Added an `allow_leading_zeroes` option to `isInt()`
|
349 | ([#532](https://github.com/chriso/validator.js/pull/532))
|
350 | - Adjust Chinese mobile phone validation
|
351 | ([#523](https://github.com/chriso/validator.js/pull/523))
|
352 | - Added a Canadian locale to `isMobilePhone()`
|
353 | ([#524](https://github.com/chriso/validator.js/issues/524))
|
354 |
|
355 | #### 5.2.0
|
356 |
|
357 | - Added a `isDataURI()` validator
|
358 | ([#521](https://github.com/chriso/validator.js/pull/521))
|
359 | - Added Czech locales
|
360 | ([#522](https://github.com/chriso/validator.js/pull/522))
|
361 | - Fixed a bug with `isURL()` when protocol was missing and "://" appeared in the query
|
362 | ([#518](https://github.com/chriso/validator.js/issues/518))
|
363 |
|
364 | #### 5.1.0
|
365 |
|
366 | - Added a `unescape()` HTML function
|
367 | ([#509](https://github.com/chriso/validator.js/pull/509))
|
368 | - Added a Malaysian locale to `isMobilePhone()`
|
369 | ([#507](https://github.com/chriso/validator.js/pull/507))
|
370 | - Added Polish locales to `isAlpha()` and `isAlphanumeric()`
|
371 | ([#506](https://github.com/chriso/validator.js/pull/506))
|
372 | - Added Turkish locales to `isAlpha()`, `isAlphanumeric()` and `isMobilePhone()`
|
373 | ([#512](https://github.com/chriso/validator.js/pull/512))
|
374 | - Allow >1 underscore in hostnames when using `allow_underscores`
|
375 | ([#510](https://github.com/chriso/validator.js/issues/510))
|
376 |
|
377 | #### 5.0.0
|
378 |
|
379 | - Migrate to ES6
|
380 | ([#496](https://github.com/chriso/validator.js/pull/496))
|
381 | - Break the library up so that individual functions can be imported
|
382 | ([#496](https://github.com/chriso/validator.js/pull/496))
|
383 | - Remove auto-coercion of input to a string
|
384 | ([#496](https://github.com/chriso/validator.js/pull/496))
|
385 | - Remove the `extend()` function
|
386 | ([#496](https://github.com/chriso/validator.js/pull/496))
|
387 | - Added Arabic locales to `isAlpha()` and `isAlphanumeric()`
|
388 | ([#496](https://github.com/chriso/validator.js/pull/496#issuecomment-184781730))
|
389 | - Fix validation of very large base64 strings
|
390 | ([#503](https://github.com/chriso/validator.js/pull/503))
|
391 |
|
392 | #### 4.9.0
|
393 |
|
394 | - Added a Russian locale to `isAlpha()` and `isAlphanumeric()`
|
395 | ([#499](https://github.com/chriso/validator.js/pull/499))
|
396 | - Remove the restriction on adjacent hyphens in hostnames
|
397 | ([#500](https://github.com/chriso/validator.js/issues/500))
|
398 |
|
399 | #### 4.8.0
|
400 |
|
401 | - Added Spanish, French, Portuguese and Dutch support for `isAlpha()` and `isAlphanumeric()`
|
402 | ([#492](https://github.com/chriso/validator.js/pull/492))
|
403 | - Added a Brazilian locale to `isMobilePhone()`
|
404 | ([#489](https://github.com/chriso/validator.js/pull/489))
|
405 | - Reject IPv4 addresses with invalid zero padding
|
406 | ([#490](https://github.com/chriso/validator.js/pull/490))
|
407 | - Fix the client-side version when used with RequireJS
|
408 | ([#494](https://github.com/chriso/validator.js/issues/494))
|
409 |
|
410 | #### 4.7.1
|
411 |
|
412 | - Use [node-depd](https://github.com/dougwilson/nodejs-depd) to print deprecation notices
|
413 | ([#487](https://github.com/chriso/validator.js/issues/487))
|
414 |
|
415 | #### 4.7.0
|
416 |
|
417 | - Print a deprecation warning if validator input is not a string
|
418 | ([1f67e1e](https://github.com/chriso/validator.js/commit/1f67e1e15198c0ae735151290dc8dc2bf14da254)).
|
419 | Note that this will be an error in v5.
|
420 | - Added a German locale to `isMobilePhone()`, `isAlpha()` and `isAlphanumeric()`
|
421 | ([#477](https://github.com/chriso/validator.js/pull/477))
|
422 | - Added a Finnish locale to `isMobilePhone()`
|
423 | ([#455](https://github.com/chriso/validator.js/pull/455))
|
424 |
|
425 | #### 4.6.1
|
426 |
|
427 | - Fix coercion of objects: `Object.toString()` is `[object Object]` not `""`
|
428 | ([a57f3c8](https://github.com/chriso/validator.js/commit/a57f3c843c715fba2664ee22ec80e9e28e88e0a6))
|
429 |
|
430 | #### 4.6.0
|
431 |
|
432 | - Added a Spanish locale to `isMobilePhone()`
|
433 | ([#481](https://github.com/chriso/validator.js/pull/481))
|
434 | - Fix string coercion of objects created with `Object.create(null)`
|
435 | ([#484](https://github.com/chriso/validator.js/issues/484))
|
436 |
|
437 | #### 4.5.2
|
438 |
|
439 | - Fix a timezone issue with short-form ISO 8601 dates, e.g.
|
440 | `validator.isDate('2011-12-21')`
|
441 | ([#480](https://github.com/chriso/validator.js/issues/480))
|
442 |
|
443 | #### 4.5.1
|
444 |
|
445 | - Make `isLength()` / `isByteLength()` accept `{min, max}` as options object.
|
446 | ([#474](https://github.com/chriso/validator.js/issues/474))
|
447 |
|
448 | #### 4.5.0
|
449 |
|
450 | - Add validation for Indian mobile phone numbers
|
451 | ([#471](https://github.com/chriso/validator.js/pull/471))
|
452 | - Tweak Greek and Chinese mobile phone validation
|
453 | ([#467](https://github.com/chriso/validator.js/pull/467),
|
454 | [#468](https://github.com/chriso/validator.js/pull/468))
|
455 | - Fixed a bug in `isDate()` when validating ISO 8601 dates without a timezone
|
456 | ([#472](https://github.com/chriso/validator.js/issues/472))
|
457 |
|
458 | #### 4.4.1
|
459 |
|
460 | - Allow triple hyphens in IDNA hostnames
|
461 | ([#466](https://github.com/chriso/validator.js/issues/466))
|
462 |
|
463 | #### 4.4.0
|
464 |
|
465 | - Added `isMACAddress()` validator
|
466 | ([#458](https://github.com/chriso/validator.js/pull/458))
|
467 | - Added `isWhitelisted()` validator
|
468 | ([#462](https://github.com/chriso/validator.js/pull/462))
|
469 | - Added a New Zealand locale to `isMobilePhone()`
|
470 | ([#452](https://github.com/chriso/validator.js/pull/452))
|
471 | - Added options to control GMail address normalization
|
472 | ([#460](https://github.com/chriso/validator.js/pull/460))
|
473 |
|
474 | #### 4.3.0
|
475 |
|
476 | - Support Ember CLI module definitions
|
477 | ([#448](https://github.com/chriso/validator.js/pull/448))
|
478 | - Added a Vietnam locale to `isMobilePhone()`
|
479 | ([#451](https://github.com/chriso/validator.js/pull/451))
|
480 |
|
481 | #### 4.2.1
|
482 |
|
483 | - Fix `isDate()` handling of RFC2822 timezones
|
484 | ([#447](https://github.com/chriso/validator.js/pull/447))
|
485 |
|
486 | #### 4.2.0
|
487 |
|
488 | - Fix `isDate()` handling of ISO8601 timezones
|
489 | ([#444](https://github.com/chriso/validator.js/pull/444))
|
490 | - Fix the incorrect `isFloat('.') === true`
|
491 | ([#443](https://github.com/chriso/validator.js/pull/443))
|
492 | - Added a Norwegian locale to `isMobilePhone()`
|
493 | ([#439](https://github.com/chriso/validator.js/pull/439))
|
494 |
|
495 | #### 4.1.0
|
496 |
|
497 | - General `isDate()` improvements
|
498 | ([#431](https://github.com/chriso/validator.js/pull/431))
|
499 | - Tests now require node 4.0+
|
500 | ([#438](https://github.com/chriso/validator.js/pull/438))
|
501 |
|
502 | #### 4.0.6
|
503 |
|
504 | - Added a Taiwan locale to `isMobilePhone()`
|
505 | ([#432](https://github.com/chriso/validator.js/pull/432))
|
506 | - Fixed a bug in `isBefore()` where it would return `null`
|
507 | ([#436](https://github.com/chriso/validator.js/pull/436))
|
508 |
|
509 | #### 4.0.5
|
510 |
|
511 | - Fixed a denial of service vulnerability in the `isEmail()` regex
|
512 | ([#152](https://github.com/chriso/validator.js/issues/152#issuecomment-131874928))
|
513 |
|
514 | #### 4.0.4
|
515 |
|
516 | - Reverted the leap year validation in `isDate()` as it introduced some regressions
|
517 | ([#422](https://github.com/chriso/validator.js/issues/422), [#423](https://github.com/chriso/validator.js/issues/423))
|
518 |
|
519 | #### 4.0.3
|
520 |
|
521 | - Added leap year validation to `isDate()`
|
522 | ([#418](https://github.com/chriso/validator.js/pull/418))
|
523 |
|
524 | #### 4.0.2
|
525 |
|
526 | - Fixed `isDecimal()` with an empty string
|
527 | ([#419](https://github.com/chriso/validator.js/issues/419))
|
528 |
|
529 | #### 4.0.1
|
530 |
|
531 | - Fixed `isByteLength()` with certain strings
|
532 | ([09f0c6d](https://github.com/chriso/validator.js/commit/09f0c6d2321f0c78af6a7de42e91b63955e4c01e))
|
533 | - Put length restrictions on email parts
|
534 | ([#258](https://github.com/chriso/validator.js/issues/258#issuecomment-127173612))
|
535 |
|
536 | #### 4.0.0
|
537 |
|
538 | - Simplified the `isEmail()` regex and fixed some edge cases
|
539 | ([#258](https://github.com/chriso/validator.js/issues/258#issuecomment-127173612))
|
540 | - Added ISO 8601 date validation via `isISO8601()`
|
541 | ([#373](https://github.com/chriso/validator.js/issues/373))
|