Skip to content

Releases: tbela99/css-parser

Support relative colors

17 Jan 05:00
Compare
Choose a tag to compare

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

Full Changelog: v0.2.0...v0.3.0

v0.2.0

05 Jan 01:31
Compare
Choose a tag to compare

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

07 Oct 19:39
Compare
Choose a tag to compare

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

07 Oct 19:37
Compare
Choose a tag to compare

Full Changelog: 0.0.1-rc7...0.0.1

0.0.1-rc7

07 Oct 19:37
Compare
Choose a tag to compare
0.0.1-rc7 Pre-release
Pre-release

Full Changelog: 0.0.1-rc6...0.0.1-rc7

0.0.1-rc6

20 Aug 19:53
Compare
Choose a tag to compare
0.0.1-rc6 Pre-release
Pre-release
  • malformed token handling
  • adding new test
  • css nesting expansion

Full Changelog: 0.0.1-rc5...0.0.1-rc6

0.0.1-rc5

17 Aug 04:24
Compare
Choose a tag to compare
0.0.1-rc5 Pre-release
Pre-release
  • incorrectly render time
  • add new test cases #10

Full Changelog: 0.0.1-rc4...0.0.1-rc5

0.0.1-rc4

17 Aug 04:22
Compare
Choose a tag to compare
0.0.1-rc4 Pre-release
Pre-release
  • 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

17 Aug 04:20
Compare
Choose a tag to compare
0.0.1-rc3 Pre-release
Pre-release

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

0.0.1-rc2

12 Aug 03:42
Compare
Choose a tag to compare
0.0.1-rc2 Pre-release
Pre-release

Invalid escape sequence parsing