Skip to content

Releases

v8.0.1

Choose a tag to compare

@electron-npm-package-publisher electron-npm-package-publisher released this 29 Sep 20:33
48f38bb

Electron Forge 8

It’s time for a new major version! Forge is now ESM-only on Node.js 22, the Vite plugin is out of experimental, create-electron-app owns project scaffolding, and Forge installs with far fewer dependencies.

Read the Breaking changes section before upgrading.

Highlights

  • ESM and Node.js 22. Every @electron-forge/* package is ESM-only and requires Node.js 22.17 or newer. Existing Forge configurations keep working in CommonJS or ESM projects. (#4059)
  • The Vite plugin is promoted to stable. @electron-forge/plugin-vite is no longer experimental and is covered by semver. It now targets Vite 8, builds each target in an isolated process, supports opt-in main-process hot restart (hotRestart: true) and honours a custom server.host. (#4382, #4167, #4163, #4226, #4346, #4363)
  • electron-forge publish is now electron-forge release to avoid conflict with the npm publish command. make always saves its results, so release --from-make can publish artifacts built by an earlier make, for example on another CI job. publish still works as a deprecated alias. (#4305, #4395)
  • One template per bundler. create-electron-app --template vite --typescript replaces the separate *-typescript templates. New projects use oxlint and oxfmt, moduleResolution: bundler and a release script, and init gains --package-manager and --electron-version flags. (#4229, #4186, #4175, #4107, #4037)
  • webpack output in your terminal. The webpack plugin renders compiler output as tabs in the terminal instead of a browser logger on port 9000. (#4389)
  • Lighter install. got, fs-extra, fast-glob, find-up, chalk, lodash, rechoir and others were replaced with Node.js built-ins. (#4189, #4250, #4227, #4248, #4245, #4066)
  • Makers and publishers. PKG notarization (#4234), MSIX outputFileName (#4295), typed copyright for deb and rpm (#4298), byte-level GitHub upload progress (#4304), and the artifact version in S3 and GCS keyResolver (#4033).

Breaking changes

Everyone

  • Node.js 22.17.0 or newer is required (was 16.4.0). (#4059)
  • All packages are ESM-only. The CLI needs no changes. If you call the programmatic API with require('@electron-forge/core'), that relies on Node's require(esm); switch to import to be safe. (#4059)
  • Custom makers, publishers, plugins and string packagerConfig hooks must have a default export (export default or module.exports =). (#4059)
  • Config templating was removed. Strings in your config are no longer rendered as lodash templates (${version}, ${year}, other package.json fields), and require:./path strings are no longer resolved. Use JavaScript in forge.config.* instead. (#4066)
  • Only forge.config.{js,mjs,cjs,ts,mts,cts} are loaded. Config files in other languages (CoffeeScript, Babel-registered files, etc.) are no longer supported through rechoir. (#4066)
  • init and import moved to create-electron-app. Use npx create-electron-app@latest my-app and npx create-electron-app@latest import. The electron-forge init and electron-forge import commands, and their core API functions, were removed. Importing Forge 5 projects (#4083) and loading globally installed templates (#4065) are no longer supported. (#4148)
  • init no longer guesses your package manager. It asks when run interactively and uses npm otherwise. Pass --package-manager pnpm, yarn or an exact version such as [email protected] in scripts and CI. (#4107)
  • Deprecated, still working: publish → release, make --skip-package → --from-package, release --from-dry-run → --from-make, release --dry-run → make. Dry runs saved by Forge 7 cannot be resumed; run make again with Forge 8. (#4305, #4395)
  • Plugins are initialized once per command. make and release no longer re-resolve the config for their nested steps, so init() and resolveForgeConfig run once. (#4394)

Vite and webpack plugins

  • Main and preload bundles are emitted as .cjs. Both plugins stop with an error explaining the fix if your project still uses the old paths. (#4393)
    • Vite: set "main": ".vite/build/main.cjs" and load preloads with path.join(__dirname, 'preload.cjs').
    • webpack: set "main": ".webpack/main/index.cjs".
  • The Vite plugin targets Vite 8. Upgrade vite to 8.x and port custom Rollup options to Vite 8. (#4167)
  • The webpack loggerPort option was removed along with @electron-forge/web-multi-logger. In the terminal UI, press r to restart the app. (#4389)
  • webpack-dev-server 5. Custom devServer options must follow the v5 API. (#4308)

Makers

  • DMG output moved to out/make/dmg/<arch>/ (#4275) and PKG output moved to out/make/pkg/<arch>/ (#4383). Update any CI globs that upload from out/make/.
  • @electron-forge/maker-appx is deprecated and now builds .msix through electron-windows-msix. Several Desktop App Converter options are ignored with a warning, no development certificate is generated when devCert is unset, and a publisher is required. Move to @electron-forge/maker-msix. (#4392)
  • maker-deb rejects unsupported architectures, including arm (armel). Supported: ia32, x64, arm64, armv7l, mips64el. (#4059)
  • maker-wix only builds x64, ia64 and x86. (#3859)
  • maker-deb and maker-rpm use electron-installer-debian and electron-installer-redhat v4. (#4379)
  • Type renames: MakerFlatpakOptionsConfig is now MakerFlatpakConfigOptions, and maker-dmg no longer re-exports the electron-installer-dmg option types. (#4321)

Publishers

  • S3 and GCS keyResolver takes one object: keyResolver({ fileName, platform, arch, version }) instead of keyResolver(fileName, platform, arch). (#4033)
  • GCS: public, private and predefinedAcl were replaced by uploadOptions, for example uploadOptions: { predefinedAcl: 'publicRead' }. Uploads are no longer gzipped; set uploadOptions: { gzip: true } to restore. (#4033, #4034)
  • GitHub: the exported class is now PublisherGitHub. Configs that reference the package by name are unaffected. (#4224)

Plugins

  • @electron-forge/plugin-fuses requires @electron/fuses 2.x. (#4379)
  • @electron-forge/plugin-electronegativity was removed. (#4053)
  • Plugin authors: Forge now uses listr2 v11, where Listr.errors is null unless collectErrors is set. (#4375)

Removed packages

  • @electron-forge/template-vite-typescript and @electron-forge/template-webpack-typescript: use --template vite --typescript or --template webpack --typescript.
  • @electron-forge/web-multi-logger: replaced by @electron-forge/multi-logger.
  • @electron-forge/plugin-electronegativity.

What's Changed

Read more

v8.0.0-alpha.10

v8.0.0-alpha.10 Pre-release
Pre-release

Choose a tag to compare

@electron-npm-package-publisher electron-npm-package-publisher released this 02 Jul 18:09
a042139

What's Changed

Full Changelog: v8.0.0-alpha.9...v8.0.0-alpha.10

v7.11.2

Choose a tag to compare

@electron-npm-package-publisher electron-npm-package-publisher released this 20 May 18:19
f2a3ec8

What's Changed

New Contributors

Full Changelog: v7.11.1...v7.11.2

v8.0.0-alpha.9

v8.0.0-alpha.9 Pre-release
Pre-release

Choose a tag to compare

@electron-npm-package-publisher electron-npm-package-publisher released this 20 May 18:18
8d04835

What's Changed

Full Changelog: v8.0.0-alpha.8...v8.0.0-alpha.9

v8.0.0-alpha.8

v8.0.0-alpha.8 Pre-release
Pre-release

Choose a tag to compare

@electron-npm-package-publisher electron-npm-package-publisher released this 21 Apr 19:06
e6e0d00

In this release

We're continuing to release Alpha versions at a faster cadence! Most importantly, this release fixes a bunch of Windows-specific import path bugs from the ESM migration.

Breaking Changes

  • @electron-forge/publisher-github now exports a PublisherGitHub constructor rather than PublisherGithub (fixed capitalization).

What's Changed

Full Changelog: v8.0.0-alpha.7...v8.0.0-alpha.8

v8.0.0-alpha.7

v8.0.0-alpha.7 Pre-release
Pre-release

Choose a tag to compare

@electron-npm-package-publisher electron-npm-package-publisher released this 10 Apr 16:26
2f61a07

What's new

In this version of Electron Forge, we've fixed up the webpack plugin, which had ESM/CJS-related runtime errors. The Vite plugin now also uses Vite 8, powered by rolldown!

Full Changelog

New Contributors

Full Changelog: v8.0.0-alpha.6...v8.0.0-alpha.7

v8.0.0-alpha.6

v8.0.0-alpha.6 Pre-release
Pre-release

Choose a tag to compare

@electron-npm-package-publisher electron-npm-package-publisher released this 19 Mar 00:58
5663b52

The ESM Release

This release marks the culmination of our journey to bump all of our first-party Electron packages to Node 22 LTS + ESM.

Electron Forge is now a set of ESM packages and requires at least Node.js 22.12.0 (the first version to support require(esm) in CommonJS).

All dependent @electron/ npm packages have been bumped to their latest major version.

  • @electron/asar
    • Removed all default exports.
  • @electron/fuses
    • No additional breaking changes beyond Node.js and ESM requirements.
  • @electron/get
    • Removed deprecated nightly_mirror option. Use nightlyMirror instead.
    • Removed deprecated force option. Use cacheMode: ElectronDownloadCacheMode.WriteOnly instead.
  • @electron/notarize
    • Removed deprecated altool notarization strategy. The tool parameter is no longer used.
  • @electron/osx-sign
    • Removed deprecated signAsync, walkAsync, and flatAsync functions. The base sign, walk, and flat functions are now Promise-based exclusively.
  • @electron/packager
    • ASAR is now enabled by default with unpack: '**/{.**,**/}/**/*.node' (you likely can removed the auto-unpack-natives Forge plugin).
    • derefSymlinks now defaults to true.
    • Hook arguments are now consolidated into a single object parameter and hooks are promisified.
  • @electron/rebuild
    • Removed default export.
    • Removed unused nodeGypPath field from the Rebuilder object.
  • @electron/universal
    • No additional breaking changes beyond Node.js and ESM requirements.
  • @electron/windows-sign
    • No additional breaking changes beyond Node.js and ESM requirements.

