diff --git a/.changeset/great-actors-end.md b/.changeset/great-actors-end.md deleted file mode 100644 index 1845f86445..0000000000 --- a/.changeset/great-actors-end.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"react-select": patch ---- - -Adds react ^17.0.0 to peer dependencies for React 17 support diff --git a/.changeset/lazy-singers-applaud.md b/.changeset/lazy-singers-applaud.md deleted file mode 100644 index 6f31d43470..0000000000 --- a/.changeset/lazy-singers-applaud.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"react-select": patch ---- - -Creatable: Fixed removing MultiValues that have identical values. See issue #4137 for details. diff --git a/.changeset/lemon-boats-cover.md b/.changeset/lemon-boats-cover.md deleted file mode 100644 index dd4afc9514..0000000000 --- a/.changeset/lemon-boats-cover.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"react-select": patch ---- - -Added a guard to the `ScrollCaptor` component to check that `el` exists before calling `removeEventListener`, fixes intermittent errors diff --git a/.changeset/nasty-coats-fly.md b/.changeset/nasty-coats-fly.md deleted file mode 100644 index d3c647a119..0000000000 --- a/.changeset/nasty-coats-fly.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"react-select": minor ---- - -Changed the `cx` and `getValue` props that are passed to components into instance properties, which means they now pass a referential equality check on subsequent renders. - -This is helpful, for example, when you're optimising the performance of rendering custom Option components - see [#3055](https://github.com/JedWatson/react-select/issues/3055) diff --git a/.changeset/pink-cats-mate.md b/.changeset/pink-cats-mate.md deleted file mode 100644 index f7f7278744..0000000000 --- a/.changeset/pink-cats-mate.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"react-select": patch ---- - -Fixed value passed to onChange when clearing value diff --git a/.changeset/quick-carrots-count.md b/.changeset/quick-carrots-count.md deleted file mode 100644 index 2bcd7c4f04..0000000000 --- a/.changeset/quick-carrots-count.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"react-select": patch ---- - -Base aria-live message on tabSelectsValue prop diff --git a/.changeset/silly-donkeys-return.md b/.changeset/silly-donkeys-return.md deleted file mode 100644 index 9fcbeb2080..0000000000 --- a/.changeset/silly-donkeys-return.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"react-select": patch ---- - -Updated react-input-autosize to v3.0.0 diff --git a/.changeset/silver-cobras-attend.md b/.changeset/silver-cobras-attend.md deleted file mode 100644 index 15c5dc7f51..0000000000 --- a/.changeset/silver-cobras-attend.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"react-select": patch ---- - -Fixed onCreateOption is not always called for Creatable diff --git a/.changeset/ten-apples-tap.md b/.changeset/ten-apples-tap.md deleted file mode 100644 index 11e736e15d..0000000000 --- a/.changeset/ten-apples-tap.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'react-select': minor ---- - -Remove duplicate prop createOptionPosition diff --git a/.changeset/wicked-turkeys-brush.md b/.changeset/wicked-turkeys-brush.md deleted file mode 100644 index 8b1472e723..0000000000 --- a/.changeset/wicked-turkeys-brush.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"react-select": patch ---- - -Added `innerProps` prop to the built-in `MenuList` component to reduce the need for additional DOM nodes or forking internal code when passing additional props to the DOM element the MenuList component is rendering. - -See issue [#4265](https://github.com/JedWatson/react-select/issues/4265) for an explanation. diff --git a/packages/react-select/CHANGELOG.md b/packages/react-select/CHANGELOG.md index 8c025172fc..b1d509cde4 100644 --- a/packages/react-select/CHANGELOG.md +++ b/packages/react-select/CHANGELOG.md @@ -1,5 +1,35 @@ # react-select +## 3.2.0 + +### Minor Changes + +- [c615e93d](https://github.com/JedWatson/react-select/commit/c615e93dbca15b9f9c6c3e6437744ca53703347f) [#4084](https://github.com/JedWatson/react-select/pull/4084) Thanks [@JedWatson](https://github.com/JedWatson)! - Changed the `cx` and `getValue` props that are passed to components into instance properties, which means they now pass a referential equality check on subsequent renders. + + This is helpful, for example, when you're optimising the performance of rendering custom Option components - see [#3055](https://github.com/JedWatson/react-select/issues/3055) + +- [72f6036f](https://github.com/JedWatson/react-select/commit/72f6036fa6f425837c8c2326bf91dff7bd7f6147) [#4306](https://github.com/JedWatson/react-select/pull/4306) Thanks [@bladey](https://github.com/bladey)! - Remove duplicate prop createOptionPosition + +### Patch Changes + +- [ee638d46](https://github.com/JedWatson/react-select/commit/ee638d4615e789090ea860d2e1c9f4d95a829d50) [#4275](https://github.com/JedWatson/react-select/pull/4275) Thanks [@Methuselah96](https://github.com/Methuselah96)! - Adds react ^17.0.0 to peer dependencies for React 17 support + +- [a0133f19](https://github.com/JedWatson/react-select/commit/a0133f19f45eb2dc9a2faebd74e18f44da7d509b) [#4154](https://github.com/JedWatson/react-select/pull/4154) Thanks [@brenshanny](https://github.com/brenshanny)! - Creatable: Fixed removing MultiValues that have identical values. See issue #4137 for details. + +- [d1e660c6](https://github.com/JedWatson/react-select/commit/d1e660c6b261d7fd60a85a6eca2ee9e3e0348ea2) [#4213](https://github.com/JedWatson/react-select/pull/4213) Thanks [@eythort](https://github.com/eythort)! - Added a guard to the `ScrollCaptor` component to check that `el` exists before calling `removeEventListener`, fixes intermittent errors + +- [a1e1db25](https://github.com/JedWatson/react-select/commit/a1e1db255aceda301d9705d0639e7ca0302bd079) [#4373](https://github.com/JedWatson/react-select/pull/4373) Thanks [@Methuselah96](https://github.com/Methuselah96)! - Fixed value passed to onChange when clearing value + +- [2ad29d61](https://github.com/JedWatson/react-select/commit/2ad29d615bc769c3b3dc4177eb0007a267369748) [#4136](https://github.com/JedWatson/react-select/pull/4136) Thanks [@Methuselah96](https://github.com/Methuselah96)! - Base aria-live message on tabSelectsValue prop + +- [ad890f27](https://github.com/JedWatson/react-select/commit/ad890f279300b6baaca55a642141999a79af8883) [#4326](https://github.com/JedWatson/react-select/pull/4326) Thanks [@Methuselah96](https://github.com/Methuselah96)! - Updated react-input-autosize to v3.0.0 + +- [b28d9922](https://github.com/JedWatson/react-select/commit/b28d99222ab191db27482c6219f8c8b12ef753d8) [#3990](https://github.com/JedWatson/react-select/pull/3990) Thanks [@nikitaindik](https://github.com/nikitaindik)! - Fixed onCreateOption is not always called for Creatable + +- [24ba8702](https://github.com/JedWatson/react-select/commit/24ba8702b93885790ee919de8c01ea8f44d1c354) [#4289](https://github.com/JedWatson/react-select/pull/4289) Thanks [@slimklim](https://github.com/slimklim)! - Added `innerProps` prop to the built-in `MenuList` component to reduce the need for additional DOM nodes or forking internal code when passing additional props to the DOM element the MenuList component is rendering. + + See issue [#4265](https://github.com/JedWatson/react-select/issues/4265) for an explanation. + ## 3.1.1 ### Patch Changes diff --git a/packages/react-select/package.json b/packages/react-select/package.json index 0d074c851c..c5ef110492 100644 --- a/packages/react-select/package.json +++ b/packages/react-select/package.json @@ -1,6 +1,6 @@ { "name": "react-select", - "version": "3.1.1", + "version": "3.2.0", "description": "A Select control built with and for ReactJS", "main": "dist/react-select.cjs.js", "module": "dist/react-select.esm.js",