github callstack/linaria v1.4.0
Release 1.4.0

latest releases: @linaria/core@6.2.0, @linaria/react@6.2.0, linaria@6.1.1...
3 years ago

Features:

  • introduces evaluation strategies
  • add ignore option to CLI (#458)
  • allow a function to be passed for classNameSlug option (#547)

Fixes:

  • performance boost for large projects
  • support String and Number object (#524)
  • allow styled import to be locally renamed (#544)
  • expand the valid CSS Identifier method to allow more valid characters in class names (#656)
  • add @font-face to critical, remove redundant atrules. (#588)
  • added more variables when vm context is created (#592)
  • handle empty string values in css rules
  • cache directory for modules above project root, support lerna root (#591)
  • create rollup slug from cssText (#647)
  • push '' into className before regex special characters (#640)
  • css identifier cannot start with a digit (#683)

Also, Linaria has been rewritten to TypeScript that helped us to introduce a couple of new type checks:

  • a component passed to styled should have a className property;
  • if styles include an interpolated function, a passed component should also have a style property.

Don't miss a new linaria release

NewReleases is sending notifications on new releases.