All Versions
Latest Version
Avg Release Cycle
56 days
Latest Release

Changelog History
Page 1

  • v8.4.0 Changes

    Minor Changes

    • ๐Ÿ“ฆ #354 41d10b2 Thanks @Andarist! - exports field has been added to the package.json manifest.

    Thanks to this, the package now includes a worker condition that can be utilized by properly configured bundlers when targeting worker-like environments. It fixes the issue with browser-specific files being prioritized by some bundlers when targeting workers.

  • v8.3.4 Changes

    Patch Changes

  • v8.3.3 Changes

    Patch Changes

    • 0d7ac21 #326 Thanks @karlingen! - Account for word-break property when calculating the height.

    • ๐Ÿ›  6336448 #327 Thanks @circlingthesun! - Fixed the tabindex attribute name that is set on the hidden textarea used for height calculations.

  • v8.3.2 Changes

    Patch Changes

    • ๐Ÿ›  3c71884 #311 Thanks @Andarist! - Changed TextareaAutosizeProps to a TS interface which fixes the problem of "resolved" being type alias being inlined in the emitted types declaration which could cause incompatibilities with some versions of @types/react.
  • v8.3.1 Changes

    Patch Changes

    • ๐Ÿšš 49d7d04 #305 Thanks @mxschmitt! - Moved internal 'resize' listener to the layout effect since React 17 calls cleanups of regular effects asynchronously. This ensures that we don't ever try to access the already unmounted ref in our listener.
  • v8.3.0 Changes

    November 05, 2020

    Minor Changes

    • a16a46d #296 Thanks @RDIL! - Allow React 17 in the specified peer dependency range.
  • v8.2.0 Changes

    June 30, 2020

    Minor Changes

    • a1fc99f #284 Thanks @emmenko! - Added { rowHeight: number } as a second parameter to the onHeightChange callback. This is useful to construct custom behaviors according to the height values.
  • v8.1.1 Changes

    June 25, 2020

    Patch Changes

    • ๐Ÿ›  b7c227a #280 Thanks @emdotem! - Fixed a broken call to setProperty that has prevented the library to work correctly.
  • v8.1.0 Changes

    June 24, 2020

    Minor Changes

    • ๐Ÿ’… 722e10a #278 Thanks @emdotem! - Set inline style's height property with the "important" priority.

    Patch Changes

    db872f0 Thanks @Andarist! - TextareaAutosizeProps are now based on React.TextareaHTMLAttributes<HTMLTextAreaElement> instead of JSX.IntrinsicElements['textarea']. The latter one includes a type for ref attribute and it being included as part of TextareaAutosizeProps has caused problems when using TextareaAutosizeProps to declare wrapper components. This is also more semantically correct as ref shouldn't be a part of props. It's rather accepted by a particular JSX element and in case of the react-textarea-autosize this is the type of the exported component which is React.ForwardRefExoticComponent<TextareaAutosizeProps> (a result of React.forwardRef call).

    ๐Ÿš€ 61ca826 Thanks @Andarist! - maxHeight and minHeight has been disallowed as part of TextareaAutosizeProps['style']. The intention to do that was there since the v8 release but it was not implemented correctly and allowed those to slip into the mentioned type.

  • v8.0.1 Changes

    May 24, 2020

    Patch Changes

    ๐Ÿ›  2307033 #266 Thanks @vlazh! - Fixed a regression with calculating too high height for textareas with box-sizing: border-box;.

    1d1bba2 #265 Thanks @SimenB! - Exported TextareaAutosizeProps type for convenience.

    ๐Ÿ›  da960f4 Thanks @Andarist! - Fixed an issue with internal cache not being populated correctly when using cacheMeasurements prop.