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
twitteroption removed, replaced withmention(which accepts'twitter'
and'instagram'values)- Matching mentions (previously the
twitteroption) now defaults to
being turned off. Previously, Twitter handle matching was on by
default. replaceFnoption now called with just one argument: theMatch
object (previously was called with two arguments:autolinkerand
match)- (Used inside the
replaceFn)TwitterMatchreplaced with
MentionMatch, andMentionMatch.getType()now returns'mention'
instead of'twitter' - (Used inside the
replaceFn)TwitterMatch.getTwitterHandle()->
MentionMatch.getMention()