Skip to content

Releases: csstree/validator

4.0.1

11 Oct 13:50
Compare
Choose a tag to compare
  • Fixed location properties on validation errors; all errors (excluding parse errors) now include offset, start, end, and loc properties

4.0.0

10 Oct 21:48
Compare
Choose a tag to compare
  • Bumped csstree to ^3.0.0
  • Added default reporters into bundle entry points
  • Fixed the resolution of a path to a reporter by employing enhanced-resolve, which now considers the exports field in package.json
  • Fixed package.json for bundling for browser environments

3.0.0 – ESM support, custom reporters for CLI

13 Dec 22:53
Compare
Choose a tag to compare
  • 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

2.0.1

31 Mar 13:35
Compare
Choose a tag to compare
  • Fixed wrong require() in CLI that causes to crash
  • Bumped csstree to 1.1.3 to fix the issue with parsing that causes to a failure on a value with function/brackets and !important (#18)

2.0.0

18 Nov 22:21
Compare
Choose a tag to compare
  • Droped support for Nodejs < 8
  • Bumped csstree to 1.1.1
  • CLI exits with code 1 and outputs messages to stderr when errors (#12)
  • Added built version for browsers: dist/csstree-validator.js (#11)
  • Added at-rule validation for name, prelude and descriptor
  • Added validateAtrule, validateAtrulePrelude, validateAtruleDescriptor, validateRule and validateDeclaration methods

1.6.0

27 Oct 15:59
Compare
Choose a tag to compare
  • Bumped csstree to 1.0.0

1.5.1

27 Oct 15:49
Compare
Choose a tag to compare

1.5.0

11 Jul 14:49
Compare
Choose a tag to compare

1.4.0

30 May 12:43
Compare
Choose a tag to compare

1.3.1

19 Feb 15:54
Compare
Choose a tag to compare
  • Updated csstree to 1.0.0-alpha.28