Skip to content

Releases: Andarist/react-textarea-autosize

v5.0.0

20 May 19:37
Compare
Choose a tag to compare

BREAKING CHANGES

  • dropped support for reading internally (for DOM measurements) prefixed box-sizing
  • dropped support for proxy (to underlaying DOM node) methods on the instance - value, selectionStart , selectionEnd setters/getters, focus and blur (accessible before through ref on the component). If you need access to those please use inputRef prop to get ref of the underlaying DOM node and use native methods on it
  • dropped support for the valueLink prop which supported using LinkedStateMixin which is deprecated since React 15
  • dropped rows prop alias, please use minRows instead (previously it was the same thing anyway)

NEW IN THE RELEASE

  • passing this as second argument to the onHeightChange callback
  • providing rowCount property on the instance which is the reason why this is passed to onHeightChange - so the rowCount may be accessed, this is for now the only prop supported that you may access, please do not use any internal stuff
  • using incrementing uid as cache key - important when using useCacheForDOMMeasurements prop, providing id or name to the component is no longer required for the cache to work

v4.3.2

15 May 07:07
Compare
Choose a tag to compare
  • fixed SSR regression introduced in v4.3.2 by window/document checks

v4.3.1

14 May 18:24
Compare
Choose a tag to compare
  • accounting for various border widths, measuring them independently rather than just geting border-width
  • fixed IE height measurements for border-boxed elements, it seems that IE returns computed width/height for content only, while other browsers add padding and border (correctly). Behaviour can be checked here. Every browser returns 100px, IE11 would return 80px

v4.3.0

03 May 10:54
Compare
Choose a tag to compare
  • reattaching hiddenTextarea (used for measurements) to the DOM in case it gets deattached some how (by external scripts such as turbolinks in example)
  • added UMD builds built with Rollup

v4.2.2

02 May 15:50
Compare
Choose a tag to compare
  • added possibility to pass initial height through props.style.height
  • restored height calculation in onChange for uncontrolled inputs

v4.2.1

02 May 15:49
Compare
Choose a tag to compare
  • fixed cursor jumps caused for controlled inputs (culprit: doubled height calculations - pre and post change)
  • added safe guard check before calculating element's height for non-browser environment (i.e. during tests)
  • optimized calls to setState, now it's called only when some change happened
  • applying style properties directly (style.setProperty) instead of element.setAttribute('style', ...) to avoid CSP issues with unsafe-inline

v4.2.0

02 May 15:49
Compare
Choose a tag to compare
  • added es build, more suitable for es6 modules aware tools like rollup and webpack2
  • switched to babel's loose mode
  • fixed inputRef being passed to the underlaying element which caused unused properties warning

v4.1.0

02 May 15:48
Compare
Choose a tag to compare
  • switched to using PropTypes from external package (fixed React 15.5.0 deprecation warning)
  • added new prop - inputRef which gets passed as ref callback to the underlaying element

v4.0.5

02 May 15:48
Compare
Choose a tag to compare
  • decided not to support IE8 ever (previous status - PR welcomed)
  • reverted the change using '' instead of 'x' to calculate the height of empty textarea

v4.0.4

02 May 15:47
Compare
Choose a tag to compare
  • fixed unused properties warning in React 15.2.0 by passing only DOM props to the underlaying element