All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
4.0.1 (2020-10-21)
- readme: As part of the rewrite, the global exports are gone. Please use CommonJS or ESM style imports as specified in the README.
- readme: update shields (d975fd4)
4.0.0 (2020-10-21)
- As part of the rewrite, the global exports are gone. Please use CommonJS or ESM style imports as specified in the README.
- Consistent type determination. (@Mamoru1234)
- Type definition for Switch, Case and Default. (@melyourhero)
- TypeScript types fix: Allow functions that return booleans instead of just booleans, as per prop-types. (@eropple)
- Add Switch/Case/Default statement (@cyrilchapon)
- Add lazy condition evalutation (@cyrilchapon)
- Remove lock files
- Render in a fragment (@davidrevoledo)
- Fix compatibility issue with
react-hot-loader
. (@Ako520)
- Add missing TypeScript declarations for When and Unless. (@martijnthe)
- Fixed a bug of
<When/>
and<Unless/>
components that was not allowing to show any children even if the condition was true. (@ejbp)
- Updated babel to v7 (@meszaros-lajos-gyorgy)
- Fixed typos in the readme and cleaned up examples (@meszaros-lajos-gyorgy)
- Added When and Unless shorthands (@meszaros-lajos-gyorgy)
- Changed propType for Then and Else to node (@meszaros-lajos-gyorgy)
- Fixed up test and updated some dependencies (@meszaros-lajos-gyorgy)
- Add TypeScript typings. (@TeffenEllis)
- Update to React 15.5 (@romac)
- Rewrite with functional components. (@timjacobi)
- Render any child component apart from
Else
if condition is true. (@timjacobi) - Added tests. (@timjacobi)
- Allow
If
to have no children.
- Add missing import statement.
- Fix isInstance method for React >= 0.14
- Rewritten in ES2015.
- Allow empty branches, and make them optional.
- Add support for lazy evaluation of
Then
andElse
children. (@Rleahy22)
- Use React.PropTypes.element instead of React.PropTypes.component, if available.
- Use
this
instead ofwindow
to make it work with browserify.
- Initial release