Electron 1.0 released!

But you probably already know...

Jump to their website, check out new docs and tools. Also, be sure to read their blog post.

I'm not writing this to link to announcement only, of course. I'd like to warn you guys about breaking changes in compiling.

If you required electron modules like this:

const remote = require('remote');  
const app = require('app');  
const autoUpdater = require('auto-updater');  

change it to require('electron').moduleName:

const electron = require('electron');  
const remote = electron.remote;  
const app = electron.app;  
const autoUpdater = electron.autoUpdater;  

or even shorter:

const electron = require('electron');  
const {remote} = electron;  
const {app} = electron;  
const {autoUpdater} = electron;  

Edit: Also, I had to manually patch electron-squirrel-startup. I had to change:

var app = require('app');  

to:

var app = require('electron').app;  

Cheers!

About Vjekoslav Ratkajec

Software developer from Zagreb, Croatia. Love programming, running, hiking and biking. Adore nature and animals. Also author of this blog.

Comments