Skip to content

v0.7.0

Choose a tag to compare

@dannote dannote released this 28 Apr 10:35
· 22 commits to master since this release

Added

  • SQL-like query API via ExAST.Query: from/1, where/2, find/2, find_child/2, contains/1, inside/1, sibling predicates, positional predicates, and boolean predicate combinators.
  • Selector alternatives, e.g. from(["def _ do ... end", "defp _ do ... end"]).
  • Search limits and broad-query guard for ExAST.search/3 and mix ex_ast.search.
  • Query-style CLI flags for mix ex_ast.search and mix ex_ast.replace.

Fixed

  • where(not ...) works without import hacks.
  • Search result rendering no longer fails on unavailable formatter import_deps.
  • Selector descendant traversal handles nested AST shapes reliably.
  • Alias-aware matching supports local and grouped aliases.
  • Variables named alias are no longer misclassified as alias directives.

Hex: https://hex.pm/packages/ex_ast/0.7.0
Docs: https://hexdocs.pm/ex_ast/0.7.0