From 4c2557b28fe4e15a5ab00007dc7b06336159dfca Mon Sep 17 00:00:00 2001 From: Eyas Sharaiha Date: Tue, 31 Mar 2020 23:21:19 -0400 Subject: [PATCH] chore: Upgrade and consolidate @types/react We used to only inherit it transitively via @types/prop-types, but a lot of typings actually need it. This will helps us pull the latest @type/reach__router package, which (only implicitly, unfortuately) depends on more recent react types than the ones we have. For example, helps in #22563. --- package.json | 1 + yarn.lock | 21 +++++++++++++-------- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index ea2313a66b456..70c0465e96888 100644 --- a/package.json +++ b/package.json @@ -18,6 +18,7 @@ "@types/lodash": "^4.14.149", "@types/node": "^12.12.30", "@types/node-fetch": "^2.5.5", + "@types/react": "^16.9.31", "@types/stack-trace": "^0.0.29", "@types/webpack": "^4.41.7", "@typescript-eslint/eslint-plugin": "^2.24.0", diff --git a/yarn.lock b/yarn.lock index 0ca5a9733f882..08a2e179d92c1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4047,10 +4047,9 @@ integrity sha512-Oh7wnvVUCtVIWnCHQWe9qDZKn0fGyk5AMq99jXml0x39K59P+z9qe31CNRtop9TceCpS7NmoK+J9eGeCnyFgnw== "@types/prop-types@*": - version "15.5.5" - resolved "https://registry.yarnpkg.com/@types/prop-types/-/prop-types-15.5.5.tgz#17038dd322c2325f5da650a94d5f9974943625e3" - dependencies: - "@types/react" "*" + version "15.7.3" + resolved "https://registry.yarnpkg.com/@types/prop-types/-/prop-types-15.7.3.tgz#2ab0d5da2e5815f94b0b9d4b95d1e5f243ab2ca7" + integrity sha512-KfRL3PuHmqQLOG+2tGpRO26Ctg+Cq1E01D2DMriKEATHgWLfeNDmq9e29Q9WIky0dQ3NPkd1mzYH8Lm936Z9qw== "@types/q@^1.5.1": version "1.5.2" @@ -4076,9 +4075,10 @@ dependencies: "@types/react" "*" -"@types/react@*": - version "16.8.8" - resolved "https://registry.yarnpkg.com/@types/react/-/react-16.8.8.tgz#4b60a469fd2469f7aa6eaa0f8cfbc51f6d76e662" +"@types/react@*", "@types/react@^16.9.31": + version "16.9.31" + resolved "https://registry.yarnpkg.com/@types/react/-/react-16.9.31.tgz#6a543529766c8934ec8a89667376c2e73e9e2636" + integrity sha512-NpYJpNMWScFXtx3A2BJMeew2G3+9SEslVWMdxNJ6DLvxIuxWjY1bizK9q5Y1ujhln31vtjmhjOAYDr9Xx3k9FQ== dependencies: "@types/prop-types" "*" csstype "^2.2.0" @@ -8051,7 +8051,12 @@ cssstyle@^2.2.0: dependencies: cssom "~0.3.6" -csstype@^2.2.0, csstype@^2.5.7: +csstype@^2.2.0: + version "2.6.10" + resolved "https://registry.yarnpkg.com/csstype/-/csstype-2.6.10.tgz#e63af50e66d7c266edb6b32909cfd0aabe03928b" + integrity sha512-D34BqZU4cIlMCY93rZHbrq9pjTAQJ3U8S8rfBqjwHxkGPThWFjzZDQpgMJY0QViLxth6ZKYiwFBo14RdN44U/w== + +csstype@^2.5.7: version "2.6.5" resolved "https://registry.yarnpkg.com/csstype/-/csstype-2.6.5.tgz#1cd1dff742ebf4d7c991470ae71e12bb6751e034" integrity sha512-JsTaiksRsel5n7XwqPAfB0l3TFKdpjW/kgAELf9vrb5adGA7UCPLajKK5s3nFrcFm3Rkyp/Qkgl73ENc1UY3cA==