Skip to content

Commit

Permalink
chore: Revert React types to 17.0.2 to prevent libraries not supporti…
Browse files Browse the repository at this point in the history
…ng React 18 to still work

...mostly by allowing FC components to accept children prop.
  • Loading branch information
bprusinowski committed Sep 26, 2023
1 parent dde3450 commit 3e47868
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 7 deletions.
8 changes: 3 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@
"@types/argparse": "^2.0.10",
"@types/eslint": "^8.4.6",
"@types/fs-extra": "^9.0.4",
"@types/react": "^18.2.0",
"@types/react-dom": "^18.2.0",
"@types/react": "^17.0.2",
"@types/react-dom": "^17.0.2",
"@typescript-eslint/utils": "^5.35.1",
"argparse": "^2.0.1",
"babel-core": "^7.0.0-bridge.0",
Expand Down Expand Up @@ -88,8 +88,6 @@
],
"resolutions": {
"@babel/core": "^7.14.6",
"@babel/parser": "^7.14.6",
"@types/react": "17.0.2",
"@types/react-dom": "17.0.2"
"@babel/parser": "^7.14.6"
}
}
20 changes: 18 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5082,13 +5082,20 @@
dependencies:
"@types/react" "*"

"@types/react-dom@17.0.2", "@types/react-dom@>=16.9.0", "@types/react-dom@^18.2.0":
"@types/react-dom@>=16.9.0":
version "17.0.2"
resolved "https://registry.yarnpkg.com/@types/react-dom/-/react-dom-17.0.2.tgz#35654cf6c49ae162d5bc90843d5437dc38008d43"
integrity sha512-Icd9KEgdnFfJs39KyRyr0jQ7EKhq8U6CcHRMGAS45fp5qgUvxL3ujUCfWFttUK2UErqZNj97t9gsVPNAqcwoCg==
dependencies:
"@types/react" "*"

"@types/react-dom@^17.0.2":
version "17.0.20"
resolved "https://registry.yarnpkg.com/@types/react-dom/-/react-dom-17.0.20.tgz#e0c8901469d732b36d8473b40b679ad899da1b53"
integrity sha512-4pzIjSxDueZZ90F52mU3aPoogkHIoSIDG+oQ+wQK7Cy2B9S+MvOqY0uEA/qawKz381qrEDkvpwyt8Bm31I8sbA==
dependencies:
"@types/react" "^17"

"@types/react-is@^16.7.1 || ^17.0.0":
version "17.0.3"
resolved "https://registry.yarnpkg.com/@types/react-is/-/react-is-17.0.3.tgz#2d855ba575f2fc8d17ef9861f084acc4b90a137a"
Expand Down Expand Up @@ -5134,14 +5141,23 @@
dependencies:
"@types/react" "*"

"@types/react@*", "@types/react@17.0.2", "@types/react@>=16.9.0", "@types/react@^18.2.0":
"@types/react@*", "@types/react@>=16.9.0":
version "17.0.2"
resolved "https://registry.yarnpkg.com/@types/react/-/react-17.0.2.tgz#3de24c4efef902dd9795a49c75f760cbe4f7a5a8"
integrity sha512-Xt40xQsrkdvjn1EyWe1Bc0dJLcil/9x2vAuW7ya+PuQip4UYUaXyhzWmAbwRsdMgwOFHpfp7/FFZebDU6Y8VHA==
dependencies:
"@types/prop-types" "*"
csstype "^3.0.2"

"@types/react@^17", "@types/react@^17.0.2":
version "17.0.65"
resolved "https://registry.yarnpkg.com/@types/react/-/react-17.0.65.tgz#95f6a2ab61145ffb69129d07982d047f9e0870cd"
integrity sha512-oxur785xZYHvnI7TRS61dXbkIhDPnGfsXKv0cNXR/0ml4SipRIFpSMzA7HMEfOywFwJ5AOnPrXYTEiTRUQeGlQ==
dependencies:
"@types/prop-types" "*"
"@types/scheduler" "*"
csstype "^3.0.2"

"@types/[email protected]":
version "1.17.1"
resolved "https://registry.npmjs.org/@types/resolve/-/resolve-1.17.1.tgz"
Expand Down

0 comments on commit 3e47868

Please sign in to comment.