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 initfake-indexeddb 613 changes
Breaking changes 1
Errors are now DOMException instances rather than normal errors, matching the IndexedDB spec.
New APIs and options 2
Adds support for capture to improve Event compatibility.
Adds support for handleEvent to improve Event compatibility.
Performance 3
Improved performance of delete for object stores with indexes.
Improved performance of put for object stores with indexes.
Performance was improved.
Fixes and other changes 7
Fixed a regression when calling transaction.abort() in a request error handler.
Fixed conversion of inline typed array keys to ArrayBuffers when storing records.
Fixed a memory leak involving finished transactions.
Improves handling of some edge cases related to transaction timing.
Several small bug fixes handle various edge cases more correctly, increasing the number of passing Web Platform Tests.
Handling of Date objects now accounts for edge cases, including jsdom overriding the native Date constructor.
Event scheduling uses setImmediate differently in some situations where timers are mocked.
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%.
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.
Versions of Node.js older than Node 12 are no longer supported.
New APIs and options 1
ES modules are supported alongside CommonJS, so developers can import or require the package.
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.
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.