unstale

npm / electron-store

electron-store

What changed in electron-store 7 to 12, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.

16 breaking3 new APIs and options4 behavior and defaults1 tooling5 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

electron-store 1220 changes

Breaking changes 8

  • With dot notation, a key that is not a valid path now throws.

    12.0.0release notes

  • The package now fails with a clear error when not running in Electron, unless an absolute cwd is passed.

    12.0.0release notes

  • Electron 35 is now required.

    12.0.0release notes

  • An empty encryptionKey is now refused.

    12.0.0release notes

  • Calling .get() with a non-string key now throws.

    12.0.0release notes

  • name can no longer point outside cwd.

    12.0.0release notes

  • When using migrations, projectVersion must be a full semantic version.

    12.0.0release notes

  • The rootSchema option now throws if it contains a properties key.

    12.0.0release notes

New APIs and options 3

  • The new cache option keeps the store in memory, avoiding parsing the config file on every read; returned values are frozen.

    12.0.0release notes

  • The new .events API lets you listen for change events directly.

    12.0.0release notes

  • The projectVersion option is now available in the types.

    12.0.0release notes

Behavior and default changes 3

  • When clearInvalidConfig is used, the cleared store is now written to the config file.

    12.0.0release notes

  • Migrations run in version order, regardless of the order in which they are defined.

    12.0.0release notes

  • serialize can now return a Uint8Array.

    12.0.0release notes

Tooling 1

  • Annotating schema with Schema<T> now gives .get() its types.

    12.0.0release notes

Fixes and other changes 5

  • Migrations no longer run for a config file that does not exist yet; a new store starts at the current version.

    12.0.0release notes

  • The recorded migration version no longer moves backwards.

    12.0.0release notes

  • A migration with a semver range no longer makes the store impossible to open after a failed migration.

    12.0.0release notes

  • The name option is no longer readonly in the types.

    12.0.0release notes

  • .reset() now works with dot-notation keys.

    12.0.0release notes

electron-store 101 changes

Breaking changes 1

  • The schema option now uses JSON Schema draft-2020-12 instead of draft-v7; this is a breaking change for users of the option.

    10.0.0release notes

electron-store 93 changes

Breaking changes 3

  • Electron 30 is now required to use the package.

    9.0.0release notes

  • The package is now pure ESM, so TypeScript users need a tsconfig that outputs ESM.

    9.0.0release notes

  • Node.js 20 is now required to use the package.

    9.0.0release notes

electron-store 75 changes

Breaking changes 4

  • The clearInvalidConfig option now defaults to false.

    7.0.0release notes

  • Electron 11 is now required; older Electron versions are no longer supported.

    7.0.0release notes

  • Compatibility with Electron 12 was fixed, and use of electron.remote was removed.

    7.0.0release notes

  • If a store is created only in the renderer process, call Store.initRenderer() manually in the main process.

    7.0.0release notes

Behavior and default changes 1

  • The ajv update may affect users of the schema option.

    7.0.0release notes