All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Fix @adguard/scriplets dependency
- Export
normalizeTokensfrom the package
- Fix bug with moving lines up and down
- Refactor initEditor, add modes for work with gutter markers and hotkey for macOS
- Add multiplatform support for comment and save hotkey
- Add hotkeys support for editor
- Add a check to ensure that the tokenizer correctly returns a null token and the original string in cases where the cosmetic rules' marker logic would not be applicable.
-
Changed the
isBlockingRuleproperty in theDNSRuleclass to public. -
Fixed a bug in the
buildRuleforBlockRequestRuleandUnblockRequestRulefunction where using theimportantmodifier resulted in an empty string. The function now properly considers and integrates theimportantmodifier, ensuring accurate rule construction. -
Fixed a bug in the
buildRulemethod forNoFilteringRule, where it previously added an unnecessary$at the end of the rule. The method has been updated to omit the$, aligning the output with the correct rule syntax and expected behavior.
- Split RequestRule to two separate classes for block and unblock rules
- Refactor some strings to consts
- fix noFiltering parsing
- fix comment parsing
- add validation support for dns rules
- refactor
getDnsRule -> getDnsRuleByTypefor dns rules.
- export
DNSRulebuilder. - fix
getRuleFromRuleStringfor dns rules.
RulesBuilderaddgetDnsRule().RulesBuilderadd support for DNS rules.
RulesBuilderbug fixes.
RulesBuilderclass.
initEditor(),simpleTokenizer()andgetTokenizer()methods.