Additionally, many other dependencies are bumped to their latest major version! Most notably, @electron-forge/plugin-vite now uses Vite 7.

Moving init and import out of @electron-forge/core

The init and import ("bootstrap") commands aren't useful once you have a Forge app working. Fundamentally, it doesn't make sense for them to exist within @electron-forge/core, especially since it also meant that all Forge apps ended up bundling webpack and vite in their node_modules (inherited from init depending on @electron-forge/template-*).

This release moves the core of the init and import logic into the create-electron-app package. 👍

What's next?

This is subject to change, but the next release will probably ship with:

  • Vite 8
  • Modern linting for templates
  • Modern compiler options for TypeScript templates
  • ESM bundling support for the Vite plugin

A full roadmap is available in #4082. (If you have any feedback or comments, feel free to leave them in the issue!)

Yours truly,
@erickzhao

Changelog

Full Changelog: v8.0.0-alpha.4...v8.0.0-alpha.6

v8.0.0-alpha.5

v8.0.0-alpha.5 Pre-release
Pre-release

Choose a tag to compare

@electron-npm-package-publisher electron-npm-package-publisher released this 18 Mar 21:57
5ad3a25

(don't use this release)

v8.0.0-alpha.4

v8.0.0-alpha.4 Pre-release
Pre-release

Choose a tag to compare

@electron-npm-package-publisher electron-npm-package-publisher released this 14 Jan 23:10
9f2c01f

What's Changed

Full Changelog: v8.0.0-alpha.3...v8.0.0-alpha.4

v7.11.1

Choose a tag to compare

@electron-npm-package-publisher electron-npm-package-publisher released this 12 Jan 23:01
eb0a845

What's Changed

Forge v7.11 is the first version to be released using npm trusted publishing. A lot of internal build and test refactoring went into this release to make publishing seamless for releasers.

Full Changelog

Full Changelog: v7.10.2...v7.11.1