Skip to content

Crayon 2.0

Compare
Choose a tag to compare
@Im-Beast Im-Beast released this 06 May 14:21
· 280 commits to main since this release

Crayon 2.0 ships with many bugfixes and some interesting changes.

Breaking changes

  • CSS Keywords are now shipped as extension in @crayon.js/keywords package, see here and here.
  • Color support detection is now shipped as extension in @crayon.js/color-support package, see here and here.
  • Crayon.js is now ES Module instead of CommonJS
  • - crayon.colorSupport
    + crayon.config.colorSupport
  • @crayon.js/lite is deprecated - main crayon.js package is now the same out of the box without using extension packages.

Improvements

  • Fixed style caching
  • Nesting and chaining styles has been improved and fixed (also in literal templates)
  • Added support for chaining and functions for literal templates
  • Cleaned up type definitions
  • Functions and variables are now reusable to user and can be easily extended (look here):
  • Created Wiki
  • Using defineProperty instead of Proxies
  • Hugely improved performance
  • Lower package size (even when combined with @crayon.js/color-support and @crayon.js/keywords)

All changes