| Name | Modified | Size | Downloads / 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.
derefSymlinks is enabled by default
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
- test: migrate from ava to vitest by @erickzhao in https://github.com/electron/packager/pull/1813
- test: use 120s timeout globally by @erickzhao in https://github.com/electron/packager/pull/1820
- chore: bump amannn/action-semantic-pull-request from 5.5.3 to 6.1.1 by @dependabot[bot] in https://github.com/electron/packager/pull/1824
- chore: bump actions/cache from 4.2.3 to 4.2.4 by @dependabot[bot] in https://github.com/electron/packager/pull/1823
- chore: bump actions/checkout from 4.2.2 to 5.0.0 by @dependabot[bot] in https://github.com/electron/packager/pull/1822
- ci: upload
/typedocfolder to packages.electronjs.org by @erickzhao in https://github.com/electron/packager/pull/1826 - build: ignore fixture package.json in socket by @MarshallOfSound in https://github.com/electron/packager/pull/1827
- chore: bump vite from 7.1.1 to 7.1.5 by @dependabot[bot] in https://github.com/electron/packager/pull/1828
- feat!: bump
enginesrequirement to Node 22 by @erickzhao in https://github.com/electron/packager/pull/1821 - feat!: default
derefSymlinkstotrueby @erickzhao in https://github.com/electron/packager/pull/1829 - ci: make CI run on any PR by @erickzhao in https://github.com/electron/packager/pull/1833
- refactor: improve
Optionstypes by @erickzhao in https://github.com/electron/packager/pull/1830 - chore(cli)!: remove
--tmpdir=falseflag by @erickzhao in https://github.com/electron/packager/pull/1834 - chore: bump actions/setup-node from 4.4.0 to 5.0.0 by @dependabot[bot] in https://github.com/electron/packager/pull/1836
- chore: bump actions/cache from 4.2.4 to 4.3.0 by @dependabot[bot] in https://github.com/electron/packager/pull/1838
- chore: bump azure/cli from 2.1.0 to 2.2.0 by @dependabot[bot] in https://github.com/electron/packager/pull/1837
- chore: ignore fixtures from socket while making them uninstallable by @MarshallOfSound in https://github.com/electron/packager/pull/1839
- chore: upgrade to Yarn v4 by @erickzhao in https://github.com/electron/packager/pull/1835
- ci: fix setup-node in canary workflow by @dsanders11 in https://github.com/electron/packager/pull/1840
- feat!: promisify hooks by @erickzhao in https://github.com/electron/packager/pull/1832
- feat!: enable
asarby default by @erickzhao in https://github.com/electron/packager/pull/1841 - fix: allow
tmpdirto be true by @erickzhao in https://github.com/electron/packager/pull/1842 - fix: use file paths for dynamic imports by @erickzhao in https://github.com/electron/packager/pull/1844
- ci: allow
canary.ymlto be called manually by @erickzhao in https://github.com/electron/packager/pull/1845 - chore: bump brace-expansion from 1.1.11 to 1.1.12 by @dependabot[bot] in https://github.com/electron/packager/pull/1846
- feat!: force v19 release by @erickzhao in https://github.com/electron/packager/pull/1847
Full Changelog: https://github.com/electron/packager/compare/v18.4.4...v19.0.0