Comments (6)
Added an initial idea how to solve this in the PR above, but no sure about the solution.
More for you @sindresorhus I guess, you have 6 other repositories that also use remote
electron-is-dev
electron-store
electron-context-menu
electron-unhandled
electron-timber
electron-better-ipc
electron-is-dev
is also required by electron-util
itself.
Not sure if they all actually require remote
to work or just to provide compatibility for the renderer process.
Maybe there is a general way to approach the deprecation of the build in remote
module. 🤔
Happy to discuss this, because I personally also use two of them 😅 and would like to keep using them.
Not sure where the ideal place for this discussion is, so feel free to move this somewhere else.
(I already kind of split it between the PR and this issue 🙈)
from electron-util.
So electron-utils also needs to expose a initialize function?
That would probably be the simplest solution, yes.
An alternative would be to just not use the remote module anymore, but I guess that would be a big breaking change.
Yeah, that would be too much of a breaking change.
from electron-util.
Okay, will see if I can work on this in the coming days or over the holidays.
FYI: This also means that we would need to target electron 10.
NOTE:
@electron/remote
requires Electron 10 or higher.
So maybe #28 can then also be included after this.
from electron-util.
Okay, will see if I can work on this in the coming days or over the holidays.
Awesome :)
FYI: This also means that we would need to target electron 10.
Yeah, that's fine.
So maybe #28 can then also be included after this.
👍
from electron-util.
Feel free to use this issue for general discussions, and thanks again for the help.
from electron-util.
If anyone wants to work on this, see #37 as a starting point.
from electron-util.
Related Issues (20)
- Use native about message box on Windows when targeting Electron 8 HOT 1
- Can't use with Next.js HOT 4
- Missing section in openSystemPreferences HOT 1
- Build error with Electron 10.1.2 and Angular 8.3.20 HOT 1
- Open to specific subsection with openSystemPreferences [feature request] HOT 1
- Typescript Compiler Error in d.ts - Module '"electron"' has no exported member 'AllElectron' HOT 1
- Error in `disableZoom()`: webContents.setLayoutZoomLevelLimits is not a function
- Option to ignore MacOS dock and Windows taskbar height when using `centerWindow()` HOT 1
- Typescript compile error - readonly MenuItemConstructorOptions[] error TS1005: ',' expected. HOT 1
- Can't import in renderer process HOT 9
- Will be compatible with [email protected] ? HOT 2
- fs.existsSync HOT 2
- Error with TypeScript (Module '"electron"' has no exported member 'AllElectron') HOT 4
- Rename node.js to compile on Windows HOT 1
- Error reported in renderer process HOT 4
- process.mainModule deprecated in Node 14+
- ASAR check does not work in electron preload HOT 2
- It seems that not work on >= v14 electron's version HOT 1
- Please, make "showAboutWindow" more useful HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from electron-util.