Skip to content

Releases: tbela99/css-parser

v0.5.2

13 May 02:13

Choose a tag to compare

  • Merging produce invalid rules in unsupported browsers

Full Changelog: v0.5.1...v0.5.2

v0.5.1

13 May 02:11

Choose a tag to compare

  • failed to flatten import at-rule when using url() syntax #33 #34

What's Changed

Full Changelog: v0.5.0...v0.5.1

v0.5.0

28 Apr 13:01

Choose a tag to compare

What's Changed

  • render node with parents
  • fix relative color from xyz
  • fix bug when inlineCss is true bug no css variable exists
  • compute more shorthands
  • (web) fetch imported css files from external domains using cors
  • create a playground page

Full Changelog: v0.4.0...v0.5.0

CSS Color level 4 & 5

31 Mar 16:18

Choose a tag to compare

Parsing

  • allow async node visitors
  • adding declaration parsing helper async parseDeclarations(source: string): Promise<AstDeclarations[]>

CSS Color level 4

  • lch()
  • oklch()
  • lab()
  • oklab()
  • color()

CSS Color level 5

  • color-mix()
  • relative color

What's Changed

Full Changelog: v0.3.0...v0.4.0

Support relative colors

17 Jan 05:00

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

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

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

Choose a tag to compare

Full Changelog: 0.0.1-rc7...0.0.1

0.0.1-rc7

07 Oct 19:37

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

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