- Fixed location properties on validation errors; all errors (excluding parse errors) now include
offset
,start
,end
, andloc
properties
- 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 theexports
field inpackage.json
- Fixed
package.json
for bundling for browser environments
- Added custom reporters support in CLI, e.g.
csstree-validator --reporter path/to/reporter.js
orcsstree-validator --reporter reporter-package
- Added
Symbol.iterator
forvalidateString()
,validateDictionary()
,validateFile()
,validatePathList()
andvalidatePath()
result value, i.e. it now can be used withfor ... of
for examplefor (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
- Changed supported versions of Node.js to
- 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)
- Droped support for Nodejs < 8
- Bumped
csstree
to 1.1.1 - CLI exits with code
1
and outputs messages tostderr
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
andvalidateDeclaration
methods
- Bumped
csstree
to 1.0.0
- Updated
csstree
to 1.0.0-alpha.34
- Updated
csstree
to 1.0.0-alpha.32
- Updated
csstree
to 1.0.0-alpha.29
- Updated
csstree
to 1.0.0-alpha.28
- Added
gnu
reporter (@sideshowbarker, #8) - Updated
csstree
to 1.0.0-alpha.26
- Updated
csstree
to 1.0.0-alpha24 (minor bug fixes)
- Updated
csstree
to 1.0.0-alpha21 - Use tolerant mode to parse a CSS. Since now a single parse error doesn't prevent validation of a whole CSS.
- Updated
csstree
to 1.0.0-alpha20 - Changed validate function to always contain a list of errors (no single error on parse error)
- Added
validateDictionary()
that validate a dictionary, where key is a filename and value is a CSS as string - Changed
validateFile()
,validatePath()
andvalidatePathList()
to handle possible file system exceptions (such errors will be stored as regular errors) - Added second argument for
validatePath()
andvalidatePathList()
to rule which file should be validated. Functions validate files with.css
extension only, when second parameter is not passed. - Fixed minor issues in reporters output
- Added
loc
to mismatch errors when possible - Fixed wrong
source
in nodeloc
- Updated
csstree
to1.0.0-alpha13
- Updated
csstree
to1.0.0-alpha12
- Updated
csstree
to1.0.0-alpha9
- Updated
csstree
to1.0.0-alpha8
- Updated
csstree
to1.0.0-alpha7
- Updated
csstree
to1.0.0-alpha6
(it was not updated by mistake)
- Updated
csstree
to1.0.0-alpha6
- Use syntax validation error line and column when possible to more accurately indicate problem location
- Improved message output for default reporter
- Fixed CSS parse error output (or any other exception during validate)
- Initial implementation