Download Latest Version v19.0.1 source code.tar.gz (1.3 MB)
Email in envelope

Get an email when there's a new version of Electron Packager

Home / v19.0.0
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2025-10-15 5.2 kB
v19.0.0 source code.tar.gz 2025-10-15 1.3 MB
v19.0.0 source code.zip 2025-10-15 1.4 MB
Totals: 3 Items   2.7 MB 0

19.0.0 (2025-10-15)

Electron Packager 19 introduces many breaking changes in an effort to modernize the codebase.

BREAKING CHANGES

Node.js 22

This package now requires Node.js >=12.22.0.

ESM

This package is now ESM-only.

[!NOTE] CommonJS projects can still consume this module via the require(esm) feature added to Node 22.

asar is enabled by default

By default, the asar option is now set to unpack native node modules.

:::js
const opts = {
  asar: {
    unpack: '**/{.**,**}/**/*.node'
  }
}

[!NOTE] This is equivalent to the behaviour out of the box with any Electron Forge v7 template.

[!NOTE] In Electron Packager 19, this is also equivalent to asar: true.

This was incorrectly documented in most previous versions of Electron Packager. See https://github.com/electron/packager/pull/1818.

Hooks are promisified and take in a single object argument

Electron Packager's various lifecycle hooks have changed their shape in two ways: * Hook arguments are now properties on a single JavaScript object rather than individual positional args. * The done callback arg was removed in favour of making hooks asynchronous.

For a trivial example:

:::js
// Electron Packager 18
const opts = {
  afterExtract: [
    (buildPath, electronVersion, platform, arch, callback) => {
      setTimeout(() => {
        console.log({ buildPath, electronVersion, platform, arch });
        callback();
      }, 1000);
    },
  ],
};

// Electron Packager 19
const opts = {
  afterExtract: [
    async ({ buildPath, electronVersion, platform, arch }) => {
      await new Promise((resolve) => {
        setTimeout(() => {
          console.log({ buildPath, electronVersion, platform, arch });
          resolve();
        }, 1000);
      });
    },
  ],
};

What's Changed

Full Changelog: https://github.com/electron/packager/compare/v18.4.4...v19.0.0

Source: README.md, updated 2025-10-15