Skip to content

Releases: nkbt/react-collapse

v5.1.0

Choose a tag to compare

@nkbt nkbt released this 19 Nov 09:08

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

Choose a tag to compare

@nkbt nkbt released this 23 Dec 00:01

FIX

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

v5.0.0

Choose a tag to compare

@nkbt nkbt released this 11 Oct 06:48

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

Choose a tag to compare

@nkbt nkbt released this 27 Sep 07:52

Fixes

#249 - Fixed UnmountClosed to work with latest React

Chores

#248 - Updated all dependencies and build

v5.0.0-alpha.2

Choose a tag to compare

@nkbt nkbt released this 16 May 04:36

#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

Choose a tag to compare

@nkbt nkbt released this 10 Apr 06:01

#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

Choose a tag to compare

@nkbt nkbt released this 31 Jul 01:19

Fix

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

Chore

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

v2.4.1

Choose a tag to compare

@nkbt nkbt released this 02 May 22:22

HOTFIX

  • #174 @nkbt Fix backward compatibility with react 14

Make sure you have react@0.14.9 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

Choose a tag to compare

@nkbt nkbt released this 26 Apr 15:15

v4.0.1

Choose a tag to compare

@nkbt nkbt released this 20 Apr 22:55

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