unstale

npm / fake-indexeddb

fake-indexeddb

What changed in fake-indexeddb 4 to 6, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.

4 breaking3 new APIs and options3 performance1 behavior and defaults1 tooling7 fixes and other

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

npx @unstale/cli init

@unstale/cli on npm

fake-indexeddb 613 changes

Breaking changes 1

  • Errors are now DOMException instances rather than normal errors, matching the IndexedDB spec.

    6.0.0release notes

New APIs and options 2

  • Adds support for capture to improve Event compatibility.

    6.2.5release notes

  • Adds support for handleEvent to improve Event compatibility.

    6.2.5release notes

Performance 3

  • Improved performance of delete for object stores with indexes.

    6.2.7release notes

  • Improved performance of put for object stores with indexes.

    6.2.7release notes

  • Performance was improved.

    6.2.6release notes

Fixes and other changes 7

  • Fixed a regression when calling transaction.abort() in a request error handler.

    6.2.8release notes

  • Fixed conversion of inline typed array keys to ArrayBuffers when storing records.

    6.2.8release notes

  • Fixed a memory leak involving finished transactions.

    6.2.6release notes

  • Improves handling of some edge cases related to transaction timing.

    6.2.5release notes

  • Several small bug fixes handle various edge cases more correctly, increasing the number of passing Web Platform Tests.

    6.2.4release notes

  • Handling of Date objects now accounts for edge cases, including jsdom overriding the native Date constructor.

    6.0.0release notes

  • Event scheduling uses setImmediate differently in some situations where timers are mocked.

    6.0.0release notes

fake-indexeddb 51 changes

Breaking changes 1

  • Support for Node.js 16 was dropped; the package no longer includes the structuredClone polyfill, reducing package size by roughly 50%.

    5.0.0release notes

fake-indexeddb 45 changes

Breaking changes 2

  • The main package now provides IndexedDB variables as named exports. In CommonJS, requiring the root module may need to change to require("fake-indexeddb").default; sub-module requires remain supported.

    4.0.0release notes

  • Versions of Node.js older than Node 12 are no longer supported.

    4.0.0release notes

New APIs and options 1

  • ES modules are supported alongside CommonJS, so developers can import or require the package.

    4.0.0release notes

Behavior and default changes 1

  • In environments with a built-in structuredClone, fake-indexeddb uses it instead of realistic-structured-clone; the notes cite improved spec compliance and a minor performance increase.

    4.0.0release notes

Tooling 1

  • fake-indexeddb now includes TypeScript types based on TypeScript’s built-in IndexedDB types, supporting compatibility with application code that uses those types.

    4.0.0release notes