Releases: gregjacobs/Autolinker.js
Releases · gregjacobs/Autolinker.js
v4.1.5
v4.1.4
- Various performance enhancements
v4.1.3
- Various performance enhancements
v4.1.2
- Performance enhancement: lift nested functions in parse-matches.ts to allow for better JIT compilation. Adds ~250 ops/sec in benchmark
- Use const (integer) enums in place of strings
v4.1.1
- Fix for if a slash is found inside what looks to be an HTML tag (e.g.
<something / else>
), which is probably not an actual HTML tag and should be treated like data rather than an element - Fix to handle immediately-closed comment tags in HTML parsing (i.e.
<!---->
) - Fix to handle
<!DOCTYPE>
tags with no attributes in HTML parsing (whereas correctly formed !DOCTYPE tags should at least be<!DOCTYPE html>
, or have some other quirks/almost-standards mode attributes)
v4.1.0
v4.0.2
v4.0.1
v4.0.0
- URL parser rewritten from using regular expressions to be a finite state machine. Greatly improves performance by guaranteeing linear time parsing and fixes long parse times in Safari in particular (which seems to have a slow regex backtracking implementation). Benchmarks show a 3x performance improvement over Autolinker 3.x.x.
- IP addresses are now linked without a scheme (such as 'http://') prefixed to it.
urls.ipV4Matches
option controls this behavior.
Breaking Changes:
See https://github.com/gregjacobs/Autolinker.js#upgrading-from-v3x---v4x-breaking-changes