Releases: tonyganch/gonzales-pe
Releases · tonyganch/gonzales-pe
v3.0.1
v3.0.0
CLI
- Made cli process stdin only if
-
argument is passed. - Added help message.
API
- Renamed
parseTree.remove
toparseTree.removeChild()
. - Unwraped callback parameters for
traverse...
methods. - Made
first()
,last()
andget()
methods returnnull
if no child nodes were found. - Made
node.length
return a number of child nodes. - Renamed
rule
tocontext
. - 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
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()
togonzales.parse()
. See Readme. - Renamed
gonzales.astToSrc()
toparseTree.toString()
. See Readme. - Renamed
gonzales.astToString()
toparseTree.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
tointerpolation
. - Separated
include
andextend
nodes. - Replaced
filter
withdeclaration
. - Replaced
braces
withbrackets
andparentheses
. - Replaced
atrulers
withblock
. - Renamed
nthSelector
topseudoClass
. - Renamed
atrules
,atruler
andatruleb
toatrule
. - Renamed
functionBody
toarguments
. - Renamed
functionExpression
toexpression
. - Renamed
attrib
toattributeSelector
. - Renamed
attrselector
toattributeMatch
. - Renamed
commentSL
tosinglelineComment
. - Renamed
commentML
tomultilineComment
. - Renamed
declDelim
todeclarationDelimiter
. - Renamed
delim
todelimiter
. - Renamed
propertyDelim
topropertyDelimiter
. - Renamed
pseudoc
topseudoClass
. - Renamed
pseudoe
topseudoElement
. - Renamed
s
tospace
. - Renamed
shash
tocolor
. - Renamed
vhash
toid
. - Removed
atrulerq
,unary
andunknown
. - 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
tosrc
directory. - Made package availbale for install from GitHub.