Skip to content

Commit 252d123

Browse files
fix(deps): update react monorepo (major) (#121)
[![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [eslint-plugin-react-hooks](https://reactjs.org/) ([source](https://togithub.com/facebook/react)) | [`^1.6.0` -> `^4.0.0`](https://renovatebot.com/diffs/npm/eslint-plugin-react-hooks/1.7.0/4.3.0) | [![age](https://badges.renovateapi.com/packages/npm/eslint-plugin-react-hooks/4.3.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/eslint-plugin-react-hooks/4.3.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/eslint-plugin-react-hooks/4.3.0/compatibility-slim/1.7.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/eslint-plugin-react-hooks/4.3.0/confidence-slim/1.7.0)](https://docs.renovatebot.com/merge-confidence/) | | [eslint-plugin-react-hooks](https://reactjs.org/) ([source](https://togithub.com/facebook/react)) | [`^3.0.0` -> `^4.0.0`](https://renovatebot.com/diffs/npm/eslint-plugin-react-hooks/3.0.0/4.3.0) | [![age](https://badges.renovateapi.com/packages/npm/eslint-plugin-react-hooks/4.3.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/eslint-plugin-react-hooks/4.3.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/eslint-plugin-react-hooks/4.3.0/compatibility-slim/3.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/eslint-plugin-react-hooks/4.3.0/confidence-slim/3.0.0)](https://docs.renovatebot.com/merge-confidence/) | | [react](https://reactjs.org/) ([source](https://togithub.com/facebook/react)) | [`16.14.0` -> `17.0.2`](https://renovatebot.com/diffs/npm/react/16.14.0/17.0.2) | [![age](https://badges.renovateapi.com/packages/npm/react/17.0.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/react/17.0.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/react/17.0.2/compatibility-slim/16.14.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/react/17.0.2/confidence-slim/16.14.0)](https://docs.renovatebot.com/merge-confidence/) | | [react-dom](https://reactjs.org/) ([source](https://togithub.com/facebook/react)) | [`16.14.0` -> `17.0.2`](https://renovatebot.com/diffs/npm/react-dom/16.14.0/17.0.2) | [![age](https://badges.renovateapi.com/packages/npm/react-dom/17.0.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/react-dom/17.0.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/react-dom/17.0.2/compatibility-slim/16.14.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/react-dom/17.0.2/confidence-slim/16.14.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>facebook/react</summary> ### [`v4.3.0`](https://togithub.com/facebook/react/blob/master/packages/react-devtools/CHANGELOG.md#&#8203;430-December-20-2019) ##### Features - Show component location for selected element in bottom/right panel ([bvaughn](https://togithub.com/bvaughn) in [#&#8203;17567](https://togithub.com/facebook/react/pull/17567)) - Improved inspected element values with inline previews ([bvaughn](https://togithub.com/bvaughn) in [#&#8203;17579](https://togithub.com/facebook/react/pull/17579)) - Improved selection and toggling for inspected element panel ([bvaughn](https://togithub.com/bvaughn) in [#&#8203;17588](https://togithub.com/facebook/react/pull/17588)) - Copy context menu for inspecting and copying props/state/hooks/context values ([bvaughn](https://togithub.com/bvaughn) in [#&#8203;17608](https://togithub.com/facebook/react/pull/17608)) ##### Bug fixes - Fix serialization for `BigInt` type so that it does not break inspection panel. ([nutboltu](https://togithub.com/nutboltu) in [#&#8203;17233](https://togithub.com/facebook/react/pull/17233)) - Fix display name logic for `forwardRef`s that use `displayName` property ([zthxxx](https://togithub.com/zthxxx) in [#&#8203;17613](https://togithub.com/facebook/react/pull/17613)) ### [`v4.2.0`](https://togithub.com/facebook/react/blob/master/packages/eslint-plugin-react-hooks/CHANGELOG.md#&#8203;420) - No changes, this was an automated release together with React 17. ### [`v4.1.2`](https://togithub.com/facebook/react/blob/master/packages/eslint-plugin-react-hooks/CHANGELOG.md#&#8203;412) - Fix a crash with the TypeScript 4.x parser. ([@&#8203;eps1lon](https://togithub.com/eps1lon) in [#&#8203;19815](https://togithub.com/facebook/react/pull/19815)) ### [`v4.1.1`](https://togithub.com/facebook/react/blob/master/packages/eslint-plugin-react-hooks/CHANGELOG.md#&#8203;411) - Improve support for optional chaining. ([@&#8203;pfongkye](https://togithub.com/pfongkye) in [#&#8203;19680](https://togithub.com/facebook/react/pull/19680)) - Fix a false positive warning for TypeScript parameters. ([@&#8203;NeoRaider](https://togithub.com/NeoRaider) in [#&#8203;19751](https://togithub.com/facebook/react/pull/19751)) ### [`v4.1.0`](https://togithub.com/facebook/react/blob/master/packages/eslint-plugin-react-hooks/CHANGELOG.md#&#8203;410) - **New Violations:** Warn when dependencies change on every render. ([@&#8203;captbaritone](https://togithub.com/captbaritone) in [#&#8203;19590](https://togithub.com/facebook/react/pull/19590)) ### [`v4.0.8`](https://togithub.com/facebook/react/blob/master/packages/eslint-plugin-react-hooks/CHANGELOG.md#&#8203;408) - Fixes TypeScript `typeof` annotation to not be considered a dependency. ([@&#8203;delca85](https://togithub.com/delca85) in [#&#8203;19316](https://togithub.com/facebook/react/pull/19316)) ### [`v4.0.7`](https://togithub.com/facebook/react/blob/master/packages/eslint-plugin-react-hooks/CHANGELOG.md#&#8203;407) - Fixes an overly coarse dependency suggestion. ([@&#8203;gaearon](https://togithub.com/gaearon) in [#&#8203;19313](https://togithub.com/facebook/react/pull/19313)) ### [`v4.0.6`](https://togithub.com/facebook/react/blob/master/packages/eslint-plugin-react-hooks/CHANGELOG.md#&#8203;406) - Fix crashes and other bugs related to optional chaining. ([@&#8203;gaearon](https://togithub.com/gaearon) in [#&#8203;19273](https://togithub.com/facebook/react/pull/19273) and [#&#8203;19275](https://togithub.com/facebook/react/pull/19275)) ### [`v4.0.5`](https://togithub.com/facebook/react/blob/master/packages/eslint-plugin-react-hooks/CHANGELOG.md#&#8203;405) - Fix a crash when the dependency array has an empty element. ([@&#8203;yeonjuan](https://togithub.com/yeonjuan) in [#&#8203;19145](https://togithub.com/facebook/react/pull/19145)) - Fix a false positive warning that occurs with optional chaining. ([@&#8203;fredvollmer](https://togithub.com/fredvollmer) in [#&#8203;19061](https://togithub.com/facebook/react/pull/19061)) ### [`v4.0.4`](https://togithub.com/facebook/react/blob/master/packages/eslint-plugin-react-hooks/CHANGELOG.md#&#8203;404) - Fix a false positive warning that occurs with optional chaining. ([@&#8203;fredvollmer](https://togithub.com/fredvollmer) in [#&#8203;19061](https://togithub.com/facebook/react/pull/19061)) - Support nullish coalescing and optional chaining. ([@&#8203;yanneves](https://togithub.com/yanneves) in [#&#8203;19008](https://togithub.com/facebook/react/pull/19008)) ### [`v4.0.3`](https://togithub.com/facebook/react/blob/master/packages/eslint-plugin-react-hooks/CHANGELOG.md#&#8203;403) - Remove the heuristic that checks all Hooks ending with `Effect` due to too many false positives. ([@&#8203;gaearon](https://togithub.com/gaearon) in [#&#8203;19004](https://togithub.com/facebook/react/pull/19004)) ### [`v4.0.2`](https://togithub.com/facebook/react/blob/master/packages/eslint-plugin-react-hooks/CHANGELOG.md#&#8203;402) - Prevent Hooks that have `Effect` in the middle from being considered effects. ([@&#8203;surgeboris](https://togithub.com/surgeboris) in [#&#8203;18907](https://togithub.com/facebook/react/pull/18907)) ### [`v4.0.1`](https://togithub.com/facebook/react/blob/master/packages/eslint-plugin-react-hooks/CHANGELOG.md#&#8203;401) - Declare support for ESLint 7. ([@&#8203;MichaelDeBoey](https://togithub.com/MichaelDeBoey) in [#&#8203;18878](https://togithub.com/facebook/react/pull/18878)) ### [`v4.0.0`](https://togithub.com/facebook/react/blob/master/packages/eslint-plugin-react-hooks/CHANGELOG.md#&#8203;400) - **New Violations:** Consider `PascalCase.useFoo()` calls as Hooks. ([@&#8203;cyan33](https://togithub.com/cyan33) in [#&#8203;18722](https://togithub.com/facebook/react/pull/18722)) - **New Violations:** Check callback body when it's not written inline. ([@&#8203;gaearon](https://togithub.com/gaearon) in [#&#8203;18435](https://togithub.com/facebook/react/pull/18435)) - **New Violations:** Check dependencies for all Hooks ending with `Effect`. ([@&#8203;airjp73](https://togithub.com/airjp73) in [#&#8203;18580](https://togithub.com/facebook/react/pull/18580)) - Add a way to enable the dangerous autofix. ([@&#8203;gaearon](https://togithub.com/gaearon) in [#&#8203;18437](https://togithub.com/facebook/react/pull/18437)) - Offer a more sensible suggestion when encountering an assignment. ([@&#8203;Zzzen](https://togithub.com/Zzzen) in [#&#8203;16784](https://togithub.com/facebook/react/pull/16784)) - Consider TypeScript casts of `useRef` as constant. ([@&#8203;sophiebits](https://togithub.com/sophiebits) in [#&#8203;18496](https://togithub.com/facebook/react/pull/18496)) - Add documentation. ([@&#8203;ghmcadams](https://togithub.com/ghmcadams) in [#&#8203;16607](https://togithub.com/facebook/react/pull/16607)) ### [`v3.0.0`](https://togithub.com/facebook/react/blob/master/packages/eslint-plugin-react-hooks/CHANGELOG.md#&#8203;300) - **New Violations:** Forbid calling Hooks from classes. ([@&#8203;ianobermiller](https://togithub.com/ianobermiller) in [#&#8203;18341](https://togithub.com/facebook/react/pull/18341)) - Add a recommended config. ([@&#8203;SimenB](https://togithub.com/SimenB) in [#&#8203;14762](https://togithub.com/facebook/react/pull/14762)) ### [`v2.5.0`](https://togithub.com/facebook/react/blob/master/packages/eslint-plugin-react-hooks/CHANGELOG.md#&#8203;250) - Fix a misleading error message in loops. ([@&#8203;M-Izadmehr](https://togithub.com/M-Izadmehr) in [#&#8203;16853](https://togithub.com/facebook/react/pull/16853)) ### [`v2.4.0`](https://togithub.com/facebook/react/blob/master/packages/eslint-plugin-react-hooks/CHANGELOG.md#&#8203;240) - **New Violations:** Run checks for functions passed to `forwardRef`. ([@&#8203;dprgarner](https://togithub.com/dprgarner) in [#&#8203;17255](https://togithub.com/facebook/react/pull/17255)) - **New Violations:** Check for ref usage in any Hook containing the word `Effect`. ([@&#8203;gaearon](https://togithub.com/gaearon) in [#&#8203;17663](https://togithub.com/facebook/react/pull/17663)) - Disable dangerous autofix and use ESLint Suggestions API instead. ([@&#8203;wdoug](https://togithub.com/wdoug) in [#&#8203;17385](https://togithub.com/facebook/react/pull/17385)) ### [`v2.0.0`](https://togithub.com/facebook/react/blob/master/packages/eslint-plugin-react-hooks/CHANGELOG.md#&#8203;200) - **New Violations:** Forbid calling Hooks at the top level. ([@&#8203;gaearon](https://togithub.com/gaearon) in [#&#8203;16455](https://togithub.com/facebook/react/pull/16455)) - Fix a crash when referencing arguments in arrow functions. ([@&#8203;hristo-kanchev](https://togithub.com/hristo-kanchev) in [#&#8203;16356](https://togithub.com/facebook/react/pull/16356)) </details> --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://togithub.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/carbon-design-system/carbon-for-ibm-dotcom-nextjs-template).
1 parent f89a232 commit 252d123

File tree

3 files changed

+22
-29
lines changed

3 files changed

+22
-29
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"eslint-plugin-jsdoc": "^37.0.0",
4242
"eslint-plugin-jsx-a11y": "^6.2.3",
4343
"eslint-plugin-react": "^7.19.0",
44-
"eslint-plugin-react-hooks": "^3.0.0",
44+
"eslint-plugin-react-hooks": "^4.0.0",
4545
"eslint-plugin-tree-shaking": "^1.8.0",
4646
"express": "^4.17.1",
4747
"fast-sass-loader": "1.5.0",
@@ -52,8 +52,8 @@
5252
"node-sass": "^6.0.0",
5353
"prettier": "^2.0.4",
5454
"prop-types": "^15.7.2",
55-
"react": "16.14.0",
56-
"react-dom": "16.14.0",
55+
"react": "17.0.2",
56+
"react-dom": "17.0.2",
5757
"rtlcss": "^2.6.2",
5858
"stylelint": "^13.3.2",
5959
"webpack": "^4.41.5"

packages/eslint-config-ibmdotcom/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"eslint-plugin-jsx-a11y": "^6.2.1",
2828
"eslint-plugin-prettier": "4.0.0",
2929
"eslint-plugin-react": "^7.13.0",
30-
"eslint-plugin-react-hooks": "^1.6.0",
30+
"eslint-plugin-react-hooks": "^4.0.0",
3131
"eslint-plugin-tree-shaking": "^1.7.4",
3232
"eslint-restricted-globals": "^0.2.0"
3333
}

yarn.lock

Lines changed: 18 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -3364,15 +3364,10 @@ [email protected]:
33643364
dependencies:
33653365
prettier-linter-helpers "^1.0.0"
33663366

3367-
eslint-plugin-react-hooks@^1.6.0:
3368-
version "1.7.0"
3369-
resolved "https://registry.yarnpkg.com/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-1.7.0.tgz#6210b6d5a37205f0b92858f895a4e827020a7d04"
3370-
integrity sha512-iXTCFcOmlWvw4+TOE8CLWj6yX1GwzT0Y6cUfHHZqWnSk144VmVIRcVGtUAzrLES7C798lmvnt02C7rxaOX1HNA==
3371-
3372-
eslint-plugin-react-hooks@^3.0.0:
3373-
version "3.0.0"
3374-
resolved "https://registry.yarnpkg.com/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-3.0.0.tgz#9e80c71846eb68dd29c3b21d832728aa66e5bd35"
3375-
integrity sha512-EjxTHxjLKIBWFgDJdhKKzLh5q+vjTFrqNZX36uIxWS4OfyXe5DawqPj3U5qeJ1ngLwatjzQnmR0Lz0J0YH3kxw==
3367+
eslint-plugin-react-hooks@^4.0.0:
3368+
version "4.3.0"
3369+
resolved "https://registry.yarnpkg.com/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.3.0.tgz#318dbf312e06fab1c835a4abef00121751ac1172"
3370+
integrity sha512-XslZy0LnMn+84NEG9jSGR6eGqaZB3133L8xewQo3fQagbQuGt7a63gf+P1NGKZavEYEC3UXaWEAA/AqDkuN6xA==
33763371

33773372
eslint-plugin-react@^7.13.0, eslint-plugin-react@^7.19.0:
33783373
version "7.19.0"
@@ -7143,7 +7138,7 @@ promise-inflight@^1.0.1:
71437138
resolved "https://registry.yarnpkg.com/promise-inflight/-/promise-inflight-1.0.1.tgz#98472870bf228132fcbdd868129bad12c3c029e3"
71447139
integrity sha1-mEcocL8igTL8vdhoEputEsPAKeM=
71457140

7146-
[email protected], prop-types@^15.6.2, prop-types@^15.7.2:
7141+
[email protected], prop-types@^15.7.2:
71477142
version "15.7.2"
71487143
resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.7.2.tgz#52c41e75b8c87e72b9d9360e0206b99dcbffa6c5"
71497144
integrity sha512-8QQikdH7//R2vurIJSutZ1smHYTcLpRWEOlHnzcWHmBYrOGUysKwSsrC89BCiFj3CbrfJ/nXFdJepOVrY1GCHQ==
@@ -7313,15 +7308,14 @@ react-autosuggest@^10.1.0:
73137308
section-iterator "^2.0.0"
73147309
shallow-equal "^1.2.1"
73157310

7316-
react-dom@16.14.0:
7317-
version "16.14.0"
7318-
resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-16.14.0.tgz#7ad838ec29a777fb3c75c3a190f661cf92ab8b89"
7319-
integrity sha512-1gCeQXDLoIqMgqD3IO2Ah9bnf0w9kzhwN5q4FGnHZ67hBm9yePzB5JJAIQCc8x3pFnNlwFq4RidZggNAAkzWWw==
7311+
react-dom@17.0.2:
7312+
version "17.0.2"
7313+
resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-17.0.2.tgz#ecffb6845e3ad8dbfcdc498f0d0a939736502c23"
7314+
integrity sha512-s4h96KtLDUQlsENhMn1ar8t2bEa+q/YAtj8pPPdIjPDGBDIVNsrD9aXNWqspUe6AzKCIG0C1HZZLqLV7qpOBGA==
73207315
dependencies:
73217316
loose-envify "^1.1.0"
73227317
object-assign "^4.1.1"
7323-
prop-types "^15.6.2"
7324-
scheduler "^0.19.1"
7318+
scheduler "^0.20.2"
73257319

73267320
[email protected], react-is@^16.13.1, react-is@^16.8.1, react-is@^16.8.6:
73277321
version "16.13.1"
@@ -7340,14 +7334,13 @@ react-themeable@^1.1.0:
73407334
dependencies:
73417335
object-assign "^3.0.0"
73427336

7343-
react@16.14.0:
7344-
version "16.14.0"
7345-
resolved "https://registry.yarnpkg.com/react/-/react-16.14.0.tgz#94d776ddd0aaa37da3eda8fc5b6b18a4c9a3114d"
7346-
integrity sha512-0X2CImDkJGApiAlcf0ODKIneSwBPhqJawOa5wCtKbu7ZECrmS26NvtSILynQ66cgkT/RJ4LidJOc3bUESwmU8g==
7337+
react@17.0.2:
7338+
version "17.0.2"
7339+
resolved "https://registry.yarnpkg.com/react/-/react-17.0.2.tgz#d0b5cc516d29eb3eee383f75b62864cfb6800037"
7340+
integrity sha512-gnhPt75i/dq/z3/6q/0asP78D0u592D5L1pd7M8P+dck6Fu/jJeL6iVVK23fptSUZj8Vjf++7wXA8UNclGQcbA==
73477341
dependencies:
73487342
loose-envify "^1.1.0"
73497343
object-assign "^4.1.1"
7350-
prop-types "^15.6.2"
73517344

73527345
read-pkg-up@^2.0.0:
73537346
version "2.0.0"
@@ -7831,10 +7824,10 @@ saxes@^5.0.0:
78317824
dependencies:
78327825
xmlchars "^2.2.0"
78337826

7834-
scheduler@^0.19.1:
7835-
version "0.19.1"
7836-
resolved "https://registry.yarnpkg.com/scheduler/-/scheduler-0.19.1.tgz#4f3e2ed2c1a7d65681f4c854fa8c5a1ccb40f196"
7837-
integrity sha512-n/zwRWRYSUj0/3g/otKDRPMh6qv2SYMWNq85IEa8iZyAv8od9zDYpGSnpBEjNgcMNq6Scbu5KfIPxNF72R/2EA==
7827+
scheduler@^0.20.2:
7828+
version "0.20.2"
7829+
resolved "https://registry.yarnpkg.com/scheduler/-/scheduler-0.20.2.tgz#4baee39436e34aa93b4874bddcbf0fe8b8b50e91"
7830+
integrity sha512-2eWfGgAqqWFGqtdMmcL5zCMK1U8KlXv8SQFGglL3CEtd0aDVDWgeF/YoCmvln55m5zSk3J/20hTaSBeSObsQDQ==
78387831
dependencies:
78397832
loose-envify "^1.1.0"
78407833
object-assign "^4.1.1"

0 commit comments

Comments
 (0)