Skip to content

Releases: csstree/csstree

1.1.3

31 Mar 11:59
Compare
Choose a tag to compare
  • Fixed matching on CSS wide keywords for at-rule's prelude and descriptors
  • Added fit-content to width 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 to false, in that case !important was included into a value but must not (#155)

1.1.2

26 Nov 15:51
Compare
Choose a tag to compare
  • Rolled back to use spread syntax in object literals since it not supported by nodejs < 8.3 (#145)

1.1.1

18 Nov 21:25
Compare
Choose a tag to compare
  • Fixed edge cases in mismatch location computation for SyntaxMatchError

1.1.0

18 Nov 02:35
Compare
Choose a tag to compare
  • Bumped mdn-data to 2.0.14
  • Extended fork() method to allow append syntax instead of overriding for types, properties and atrules, 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) and Lexer#checkPropertyName(propertyName)
    • Added Lexer#getAtrule(atruleName, fallbackBasename) method
    • Extended Lexer#getAtrulePrelude() and Lexer#getProperty() methods to take fallbackBasename parameter
    • Improved SyntaxMatchError location details
    • Changed error messages

1.0.1

18 Nov 02:41
Compare
Choose a tag to compare
  • Fixed edge cases for parsing of custom property value with a single whitespace when parseCustomProperty:true

1.0.0

27 Oct 14:19
Compare
Choose a tag to compare
  • Added onComment option to parser config
  • Added support for break and skip values in walk() to control traversal
  • Added List#reduce() and List#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 into Hash
  • 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

05 Dec 22:02
Compare
Choose a tag to compare
  • Fixed walker with visit: "Declaration" to iterate DeclarationList (#114)

1.0.0-alpha.38

25 Nov 22:07
Compare
Choose a tag to compare
  • Bumped mdn-data to 2.0.6
  • Added initial implementation for at-rule matching via Lexer#matchAtrulePrelude() and Lexer#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 and table-caption values to patched display (#112, thanks to @silverwind)

1.0.0-alpha.37

22 Oct 23:17
Compare
Choose a tag to compare
  • 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 in source-map)

1.0.0-alpha.36

13 Oct 21:28
Compare
Choose a tag to compare
  • Dropped support for Node < 8
  • Updated dev deps (fixed npm audit issues)
  • Reworked build pipeline
    • Package provides dist/csstree.js and dist/csstree.min.js now (instead of single dist/csstree.js that was a min version)
    • Bundle size (min version) reduced from 191Kb to 158Kb due to some optimisations
  • Definition syntax
    • Renamed grammar into definitionSyntax (named per spec)
    • Added compact option to generate() method to avoid formatting (spaces) when possible
  • Lexer
    • Changed dump() method to produce syntaxes in compact form by default