Skip to content

Latest commit

Β 

History

History
202 lines (115 loc) Β· 8 KB

CHANGELOG.md

File metadata and controls

202 lines (115 loc) Β· 8 KB

Changelog

All notable changes to this project will be documented in this file.

4.1.5 - (2023-06-29)

🏠 Refactor

  • Cleanup FunctionComponentWithImplicitChildren (7ddde60)

πŸ› Bug Fixes

  • components: Remove deprecated defaultProps component option (#279) (da6fe51)

πŸ“ Documentation

  • 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)

πŸ§ͺ Testing

  • Update ts-jest configuration (#278) (b7fa614)

4.1.4 - (2022-04-21)

Bug Fixes

  • Issues with esm module (#184) (402c1a6)

4.1.3 - (2022-04-16)

Bug Fixes

  • Fixed prepublish script for yarn publish (f6c8cdd)

4.1.2 - (2022-04-15)

Bug Fixes

  • 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)

Refactor

  • Cleanup generic type (c8b566b)
  • Clean up global type declarations (5477d9d)

Styling

  • Reformat renovate config file (1c9509b)
  • Add EOF line for script (eba5e71)

Testing

  • 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)

Bug Fixes

  • readme: fixed headers for usage (188f859)

4.1.0 (2021-09-26)

Features

  • add Fallback component (d949f89)
  • add IfAsync component (will be used automatically when passing a Promise to the condition 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)

Bug Fixes

  • if: properly throw warnings in dev mode (bd80bbc)

4.0.1 (2020-10-21)

⚠ BREAKING CHANGES

  • readme: As part of the rewrite, the global exports are gone. Please use CommonJS or ESM style imports as specified in the README.

Bug Fixes

4.0.0 (2020-10-21)

⚠ BREAKING CHANGES

  • As part of the rewrite, the global exports are gone. Please use CommonJS or ESM style imports as specified in the README.

Features

3.4.3 (2019-06-17)

  • Consistent type determination. (@Mamoru1234)

3.4.2 (2019-06-17)

  • Type definition for Switch, Case and Default. (@melyourhero)

3.4.1 (2019-05-03)

  • TypeScript types fix: Allow functions that return booleans instead of just booleans, as per prop-types. (@eropple)

3.4.0 (2019-04-24)

  • Add Switch/Case/Default statement (@cyrilchapon)

3.3.0 (2019-04-23)

  • Add lazy condition evalutation (@cyrilchapon)

3.2.0 (2019-04-23)

  • Remove lock files
  • Render in a fragment (@davidrevoledo)

3.1.3 (2018-10-26)

  • Fix compatibility issue with react-hot-loader. (@Ako520)

3.1.2 (2018-09-25)

  • Add missing TypeScript declarations for When and Unless. (@martijnthe)

3.1.1 (2018-09-07)

  • Fixed a bug of <When/> and <Unless/> components that was not allowing to show any children even if the condition was true. (@ejbp)

3.1.0 (2018-08-31)

  • Updated babel to v7 (@meszaros-lajos-gyorgy)
  • Fixed typos in the readme and cleaned up examples (@meszaros-lajos-gyorgy)

3.0.0 (2018-08-30)

  • 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)

2.2.2

  • Add TypeScript typings. (@TeffenEllis)

2.2.1

  • Update to React 15.5 (@romac)

2.2.0

  • Rewrite with functional components. (@timjacobi)

2.1.0 (2016-06-13)

  • Render any child component apart from Else if condition is true. (@timjacobi)
  • Added tests. (@timjacobi)
  • Allow If to have no children.

2.0.5 (2015-01-20)

  • Add missing import statement.

2.0.2 (2015-01-17)

  • Fix isInstance method for React >= 0.14

2.0.0 (2015-01-17)

  • Rewritten in ES2015.
  • Allow empty branches, and make them optional.

1.2.0 (2015-01-17)

  • Add support for lazy evaluation of Then and Else children. (@Rleahy22)

1.1.1 (2015-01-12)

  • Use React.PropTypes.element instead of React.PropTypes.component, if available.

1.1.0 (2015-01-12)

  • Use this instead of window to make it work with browserify.

1.0.1 (2014-09-04)

  • Initial release