From 142f5003bad3817ca65c440f55541006e6501be4 Mon Sep 17 00:00:00 2001 From: "Robert W. Pearce" Date: Mon, 3 Jan 2022 14:19:51 -0500 Subject: [PATCH] v2.3.4 and update all-contribs badge --- CHANGELOG.md | 15 +++++++++++++++ README.md | 2 +- package.json | 2 +- 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7cfc1da..da1ec90 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,21 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +## [2.3.4] - 2022-02-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`](https://www.npmjs.com/package/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. + ## [2.3.3] - 2021-10-28 ### Fixed diff --git a/README.md b/README.md index ca08958..2f59800 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # react-expanding-textarea -[![All Contributors](https://img.shields.io/badge/all_contributors-9-orange.svg?style=flat-square)](#contributors-) [![npm version](https://img.shields.io/npm/v/react-expanding-textarea.svg?style=flat-square)](https://www.npmjs.com/package/react-expanding-textarea) [![npm downloads](https://img.shields.io/npm/dm/react-expanding-textarea.svg?style=flat-square)](https://www.npmjs.com/package/react-expanding-textarea) [![bundlephobia size](https://flat.badgen.net/bundlephobia/minzip/react-expanding-textarea)](https://bundlephobia.com/result?p=react-expanding-textarea) +[![All Contributors](https://img.shields.io/badge/all_contributors-21-orange.svg?style=flat-square)](#contributors-) [![npm version](https://img.shields.io/npm/v/react-expanding-textarea.svg?style=flat-square)](https://www.npmjs.com/package/react-expanding-textarea) [![npm downloads](https://img.shields.io/npm/dm/react-expanding-textarea.svg?style=flat-square)](https://www.npmjs.com/package/react-expanding-textarea) [![bundlephobia size](https://flat.badgen.net/bundlephobia/minzip/react-expanding-textarea)](https://bundlephobia.com/result?p=react-expanding-textarea) React textarea component to automatically expand and contract your textareas. diff --git a/package.json b/package.json index 2a9f33f..2650a9d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-expanding-textarea", - "version": "2.3.3", + "version": "2.3.4", "description": "React textarea component to automatically expand and contract your textareas", "main": "dist/cjs/index.js", "module": "dist/esm/index.js",