Skip to content

Latest commit

 

History

History
94 lines (57 loc) · 2.86 KB

CHANGELOG.md

File metadata and controls

94 lines (57 loc) · 2.86 KB

Changelog

v5.0.3 (2022/4/28)

  • Add React 18 to peer dependencies

v5.0.2 (2021/11/5)

  • Add React 17 to peer dependencies

v5.0.1 (2018/7/29)

  • Smaller file size

v5.0.0 (2018/3/22)

Breaking Changes

  • When a function is included in the components array, it will now be called with a different signature. Previously, it was called with one argument, results, an array of the currently-accumulated results.

    In React Composer v5, the function will be called with an object with two properties, results and render. results is the same value as before, and render is the render prop that you should place on the React element that is returned by the function.

  • mapResult and renderPropName have been removed. The new signature of the function described above gives you the information that you need to map the results, or to use a custom render prop name.

If you need help migrating from an earlier version of React Composer, we encourage you to read the new examples in the README. They demonstrate how you can use the new API to accomplish the things that you previously used renderPropName and mapResult for.

v4.1.0 (2018/2/10)

Improvements

  • ~20% smaller file size.

v4.0.0 (2018/2/8)

Breaking

  • The components now render in the opposite order. What this means is that the first item in the components array will not be the outermost element. Previously, it was the innermost element.

    Although this is technically a breaking change, the most typical usage of Composer is agnostic to the render order, so there is a chance that you may not run into any problems when upgrading from v3 to v4.

v3.1.1 (2018/2/8)

Bug Fixes

  • This ensures that the argument passed to functions within the components array is always a new array.

v3.1.0 (2018/2/8)

New Features

  • Within the components array, you may now specify a function that returns a React Element. The function will be called with the currently accumulated results.

v3.0.1 (2018/2/3)

Bug Fixes

  • Ensures the array passed to the render prop is a new object each time

v3.0.0 (2018/2/3)

React's new Context API has been finalized, and it uses functional children rather than a prop named render. Accordingly, this library has been updated to use children as the default.

Breaking

  • <Composer/> now uses children as the render prop, rather than render.
  • The default renderPropName is now "children" rather than "render"

v2.1.0 (2018/1/22)

New Features

  • A new prop has been added: mapResult. This allows you to use React Composer with render prop components that call their own render prop with more than one argument.

v2.0.0 (2018/1/22)

This was the first release of the library.