OctoLinker v6.0.0 Release Notes

Release Date: 2020-01-28 // about 4 years ago
  • ๐Ÿ‘ Faster, better and more precisely than ever before

    ๐Ÿš€ I'm extremely excited about today's release, but before we jump into the release notes for version 6 I want to welcome @xt0rted to the team. He has contributed several improvements ranging from bug fixes to adding .NET support and many other improvements. Welcome Brian ๐Ÿ‘‹

    What's new in v6

    ๐Ÿš€ Originally this release was all about performance, but unintentionally it fixed other issues as well.

    Back in June last year, @fregante opened an issue with the title "A script in the extension "OctoLinker" is causing Firefox to slow down". Until then, I wasn't aware OctoLinker was slow in Firefox.

    OctoLinker uses a library called findAndReplaceDOMText which allows us to apply regular expression against the DOM and wraps each match with a link (now you know our secret sauce). Traversing the DOM for larger files took some time (especially on Firefox). In some circumstances, this even caused Firefox to freeze. This was caused by too many DOM lookups when applying the same regular expression over and over again to find keywords in the DOM.

    ๐Ÿ“œ DOM parsing in OctoLinker v5

    ๐Ÿ“œ DOM parsing in OctoLinker v5

    ๐ŸŽ DOM lookups are expensive and the root cause of this performance problem. Our solution to this is a new step before traversing the DOM. All regular expressions are performed against a string representation first followed by a very targeted DOM query to take online lines into account with a match. This speeds it up significantly.

    ๐Ÿ“œ DOM parsing in OctoLinker v6

    ๐Ÿ“œ DOM parsing in OctoLinker v6

    ๐Ÿ‘ This reduced the processing time by ~80% on large files and by ~30% for medium size files. In addition, we cap files to the first 5.000 lines to support enormous files with tens of thousand lines.

    Other improvements

    • ๐Ÿ‘ OctoLinker now support for CODEOWNERS file #786
    • ๐Ÿ”— Link dependencies in a package.json file with a version value of "latest" #791
    • ๐Ÿ‘ Expand .NET and nuget support #785 #787
    • ๐Ÿ”— Link dependencies in a package.json file with a version value of gihtub:user/repo #794
    • ๐Ÿ”— Link dependencies in a package.json file with a git url set as version value #793
    • ๐Ÿ‘Œ Improve UX when adding token through settings dialog #783

    ๐Ÿ›  Bugfix

    • ๐Ÿ›  Fix OctoLinker mascot position in notification bar #782
    • Inconsistent linking when value appears on both sides of an assignment #618
    • ๐Ÿ“ฆ Package name in a js template literal disappears #590
    • ๐Ÿ“œ Commit comment elements are being parsed as dependencies and turned into links #454

    Closing Thoughts

    ๐Ÿฑ I am truly grateful to all the wonderful humans and companies supporting the development of OctoLinker. If you find OctoLinker useful, please consider donations through GitHub Sponsors or Open Collective โ€“ Thank you ๐Ÿ™‡โ€โ™‚๏ธ