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
andNumber
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 aclassName
property; - if styles include an interpolated function, a passed component should also have a
style
property.