All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- Updated
tslib
compat to be^2.4.0
- Support for React 18
- Updated
react-with-forwarded-ref
to solve legacy peer deps issue
- Fix SSR useLayoutEffect warning in nextjs (#84)
- "Use useLayoutEffect instead of useEffect" (#72)
- "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 astyle
object if it gets passed. We also are now resizing using aResizeObserver
, if it's supported, as well as if a providedclassName
changes.
- Fix legacy peer deps issue
- Fix: use ChangeEvent over FormEvent (issue #61)
- "Force a resize if the provided value is changed" (PR #58 from @mat-sz)
- can now pass a callback-style
ref
instead of only thecreateRef
oruseRef
variant object that has acurrent
property; allows for tools likereact-hook-form
to work with this project (#52)
- patch upgrade to
react-with-forwarded-ref
- simplified
ref
logic ontextarea
element - patch upgrade to
ts-lib
- textareas with
maxHeight
not having a scrollbar (#43)
- README update
- now building output using tsc instead of rollup
- now exporting the textarea interface (should resolve #47)
- typescript support
- license from ISC to BSD-3
- issue where
line-height
isnormal
and calculation breaks by falling back tofontSize * 1.2
- upgrades to fix vulnerabilities
- Commonjs
react-expanding-textarea.min.js
build - UMD
react-expanding-textarea.min.js
build
- auto-adjusting issue in firefox (#33)
- changed
browser
field value in package.json to point todist/umd/react-expanding-textarea.min.js
suffix
- README
- support for forwarding a ref (#36)
- added
babel-plugin-transform-react-remove-prop-types
- bumped devDependencies
- added UMD build
- changed build location for commonjs and esmodules to
dist/esm/
anddist/cjs
.
- Fixed textarea growing before it needed to (#31)
prop-types
was being used but not included as a dependency
- fixed security issues for
sshpk
,cached-path-relative
andmixin-deep
- dependency on
prop-types
- build folder is now
dist/
- now building with
rollup
- now providing CJS & ESM dist files (
main
andmodule
inpackage.json
)
- responds to both
onChange
andonInput
callbacks now
- complete rewrite using React hooks. Minimum react peer dependency is now
>= 16.8
.
- includes a fix for #18
- addressed #14 where the
rows
attribute was being disregarded. Now, it provides a means to provide a minimum/default number ofrows
. This is a minorversion bump because it will cause the component to behave differently for existing folks and is really more of an addition than a fix.
- fixed #10 where a change in the value prop was not recalculating the size
- support for react v16