-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bump redux (4.2.0), reselect (4.1.6), @reduxjs/toolkit (1.7.2), redux-thunk (2.4.1) and immer (9.0.15) #138818
Conversation
51411ab
to
f6c4957
Compare
9829b41
to
a7db1ed
Compare
@@ -554,28 +554,9 @@ export const nodesAndEdgelines: (state: DataState) => ( | |||
processNodePositions: visibleProcessNodePositions, | |||
connectingEdgeLineSegments, | |||
}; | |||
}, aaBBEqualityCheck); | |||
}, aabbModel.isEqual); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New reselect package correctly induces the type here, so the helper function below is no longer necessary. Functionality is the same.
// `boundingBox` and `nodesAndEdgelines` are each memoized. | ||
return (time: number) => nodesAndEdgelines(boundingBox(time)); | ||
return (time: number) => nodesAndEdgelinesFn(boundingBoxFn(time)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TypeScript did not like the variable name shadowing here, fixing that fixed a type issue below.
visibleNodesAndEdgeLines, | ||
composeSelectors(dataStateSelector, dataSelectors.ariaFlowtoCandidate), | ||
(visibleNodesAndEdgeLinesAtTime, ariaFlowtoCandidate) => { | ||
function ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couldn't get this to work with an arrow function, TypeScript stopped complaining as soon as I turned this into an explicit function
declaration instead.
Pinging @elastic/enterprise-search-frontend @elastic/kibana-presentation @elastic/kibana-data-discovery @elastic/platform-deployment-management @elastic/infra-monitoring-ui @elastic/kibana-gis @elastic/security-solution for reviews and sanity checks as your code may be affected by this upgrade. |
Pinging @elastic/uptime (Team:uptime) |
@sphilipse would you mind adding a proper config to |
Co-authored-by: Patryk Kopyciński <[email protected]>
Co-authored-by: Patryk Kopyciński <[email protected]>
Co-authored-by: Patryk Kopyciński <[email protected]>
974dc67
to
df8279b
Compare
💚 Build Succeeded
Metrics [docs]Module Count
Async chunks
Page load bundle
Unknown metric groupsESLint disabled in files
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Synthetics plugin (Uptime) changes LGTM.
Hey @sphilipse. Thanks for bumping those. I've checked our implementation with the latest That's not something we should fix on our side, it's actually a bug on the library side. I've already reported an issue reduxjs/redux-toolkit#2628 and proposed a solution in reduxjs/redux-toolkit#2629. Let's see how it goes with the PR. If it's going to be rejected or before they release that, we can use the following as a workaround: // src/plugins/embeddable/public/store/create_store.ts
export interface CreateStoreOptions<S extends State>
// @todo remove type parameters when reduxjs/redux-toolkit#2628 is resolved
// @see https://github.com/reduxjs/redux-toolkit/issues/2628
extends Omit<ConfigureStoreOptions<S, AnyAction, Middleware[]>, 'reducer'> {
reducer?: Reducer<S> | Optional<ReducersMapObject<S>, keyof State>;
} cc @ThomThomson |
…-thunk (2.4.1) and immer (9.0.15) (elastic#138818) * Upgrade Redux to 4.2.0 and Reselect to 4.1.6 * Fix typing in timelines TypedUseSelectorHook * Upgrade reduxjs-toolkit and fix types * Upgrade more dependencies and fix types * [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix' * Undo unnecessary type fixes * Add renovate.json config for redux * Add caret to @reduxjs/toolkit version * Update package.json Co-authored-by: Patryk Kopyciński <[email protected]> * Update package.json Co-authored-by: Patryk Kopyciński <[email protected]> * Update package.json Co-authored-by: Patryk Kopyciński <[email protected]> * yarn bootstrap * Ts-ignore failing types in presentation_util redux_embeddables * Downgrade @reduxjs/toolkit to 1.7.2 * Undo ts-ignores in redux-embeddables * Remove CombinedState comment * Rebase onto main Co-authored-by: kibanamachine <[email protected]> Co-authored-by: Patryk Kopyciński <[email protected]>
## 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)
## Summary Follow up to elastic#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)
Summary
This updates redux to 4.2.0, reselect to 4.1.6, @reduxjs/toolkit to 1.7.2, redux-thunk to 2.4.1 and immer to 9.0.15. The main aim was to upgrade redux, the other package updates fix type errors caused by upgrading redux in isolation.