Releases: Oblosys/react-lifecycle-visualizer
Releases · Oblosys/react-lifecycle-visualizer
v2.2.6
v2.2.5
v2.2.4
v2.2.3
v2.2.2
v2.2.0
Changes
- Update npm dependencies
- Version 6 of
react-reduxrequired a rewrite to pass the custom store via a React context, asstoreKeyis no longer supported. - Version 8 of
babel-loadermoves a bunch of packages to the@babel/scope and also required some changes to.babelrc.
- Version 6 of
- Change demo port from 8001 to 8000
v2.1.1
v2.1.0
v2.0.0
Instead of modifying the traced component and magically adding new properties to it, the traced component is now more conventionally wrapped by a TracingComponent, and trace and LifecyclePanel are passed as props (underwater the component still needs to be modified to intercept the lifecycle methods though). This gives more control over the constructor, and makes for a more consistent interface. It also makes it much easier to type traceLifecycle, and TypeScript definitions are now included with the package.
Changes
- Traced components are wrapped by a
TracingComponent, which removes the requirement of passingcontexttosuperwhen using an explicit constructor (issue #1) traceandLifecyclePanelare passed as props- TypeScript type definitions are included with the package
- Layout is a little prettier, especially on Windows
- Enzyme tests have been added
Breaking change
- Because
tracecan now be accessed asnextProps.tracein the staticgetDerivedStateFromProps, it is no longer added to theprevStateparameter
Deprecated
this.trace(replaced bythis.props.trace)this.LifecyclePanel(replaced bythis.props.LifecyclePanel)clearInstanceIdCounters(replaced by more appropriately namedresetInstanceIdCounters)
The deprecated versions will continue to work in version 2.x, but generate a warning on the console.