chore: update electron and chromium [WPB-20719] #9421
+1,918
−5,404
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.



Pull Request
Summary
This pull request updates several dependencies to their latest versions, improves compatibility with ES modules, and includes minor code and type safety improvements. The most significant changes are grouped below:
Dependency Updates:
package.json, including core packages likeelectron(to 40.0.0),electron-dl(to 4.0.0),@wireapp/react-ui-kit, and various development dependencies, ensuring better compatibility, security, and access to new features.ES Module and Dynamic Import Compatibility:
electron-dlwith a dynamicimport()inelectron/src/main.ts, allowing compatibility with ES modules and the updated version ofelectron-dl..jsextension inelectron/src/preload/preload-webview.ts, ensuring compatibility with module resolution changes.Type Safety and Code Quality Improvements:
electron/src/settings/ConfigurationPersistence.tsby explicitly casting the default value in therestoremethod.middlewaresarray inelectron/renderer/src/configureStore.tsfor better type checking.Import Cleanups:
@wireapp/react-ui-kitinelectron/renderer/src/components/WebView/Webview.tsxfor improved code clarity.Security Checklist (required)
Standards Acknowledgement (required)
Screenshots or demo (if the user interface changed)
Notes for reviewers