Skip to content

Latest commit

 

History

History
60 lines (32 loc) · 3.44 KB

CHANGELOG.md

File metadata and controls

60 lines (32 loc) · 3.44 KB

(2023-05-31)

  • add comment with working example (322225e)
  • add FromStr method for EmailAddress (0b85d56)

(2022-12-26)

  • Make wasm-bindgen dependency optional. (96ccb04)

2.0.0-rc1 (2022-08-27)

  • chore: depensendcy update (adddfc0)
  • chore: updated readme (1ea65ce)
  • chore: updated the node version in CI (6ff216b)
  • chore(npm-pkg): fixed reported vulnerability (df6de2b)
  • chore(npm-pkg): updated npm deps (9ea74b8)

2.0.0-rc1 (2021-10-11)

1.0.3 (2021-09-15)

  • Added a test for the clone functionality. (356a343)
  • Dervice clone for EmailAddress struct. (f59275a)
  • Ignored intellij files. (2a9c85e)
  • Removed unnecessary borrows. (ba8b3e0)

1.0.1 (2021-04-24)

  • Derive Eq, PartialEq, and Hash for EmailAddress (c643037)

1.0.0 (2020-09-06)

Features

  • Enabled parsing local part, and domain on instantiation (92b2af9). EmailAddress::new (in Rust) or new EmailAddress(...) (in JS) throws error if either local part or domain is invalid.
  • Added EmailAddress::is_valid (in Rust), and EmailAddress.isValid() (in JS) to simply validates a given string. This parses like the parse method, but does not instantiates an EmailAddress object, and return true/false instead (3988d98).
  • Adding unicode support RFC 6532 (5d1f60e).

Breaking Changes

  • The methods localPart(), and domain() exposed to JS, has been converted to ES6 getters. This means email.localPart() or email.domain() can simply be converted to email.localPart and email.domain respectively.
  • In JS, the static method EmailAddress.new has been converted to a constructor. Use simply new EmailAddress(...) to instantiate EmailAddress.
  • The signature of parse and new has been changed. Instead of an optional boolean as the lat parameter, they now expect an optional ParsingOptions instance.
  • The constructor function (new) not returns Result<EmailAddress, String> in Rust instead of Option<EmailAddress>. Semantically, this makes more sense. In JS side, the core new function has been wrapped with a constructor function that panics (throws error in JS). The later function is not meant to be used from Rust, and strictly for JS users.

0.3.0-rc2 (2020-08-30)

Initial release of an RFC 5233 compliant email parser.