Releases: csstree/csstree
Releases · csstree/csstree
1.1.3
- Fixed matching on CSS wide keywords for at-rule's prelude and descriptors
- Added
fit-content
towidth
property patch as browsers are supported it as a keyword (nonstandard), but spec defines it as a function - Fixed parsing a value contains parentheses or brackets and
parseValue
option is set tofalse
, in that case!important
was included into a value but must not (#155)
1.1.2
1.1.1
1.1.0
- Bumped
mdn-data
to 2.0.14 - Extended
fork()
method to allow append syntax instead of overriding fortypes
,properties
andatrules
, e.g.csstree.fork({ types: { color: '| foo | bar' } })
- Extended lexer API for validation
- Added
Lexer#checkAtruleName(atruleName)
,Lexer#checkAtrulePrelude(atruleName, prelude)
,Lexer#checkAtruleDescriptorName(atruleName, descriptorName)
andLexer#checkPropertyName(propertyName)
- Added
Lexer#getAtrule(atruleName, fallbackBasename)
method - Extended
Lexer#getAtrulePrelude()
andLexer#getProperty()
methods to takefallbackBasename
parameter - Improved SyntaxMatchError location details
- Changed error messages
- Added
1.0.1
1.0.0
- Added
onComment
option to parser config - Added support for
break
andskip
values inwalk()
to control traversal - Added
List#reduce()
andList#reduceRight()
methods - Bumped
mdn-data
to 2.0.12 - Exposed version of the lib (i.e.
import { version } from 'css-tree'
) - Renamed
HexColor
node type intoHash
- Removed
element()
specific parsing rules - Removed
dist/default-syntax.json
from package - Fixed
Lexer#dump()
to dump atrules syntaxes as well - Fixed matching comma separated
<urange>
list (#135)
1.0.0-alpha.39
- Fixed walker with
visit: "Declaration"
to iterateDeclarationList
(#114)
1.0.0-alpha.38
- Bumped
mdn-data
to2.0.6
- Added initial implementation for at-rule matching via
Lexer#matchAtrulePrelude()
andLexer#matchAtruleDescriptor()
methods - Added
-moz-control-character-visibility
,-ms-grid-columns
,-ms-grid-rows
and-ms-hyphenate-limit-last
properties to patch (#111, thanks to @life777) - Added
flow
,flow-root
andtable-caption
values to patcheddisplay
(#112, thanks to @silverwind)
1.0.0-alpha.37
- Bumped
source-map
version to^0.6.1
to fix source map generation inconsistency across node.js versions due to mappings sorting bug and v8 moving to a stable Array#sort (fix commit insource-map
)
1.0.0-alpha.36
- Dropped support for Node < 8
- Updated dev deps (fixed
npm audit
issues) - Reworked build pipeline
- Package provides
dist/csstree.js
anddist/csstree.min.js
now (instead of singledist/csstree.js
that was a min version) - Bundle size (min version) reduced from 191Kb to 158Kb due to some optimisations
- Package provides
- Definition syntax
- Renamed
grammar
intodefinitionSyntax
(named per spec) - Added
compact
option togenerate()
method to avoid formatting (spaces) when possible
- Renamed
- Lexer
- Changed
dump()
method to produce syntaxes in compact form by default
- Changed