Skip to content
This repository has been archived by the owner on Jun 30, 2024. It is now read-only.

Releases: rpearce/react-expanding-textarea

v2.3.6

25 May 01:53
7000b1d
Compare
Choose a tag to compare

[2.3.6] - 2022-05-24

Changed

  • Updated tslib compat to be ^2.4.0

Fixed

  • Support for React 18
  • Updated react-with-forwarded-ref to solve legacy peer deps issue

v2.3.5

03 Mar 04:04
fd003c8
Compare
Choose a tag to compare

[2.3.5] - 2022-03-02

Fixed

  • Fix SSR useLayoutEffect warning in nextjs (#84)

v2.3.4

03 Jan 19:21
c3f2d7a
Compare
Choose a tag to compare

[2.3.4] - 2022-01-03

Changed

  • "Use useLayoutEffect instead of useEffect" (#72)

Fixed

  • "Textarea does not automatically recalculate size if it's parent container
    changes size" (#71). This adds a tiny dependency on
    fast-shallow-equal and
    pairs it with a custom hook to be able to detect shallow changes to a style
    object if it gets passed. We also are now resizing using a ResizeObserver,
    if it's supported, as well as if a provided className changes.

v2.3.3

28 Oct 04:19
321cc45
Compare
Choose a tag to compare

[2.3.3] - 2021-10-28

Fixed

  • Fix legacy peer deps issue

v2.3.2

13 Aug 00:53
76c9201
Compare
Choose a tag to compare

Fixed

  • Fix: use ChangeEvent over FormEvent (issue #61)

v2.3.1

05 Jan 14:28
1cb3421
Compare
Choose a tag to compare

[2.3.1] - 2021-01-05

Fixed

  • "Force a resize if the provided value is changed" (PR #58 from @mat-sz)

v2.3.0

08 Dec 21:24
07f8690
Compare
Choose a tag to compare

[2.3.0] - 2020-12-08

Added

  • can now pass a callback-style ref instead of only the createRef or
    useRef variant object that has a current property; allows for tools like
    react-hook-form to work with this project (#52)

Changed

  • patch upgrade to react-with-forwarded-ref

v2.2.4

03 Dec 21:05
b7b54fe
Compare
Choose a tag to compare

[2.2.4] - 2020-12-03

Changed

  • simplified ref logic on textarea element
  • patch upgrade to ts-lib

v2.2.0

14 Mar 13:09
2a2c14c
Compare
Choose a tag to compare

[2.2.0] - 2020-03-14

Added

  • typescript support

Changed

  • license from ISC to BSD-3

Fixed

  • issue where line-height is normal and calculation breaks by falling back
    to fontSize * 1.2
  • upgrades to fix vulnerabilities

v2.1.2

05 Feb 02:03
9ccc31a
Compare
Choose a tag to compare

[2.1.2] - 2020-02-04

Added

  • Commonjs react-expanding-textarea.min.js build
  • UMD react-expanding-textarea.min.js build

Fixed

  • auto-adjusting issue in firefox (#33)

Changed

  • changed browser field value in package.json to point to
    dist/umd/react-expanding-textarea.min.js suffix