Skip to content

Latest commit

 

History

History
109 lines (73 loc) · 5.04 KB

File metadata and controls

109 lines (73 loc) · 5.04 KB

📄 ADBT 🪅


v2.0.0

31-Aug-2023

  • 🪅 feat [BREAKING]: enforce order of statements (#60)

💡 Keeps track of order of statements (nodes) in the input template and enforces rules, thus keeping the integrity and validity of the exported Adblock filter file.

The following rules are enforced:

  • a header statement cannot appear after a meta statement,

  • a header statement cannot appear after an include/import statement,

  • a meta statement cannot appear after an include/import statement,

  • no statements can appear after an export statement.

    Will throw when order is not correct.

  • 🪅 feat: add info logging method (#86)

  • 🪅 feat: log presence of inline meta (#84)

  • 🪅 feat: validate statements, catch edge-cases (#82)

  • 🪅 feat: detect and warn when no header/metadata is present (#80)

  • 🪅 feat: evaluate statements eagerly (#74)

  • 🪅 feat: reorganize order of nodes detection by usage/order of statements (#72)

  • 🪅 feat: add meta statement and support for inline meta (#68)

    💡 Has highest priority when setting metadata.

  • 🪅 feat: always amend the Expires field of the metadata of the compiled filter file (#66)

  • 🪅 feat: always add Entries field to the metadata of the compiled filter file (#64)

  • 🪅 feat: make all user input paths universal, i.e. allow all OS' to use a forward slash ("/") as the path separator (#62)

    🌟 Via uPath

  • 🪅 feat: detect unsupported identifiers/code (#58)


v1.3.0

25-Aug-2023

  • 🪅 feat: add support for statement actions, currently available for:

💡Actions allow you to invoke a certain function when including/importing filter list files.

Supported actions:

  • trim (trims whitespace for each line from the included filter list file)
  • dedupe (removes duplicates from the included filter list file)
  • sort (sorts lines from the included filter list file)
  • append (appends an arbitrary string to each line from the included filter list file)
  • strip (strips a certain element of each line from the included filter list file)

You can read more about Actions in the official ADBT documentation.

  • 📜 docs: fixed typos

v1.2.0

20-Aug-2023

  • 🪅 feat: implement the import statement

    import statements behave exactly the same as include but prepend the file path of the included filter (as a comment)

  • 🪅 feat: implement the tag statement

    Introduce a tagging system; special comments that get inserted in the resulting filter file, for easier navigation, search, etc.

    🌟 Inspired by AdVoid's way of navigation.


v1.1.0

19-Aug-2023

  • 🪅 feat: add support for Expires meta variable
  • ✅ fix: ignore whitespace as a candidate for unreachable code
  • 📜 docs: add Paths section
  • 📜 docs: fix typos
  • 📜 docs: remove redundant data for ADBT extension for VS Code

v1.0.1

01-Aug-2023

  • 📜 docs: add missing export statement
  • 📜 docs: add unreachable code explanation
  • 📜 docs: add 1 export per template explanation
  • 📜 docs: fix headings
  • 📜 docs: add samples

v1.0.0

  • 🚀 launch: initial release

31-Jul-2023