Skip to content

v3.0.0

Compare
Choose a tag to compare
@tonyganch tonyganch released this 18 Oct 00:37
· 282 commits to dev since this release

CLI

  • Made cli process stdin only if - argument is passed.
  • Added help message.

API

  • Renamed parseTree.remove to parseTree.removeChild().
  • Unwraped callback parameters for traverse... methods.
  • Made first(), last() and get() methods return null if no child nodes were found.
  • Made node.length return a number of child nodes.
  • Renamed rule to context.
  • Made parseTree.removeChild() return a removed node.
  • Added traverseBy... methods to all nodes, not only root ones.
  • Added support for specifying a tab size in spaces.

Parsing rules

  • Fixed parsing of single-line comments after url token.
  • Fixed parsing of interpolations inside id selectors in Less.
  • Fixed parsing of selectors according to spec.
  • Fixed parsing of placeholders as selectors in SCSS.

Misc

  • Added Travis badge to Readme page.
  • Added init script to build sources.
  • Added commit message template.