klarna / electron-redux

Use redux in the main and browser processes in electron
MIT License
743 stars 94 forks source link

feat: use contextBridge in favour of requiring nodeIntegration #300

Closed matmalkowski closed 3 years ago

matmalkowski commented 3 years ago

Due to security concerns related to usage of nodeIntegration flag, according to best electron practices, renderer functions should be exposed with contextBridge. This PR does exactly that. It also changes a bit API to accomodate for this feature

matmalkowski commented 3 years ago

:tada: This PR is included in version 2.0.0-alpha.9 :tada:

The release is available on:

Your semantic-release bot :package::rocket: