Skip to content

Releases: Andarist/react-textarea-autosize

v7.0.0

09 Jul 11:42
Compare
Choose a tag to compare
  • size improvements - removing propTypes in production builds, some micro optimizations
  • distributing "browser" field now with slightly lighter code for browsers
  • valueRowCount property on component's instance holding total row count (including those over maxRows)
  • onChange being called with second argument - this of the component

v6.1.0

02 Apr 18:28
Compare
Choose a tag to compare

Moved height recalculation to componentDidUpdate hook - should behave the same for all compatible React versions and at the same time won't be using deprecated componentWillReceiveProps hook.

v6.0.1

25 Mar 00:27
Compare
Choose a tag to compare
  • Bail out from calculating dimenions for detached nodes (fixes #173)

v6.0.0

05 Mar 14:44
Compare
Choose a tag to compare

No actual changes, sort of a bug fix - documented way of requiring the package in CJS env was to require('react-textarea-autosize').default, but accidentally it got broken way over half a year ago in 5.1.0 (28 July 2017). Since that version CJS envs could do require('react-textarea-autosize') (without additional .default).

Interop between those 2 module formats is tricky if we do not provide additional interop helpers (that were omitted in "broken" versions) when bundling. It caused some issues in mixed SSR / browser development, so it got fixed, but due to long-standing nature of this "bug" it got decided to release this as major version if by any chance somebody has relied on the broken behaviour.

v5.2.1

14 Nov 12:14
Compare
Choose a tag to compare
  • accounting for tab-size property during height calculations (thanks to @tmilloff)

v5.2.0

08 Nov 10:48
Compare
Choose a tag to compare
  • we are binding requestAnimationFrame to window in development mode to mitigate IE11 quirk with eval source maps
  • we've switched to using babel7-beta internally, should result in slightly smaller and more performant code

v5.1.0

28 Jul 10:29
Compare
Choose a tag to compare
  • allowed React 16 as peer dependency
  • updated mostly dev dependencies
  • exposing flat bundle from now on

v5.0.7

23 Jun 09:41
Compare
Choose a tag to compare
  • include font-style attribute in height calculations (thanks to @wokr)

v5.0.6

25 May 15:49
Compare
Choose a tag to compare
  • fixed lifting resize lock

v5.0.5

25 May 15:48
Compare
Choose a tag to compare
  • fixed caching DOM measurements when the feature is used