Skip to content

Commit

Permalink
Fix types compatibility with React 19 (#5974)
Browse files Browse the repository at this point in the history
* Fix types compatibility with React 19

* Create tough-hats-help.md

---------

Co-authored-by: Nathan Bierema <[email protected]>
  • Loading branch information
j2ghz and Methuselah96 authored Nov 9, 2024
1 parent 28251dc commit 111efad
Show file tree
Hide file tree
Showing 15 changed files with 28 additions and 27 deletions.
5 changes: 5 additions & 0 deletions .changeset/tough-hats-help.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'react-select': patch
---

Fix types compatibility with React 19
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"@types/jest-in-case": "^1.0.6",
"@types/node": "^16.11.68",
"@types/pretty-proptypes": "^1.1.0",
"@types/react": "^16.14.2",
"@types/react": "^16.14.60",
"@types/react-dom": "^16.9.10",
"@types/react-transition-group": "^4.4.0",
"@typescript-eslint/eslint-plugin": "^4.14.0",
Expand Down
1 change: 1 addition & 0 deletions packages/react-select/src/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
Component,
FocusEventHandler,
FormEventHandler,
JSX,
KeyboardEventHandler,
MouseEventHandler,
ReactNode,
Expand Down
2 changes: 1 addition & 1 deletion packages/react-select/src/components/Control.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/** @jsx jsx */
import { ReactNode, Ref } from 'react';
import { JSX, ReactNode, Ref } from 'react';
import { jsx } from '@emotion/react';

import {
Expand Down
2 changes: 1 addition & 1 deletion packages/react-select/src/components/Group.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/** @jsx jsx */
import { ComponentType, ReactNode } from 'react';
import { ComponentType, JSX, ReactNode } from 'react';
import { jsx } from '@emotion/react';
import { cleanCommonProps, getStyleProps } from '../utils';

Expand Down
1 change: 1 addition & 0 deletions packages/react-select/src/components/Menu.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/** @jsx jsx */
import {
createContext,
JSX,
ReactElement,
ReactNode,
Ref,
Expand Down
2 changes: 1 addition & 1 deletion packages/react-select/src/components/MultiValue.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/** @jsx jsx */
import { ComponentType, ReactNode } from 'react';
import { ComponentType, JSX, ReactNode } from 'react';
import { jsx } from '@emotion/react';
import { CrossIcon } from './indicators';
import {
Expand Down
2 changes: 1 addition & 1 deletion packages/react-select/src/components/Option.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/** @jsx jsx */
import { ReactNode, RefCallback } from 'react';
import { JSX, ReactNode, RefCallback } from 'react';
import { jsx } from '@emotion/react';

import {
Expand Down
2 changes: 1 addition & 1 deletion packages/react-select/src/components/Placeholder.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/** @jsx jsx */
import { ReactNode } from 'react';
import { JSX, ReactNode } from 'react';
import { jsx } from '@emotion/react';
import {
CommonPropsAndClassName,
Expand Down
2 changes: 1 addition & 1 deletion packages/react-select/src/components/SingleValue.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/** @jsx jsx */
import { ReactNode } from 'react';
import { JSX, ReactNode } from 'react';
import { jsx } from '@emotion/react';
import {
CommonPropsAndClassName,
Expand Down
2 changes: 1 addition & 1 deletion packages/react-select/src/components/containers.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/** @jsx jsx */
import { ReactNode } from 'react';
import { JSX, ReactNode } from 'react';
import { jsx } from '@emotion/react';
import {
CommonPropsAndClassName,
Expand Down
2 changes: 1 addition & 1 deletion packages/react-select/src/components/indicators.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/** @jsx jsx */
import { ReactNode } from 'react';
import { JSX, ReactNode } from 'react';
import { jsx, keyframes } from '@emotion/react';

import {
Expand Down
1 change: 1 addition & 0 deletions packages/react-select/src/internal/A11yText.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/** @jsx jsx */
import { JSX } from 'react';
import { jsx } from '@emotion/react';

// Assistive text to describe visual elements. Hidden for sighted users.
Expand Down
2 changes: 1 addition & 1 deletion packages/react-select/src/internal/DummyInput.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/** @jsx jsx */
import { Ref } from 'react';
import { JSX, Ref } from 'react';
import { jsx } from '@emotion/react';
import { removeProps } from '../utils';

Expand Down
27 changes: 10 additions & 17 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3709,14 +3709,7 @@
dependencies:
"@types/react" "*"

"@types/react-dom@*":
version "18.0.6"
resolved "https://registry.yarnpkg.com/@types/react-dom/-/react-dom-18.0.6.tgz#36652900024842b74607a17786b6662dd1e103a1"
integrity sha512-/5OFZgfIPSwy+YuIBP/FgJnQnsxhZhjjrnxudMddeblOouIodEQ75X14Rr4wGSG/bknL+Omy9iWlLo1u/9GzAA==
dependencies:
"@types/react" "*"

"@types/react-dom@^16.9.10":
"@types/react-dom@*", "@types/react-dom@^16.9.10":
version "16.9.13"
resolved "https://registry.yarnpkg.com/@types/react-dom/-/react-dom-16.9.13.tgz#5898f0ee68fe200685e6b61d3d7d8828692814d0"
integrity sha512-34Hr3XnmUSJbUVDxIw/e7dhQn2BJZhJmlAaPyPwfTQyuVS9mV/CeyghFcXyvkJXxI7notQJz8mF8FeCVvloJrA==
Expand Down Expand Up @@ -3776,13 +3769,13 @@
dependencies:
"@types/react" "*"

"@types/react@*", "@types/react@^16", "@types/react@^16.14.2":
version "16.14.8"
resolved "https://registry.yarnpkg.com/@types/react/-/react-16.14.8.tgz#4aee3ab004cb98451917c9b7ada3c7d7e52db3fe"
integrity sha512-QN0/Qhmx+l4moe7WJuTxNiTsjBwlBGHqKGvInSQCBdo7Qio0VtOqwsC0Wq7q3PbJlB0cR4Y4CVo1OOe6BOsOmA==
"@types/react@*", "@types/react@^16", "@types/react@^16.14.60":
version "16.14.60"
resolved "https://registry.yarnpkg.com/@types/react/-/react-16.14.60.tgz#f7ab62a329b82826f12d02bc8031d4ef4b5e0d81"
integrity sha512-wIFmnczGsTcgwCBeIYOuy2mdXEiKZ5znU/jNOnMZPQyCcIxauMGWlX0TNG4lZ7NxRKj7YUIZRneJQSSdB2jKgg==
dependencies:
"@types/prop-types" "*"
"@types/scheduler" "*"
"@types/scheduler" "^0.16"
csstype "^3.0.2"

"@types/relateurl@*":
Expand All @@ -3797,10 +3790,10 @@
dependencies:
"@types/node" "*"

"@types/scheduler@*":
version "0.16.1"
resolved "https://registry.yarnpkg.com/@types/scheduler/-/scheduler-0.16.1.tgz#18845205e86ff0038517aab7a18a62a6b9f71275"
integrity sha512-EaCxbanVeyxDRTQBkdLb3Bvl/HK7PBK6UJjsSixB0iHKoWxE5uu2Q/DgtpOhPIojN0Zl1whvOd7PoHs2P0s5eA==
"@types/scheduler@^0.16":
version "0.16.8"
resolved "https://registry.yarnpkg.com/@types/scheduler/-/scheduler-0.16.8.tgz#ce5ace04cfeabe7ef87c0091e50752e36707deff"
integrity sha512-WZLiwShhwLRmeV6zH+GkbOFT6Z6VklCItrDioxUnv+u4Ll+8vKeFySoFyK/0ctcRpOmwAicELfmys1sDc/Rw+A==

"@types/semver@^6.0.0", "@types/semver@^6.0.1":
version "6.2.3"
Expand Down

0 comments on commit 111efad

Please sign in to comment.