radium v0.15.0 Release Notes
Release Date: 2015-11-11 // over 8 years ago-
๐ New Features
- ๐
Radium now uses inline-style-prefixer to do all prefixing. Because
inline-style-prefixer
relies on the userAgent (similar to autoprefixer), it produces the same prefixes on both the client and the server. This is a huge step in making Radium truly universal (see example). Thanks much to @rofrischmann for putting up with my API suggestions and requests! - ๐ง Any Radium component can also be configured at render time via a
radiumConfig
. This was mainly required for passing theuserAgent
during a server-side render.
๐ฅ Breaking Changes
- ๐
Style component no longer supports the
prefix
prop. It automatically gets the correct userAgent to pass to the prefixer fromradiumConfig
context
๐ Bug Fixes
- ๐
Radium wrapper now replaces the
style
propType, if defined, with array or object, fixing #396 - ๐ Stateless components now support context, thanks @ThomWright
- Static fields on stateless components are now transferred to the Radium wrapper (
defualtProps
,propTypes
, etc)
๐ Improvements
- Code has been ES2015-ified: const and let, import/export, fat arrows,
- ๐ Code has moved from
modules
tosrc
- ๐
Radium now uses inline-style-prefixer to do all prefixing. Because