Socket
Socket
Sign inDemoInstall

react-lifecycles-compat

Package Overview
Dependencies
Maintainers
7
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-lifecycles-compat - npm Package Versions

2

3.0.4

Diff

Changelog

Source

3.0.4 (May 11, 2018)

Fixed shallow renderer regression (introduced in 3.0.3) that caused setState updater to fail due to incorrect this. (#26)

brianvaughn
published 3.0.3 •

Changelog

Source

3.0.3 (May 9, 2018)

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)

brianvaughn
published 2.0.2 •

brianvaughn
published 3.0.2 •

Changelog

Source

3.0.2 (April 11, 2018)

Replaced an unintentional template literal to ensure broader browser compatibility. (ce42fe4)

brianvaughn
published 3.0.1 •

Changelog

Source

3.0.1 (April 10, 2018)

Replaced a few unintentional let keywords with var to ensure broader browser compatibility. (#17)

brianvaughn
published 3.0.0 •

Changelog

Source

3.0.0 (April 9, 2018)

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)

brianvaughn
published 2.0.1 •

Changelog

Source

2.0.1 (April 9, 2018)

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)

brianvaughn
published 2.0.0 •

Changelog

Source

2.0.0 (April 4, 2018)

Package uses a named export and includes an ES6 module build. (#11)

// 1.x (before)
import polyfill from 'react-lifecycles-compat';

// 2.x (after)
import {polyfill} from 'react-lifecycles-compat';
brianvaughn
published 1.1.4 •

Changelog

Source

1.1.4 (April 3, 2018)

Improved handling of falsy return values from polyfilled getSnapshotBeforeUpdate() lifecycle. #12

brianvaughn
published 1.1.3 •

2
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc