Skip to content

v2.0.0

Latest

Choose a tag to compare

@sindresorhus sindresorhus released this 07 Oct 16:05

Breaking

  • Require Electron 44 e48f751
  • The default logLevel is now 'info' only when NODE_ENV is 'development'. Before, it was 'info' whenever the app was not packaged. e48f751
    • To keep the old behavior: logger.setDefaults({logLevel: app.isPackaged ? 'warn' : 'info'})

New

Fixes

  • Fix logging from the renderer process on modern Electron versions e48f751 bcd7ae6 dd23915
    • It no longer uses the removed remote module, it no longer needs nodeIntegration, and it also works in sandboxed renderers. No preload setup is needed.
  • Fix bundling the renderer with Vite and electron-vite (__dirname is not defined) (#26) bcd7ae6
  • Fix finding the preload script when the main process is bundled with webpack (#17) 8e4bb00
  • Fix unhooking the renderer consoles when the main process console was not hooked e48f751
  • Do not send Electron security warnings from hooked renderer consoles to the terminal (#13) d5ce572
    • They are still visible in the DevTools console.

v1.0.0...v2.0.0