From 44e987271f6bea976024db7f24dd86309c3ffd3c Mon Sep 17 00:00:00 2001 From: Walter Rafelsberger Date: Mon, 22 Jan 2024 15:44:22 +0100 Subject: [PATCH] Upgrade `@reduxjs/toolkit` to `v1.9.7` (#175017) ## Summary Follow up to #138818. This updates Redux Toolkit to the latest version right before v2. It also updates dependencies of Redux Toolkit that are also in `package.json` to match the version used in Redux Toolkit. - Upgrades `@reduxjs/toolkit` from `v1.7.2` to `v1.9.7`. - Upgrades `immer` from `v9.0.15` to `v9.0.21`. - Upgrades `redux` from `v4.2.0` to `v4.2.1`. - Upgrades `redux-thunk` from `v2.4.1` to `v2.4.2`. - Upgrades `reselect` from `v4.1.6` to `v4.1.8`. ### Checklist - [x] This was checked for breaking API changes and was [labeled appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) --- package.json | 10 ++-- .../public/redux_tools/create_redux_tools.ts | 2 +- yarn.lock | 48 +++++++++---------- 3 files changed, 30 insertions(+), 30 deletions(-) diff --git a/package.json b/package.json index 38786cafb6619..3718d2e05ad86 100644 --- a/package.json +++ b/package.json @@ -869,7 +869,7 @@ "@opentelemetry/resources": "^1.4.0", "@opentelemetry/sdk-metrics-base": "^0.31.0", "@opentelemetry/semantic-conventions": "^1.4.0", - "@reduxjs/toolkit": "1.7.2", + "@reduxjs/toolkit": "1.9.7", "@slack/webhook": "^7.0.1", "@smithy/eventstream-codec": "^2.0.12", "@smithy/util-utf8": "^2.0.0", @@ -963,7 +963,7 @@ "https-proxy-agent": "^5.0.1", "i18n-iso-countries": "^4.3.1", "icalendar": "0.7.1", - "immer": "^9.0.15", + "immer": "^9.0.21", "inquirer": "^7.3.3", "intl": "^1.2.5", "intl-format-cache": "^2.1.0", @@ -1071,19 +1071,19 @@ "react-window": "^1.8.9", "recompose": "^0.30.0", "reduce-reducers": "^1.0.4", - "redux": "^4.2.0", + "redux": "^4.2.1", "redux-actions": "^2.6.5", "redux-devtools-extension": "^2.13.8", "redux-logger": "^3.0.6", "redux-observable": "2.0.0", "redux-saga": "^1.1.3", - "redux-thunk": "^2.4.1", + "redux-thunk": "^2.4.2", "redux-thunks": "^1.0.0", "remark-gfm": "1.0.0", "remark-parse-no-trim": "^8.0.4", "remark-stringify": "^8.0.3", "require-in-the-middle": "^7.2.0", - "reselect": "^4.1.6", + "reselect": "^4.1.8", "rison-node": "1.0.2", "rxjs": "^7.5.5", "safe-squel": "^5.12.5", diff --git a/src/plugins/presentation_util/public/redux_tools/create_redux_tools.ts b/src/plugins/presentation_util/public/redux_tools/create_redux_tools.ts index 2cbd4be93d6fb..54d7b98dcd2e8 100644 --- a/src/plugins/presentation_util/public/redux_tools/create_redux_tools.ts +++ b/src/plugins/presentation_util/public/redux_tools/create_redux_tools.ts @@ -56,7 +56,7 @@ export const createReduxTools = < const dispatch: ReduxToolsSetters = Object.keys(reducers).reduce( (acc, key: keyof ReducerType) => { const sliceAction = - slice.actions[key as keyof CaseReducerActions>]; + slice.actions[key as keyof CaseReducerActions, string>]; acc[key] = (payload) => store.dispatch(sliceAction(payload)); return acc; }, diff --git a/yarn.lock b/yarn.lock index 6249cc68cf95f..b7c927d65af89 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7602,15 +7602,15 @@ resolved "https://registry.yarnpkg.com/@redux-saga/types/-/types-1.1.0.tgz#0e81ce56b4883b4b2a3001ebe1ab298b84237204" integrity sha512-afmTuJrylUU/0OtqzaRkbyYFFNgCF73Bvel/sw90pvGrWIZ+vyoIJqA6eMSoA6+nb443kTmulmBtC9NerXboNg== -"@reduxjs/toolkit@1.7.2": - version "1.7.2" - resolved "https://registry.yarnpkg.com/@reduxjs/toolkit/-/toolkit-1.7.2.tgz#b428aaef92582379464f9de698dbb71957eafb02" - integrity sha512-wwr3//Ar8ZhM9bS58O+HCIaMlR4Y6SNHfuszz9hKnQuFIKvwaL3Kmjo6fpDKUOjo4Lv54Yi299ed8rofCJ/Vjw== +"@reduxjs/toolkit@1.9.7": + version "1.9.7" + resolved "https://registry.npmjs.org/@reduxjs/toolkit/-/toolkit-1.9.7.tgz" + integrity sha512-t7v8ZPxhhKgOKtU+uyJT13lu4vL7az5aFi4IdoDs/eS548edn2M8Ik9h8fxgvMjGoAUVFSt6ZC1P5cWmQ014QQ== dependencies: - immer "^9.0.7" - redux "^4.1.2" - redux-thunk "^2.4.1" - reselect "^4.1.5" + immer "^9.0.21" + redux "^4.2.1" + redux-thunk "^2.4.2" + reselect "^4.1.8" "@remix-run/router@1.6.3": version "1.6.3" @@ -18963,10 +18963,10 @@ immediate@~3.0.5: resolved "https://registry.yarnpkg.com/immediate/-/immediate-3.0.6.tgz#9db1dbd0faf8de6fbe0f5dd5e56bb606280de69b" integrity sha1-nbHb0Pr43m++D13V5Wu2BigN5ps= -immer@^9.0.15, immer@^9.0.7: - version "9.0.15" - resolved "https://registry.yarnpkg.com/immer/-/immer-9.0.15.tgz#0b9169e5b1d22137aba7d43f8a81a495dd1b62dc" - integrity sha512-2eB/sswms9AEUSkOm4SbV5Y7Vmt/bKRwByd52jfLkW4OLYeaTP3EEiJ9agqU0O/tq6Dk62Zfj+TJSqfm1rLVGQ== +immer@^9.0.21: + version "9.0.21" + resolved "https://registry.npmjs.org/immer/-/immer-9.0.21.tgz" + integrity sha512-bc4NBHqOqSfRW7POMkHd51LvClaeMXpm8dx0e8oE2GORbq5aRK7Bxl4FyzVLdGtLmvLKL7BTDBG5ACQm4HWjTA== immutable@^4.0.0: version "4.1.0" @@ -26477,20 +26477,20 @@ redux-saga@^1.1.3: dependencies: "@redux-saga/core" "^1.1.3" -redux-thunk@^2.4.1: - version "2.4.1" - resolved "https://registry.yarnpkg.com/redux-thunk/-/redux-thunk-2.4.1.tgz#0dd8042cf47868f4b29699941de03c9301a75714" - integrity sha512-OOYGNY5Jy2TWvTL1KgAlVy6dcx3siPJ1wTq741EPyUKfn6W6nChdICjZwCd0p8AZBs5kWpZlbkXW2nE/zjUa+Q== +redux-thunk@^2.4.2: + version "2.4.2" + resolved "https://registry.npmjs.org/redux-thunk/-/redux-thunk-2.4.2.tgz" + integrity sha512-+P3TjtnP0k/FEjcBL5FZpoovtvrTNT/UXd4/sluaSyrURlSlhLSzEdfsTBW7WsKB6yPvgd7q/iZPICFjW4o57Q== redux-thunks@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/redux-thunks/-/redux-thunks-1.0.0.tgz#56e03b86d281a2664c884ab05c543d9ab1673658" integrity sha1-VuA7htKBomZMiEqwXFQ9mrFnNlg= -redux@^4.0.0, redux@^4.0.4, redux@^4.1.2, redux@^4.2.0: - version "4.2.0" - resolved "https://registry.yarnpkg.com/redux/-/redux-4.2.0.tgz#46f10d6e29b6666df758780437651eeb2b969f13" - integrity sha512-oSBmcKKIuIR4ME29/AeNUnl5L+hvBq7OaJWzaptTQJAntaPvxIJqfnjbaEiCzzaIz+XmVILfqAM3Ob0aXLPfjA== +redux@^4.0.0, redux@^4.0.4, redux@^4.2.0, redux@^4.2.1: + version "4.2.1" + resolved "https://registry.npmjs.org/redux/-/redux-4.2.1.tgz" + integrity sha512-LAUYz4lc+Do8/g7aeRa8JkyDErK6ekstQaqWQrNRW//MY1TvCEpMtpTWvlQ+FPbWCx+Xixu/6SHt5N0HR+SB4w== dependencies: "@babel/runtime" "^7.9.2" @@ -26921,10 +26921,10 @@ requires-port@^1.0.0: resolved "https://registry.yarnpkg.com/requires-port/-/requires-port-1.0.0.tgz#925d2601d39ac485e091cf0da5c6e694dc3dcaff" integrity sha1-kl0mAdOaxIXgkc8NpcbmlNw9yv8= -reselect@^4.0.0, reselect@^4.1.5, reselect@^4.1.6: - version "4.1.6" - resolved "https://registry.yarnpkg.com/reselect/-/reselect-4.1.6.tgz#19ca2d3d0b35373a74dc1c98692cdaffb6602656" - integrity sha512-ZovIuXqto7elwnxyXbBtCPo9YFEr3uJqj2rRbcOOog1bmu2Ag85M4hixSwFWyaBMKXNgvPaJ9OSu9SkBPIeJHQ== +reselect@^4.0.0, reselect@^4.1.8: + version "4.1.8" + resolved "https://registry.npmjs.org/reselect/-/reselect-4.1.8.tgz" + integrity sha512-ab9EmR80F/zQTMNeneUr4cv+jSwPJgIlvEmVwLerwrWVbpLlBuls9XHzIeTFy4cegU2NHBp3va0LKOzU5qFEYQ== resize-observer-polyfill@^1.5.1: version "1.5.1"