Skip to content

Releases: gregjacobs/Autolinker.js

v1.0.0

06 Sep 00:55
Compare
Choose a tag to compare

Long awaited 1.0 release which adds the mention feature to replace the twitter option, and change the replaceFn to be passed only one argument (the Match object).

Breaking Changes from 0.x -> 1.x

  1. twitter option removed, replaced with mention (which accepts 'twitter'
    and 'instagram' values)
  2. Matching mentions (previously the twitter option) now defaults to
    being turned off. Previously, Twitter handle matching was on by
    default.
  3. replaceFn option now called with just one argument: the Match
    object (previously was called with two arguments: autolinker and
    match)
  4. (Used inside the replaceFn) TwitterMatch replaced with
    MentionMatch, and MentionMatch.getType() now returns 'mention'
    instead of 'twitter'
  5. (Used inside the replaceFn) TwitterMatch.getTwitterHandle() ->
    MentionMatch.getMention()

v0.28.1

06 Sep 00:53
Compare
Choose a tag to compare
  • Fix for IP address linking which could possibly link an invalid IP address. Thanks @olafleur!

v0.28.0

25 Aug 01:14
Compare
Choose a tag to compare
  • Add support for autolinking IP addresses which start with a protocol. Thanks @olafleur!

v0.27.0

29 Jun 01:56
Compare
Choose a tag to compare
  • Fixed an issue where an input string that contained a < that didn't begin an HTML tag could cause Chrome to hang in an infinite loop in certain situations

v0.26.1

26 Jun 20:18
Compare
Choose a tag to compare
  • Fix to allow underscores in email addresses (thanks @enahum)
  • Fix to allow apostrophes in email addresses (thanks @dmatteo)

v0.26.0

08 Apr 03:46
Compare
Choose a tag to compare
  • Update known TLD list with all current TLDs. Thanks @Jessecar96

v0.25.2

08 Apr 03:45
Compare
Choose a tag to compare
  • Add version property to Autolinker
  • Don't truncate the string when the truncate length is 0

v0.25.0

20 Mar 18:35
Compare
Choose a tag to compare
  • Add Match.buildTag() method as a shorthand for Autolinker.getTagBuilder().build( match ). Fixes #143
  • Remove use of ES5 Array.prototype.filer() function, to maintain compatibility with IE8. Fixes #144

v0.24.1

08 Mar 05:29
Compare
Choose a tag to compare
  • Fix for parsing HTML tags that don't have spaces between attributes. Thanks @bengotow!

v0.24.0

08 Mar 05:27
Compare
Choose a tag to compare
  • Fully add support for internationalized urls, email addresses, usernames, and hashtags