Skip to content

Latest commit

 

History

History
133 lines (94 loc) · 4.65 KB

CHANGELOG.md

File metadata and controls

133 lines (94 loc) · 4.65 KB

HEAD

  • Added validator for brazilian phone numbers (#489)
  • Use node-depd to print deprecation notices (#487)

4.7.0

  • Print a deprecation warning if validator input is not a string (1f67e1e). Note that this will be an error in v5.
  • Added a German locale to isMobilePhone(), isAlpha() and isAlphanumeric() (#477)
  • Added a Finnish locale to isMobilePhone() (#455)

4.6.1

  • Fix coercion of objects: Object.toString() is [object Object] not "" (a57f3c8)

4.6.0

  • Added a Spanish locale to isMobilePhone() (#481)
  • Fix string coercion of objects created with Object.create(null) (#484)

4.5.2

  • Fix a timezone issue with short-form ISO 8601 dates, e.g. validator.isDate('2011-12-21') (#480)

4.5.1

  • Make isLength() / isByteLength() accept {min, max} as options object. (#474)

4.5.0

  • Add validation for Indian mobile phone numbers (#471)
  • Tweak Greek and Chinese mobile phone validation (#467, #468)
  • Fixed a bug in isDate() when validating ISO 8601 dates without a timezone (#472)

4.4.1

  • Allow triple hyphens in IDNA hostnames (#466)

4.4.0

  • Added isMACAddress() validator (#458)
  • Added isWhitelisted() validator (#462)
  • Added a New Zealand locale to isMobilePhone() (#452)
  • Added options to control GMail address normalization (#460)

4.3.0

  • Support Ember CLI module definitions (#448)
  • Added a Vietnam locale to isMobilePhone() (#451)

4.2.1

  • Fix isDate() handling of RFC2822 timezones (#447)

4.2.0

  • Fix isDate() handling of ISO8601 timezones (#444)
  • Fix the incorrect isFloat('.') === true (#443)
  • Added a Norwegian locale to isMobilePhone() (#439)

4.1.0

  • General isDate() improvements (#431)
  • Tests now require node 4.0+ (#438)

4.0.6

  • Added a Taiwan locale to isMobilePhone() (#432)
  • Fixed a bug in isBefore() where it would return null (#436)

4.0.5

  • Fixed a denial of service vulnerability in the isEmail() regex (#152)

4.0.4

  • Reverted the leap year validation in isDate() as it introduced some regressions (#422, #423)

4.0.3

  • Added leap year validation to isDate() (#418)

4.0.2

  • Fixed isDecimal() with an empty string (#419)

4.0.1

  • Fixed isByteLength() with certain strings (09f0c6d)
  • Put length restrictions on email parts (#258)

4.0.0

  • Simplified the isEmail() regex and fixed some edge cases (#258)
  • Added ISO 8601 date validation via isISO8601() (#373)