Skip to content

3.0.0 – ESM support, custom reporters for CLI

Compare
Choose a tag to compare
@lahmatiy lahmatiy released this 13 Dec 22:53
  • Added custom reporters support in CLI, e.g. csstree-validator --reporter path/to/reporter.js or csstree-validator --reporter reporter-package
  • Added Symbol.iterator for validateString(), validateDictionary(), validateFile(), validatePathList() and validatePath() result value, i.e. it now can be used with for ... of for example for (const [filename, errors] of result) ...
  • Bumped csstree to 2.0
  • Package
    • Changed supported versions of Node.js to ^12.20.0, ^14.13.0 and >=15.0.0
    • Converted to ES modules. However, CommonJS is supported as well (dual module)
    • Added bundle dist/csstree-validator.esm.js as ES module