Skip to content

v0.5.0

Compare
Choose a tag to compare
@remusao remusao released this 08 Jan 16:27
· 4048 commits to master since this release
1b5a7fa

This release contains many fixes as well as a few (small) breaking changes.

  • Remove tldts dependency and allow to plug any implementation instead #81
    • Adblocker does not include tldts by default anymore
    • APIs now expect either already constructed Request as arguments of both
      hostname and domain when needed (e.g.: getCosmeticsFilters)
    • A makeRequest helper is provided to construct Request objects
    • [BREAKING] engine.match expects a Request as argument
    • [BREAKING] engine.matchAll expects a Request as argument
    • [BREAKING] engine.getCSPDirectives expects a Request as argument
    • [BREAKING] engine.getCosmeticsFilter expects a new domain argument
    • [BREAKING] Request's constructor does not apply default value
      anymore and expects all arguments to be provided and initialized. You
      can now use makeRequest to reproduce the previous behavior of new Request.
  • Fix cosmetics injection #79
    • Ignore cosmetic filters with extended syntax
    • Ignore invalid cosmetic filters (using strict validation)
    • Make use of tabs.insertCSS to inject style from background
  • Update dependencies #78
  • Harden typescript + simplify cosmetic injection #71
  • Add support for Ghostery rules #73
    • Add support for bug filter attribute
    • Exceptions can now match filters with bug option
    • Simplify and speed-up serialization for network filters
    • Fix hostname anchor matching by preventing infix match in some corner case