react-with-styles
Advanced tools
Comparing version
@@ -0,1 +1,7 @@ | ||
## v4.0.0 | ||
- [breaking] Add @babel/runtime as a peer dependency (because of our dependency on babel-preset-airbnb) (@noratarano, [#229](https://github.com/airbnb/react-with-styles/pull/229)) | ||
- [new] Introduce the `useStyles` hook, which is still experimental. Use if you do not require performance optimizations for styles per component. (@noratarano, [#225](https://github.com/airbnb/react-with-styles/pull/225), [#221](https://github.com/airbnb/react-with-styles/pull/221)) | ||
- [new] Refactor `withStyles` to use a context-based implementation, rather than singletons in the `ThemedStyleSheet`. Works in a backward compatible way with the `ThemedStyleSheet` implementation. Note that this may break existing usages of the HOC if a wrapping component of a component using `withStyles` uses `contextTypes` and hoists `contextType` (usually accidentally). (@noratarano, [#225](https://github.com/airbnb/react-with-styles/pull/225/files), [#221](https://github.com/airbnb/react-with-styles/pull/221)) | ||
- [breaking] Drop support for node 6 (@noratarano, [#219](https://github.com/airbnb/react-with-styles/pull/219)) | ||
## v3.2.3 | ||
@@ -2,0 +8,0 @@ - [fix] Add .git to .npmignore |
{ | ||
"name": "react-with-styles", | ||
"version": "4.0.0-alpha.2", | ||
"version": "4.0.0-alpha.3", | ||
"description": "", | ||
@@ -53,3 +53,3 @@ "main": "lib/withStyles.js", | ||
"@babel/register": "^7.5.5", | ||
"@babel/runtime": "^7.5.5", | ||
"@babel/runtime": "^7.0.0", | ||
"airbnb-js-shims": "^2.2.0", | ||
@@ -56,0 +56,0 @@ "babel-plugin-transform-replace-object-assign": "^2.0.0", |
145081
0.77%