All notable changes to this project will be documented in this file.
4.1.5 - (2023-06-29)
- Cleanup
FunctionComponentWithImplicitChildren
(7ddde60)
- components: Remove deprecated defaultProps component option (#279) (da6fe51)
- readme: Fix all contributors entries (729090a)
- Add @msftenhanceprovenance as a contributor (198cf9c)
- Add @FC5570 as a contributor (46c42de)
- Add @dependabot[bot] as a contributor (7de95e6)
- Add @renovate[bot] as a contributor (57012dd)
- Add @renovate-bot as a contributor (ca81514)
- Add @depfu[bot] as a contributor (75f853a)
- Update
ts-jest
configuration (#278) (b7fa614)
4.1.4 - (2022-04-21)
- Issues with esm module (#184) (402c1a6)
4.1.3 - (2022-04-16)
- Fixed prepublish script for yarn publish (f6c8cdd)
4.1.2 - (2022-04-15)
- Export additional types for end-users (61f9abf)
- Properly fix types for React 18 (54fee8e)
- Update peer dependency to allow React 18 (b10bd3f)
- Fixed the code to work with React 18 (4d504e1)
- Add more If tests (6a91441)
- Finish porting tests to testing-library (e6c809a)
- Update switch test (f229b1b)
- Rewrite tests to react-testing-library (part 1) (196c536)
- Configure jest runner vscode extension (2642c49)
4.1.1 (2021-09-26)
- readme: fixed headers for usage (188f859)
4.1.0 (2021-09-26)
- add
Fallback
component (d949f89) - add
IfAsync
component (will be used automatically when passing aPromise
to thecondition
of<If condition={...}>
) (c6ff69c) - add promise support to
<If />
component (fixes #53) (#111) (18bb83b) - update soft minimum NodeJS requirement to v14 - only applies when
engines
is checked (f1ede6f)
- if: properly throw warnings in dev mode (bd80bbc)
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