Skip to content

Update dependency react-textarea-autosize to v8

Administrator requested to merge renovate/react-textarea-autosize-8.x into master

Created by: renovate[bot]

This PR contains the following updates:

Package Type Update New value References Sourcegraph
react-textarea-autosize dependencies major ^8.2.0 source code search for "react-textarea-autosize"

Release Notes

Andarist/react-textarea-autosize

v8.2.0

Compare Source

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

Compare Source

Patch Changes

v8.1.0

Compare Source

Minor Changes
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

Compare Source

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.

v8.0.0

Compare Source

Major Changes
  • The package has been rewritten in TypeScript so type definitions are now included in the package itself. There is no need to install separate types from the DefinitelyTyped.
  • At the same time the package internals have been rewritten to use React's hooks API. This means that the peer dependency requirement for React version had to be changed to ^16.8.0.
  • You can now use ref prop to get access to the underlaying textarea element as React.forwardRef is being used now. The support for innerRef has been completely removed.
  • useCacheForDOMMeasurements prop has been renamed to cacheMeasurements.
  • onHeightChange callback no longer receives the second argument. It was the component's instance (its this), but as the component is now implemented using hooks there no longer is any instance that could be given to a consumer like that.
  • Removed handling props.style.maxHeight and props.style.minHeight values. If you need to control those boundaries you should use maxRows and minRows props respectively.
Minor Changes
  • The height is being set now directly on the underlaying textarea element and not caused by updating internal state and this triggering React's rerender. This shouldn't make for any observable difference for consumers of this package.

Renovate configuration

📅 Schedule: "on the 1st through 7th day of the month" in timezone America/Los_Angeles.

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Renovate will not automatically rebase this PR, because other commits have been found.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by WhiteSource Renovate. View repository job log here.

Merge request reports

Loading