Thierry-Chain / Library-Management-App

Updated Library management system
https://smart-library-rw.herokuapp.com
2 stars 1 forks source link

Update dependency react-select to v5 #73

Closed renovate[bot] closed 1 year ago

renovate[bot] commented 1 year ago

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
react-select (source) ^3.2.0 -> ^5.0.0 age adoption passing confidence

Release Notes

JedWatson/react-select ### [`v5.7.0`](https://togithub.com/JedWatson/react-select/releases/tag/react-select%405.7.0) [Compare Source](https://togithub.com/JedWatson/react-select/compare/react-select@5.6.1...react-select@5.7.0) ##### Minor Changes - [`0773095f`](https://togithub.com/JedWatson/react-select/commit/0773095f4990b636f64ae7d0ab593353a1e03b22) [#​5457](https://togithub.com/JedWatson/react-select/pull/5457) Thanks [@​nderkim](https://togithub.com/nderkim)! - Add classNames API and unstyled prop ### [`v5.6.1`](https://togithub.com/JedWatson/react-select/releases/tag/react-select%405.6.1) [Compare Source](https://togithub.com/JedWatson/react-select/compare/react-select@5.6.0...react-select@5.6.1) ##### Patch Changes - [`cda16826`](https://togithub.com/JedWatson/react-select/commit/cda168262f777fd7be275d46063149c7d157fe55) [#​5482](https://togithub.com/JedWatson/react-select/pull/5482) Thanks [@​nderkim](https://togithub.com/nderkim)! - Fix unstable theme rerendering menu ### [`v5.6.0`](https://togithub.com/JedWatson/react-select/releases/tag/react-select%405.6.0) [Compare Source](https://togithub.com/JedWatson/react-select/compare/react-select@5.5.9...react-select@5.6.0) ##### Minor Changes - [`c37e86d8`](https://togithub.com/JedWatson/react-select/commit/c37e86d8eaa3f6eba83696453a58d525cce6c7c6) [#​4882](https://togithub.com/JedWatson/react-select/pull/4882) Thanks [@​Rall3n](https://togithub.com/Rall3n)! - Add `required` prop ### [`v5.5.9`](https://togithub.com/JedWatson/react-select/releases/tag/react-select%405.5.9) [Compare Source](https://togithub.com/JedWatson/react-select/compare/react-select@5.5.8...react-select@5.5.9) ##### Patch Changes - [`851ed2b8`](https://togithub.com/JedWatson/react-select/commit/851ed2b8b88d7230be2263a6c07c826bf507374d) [#​5430](https://togithub.com/JedWatson/react-select/pull/5430) Thanks [@​Rall3n](https://togithub.com/Rall3n)! - Fix focused option if `defaultMenuIsOpen` is set ### [`v5.5.8`](https://togithub.com/JedWatson/react-select/releases/tag/react-select%405.5.8) [Compare Source](https://togithub.com/JedWatson/react-select/compare/react-select@5.5.7...react-select@5.5.8) ##### Patch Changes - [`1ad6de4e`](https://togithub.com/JedWatson/react-select/commit/1ad6de4ee75041129a657b92931a2965a1805c31) [#​5084](https://togithub.com/JedWatson/react-select/pull/5084) Thanks [@​kosciolek](https://togithub.com/kosciolek)! - When focusing a dropdown option, the numbers included in the aria live region take filtering into consideration. ### [`v5.5.7`](https://togithub.com/JedWatson/react-select/releases/tag/react-select%405.5.7) [Compare Source](https://togithub.com/JedWatson/react-select/compare/react-select@5.5.6...react-select@5.5.7) ##### Patch Changes - [`0ca2d5ba`](https://togithub.com/JedWatson/react-select/commit/0ca2d5ba4aa42fb2a1bf033bcee660a293e39e50) [#​5431](https://togithub.com/JedWatson/react-select/pull/5431) Thanks [@​nderkim](https://togithub.com/nderkim)! - Change `class` components to `functional` components ### [`v5.5.6`](https://togithub.com/JedWatson/react-select/releases/tag/react-select%405.5.6) [Compare Source](https://togithub.com/JedWatson/react-select/compare/react-select@5.5.5...react-select@5.5.6) ##### Patch Changes - [`92398939`](https://togithub.com/JedWatson/react-select/commit/9239893986c6aaaa7105d3f5a91022827e544b10) [#​5409](https://togithub.com/JedWatson/react-select/pull/5409) Thanks [@​lukebennett88](https://togithub.com/lukebennett88)! - Move files around to as to be compatible with version 2 of `@preconstruct/cli` ### [`v5.5.5`](https://togithub.com/JedWatson/react-select/releases/tag/react-select%405.5.5) [Compare Source](https://togithub.com/JedWatson/react-select/compare/react-select@5.5.4...react-select@5.5.5) ##### Patch Changes - [`0dd38029`](https://togithub.com/JedWatson/react-select/commit/0dd3802977e525b4d8ea1eb083f8f13788016c28) [#​5246](https://togithub.com/JedWatson/react-select/pull/5246) Thanks [@​Rall3n](https://togithub.com/Rall3n)! - Fix re-focus of component in Firefox if being disabled while focused ### [`v5.5.4`](https://togithub.com/JedWatson/react-select/releases/tag/react-select%405.5.4) [Compare Source](https://togithub.com/JedWatson/react-select/compare/react-select@5.5.3...react-select@5.5.4) ##### Patch Changes - [`ebb0a17a`](https://togithub.com/JedWatson/react-select/commit/ebb0a17a30b22cb7e7f7467ed8eda4256166e401) [#​5404](https://togithub.com/JedWatson/react-select/pull/5404) Thanks [@​Methuselah96](https://togithub.com/Methuselah96)! - Use ResizeObserver to auto-update menu position if available ### [`v5.5.3`](https://togithub.com/JedWatson/react-select/releases/tag/react-select%405.5.3) [Compare Source](https://togithub.com/JedWatson/react-select/compare/react-select@5.5.2...react-select@5.5.3) ##### Patch Changes - [`07656aaa`](https://togithub.com/JedWatson/react-select/commit/07656aaac7f636129f8d09e723df9fa6e5ff2841) [#​5399](https://togithub.com/JedWatson/react-select/pull/5399) Thanks [@​dependabot](https://togithub.com/apps/dependabot)! - Update memoize-one ### [`v5.5.2`](https://togithub.com/JedWatson/react-select/releases/tag/react-select%405.5.2) [Compare Source](https://togithub.com/JedWatson/react-select/compare/react-select@5.5.1...react-select@5.5.2) ##### Patch Changes - [`00238f1a`](https://togithub.com/JedWatson/react-select/commit/00238f1a65ce9184b99edd6d3b3307f9b5c0c6c1) [#​5376](https://togithub.com/JedWatson/react-select/pull/5376) Thanks [@​lukebennett88](https://togithub.com/lukebennett88)! - Fix bug with animated multi-value select width being too wide ### [`v5.5.1`](https://togithub.com/JedWatson/react-select/releases/tag/react-select%405.5.1) [Compare Source](https://togithub.com/JedWatson/react-select/compare/react-select@5.5.0...react-select@5.5.1) ##### Patch Changes - [`0f6ef093`](https://togithub.com/JedWatson/react-select/commit/0f6ef093282ca7356fb0e7ee7c706681a5a97901) [#​5381](https://togithub.com/JedWatson/react-select/pull/5381) Thanks [@​Methuselah96](https://togithub.com/Methuselah96)! - Disable use of ResizeObserver for menu position auto-updating to avoid potential breaking changes. ### [`v5.5.0`](https://togithub.com/JedWatson/react-select/releases/tag/react-select%405.5.0) [Compare Source](https://togithub.com/JedWatson/react-select/compare/react-select@5.4.0...react-select@5.5.0) ##### Minor Changes - [`598f9ee0`](https://togithub.com/JedWatson/react-select/commit/598f9ee0e641138820ae1b3d2a2121a1c21d3876) [#​5256](https://togithub.com/JedWatson/react-select/pull/5256) Thanks [@​Methuselah96](https://togithub.com/Methuselah96)! - Auto-update menu position when using menu portalling ### [`v5.4.0`](https://togithub.com/JedWatson/react-select/releases/tag/react-select%405.4.0) [Compare Source](https://togithub.com/JedWatson/react-select/compare/react-select@5.3.2...react-select@5.4.0) ##### Minor Changes - [`5d49f70a`](https://togithub.com/JedWatson/react-select/commit/5d49f70aeb9d6c2685b81b361e3dab3e2064292d) [#​5249](https://togithub.com/JedWatson/react-select/pull/5249) Thanks [@​Methuselah96](https://togithub.com/Methuselah96)! - Export `formatOptionLabel` types (i.e., `FormatOptionLabelMeta` and `FormatOptionLabelContext`). ### [`v5.3.2`](https://togithub.com/JedWatson/react-select/releases/tag/react-select%405.3.2) [Compare Source](https://togithub.com/JedWatson/react-select/compare/react-select@5.3.1...react-select@5.3.2) ##### Patch Changes - [`1f140e42`](https://togithub.com/JedWatson/react-select/commit/1f140e423707e9966254050e3234a65ee05977e9) [#​5177](https://togithub.com/JedWatson/react-select/pull/5177) Thanks [@​Methuselah96](https://togithub.com/Methuselah96)! - Fix view height used for menu positioning to be the scroll parent instead of the window ### [`v5.3.1`](https://togithub.com/JedWatson/react-select/releases/tag/react-select%405.3.1) [Compare Source](https://togithub.com/JedWatson/react-select/compare/react-select@5.3.0...react-select@5.3.1) ##### Patch Changes - [`03bf7351`](https://togithub.com/JedWatson/react-select/commit/03bf735127fec6e47de8ae45e7cdc0a39c8b638b) [#​5164](https://togithub.com/JedWatson/react-select/pull/5164) Thanks [@​Methuselah96](https://togithub.com/Methuselah96)! - Bump [@​emotion/react](https://togithub.com/emotion/react) to ^11.8.1 to avoid `useInsertionEffect` bug ### [`v5.3.0`](https://togithub.com/JedWatson/react-select/releases/tag/react-select%405.3.0) [Compare Source](https://togithub.com/JedWatson/react-select/compare/react-select@5.2.2...react-select@5.3.0) ##### Minor Changes - [`c7d8d4b3`](https://togithub.com/JedWatson/react-select/commit/c7d8d4b3ee01cee63b34adf4a895ef07ce2f3b03) [#​5133](https://togithub.com/JedWatson/react-select/pull/5133) Thanks [@​nil4](https://togithub.com/nil4)! - Update `peerDependencies` to include React 18 ##### Patch Changes - [`0aaa9575`](https://togithub.com/JedWatson/react-select/commit/0aaa9575ed7e817841b9c9b494b4bd4dc2247b26) [#​5134](https://togithub.com/JedWatson/react-select/pull/5134) Thanks [@​rkulinski](https://togithub.com/rkulinski)! - Use defaultPrevented to skip duplicate event handler for clicking select. - [`87e14431`](https://togithub.com/JedWatson/react-select/commit/87e144319f485fba20b46bc71eb8162f88d19430) [#​5131](https://togithub.com/JedWatson/react-select/pull/5131) Thanks [@​pcorpet](https://togithub.com/pcorpet)! - Avoid referencing an ID that is not in the DOM - [`7184d538`](https://togithub.com/JedWatson/react-select/commit/7184d538f587c1dd5a4ca5ad6cc0745fbb8d3809) [#​5082](https://togithub.com/JedWatson/react-select/pull/5082) Thanks [@​Methuselah96](https://togithub.com/Methuselah96)! - Fix type inference for Async's loadOptions prop - [`bd4ee8ae`](https://togithub.com/JedWatson/react-select/commit/bd4ee8ae66e581e8be1679fa4b1838451e3f23b7) [#​5057](https://togithub.com/JedWatson/react-select/pull/5057) Thanks [@​Rall3n](https://togithub.com/Rall3n)! - Prevent transition props from being forwarded to `` element in `DummyInput` component ### [`v5.2.2`](https://togithub.com/JedWatson/react-select/releases/tag/react-select%405.2.2) [Compare Source](https://togithub.com/JedWatson/react-select/compare/react-select@5.2.1...react-select@5.2.2) ##### Patch Changes - [`940a50b1`](https://togithub.com/JedWatson/react-select/commit/940a50b1a579b279b82c1efc5608a92eb422919e) [#​4928](https://togithub.com/JedWatson/react-select/pull/4928) Thanks [@​Methuselah96](https://togithub.com/Methuselah96)! - Fix usage with esModuleInterop disabled - [`54f9538e`](https://togithub.com/JedWatson/react-select/commit/54f9538e350bae4e11aa11311731cb95eb56d669) [#​4941](https://togithub.com/JedWatson/react-select/pull/4941) Thanks [@​prichey](https://togithub.com/prichey)! - Use React's AriaAttributes type directly rather than recreating - [`e97d45c0`](https://togithub.com/JedWatson/react-select/commit/e97d45c04bbc91e9e2ff9509f0d9c16fc4e4234e) [#​4908](https://togithub.com/JedWatson/react-select/pull/4908) Thanks [@​vjee](https://togithub.com/vjee)! - Make 3rd argument of CommonProps\['setValue'] optional. ### [`v5.2.1`](https://togithub.com/JedWatson/react-select/releases/tag/react-select%405.2.1) [Compare Source](https://togithub.com/JedWatson/react-select/compare/react-select@5.2.0...react-select@5.2.1) ##### Patch Changes - [`f172d7f9`](https://togithub.com/JedWatson/react-select/commit/f172d7f9c20b82db14e795d578ee4802475d2bdc) [#​4886](https://togithub.com/JedWatson/react-select/pull/4886) Thanks [@​Akridian](https://togithub.com/Akridian)! - Hooks for creation of custom Selects are now exported from main entry ### [`v5.2.0`](https://togithub.com/JedWatson/react-select/releases/tag/react-select%405.2.0) [Compare Source](https://togithub.com/JedWatson/react-select/compare/react-select@5.1.0...react-select@5.2.0) ##### Minor Changes - [`6c7a3d1e`](https://togithub.com/JedWatson/react-select/commit/6c7a3d1e07b7d6a8f484a829e69b20eae5a92b91) [#​4785](https://togithub.com/JedWatson/react-select/pull/4785) Thanks [@​Rall3n](https://togithub.com/Rall3n)! - Add `prevInputValue` to action meta - [`b522ac65`](https://togithub.com/JedWatson/react-select/commit/b522ac658f85701ecf413436f3cf8d8d49117c82) [#​4860](https://togithub.com/JedWatson/react-select/pull/4860) Thanks [@​ebonow](https://togithub.com/ebonow)! - Fix animated MultiValue transitions when being removed and change method used to generate unqiue keys for Option components. Closes [#​4844](https://togithub.com/JedWatson/react-select/issues/4844) , closes [#​4602](https://togithub.com/JedWatson/react-select/issues/4602) ##### Patch Changes - [`417e7217`](https://togithub.com/JedWatson/react-select/commit/417e721786af309ede9b35983a18df89363cd1c5) [#​4842](https://togithub.com/JedWatson/react-select/pull/4842) Thanks [@​Methuselah96](https://togithub.com/Methuselah96)! - Remove src directory from published package - [`480ea85b`](https://togithub.com/JedWatson/react-select/commit/480ea85bed6f7c90c45d14884b4ec1105d92971a) [#​4846](https://togithub.com/JedWatson/react-select/pull/4846) Thanks [@​Methuselah96](https://togithub.com/Methuselah96)! - Add missing index to MultiValue props type - [`b8e34472`](https://togithub.com/JedWatson/react-select/commit/b8e34472d352a87e9687027a5c3f4ed767984177) [#​4854](https://togithub.com/JedWatson/react-select/pull/4854) Thanks [@​mikunpham](https://togithub.com/mikunpham)! - Make input container css re-compute whenever input value changes due to a bug from `@emotion/react` in development env. ### [`v5.1.0`](https://togithub.com/JedWatson/react-select/releases/tag/react-select%405.1.0) [Compare Source](https://togithub.com/JedWatson/react-select/compare/react-select@5.0.0...react-select@5.1.0) ##### Minor Changes - [8b38d49b](https://togithub.com/JedWatson/react-select/commit/8b38d49b4a779c653f70b502a61f7c64220fa44d) [#​4807](https://togithub.com/JedWatson/react-select/pull/4807) Thanks [@​hcharley](https://togithub.com/hcharley)! - Export AsyncCreatableProps from creatable entrypoint - [46eeda1a](https://togithub.com/JedWatson/react-select/commit/46eeda1a6829af168ae24b49a251d12e410706ab) [#​4801](https://togithub.com/JedWatson/react-select/pull/4801) Thanks [@​Methuselah96](https://togithub.com/Methuselah96)! - Export more types from main entry point ##### Patch Changes - [fdd01e66](https://togithub.com/JedWatson/react-select/commit/fdd01e664400b684b83c2b1c629bd3c76b152236) [#​4833](https://togithub.com/JedWatson/react-select/pull/4833) Thanks [@​ebonow](https://togithub.com/ebonow)! - Value container display property should be grid when isMulti and has no value so the Placeholder component is positioned correctly with the Input - [0937604f](https://togithub.com/JedWatson/react-select/commit/0937604ffcec5d56dd4918ae728feee345e1c78c) [#​4823](https://togithub.com/JedWatson/react-select/pull/4823) Thanks [@​mikunpham](https://togithub.com/mikunpham)! - Fix the issue where input contents are moved to the left due to multiple space characters. - [ec80b577](https://togithub.com/JedWatson/react-select/commit/ec80b577665f2bd9b2cff9d7ca34723b6b65e5b8) [#​4803](https://togithub.com/JedWatson/react-select/pull/4803) Thanks [@​Methuselah96](https://togithub.com/Methuselah96)! - Import CSSObject from [@​emotion/react](https://togithub.com/emotion/react) instead of [@​emotion/serialize](https://togithub.com/emotion/serialize) ### [`v5.0.0`](https://togithub.com/JedWatson/react-select/releases/tag/react-select%405.0.0) [Compare Source](https://togithub.com/JedWatson/react-select/compare/react-select@4.3.1...react-select@5.0.0) ##### Upgrade Guide ##### Summary - Convert to TypeScript ([#​4489](https://togithub.com/JedWatson/react-select/issues/4489)) - TypeScript types now come packaged with `react-select` so you no longer need to have `@types/react-select` installed; we no longer include Flow types - Drop IE11 support ([#​4625](https://togithub.com/JedWatson/react-select/issues/4625), [#​4720](https://togithub.com/JedWatson/react-select/issues/4720), [#​4634](https://togithub.com/JedWatson/react-select/issues/4634)) - this allows us to make changes to our CSS that we've wanted to make for a long time as well as remove unnecessary JS solutions (those changes are noted below) - Use `forwardRef` for all wrapped components ([#​4489](https://togithub.com/JedWatson/react-select/issues/4489)) - this means that if you were accessing anything on the `Select` instance using a `ref`, the `ref` will now reference the internal `Select` directly (see below for how to upgrade) - Replace HOCs with hooks ([#​4489](https://togithub.com/JedWatson/react-select/issues/4489)) - if you were using our HOCs to create custom `Select`s (i.e., `makeCreatableSelect`, `mangeState`, `makeAsyncSelect`) these have now been replaced by hooks (i.e., `useCreatable`, `useStateManager`, `useAsync`) - Remove dependency on [AutosizeInput](https://togithub.com/JedWatson/react-input-autosize) ([#​4625](https://togithub.com/JedWatson/react-select/issues/4625)) - our new solution uses CSS grid which IE11 does not fully support; also `.prefix__input` now targets the input and NOT the container - Improve screen reader experience ([#​4676](https://togithub.com/JedWatson/react-select/issues/4676)) - this isn't a breaking change in the API but it does change the screen reader announcements - Use CSS grid for single value layout ([#​4720](https://togithub.com/JedWatson/react-select/issues/4720)) - this also isn't a breaking change in the API but is it a change in the styles since it switches to using CSS grid (not fully supported by IE11) for single-value `Select`s - Remove `readonly` attribute on our `DummyInput` ([#​4634](https://togithub.com/JedWatson/react-select/issues/4634)) - this results in better accessibility but uses `caret-color` which is not available on IE11 ##### Details ##### Convert to TypeScript We've rewritten `react-select` in TypeScript which means you can remove any dependencies on `@types/react-select`. If you were using the Flow types than look into contributing types for v5 to `flow-typed`. Here are the most notable changes when replacing `@types/react-select` with our packaged types: | [@​types/react-select](https://togithub.com/types/react-select) | react-select | Notes | |--|--|--| | `OptinTypeBase` | no replacement | Options can be any type (if using `getOptionValue` and `getOptionLabel`) so there's no longer a base type for options | `OptionsType` | `Options` | | | `GroupTypeBase` | `GroupBase` | | | `GroupedOptionsType` | no replacement | This is equivalent to `ReadonlyArray` | | `ValueType` | `OnChangeValue` | | | `InputActionTypes` | `InputAction` | | | `NamedProps` | `Props` | | | `Select` (the `ref` type) | `SelectInstance` | See "Use `forwardRef` for all wrapped components" for more details | | `AsyncSelect` (the `ref` type) | `SelectInstance` | See "Use `forwardRef` for all wrapped components" for more details | | `CreatableSelect` (the `ref` type) | `SelectInstance` | See "Use `forwardRef` for all wrapped components" for more details | | `AsyncCreatableSelect` (the `ref` type) | `SelectInstance` | See "Use `forwardRef` for all wrapped components" for more details | If you were previously importing a type from the `src` directory when using `@types/react-select`: import { ... } from 'react-select/src/...'; These should now be imported from the `dist/declarations/src` directory: import { ... } from 'react-select/dist/declarations/src/...'; We export any types from the main entry point that we think might be useful to the user. If you are using a type that is not exported from the main entry point please open a PR or issue so that we can add it. If you are using custom props for the `Select` component you can use module augmentation to add them to the `Select` prop types: ```jsx declare module 'react-select/dist/declarations/src/Select' { export interface Props< Option, IsMulti extends boolean, Group extends GroupBase

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.



This PR has been generated by Mend Renovate. View repository job log here.

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
manage-my-library ❌ Failed (Inspect) Feb 12, 2023 at 8:46PM (UTC)