All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.
- Upgrade to flow 0.131.0
- Apply prettier config to the sources (was defined before but not used)
- Support passing a custom theme type to useTheme for TS types (#93)
- Upgrade flow, fix types
- Add prettier config, fix formatting
- Fix @types/react dependency (#81)
- Republish with new build
- Use tiny-warning instead of warning package (#78)
- Upgrade to React 16.3 and cache the calculation of the theme object (#74)
- Add support for the new forward ref API and deprecate the
innerRef
prop (#75)
- Make the default theme undefined so when a ThemeProvider is not nested, it will not merge the themes (#70)
- Save the context on the theming object (#69)
- Added exporting of ThemeProviderProps (#67)
- Fix ts types (#65)
- Align flow and TypeScript types so they export the same interfaces (#60)
- Improve withTheme HoC, added support for innerRef and improved typings (#61)
- Export the default ThemeContext (#62)
- Use new React Context API (#54)
- Switched build system to rollup for building esm, cjs and umd (#55)
- Added flow types (#54)
- Added TypeScript types (#58)
- Added unsubscribe method
- Update React to v16
- Update brcast
Add themeListener
—advanced helper to hook theming in any Component.
Fix a bug where ThemeProvider tried to merge with outerTheme
, when there is none. In these case ThemeProvider needs to pass original theme without merging (#19 by @iamstarkov)
Fix a bug with webpack resolving pkg.modules
, so from now own theming
has commonjs (dist/cjs
) and es modules (dist/esm
) entry poingts.
Initial release with channel
, ThemeProvider
, withTheme
and createTheming