You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CHANGELOG.md 2.4 KiB

3 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. ## [Unreleased]
  2. <details>
  3. <summary>
  4. Changes that have landed in master but are not yet released.
  5. Click to see more.
  6. </summary>
  7. </details>
  8. ## 3.0.4 (May 11, 2018)
  9. Fixed shallow renderer regression (introduced in 3.0.3) that caused `setState` updater to fail due to incorrect `this`. ([#26](https://github.com/reactjs/react-lifecycles-compat/pull/26))
  10. ## 3.0.3 (May 9, 2018)
  11. Fixed an edge case bug where a batched update containing both a `setState` updater and a parent re-render could result in dropped `state` updates. ([#24](https://github.com/reactjs/react-lifecycles-compat/pull/24))
  12. ## 3.0.2 (April 11, 2018)
  13. Replaced an unintentional template literal to ensure broader browser compatibility. ([ce42fe4](https://github.com/reactjs/react-lifecycles-compat/commit/ce42fe426e6348fd221bb4fd1905e392ceb823a9))
  14. ## 3.0.1 (April 10, 2018)
  15. Replaced a few unintentional `let` keywords with `var` to ensure broader browser compatibility. ([#17](https://github.com/reactjs/react-lifecycles-compat/pull/17))
  16. ## 3.0.0 (April 9, 2018)
  17. Throw an error for any polyfilled component that mixes old lifecycles (`componentWillMount`, `componentWillReceiveProps`, or `componentWillUpdate`) and new lifecycles (`getDerivedStateFromProps` or `getSnapshotBeforeUpdate`) as React 16.3+ does not support this case and will not invoke the old lifecycles. This error ensures consistent behavior between React 16.3+ and older versions. ([#14](https://github.com/reactjs/react-lifecycles-compat/pull/14))
  18. ## 2.0.1 (April 9, 2018)
  19. Add a DEV mode warning for any polyfilled component that mixes old lifecycles (`componentWillMount`, `componentWillReceiveProps`, or `componentWillUpdate`) and new lifecycles (`getDerivedStateFromProps` or `getSnapshotBeforeUpdate`) as React 16.3+ does not support this case and will not invoke the old lifecycles. This warning ensures consistent behavior between React 16.3+ and older versions. ([#15](https://github.com/reactjs/react-lifecycles-compat/pull/15))
  20. ## 2.0.0 (April 4, 2018)
  21. Package uses a named export and includes an ES6 module build. ([#11](https://github.com/reactjs/react-lifecycles-compat/pull/11))
  22. ```js
  23. // 1.x (before)
  24. import polyfill from 'react-lifecycles-compat';
  25. // 2.x (after)
  26. import {polyfill} from 'react-lifecycles-compat';
  27. ```
  28. ## 1.1.4 (April 3, 2018)
  29. Improved handling of falsy return values from polyfilled `getSnapshotBeforeUpdate()` lifecycle. [#12](https://github.com/reactjs/react-lifecycles-compat/pull/12)