Skip to content

Commit

Permalink
Version Packages (#264)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and github-actions[bot] committed May 23, 2020
1 parent 3108479 commit 1875690
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 39 deletions.
5 changes: 0 additions & 5 deletions .changeset/0-twenty-hotels-repair.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/1-fuzzy-pears-raise.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/2-mighty-cobras-tell.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/3-big-shoes-tap.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/4-warm-meals-confess.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/5-dirty-guests-bathe.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/plenty-camels-grow.md

This file was deleted.

15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# react-textarea-autosize

## 8.0.0
### 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](https://github.com/DefinitelyTyped/DefinitelyTyped).
- At the same time the package internals have been rewritten to use React's [hooks API](https://reactjs.org/docs/hooks-intro.html). 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`](https://reactjs.org/docs/react-api.html#reactforwardref) 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.
6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "react-textarea-autosize",
"description": "textarea component for React which grows with content",
"version": "7.1.2",
"version": "8.0.0",
"keywords": [
"autosize",
"grow",
Expand All @@ -18,9 +18,7 @@
"./dist/react-textarea-autosize.esm.js": "./dist/react-textarea-autosize.browser.esm.js"
},
"sideEffects": false,
"files": [
"dist"
],
"files": ["dist"],
"author": "Andrey Popp <8mayday@gmail.com> (httsps://andreypopp.com/)",
"contributors": [
"Mateusz Burzyński <mateuszburzynski@gmail.com> (https://github.com/Andarist)"
Expand Down

0 comments on commit 1875690

Please sign in to comment.