Skip to content

Releases: tonyganch/gonzales-pe

v3.0.1

18 Oct 01:56
Compare
Choose a tag to compare

Parsing rules

  • Fixed parsing of parent selectors in SCSS and Less.
  • Fixed parsing of placeholders inside selectors in SCSS.

v3.0.0

18 Oct 00:37
Compare
Choose a tag to compare

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.

v3.0.0-beta

18 Oct 00:43
Compare
Choose a tag to compare

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.

v2.0.2

28 Dec 22:51
Compare
Choose a tag to compare

Fix parsing of Sass includes that have both arguments list and content block.
For example: @include nani() { color: tomato }.

v2.0.0

10 Nov 16:56
Compare
Choose a tag to compare
  • Sass support (scss and indented syntax)
  • Less support
  • Pass all arguments as one object
  • Pass syntax name as an argument
  • Update tests
  • Update documentation