v0.2.0
This release introduces a few major changes:
- [BREAKING] Build artifacts will now be located in the
dist
folder - [BREAKING] The return value from
Engine.match
includes the original filter matching the request, instead of a pretty-printed version. - Addition of a benchmark to keep track of performance and memory consumption of the adblocker
- Make use of
tldts
instead oftld.js
for URL parsing (more efficient and in TypeScript) - Fix a few bugs:
- Parsing of options from network filters
- NetworkFilter' optimizer would break in some cases
- Cosmetic filter's tokenization did not behave correctly in case of
~
or+
combinators, or if styles were specified (e.g.:[foo=bar]
) - Matching of filters of type hostname anchor would not handle some corner cases
- Build system was simplified: fewer rollup plugins and stricter TypeScript configuration
- Lots of new tests were added: network filter matching, engine, etc.