UNPKG

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