Skip to content
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

v8 #336

Open
wants to merge 25 commits into
base: master
Choose a base branch
from
Open

v8 #336

wants to merge 25 commits into from

Conversation

nikolaiwarner
Copy link
Member

hi! i bumped cabal-client to the latest. ok if we merge all of this branch and then i'll make a release?

cblgh and others added 25 commits October 26, 2023 09:39
"In Electron 12, contextIsolation will be enabled by default. To restore the previous behavior, contextIsolation: false must be specified in WebPreferences."

"Another implication is that require() cannot be used in the renderer process unless nodeIntegration is true and contextIsolation is false."

https://github.com/electron/electron/blob/main/docs/breaking-changes.md#default-changed-contextisolation-defaults-to-true
"In Electron 9, using the remote module without explicitly enabling it via the enableRemoteModule WebPreferences option began emitting a warning. In Electron 10, the remote module is now disabled by default. To use the remote module, enableRemoteModule: true must be specified in WebPreferences:"

https://github.com/electron/electron/blob/main/docs/breaking-changes.md#default-changed-enableremotemodule-defaults-to-false

if migrating to larger versions, in particular for electron-store@2 see the following links

https://stackoverflow.com/questions/55850616/uncaught-referenceerror-module-is-not-defined-on-delete-module-exports
electron/remote#79
https://github.com/electron/remote/blob/main/docs/migration-2.md
migrated according to the migration guide:
https://github.com/electron/remote/blob/main/docs/migration-2.md

"To migrate from @electron/[email protected] to @electron/[email protected], replace all usages of the enableRemoteModule: true WebPreference by a call to enable()."

```
// Before (@electron/[email protected])
const win = new BrowserWindow({
  webPreferences: {
    enableRemoteModule: true
  }
})

// After (@electron/[email protected])
const remoteMain = require("@electron/remote/main")
remoteMain.initialize()
const win = new BrowserWindow()
remoteMain.enable(win.webContents)
```
also swap out `node-sass` for `sass` library to fix the build
@hackergrrl
Copy link
Member

hackergrrl commented Feb 21, 2024

It'll be great to have this merged into master and have that cabal-client fix go live -- thanks Nick! 🖤

@hackergrrl
Copy link
Member

Oh, @nikolaiwarner do you know how to get notorization working again?

Comment on lines +6 to +7
#- linux
#- windows
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
#- linux
#- windows
- linux
- windows

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these were turned off 'cause we were focusing on debugging OSX builds :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants