Releases
v3.0.0-beta
Compare
Sorry, something went wrong.
No results found
CLI
Added --simple flag for printing a simplified tree structure.
CLI now prints parse tree to stdout.
API
Parse tree is now represented as objects, not arrays.
Renamed gonzales.srcToAST() to gonzales.parse(). See Readme .
Renamed gonzales.astToSrc() to parseTree.toString(). See Readme .
Renamed gonzales.astToString() to parseTree.toJson(). See Readme .
Added information about column number to nodes.
Added information about end position to nodes.
Made empty strings to be parsed as empty nodes.
Node types
In Sass renamed interpolatedVariable to interpolation.
Separated include and extend nodes.
Replaced filter with declaration.
Replaced braces with brackets and parentheses.
Replaced atrulers with block.
Renamed nthSelector to pseudoClass.
Renamed atrules, atruler and atruleb to atrule.
Renamed functionBody to arguments.
Renamed functionExpression to expression.
Renamed attrib to attributeSelector.
Renamed attrselector to attributeMatch.
Renamed commentSL to singlelineComment.
Renamed commentML to multilineComment.
Renamed declDelim to declarationDelimiter.
Renamed delim to delimiter.
Renamed propertyDelim to propertyDelimiter.
Renamed pseudoc to pseudoClass.
Renamed pseudoe to pseudoElement.
Renamed s to space.
Renamed shash to color.
Renamed vhash to id.
Removed atrulerq, unary and unknown.
Added attributeFlags.
Added attributeName.
Added attributeValue.
Added conditionalStatement.
Added namePrefix.
Added namespacePrefix.
Added namespaceSeparator.
Added typeSelector.
Parsing rules
Spaces that separate two nodes are now put between those nodes in parse tree.
Added support for extend nodes in Less.
Added support for equality and inequality signs in Sass and SCSS.
Added support for /deep/ combinator.
Added support for !optional and !global in Sass and SCSS.
Fixed parsing of interpolations in Sass and SCSS.
Fixed parsing of arguments in Sass, SCSS and Less.
Fixed parsing of declaration delimiters in Sass.
Fixed the issue when pseudo-classes were parsed like declarations.
Fixed parsing of selectors on multiple lines in Sass.
Fixed parsing of percent sign as operator in SCSS.
Fixed parsing of pseudo-elements as selectors in Sass.
Misc
Added Babel to build source files.
Used mocha for tests.
Added helper scripts.
Added Travis config.
Improved tests structure.
Separated log and test scripts.
Improved error messages.
Removed benchmark tests.
Moved source files from lib to src directory.
Made package availbale for install from GitHub.
You can’t perform that action at this time.