Releases: tbela99/css-parser
Releases · tbela99/css-parser
Support relative colors
V0.3.0
shorthands
- column-rule
- columns
- container
- flex
- flex-flow
- gap
Other
- renamed RenderOptions.colorConvert to RenderOptions.convertColor
- support none keyword in color
- css relative color syntax for rgb(), hsl() and hwb() colors https://www.w3.org/TR/css-color-5/#relative-colors
- rgb
- hex
- hsl
- hwb
- calc()
- calc() and inline var()
parsing bug
- incorrectly parse declaration shorthand with !important
What's Changed
- #19 select 4 selector attribute parsing by @tbela99 in #20
- update readme #19 by @tbela99 in #21
- Version 0.2.0 by @tbela99 in #22
Full Changelog: v0.2.0...v0.3.0
v0.2.0
What's Changed
-
internal code refactoring
-
cancellable parser promise using abortSignal
-
node visitor (callback) :
- declaration visitor
- selector visitor
- at-rule visitor
-
support mixing units with calc()
shorthands
new shorthand properties supported:
- transition
- list-style
- text-emphasis
- animation
Full Changelog: v0.1.0...v0.2.0
v0.1.0
What's Changed
- generate sourcemap
- reduce calc()
- inline css variables
- configure duplicate declarations removal
- configure shorthand properties computation
Full Changelog: 0.0.1...v0.1.0
0.0.1
Full Changelog: 0.0.1-rc7...0.0.1
0.0.1-rc7
Full Changelog: 0.0.1-rc6...0.0.1-rc7
0.0.1-rc6
- malformed token handling
- adding new test
- css nesting expansion
Full Changelog: 0.0.1-rc5...0.0.1-rc6
0.0.1-rc5
0.0.1-rc4
- parse at-rule prelude
- fix unclosed string
- parse resolution
- incorrectly parse malformed import
Full Changelog: 0.0.1-rc3...0.0.1-rc4
0.0.1-rc3
What's Changed
Minification
- merge identical rules
- merge adjacent rules
- minify colors
- compute shorthand: border-radius, border-width, margin, padding
- remove redundant declarations
- simple shorthand properties (padding, margin, etc). must have all required properties
- complex shorthand properties (background, font, etc.). may have optional properties
- conditionally unwrap :is()
- automatic css nesting
- automatically wrap selectors using :is()
- multi-level shorthand properties (border - [border-width, border-color, etc.]) https://developer.mozilla.org/en-US/docs/Web/CSS/Shorthand_properties
- avoid reparsing (declarations, selectors, at-rule)
- avoid rerendering (declarations, selectors, at-rule)
- node and browser versions
- decode and replace utf-8 escape sequence
Performance
- flatten import At-Rule
Testing
- node tests
- browser tests
Code Coverage
- node
- browser
Full Changelog: 0.0.1-rc2...0.0.1-rc3