Releases: gregjacobs/Autolinker.js
Releases · gregjacobs/Autolinker.js
v1.0.0
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
twitter
option removed, replaced withmention
(which accepts'twitter'
and'instagram'
values)- Matching mentions (previously the
twitter
option) now defaults to
being turned off. Previously, Twitter handle matching was on by
default. replaceFn
option now called with just one argument: theMatch
object (previously was called with two arguments:autolinker
and
match
)- (Used inside the
replaceFn
)TwitterMatch
replaced with
MentionMatch
, andMentionMatch.getType()
now returns'mention'
instead of'twitter'
- (Used inside the
replaceFn
)TwitterMatch.getTwitterHandle()
->
MentionMatch.getMention()
v0.28.1
v0.28.0
v0.27.0
- 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
v0.26.0
- Update known TLD list with all current TLDs. Thanks @Jessecar96
v0.25.2
- Add
version
property toAutolinker
- Don't truncate the string when the
truncate
length is 0
v0.25.0
v0.24.1
v0.24.0
- Fully add support for internationalized urls, email addresses, usernames, and hashtags