aerokube / selenoid-ui

Graphical user interface for Selenoid project
https://aerokube.com/selenoid-ui/latest/
Apache License 2.0
305 stars 76 forks source link

Bump react-select from 3.1.0 to 5.0.0 in /ui #456

Closed dependabot[bot] closed 2 years ago

dependabot[bot] commented 2 years ago

Bumps react-select from 3.1.0 to 5.0.0.

Release notes

Sourced from react-select's releases.

react-select@5.0.0

Upgrade Guide

Summary

  • Convert to TypeScript (#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, #4720, #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) - 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) - if you were using our HOCs to create custom Selects (i.e., makeCreatableSelect, mangeState, makeAsyncSelect) these have now been replaced by hooks (i.e., useCreatable, useStateManager, useAsync)
  • Remove dependency on AutosizeInput (#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) - 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) - 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 Selects
  • Remove readonly attribute on our DummyInput (#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 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<Group>
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.

Drop IE11 support

... (truncated)

Changelog

Sourced from react-select's changelog.

@​react-select/docs

3.1.1

Patch Changes

  • 638f5455 #4702 Thanks @​Methuselah96! - The Option generic is no longer required to extend the OptionBase type

  • Updated dependencies [10225290]:

  • Updated dependencies [53f1972b]:

  • Updated dependencies [b41f4ceb]:

  • Updated dependencies [4b028829]:

  • Updated dependencies [7fcec537]:

  • Updated dependencies [ca2c0e5b]:

  • Updated dependencies [9e82aadc]:

  • Updated dependencies [638f5455]:

  • Updated dependencies [23cea0b5]:

  • Updated dependencies [ef87c3ac]:

    • react-select@undefined

3.1.1-beta.1

Patch Changes

  • 638f5455 #4702 Thanks @​Methuselah96! - The Option generic is no longer required to extend the OptionBase type

  • Updated dependencies [10225290]:

  • Updated dependencies [53f1972b]:

  • Updated dependencies [b41f4ceb]:

  • Updated dependencies [7fcec537]:

  • Updated dependencies [9e82aadc]:

  • Updated dependencies [638f5455]:

    • react-select@undefined

3.1.1-beta.0

Patch Changes

  • Updated dependencies [4b028829]:
  • Updated dependencies [ef87c3ac]:
    • react-select@undefined
Commits
  • a4de91c Merge pull request #4783 from JedWatson/changeset-release/master
  • 6f45882 Version Packages
  • 46b2ea8 Merge pull request #4784 from JedWatson/exit-prerelease-mode
  • ee5a298 Exit prerelease mode
  • 8cbec15 Merge pull request #4748 from JedWatson/dependabot/npm_and_yarn/url-parse-1.5.3
  • b46e801 Merge pull request #4756 from fdcds/patch-1
  • f2201c1 Merge branch 'master' into patch-1
  • be45299 Merge pull request #4782 from JedWatson/Methuselah96-patch-1
  • 3f1f382 Merge branch 'master' into Methuselah96-patch-1
  • 85d3eb8 Merge branch 'master' into patch-1
  • Additional commits viewable in compare view


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
codecov[bot] commented 2 years ago

Codecov Report

Merging #456 (54f4a7a) into master (d71e33e) will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #456   +/-   ##
=======================================
  Coverage   32.57%   32.57%           
=======================================
  Files          38       38           
  Lines         706      706           
  Branches      114      114           
=======================================
  Hits          230      230           
  Misses        417      417           
  Partials       59       59           
Flag Coverage Δ
go 32.57% <ø> (ø)
ui 24.31% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 306c3e0...54f4a7a. Read the comment docs.

dependabot[bot] commented 2 years ago

Superseded by #462.