Releases: nkbt/react-collapse
v5.1.0
v5.0.1
v5.0.0
Another full rewrite comparing to v4. For most cases upgrade should cause much troubles (except you need to add CSS transition to your collapse element)
Please see https://github.com/nkbt/react-collapse#migrating-from-v4-to-v5 for full migration guide
Updates from 5.0.0-alpha.3
(see #251 and #252)
- renamed onRestCheckInterval -> checkTimeout prop
- fix initialStyle.height prop type
- added ForceInitialAnimation example
- updated Readme with all the v5 changes and Migration Guide
v5.0.0-alpha.3
v5.0.0-alpha.2
- completely rewrote collapse again 🤦♂️ no more iframe and onresize listeners
- now we get
height: auto;
andoverflow: initial
when component is fully opened and not resizing anymore (resting) - due to
getSnapshotBeforeUpdate
usage, React peer bumped to^16.3.0
- added
onRest
andonWork
callbacks - re-implemented
UnmountCollapsed
component
v5.0.0-alpha.0
#222 Complete Rewrite
Lots of breaking changes, will try to get API as close to the 4.x as possible over time and add Migration docs.
v4.0.3
v2.4.1
HOTFIX
Make sure you have [email protected] for dev mode.
For production (if you use older versions of react or just as a general advice) - use babel-plugin-transform-react-remove-prop-types
extra plugin for babel:
{
"env": {
"production": {
"plugins": [
["transform-react-remove-prop-types", {"removeImport": true}]
]
}
}
}
This plugin will remove any mention of prop-types
and PropTypes
themselves. They are ignored by React anyway in production runtime.