NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
pub.dev
pub.dev, #781 most downloaded on pub.dev
indexed_db dart base interface with implementation for native (browser), file (io) and in memory.
Latest stable
2.11.3
Last release 15 days ago
09 Nov 2026
Ships on a steady schedule
a new release about every 2 weeks
Some releases are documented
notes for 35 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
13 years old
246 releases · first in 2014
Drag across the ruler to compare, or tap a release to open it.
idb_shim 2.11.3: cursor, upgrade and sdb fixes, regression suites in …
idb_shim 2.11.3: cursor, upgrade and sdb fixes, regression suites in …
getAll / getAllKeys with a count in a transaction that changed
records return the first records by keycursor.delete() throws a read-only error in a read-only transaction instead of deleting
(sembast backend)delete / update on an index of a store with an array key path skip or refresh the
other entries of the record_key or _value work (sembast backend)event.database of a Database.onVersionChange event no longer throws on the webonUpgradeNeeded that throws no longer leaves the database upgraded (best effort
when the error comes after the transaction committed)DatabaseError) instead of
DatabaseException: AbortedfindJoinRows / join count with limit: 0 return no row with inner or distinctgreaterThan, isNull, notNull, inList, arrayContains...) work on dotted
fieldsYour coding agent can read these notes before it upgrades. Set up the MCP server →
Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com Claude-Session: https://claude.ai/code/session_011Mtk7qGKzZUeJP7aUjNNaD
Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_011Mtk7qGKzZUeJP7aUjNNaD
IdbFactory.sandbox,
SdbFactory.sandbox) has the name opened in the sandbox and the sandbox as
factory, in the upgrade event and its transactions too. It is still the
database of the implementation (it can be cast to its class).
sdbImportDatabase into a sandboxed factory imports in the sandbox (it
used to write the database outside of it).IdbExportOptions/SdbExportOptions
(nativeValueEncoder, overriding the argument kept as is, and
typeEncoding), IdbImportOptions/SdbImportOptions
(allowedTypeEncodings). The $ type encoding exports
{"$Timestamp": ...}, {"$Blob": ...} with "type_prefix": "$" in the
header; the import reads the encoding from the header. An export without
options is unchanged.sdbExportDatabaseLines writes "sdb_export": 1 in the header (still a
sembast export) and accepts an SdbClient: a transaction exports its
stores in it, its changes included. sdbImportDatabase accepts a
json/jsonl string and rejects a newer sdb_export.test: add tests for generated keys in join and store behavior
test: add tests for generated keys in join and store behavior
native_value_test (idb) and sdb_native_value_test (sdb) in the shared suite: stored by the native and memory factories (put/get, index, export with a
Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_012kAtWHb7zEzFysVBwd3m43
idbFactoryMemory, newIdbFactoryMemory(),
newSdbFactoryMemory()): an IdbNativeValue (SdbNativeValue) is stored
as is (the same object is read back, no copy), like in the native factory.
The factories with a storage (io, sqflite, idbFactoryMemoryFs) still
reject it, so does an export (ArgumentError).idbExportDatabase, idbExportDatabaseLines and sdbExportDatabaseLines
get a nativeValueEncoder converting each native value met
(IdbExportNativeValueContext/SdbExportNativeValueContext: store, key,
path, value). The encoder returns the value to export in its place (null
included, it drops the record when the native value is the record value),
IdbExportNativeValue.drop/SdbExportNativeValue.drop (map entry, list
item, or record when the native value is the record value) or
.dropRecord, or throws to stop the export. It can be asynchronous (it
runs on a memory copy, once the records are read). Without it, an export
of a native value throws an ArgumentError.idbExportDatabase, idbExportDatabaseLines and idbImportDatabase: the
temporary memory database (copy of a non sembast database) is deleted, it
used to stay in memory.copyDatabase/copyStore: a failing put is reported (it used to be an
uncaught error, the copy failing with DatabaseException: Aborted or
Bad state: Future already completed). copyDatabase closes the
destination database when the copy fails.Bad state: Future already completed).Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com Claude-Session: https://claude.ai/code/session_012kAtWHb7zEzFysVBwd3m43
Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_012kAtWHb7zEzFysVBwd3m43
FileSystemFileHandle,
FileSystemDirectoryHandle, JS Blob, File...) can be stored as is by
wrapping them in an IdbNativeValue (SdbNativeValue in sdb), alone or
inside a map or a list. The other factories (memory, io) reject them.IdbNativeValue. It used to be
read as a map of its own properties (an empty map for a FileSystemHandle
or a Blob).Native factory: a browser object (FileSystemFileHandle, FileSystemDirectoryHandle, Blob, File, CryptoKey...) wrapped in an IdbNativeValue is stored as
Native factory: a browser object (FileSystemFileHandle,
FileSystemDirectoryHandle, Blob, File, CryptoKey...) wrapped in an
IdbNativeValue is stored as is (structured clone), alone or inside a map
or a list, and any stored JS object that is not a plain object, an array,
a date or a binary buffer is read back as an IdbNativeValue (it used to
be read as an empty map). The memory and io factories reject it.
sdb: SdbNativeValue (alias of IdbNativeValue) goes through the codecs
unchanged.
Add the example/sdb_native_value_menu browser menu (Blob, File, non
extractable CryptoKey, OPFS and picked file system handles).
Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_012kAtWHb7zEzFysVBwd3m43
The sembast (memory) transaction waited a zero timer each time its queue was empty, so every awaited request cost one timer: 4 ms or more in browsers
The sembast (memory) transaction waited a zero timer each time its queue
was empty, so every awaited request cost one timer: 4 ms or more in
browsers (nested setTimeout clamp), 1280 ms for 250 puts in Chrome.
The loop now arms its zero timer as soon as the queue is empty and a new
request wakes it up (the timer is cancelled), so requests made from the
callers' continuations run right away; the transaction commits when the
timer fires with nothing queued, like an IndexedDB transaction once
control returns to the event loop with no pending request. A request
made after a task of the caller (await Future.delayed(Duration.zero))
still finds the transaction committed.
250 put+get in one transaction in Chrome: 2452 ms -> 23 ms (dart2js),
4155 ms -> 45 ms (dart2wasm).
Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com
$, @, $Timestamp, $Blob, @Timestamp, @Blob) is escaped when
written ({'$': map}) and read back unchanged. {'$': 'raw'} used to be
read back as 'raw' and {'$Timestamp': text} as an SdbTimestamp.
Other single $/@ keys are stored as before (key paths and indexes
unchanged). Already stored {'$': value} with a non map value is now read
back as the map.sdb: iterate completes with the onRow error (it hung), row.update encodes like put and notifies listeners and other tabs, untyped nested maps are no l
Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_01GEQPwVF4EtJYunmUTjVF5P
chore: bump version to 2.10.0+1 and update CHANGELOG
chore: bump version to 2.10.0+1 and update CHANGELOG
iterate (store and index): an error thrown by onRow stops the
iteration and completes iterate with that error (it used to never
complete, the error escaping as an uncaught zone error).row.update() during an iterate encodes the value like put
(SdbTimestamp, SdbBlob) and notifies the change listeners
(onSnapshot, onSnapshots...) and the other tabs.limit of 0 returns nothing everywhere (find, stream, keys, count,
iterate, delete, store and index): it gave 0, 1 or all the records
depending on the method, delete(limit: 0) deleted the whole store.Map<String, Object?> (i.e. a
Map<dynamic, dynamic>) is stored with its entries (it was stored as
{}).iterate options are SdbFindOptions<SdbKey>: their boundaries
apply to the index key, so they can be typed with the index key type
(source compatible, options typed with the store key are accepted).onSnapshot/onSnapshots/onCount: a query error is added to the
stream (it was uncaught).IdbFactory.cmp, key ranges, sort): number < string <
binary < array, arrays compared item by item then by length
(cmp([1], [1, 2]) is -1, mixed types no longer compare equal or throw).
KeyRange.contains works on arrays.count, getAll
and getAllKeys count the entries (not the records), entries with equal
keys are ordered by primary key, unique is enforced.keyPath: getAllKeys, getKey and the index
getKey/getAllKeys return the keys (not internal ids), count and
getAll by key or range work, getAll follows the key order, a put
keeping the same value of a unique index no longer fails.prev direction on an index: equal keys are ordered by descending
primary key.Index.get and Index.getKey accept a KeyRange (native too).cursor.update() in a readonly transaction throws a ReadOnlyError
(it wrote the value), and in a store with in-line keys a value without
the cursor primary key throws a DataError (it wrote another record).getAll/getAllKeys with a count of 0 return every record, as in the
IndexedDB spec (store: 1 record, index: none). sdb is unchanged (a
limit of 0 returns nothing).sdb: the implementation is pluggable. A backend that is not IndexedDB implements the internal interfaces (SdbDatabaseInterface, SdbTransactionInterfac
SdbDatabaseInterface,
SdbTransactionInterface, SdbTransactionStoreRefInterface,
SdbTransactionIndexRefInterface, SdbOpenStoreRefInterface) and the
default mixins exported by src/sdb/sdb_mixin.dart; the public API, joins,
change listeners, onSnapshot and the schema helpers dispatch through them.
The idb implementation is unchanged.sdbExportDatabaseLines and sdbImportDatabase work with any sdb
factory, same lines format (DateTime and Uint8List exported as @Timestamp
and @Blob).compatMigrate1To2 awaits its row updates.sdbDefineAllTests(SdbTestContext) runs the whole sdb suite on any
SdbFactory.Internal interfaces (database, transaction, store, index, open store) and default mixins exported from src/sdb/sdb_mixin.dart so that a non IndexedDB
Internal interfaces (database, transaction, store, index, open store) and
default mixins exported from src/sdb/sdb_mixin.dart so that a non IndexedDB
backend can implement sdb; the public API, joins, change listeners,
onSnapshot and the schema helpers dispatch through them, the idb
implementation is unchanged.
sdbExportDatabaseLines/sdbImportDatabase work with any sdb factory in the
same lines format (DateTime and Uint8List as @timestamp and @Blob), the
toSembastValue/fromSembastValue helpers are exported for implementers,
compatMigrate1To2 awaits its row updates, the transaction stream completes
when the consumer cancels.
idb_test: format test for DateTime and Uint8List values, onSnapshot test on
the generic changes listener.
Co-Authored-By: Claude Fable 5.1 noreply@anthropic.com
sdb: the version change requests of the other connections (another tab, an iframe, the same page), the IndexedDB versionchange and blocked events, on
versionchange and blocked
events, on SdbOpenDatabaseOptions:
versionChangeAction (SdbVersionChangeAction, close by default):
what the database does on its own when another connection opens it at a
higher version or deletes it: none (stay open, the other waits),
close (the other open completes instead of staying blocked forever,
SdbDatabase.isClosed tells), closeAndReload and
closeAlertAndReload (web: the page reloads on the new version);onVersionChangeRequest: called first, with the current and the
requested version (null on a delete), to save what must be or tell the
user your own way;blockedAction (SdbBlockedAction, alert by default): what the open
does on its own while a connection that keeps the database open at a
lower version (a tab of an older app) blocks it: a "close the other
tabs" alert on the web, or none; onBlocked is called first. The open
completes once that connection closes.VersionChangeEvent.newVersionOrNull (null on a delete); the native
Database.onVersionChange stream delivers synchronously, so a close in the
handler happens inside the browser event; the sembast one is an empty
stream instead of throwing.example/sdb_version_change_exp: two frames of one app opening the
same database at different versions.feat(sdb): versionChangeAction and blockedAction enums, web alert and…
feat(sdb): versionChangeAction and blockedAction enums, web alert and…
versionchange and blocked
events, on SdbOpenDatabaseOptions:
versionChangeAction (SdbVersionChangeAction, close by default):
what the database does on its own when another connection opens it at a
higher version or deletes it: none (stay open, the other waits),
close (the other open completes instead of staying blocked forever,
SdbDatabase.isClosed tells), closeAndReload and
closeAlertAndReload (web: the page reloads on the new version);onVersionChangeRequest: called first, with the current and the
requested version (null on a delete), to save what must be or tell the
user your own way;blockedAction (SdbBlockedAction, alert by default): what the open
does on its own while a connection that keeps the database open at a
lower version (a tab of an older app) blocks it: a "close the other
tabs" alert on the web, or none; onBlocked is called first. The open
completes once that connection closes.VersionChangeEvent.newVersionOrNull (null on a delete); the native
Database.onVersionChange stream delivers synchronously, so a close in the
handler happens inside the browser event; the sembast one is an empty
stream instead of throwing.example/sdb_version_change_exp: two frames of one app opening the
same database at different versions.feat: add join support for SDB, enabling left join functionality betw…
feat: add join support for SDB, enabling left join functionality betw…
LEFT JOIN. On SdbStoreRef and SdbIndexRef:
joinIterate/findJoinRows hand out SdbJoinRow (both sides),joinIterateRecords/findJoinRecords the source records only, one per
source record,joinIterateJoinedRecords/findJoinedRecords the referenced records only
(always inner, so never null),joinCount the number of rows.SdbJoinTarget says what the join key is matched against, a store (on
its primary key) or an index (on its index key), exactly one of the two:
authorStore.asJoinTarget, authorEmailIndex.asJoinTarget.SdbJoinFindOptions (distinct, inner, chunkSize) holds the join
specific options, next to the usual SdbFindOptions on the iterated side;
every join method takes both.idb_sqflite turns it into a single sql LEFT JOIN/INNER JOIN per
chunk, with the key range, inner, offset and limit pushed down), and by
walking a cursor otherwise; both hand out the same rows in the same order.IdbJoinQuerySupport,
implemented by an ObjectStore/Index implementation able to join natively.SdbIndexCursorRow now exposes indexKey and primaryKey.Co-Authored-By: Claude Fable 5.1 noreply@anthropic.com Claude-Session: https://claude.ai/code/session_01BeSPt2peAnMDW5fVfk2B6F
Co-Authored-By: Claude Fable 5.1 noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_01BeSPt2peAnMDW5fVfk2B6F
idb-shim-database and idb-shim-sdb agent skills in skills/, installable with dart run skills@ getsdb: Apply the offset and the limit natively (sql LIMIT/OFFSET) instead of walking a cursor, when the implementation supports it, for findRecords, fin
LIMIT/OFFSET) instead of
walking a cursor, when the implementation supports it, for findRecords,
findRecordKeys, streamRecords, iterate and delete on stores and indexes.
An implementation reading its rows in one go would otherwise read the whole
store on every paged query.iterate was ignoring the offset, the skipped rows were handed to the
handler.IdbPagedQuerySupport, implemented
by an ObjectStore/Index implementation able to page natively.Nothing published for this version
chore: update version to 2.9.7 and adjust changelog
chore: update version to 2.9.7 and adjust changelog
fix: correct count logic in sdb_index and sdb_transaction_store
Nothing published for this version
Nothing published for this version
Nothing published for this version
feat: update idbFactory methods to accept dynamic types for better co…
feat: update idbFactory methods to accept dynamic types for better co…
[idb_shim] v2.9.6+2 feat: add SdbTimestamp type and related exports f…
[idb_shim] v2.9.6+2 feat: add SdbTimestamp type and related exports f…
getDatabaseFullPath() extension method on IdbFactory and SdbFactoryfullPathSdbDatabase.openDatabaseOptionsSdbTimestamp helpers (difference, addDuration, substractDuration)feat: add getDatabaseFullPath() method for improved database path han…
feat: add getDatabaseFullPath() method for improved database path han…
Add fullPath() extension method on IdbFactory and SdbFactory to get the full path of a database.
fullPath() extension method on IdbFactory and SdbFactory to get the full
path of a database.pathContext method to IdbFactory and extension method to SdbFactoryNothing published for this version
Nothing published for this version
Add sandbox() extension method on IdbFactory and SdbFactory to create a factory where every database is located below a given path.
sandbox() extension method on IdbFactory and SdbFactory to create
a factory where every database is located below a given path.Nothing published for this version
Add onCount for stores and indexes
onCount for stores and indexessdb: Add iterate on Store and Cursor.
iterate on Store and Cursor.Nothing published for this version
Nothing published for this version
sdb: Allow raw data and codec support
Nothing published for this version
sdb: Add support for SdbTimestamp in index
SdbTimestamp in indexNothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
sdb: Add onSnapshot and onSnapshots support for stores, records, and indexes.
onSnapshot and onSnapshots support for stores, records, and indexes.sdb: deprecate params version, schema, onVersionChanged on SdbFactory.openDatabase and prefer open options
schema and onVersionChange in open optionsversion, schema, onVersionChanged on SdbFactory.openDatabase and prefer open optionsonVersionChange transaction, allowing manipulating data during openNothing published for this version
Nothing published for this version
Add built-in SdbTimestamp and SdbBlob to Sdb database
SdbTimestamp and SdbBlob to Sdb databaseNothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Add onChange listener to SdbDatabase
SdbFactory.openDatabaseOnDowngradeDelete to support schema.Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Import jdb support (from sembast_web)
Nothing published for this version
Nothing published for this version
One column per quarter.