Skip to content

v0.6.0

Compare
Choose a tag to compare
@remusao remusao released this 28 Jan 13:18
· 4822 commits to master since this release
7c59da2
  • Implement lazy loading and compact internal representation #87
    • [BREAKING] serialization module has been removed, instead, each class now
      provides a serialize method as well as a static method deserialize.
    • [BREAKING] FiltersEngine now exposes different methods for update:
      update which expects a diff of filters, updateList and
      updateResources. This API should be a cleared and allows using the
      adblocker without managing filters lists.
    • [BREAKING] ReverseIndex' API dropped the use of a callback to specify
      filters and instead expects a list of filters.
    • [BREAKING] parsing and matching filters can now be done using methods of
      the filters classes directly instead of free functions. For example
      NetworkFilter has a parse and match method (with the same expected
      arguments).
    • ReverseIndex is now implemented using a very compact
      representation (stored in a typed array).
    • toString method of filters should now be more accurate.
    • Addition of numerous unit tests (coverage is now >90%)
  • Implement support for :style cosmetic filters #86
    • [BREAKING] getCosmeticsFilters will now return CSS as a single string
      (stylesheet) instead of a list of selectors. This simplifies the usage and
      allows to directly inject this into the page using the method of your
      choice: through content scripts or tabs.injectCSS API.