- [breaking] Add @babel/runtime as a peer dependency (because of our dependency on babel-preset-airbnb) (@noratarano, #229)
- [new] Introduce the
useStyles
hook, which is still experimental. Use if you do not require performance optimizations for themed styles per component. (@noratarano, #225, #221) - [new] Refactor
withStyles
to use a context-based implementation, rather than singletons in theThemedStyleSheet
. Works in a backward compatible way with theThemedStyleSheet
implementation. Note that this may break existing usages of the HOC if a wrapping component of a component usingwithStyles
usescontextTypes
and hoistscontextType
(usually accidentally). (@noratarano, #225, #221) - [breaking] Drop support for node 6 (@noratarano, #219)
- [fix] Add .git to .npmignore
- [dev] Clear performance marks before setting (@mmarkelov, #214)
- [deps] Update
prop-types
,hoist-non-react-statics
- [deps] Replace
deepmerge
withobject.assign
- [deps] Update
hoist-non-react-statics
,prop-types
,react-with-direction
- [fix] Move work out of render and into state (#156)
- [fix] Use
this.context
instead of constructor arguments directly (#154)
- [new] Add
performance.mark()
andperformance.measure()
in development (#141)
- [fix] Remove unnecessary
ThemedStyleSheet
caching (#130)
- [new] Add back default create/resolve methods to ThemedStyleSheet (#130)
- [breaking] Send css method down as a prop; remove cssNoRTL and some ThemedStyleSheet methods (#124)
- [new] Recreate styles on render when the theme changes (#128)
- [fix] Remove unnecessary
makeFromThemes
/styles
globals from theThemedStyleSheet
(#122)
- [new] Add contextual StyleSheet creation based on direction (#117)
- [fix] Defer
Stylesheet.create
tocomponentWillMount
ofwithStyles
(#115)
- [new] Exports
withStylesPropTypes
(#110)
- [new] Actually export
resolveNoRTL
from the interface if it exists (#98)
- [new] Export
ThemedStyleSheet.resolveNoRTL
ascssNoRTL
if it exists. (#95) - [breaking] Remove contextual theming. (#93)
- [Deps] update
deepmerge
- [Fix] update for React 15.5 changes
- [New] Adds empty style object when no style function is provided.
- [New] Add
pureComponent
option (requires React 15.3.0+).
- [Fix] Avoid copying withStyles propTypes (e.g. for
styles
andtheme
) from the wrapped component.
- [New] copy propTypes and defaultProps from the wrapped component.
- [Deps] Bump deepmerge dependency from ^0.2.1 to ^1.0.0.
- Extract interfaces to their own repos.
- Initial full release.
- Add scripts for building and publishing this package.
- Add
ThemeProvider
as a named export from project main.
- Fix
main
in package.json.
- Initial soft release.