npm mailparser 3.14.5
v3.14.5

2 hours ago

3.14.5 (2026-11-16)

Summary

Link detection in plain text bodies (textAsHtml) moves to linkify-it 6. The configuration mailparser relied on is kept, and a custom rule keeps quoted addresses and file paths from turning into broken mailto: links.

Who should upgrade

Everyone using textAsHtml, at your convenience. Links found in ordinary mail are the same as before, with a few improvements listed below.

Highlights

  • Links without a scheme (example.com, www.example.org), IP hosts, .onion, git: links and @mentions are found as before, and user:pass@ stays part of a URL.
  • Closing quotes and guillemets after a URL are no longer included in the link.
  • URLs with bracketed IPv6 hosts (https://[2001:db8::1]:8080/) are now linked.
  • href="mailto:bob@example.org" in a text body links mailto:bob@example.org instead of including the attribute name.
  • A schemaless host with a port (example.com:8080/x) is no longer linked; linkify-it 6 refuses that form on purpose.

Bug Fixes

  • move link detection to linkify-it 6 (6527e91)

Don't miss a new mailparser release

NewReleases is sending notifications on new releases.