Skip to content

Releases: nkbt/react-collapse

v5.1.0

19 Nov 09:08
Compare
Choose a tag to compare

Added:

  • #281 Allow React 17 as peer dependency by @davidspiess
  • #262 Accessibility enhancements (added area-hidden to Collapse container depending on isOpened) by @kylemh

Fixes:

  • #285 Remove hasNestedCollapse from example as it not necessary
  • #284 Update all dependencies

v5.0.1

23 Dec 00:01
Compare
Choose a tag to compare

FIX

  • #257 Avoid using Object.assign so IE11 works again

v5.0.0

11 Oct 06:48
Compare
Choose a tag to compare

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

27 Sep 07:52
Compare
Choose a tag to compare

Fixes

#249 - Fixed UnmountClosed to work with latest React

Chores

#248 - Updated all dependencies and build

v5.0.0-alpha.2

16 May 04:36
Compare
Choose a tag to compare

#229

  • completely rewrote collapse again 🤦‍♂️ no more iframe and onresize listeners
  • now we get height: auto; and overflow: initial when component is fully opened and not resizing anymore (resting)
  • due to getSnapshotBeforeUpdate usage, React peer bumped to ^16.3.0
  • added onRest and onWork callbacks
  • re-implemented UnmountCollapsed component

v5.0.0-alpha.0

10 Apr 06:01
Compare
Choose a tag to compare

#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

31 Jul 01:19
Compare
Choose a tag to compare

Fix

  • #166 @meriadec Prevent overflow content from being hidden after collapse open

Chore

  • #184 @nkbt refresh (dev tools, build, deps, etc)

v2.4.1

02 May 22:22
Compare
Choose a tag to compare

HOTFIX

  • #174 @nkbt Fix backward compatibility with react 14

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.

v4.0.2

26 Apr 15:15
Compare
Choose a tag to compare

v4.0.1

20 Apr 22:55
Compare
Choose a tag to compare

HOTFIX, missing node-noop dependency screwed stubbing prop-types