Skip to content

v2.0.0

Choose a tag to compare

@danieldelcore danieldelcore released this 20 Aug 12:15
· 178 commits to master since this release

Improvements πŸ’ͺ

🌏 Reworked globals βœ…
⚑️ Performance improvements βœ…
🎨 Fix paint flashing βœ…
πŸ‘Ύ Improved SSR API βœ…
🐭 Reduced bundle size βœ…
πŸ“ƒ Better docs βœ…
βš”οΈ Battle tested βœ…

Breaking changes πŸ’₯

  • useGlobal renamed to useGlobals
  • useTrousers alias removed, please use useStyles
  • withTrousers alias removed, please use withStyles
  • trousers alias removed, please use styleCollector
  • severStyleRegistry.get() now returns React Nodes

Misc 🎁

  • TypeScript users no longer have to pass all generic types to useStyles, css and styleCollector
  • Render flashing is now gone, courtesy of useLayoutEffect
  • Removed murmurhash in favour of a small hand-rolled alternative
  • useGlobals will now accept an array of styles
  • Unit tests everywhere!