idb_shim 2.9.8 copy "idb_shim: ^2.9.8" to clipboard
idb_shim: ^2.9.8 copied to clipboard

indexed_db dart base interface with implementation for native (browser), file (io) and in memory.

2.9.8 #

  • sdb: Apply the offset and the limit natively (sql 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.
  • sdb fix: iterate was ignoring the offset, the skipped rows were handed to the handler.
  • Internal (not part of the public idb API): IdbPagedQuerySupport, implemented by an ObjectStore/Index implementation able to page natively.

2.9.7+1 #

  • fix: correct count logic in sdb_index and sdb_transaction_store

2.9.7 #

  • Expose IdbFactorySandbox and SdbFactorySandbox

2.9.6+2 #

  • Add getDatabaseFullPath() extension method on IdbFactory and SdbFactory
  • Deprecate fullPath
  • export SdbDatabase.openDatabaseOptions
  • export SdbTimestamp helpers (difference, addDuration, substractDuration)

2.9.5 #

  • Add fullPath() extension method on IdbFactory and SdbFactory to get the full path of a database.
  • Add pathContext method to IdbFactory and extension method to SdbFactory

2.9.4 #

  • Add sandbox() extension method on IdbFactory and SdbFactory to create a factory where every database is located below a given path.

2.9.3+1 #

  • Requires dart 3.12
  • Add onCount for stores and indexes

2.9.2 #

  • sdb: Add iterate on Store and Cursor.
  • sdb: Add cross tab synchronization on the web

2.9.1 #

  • sdb: Allow raw data and codec support

2.9.0 #

  • sdb: Add support for SdbTimestamp in index
  • sdb: new internal format for timestamp, migration with helper

2.8.5+2 #

  • sdb: Add onSnapshot and onSnapshots support for stores, records, and indexes.

2.8.4+1 #

  • sdb: Allow both schema and onVersionChange in open options
  • sdb: deprecate params version, schema, onVersionChanged on SdbFactory.openDatabase and prefer open options
  • sdb: fix onVersionChange transaction, allowing manipulating data during open

2.8.3 #

  • Add built-in SdbTimestamp and SdbBlob to Sdb database

2.8.2+4 #

  • Add onChange listener to SdbDatabase
  • Add sdb import/export helpers
  • Add options to SdbFactory.openDatabaseOnDowngradeDelete to support schema.

2.8.1 #

  • Import jdb support (from sembast_web)

2.7.1+2 #

  • Supports Sdb schema and improve sdb api
  • Refactor sembast transaction implementation
  • Add find options to all queries
  • Experimental record streaming in Sdb

2.7.0 #

  • Requires dart 3.10
  • Supports opening a database with either version or unUpgadeNeeded specified

2.6.7+1 #

  • Requires dart 3.8
  • export extra sdb mixin

2.6.6+2 #

  • sdb:
    • Add bool? descending argument to all Sdb store and index APIs.
    • Export SdbKey, SdbValue, SdbIndexKey, SdbClient.
    • Export SdbOpenIndexRef

2.6.5+1 #

  • Add openOnDowngradeDelete to IdbFactory to handle downgrade by deleting the database.
  • Add openDatabaseOnDowngradeDelete to SdbFactory to handle downgrade by deleting the database.

2.6.4+1 #

  • Add Web worker support (idbFactoryWebWorker)

2.6.3+2 #

  • Open Sdb to other implementation and add filtering support

2.6.2 #

  • Requires dart 3.7

2.6.1+7 #

  • Requires dart 3.5

2.6.0+5 #

  • More support for sdb, including key on 2,3 and 4 fields, and more.
  • Add idbFactoryWeb (shortcut for idbFactoryNative)

2.5.0+3 #

  • Remove legacy dart:html implementation.
  • Remove dev_test dependency

2.4.1+4 #

  • Add simple sdb opinionated strong typed api based on idb database.
  • Complete dart2wasm compilation support
  • Deprecate old idbFactoryNative.

2.4.0 #

  • Add new native implementation based on new js_interop and web package.
  • Allow wasm compilation for web support (legacy implementation is still available for now by importing explicitly idb_shim_client_native_html.dart)

2.3.2 #

  • Add new cursor stream extension in utils/idb_cursor_utils.dart to convert a stream to a list that supports offset and limit.

2.3.1 #

  • Dart 3 support

2.3.0+2 #

  • Support strict-casts mode.

2.2.0+8 #

  • Fix keyPath array index creation
  • mimic Chrome and prevent cursor delete when using openKeyCursor and invalid KeyRange
  • composite key support: allow keyPath as List
  • add cursorToPrimaryKeyList() and cursorToKeyList utility in idb_utils

2.1.0 #

  • Fix io implementation for generated key internal storage
  • Requires dart 2.18+

2.0.1+1 #

  • New lint supports
  • Requires dart 2.14+

2.0.0+2 #

  • nnbd supports, breaking change.
  • No longer supports null for record value.
  • Remove deprecated methods.

1.12.2+3 #

  • Add support for Transaction.abort
  • Allow read/write during open transaction.

1.12.1+1 #

  • Add ObjectStore.getAll/getAllKeys and Index.getAll/getAllKeys
  • Fix import/export through sembast

1.11.1+1 #

  • Export idbFactoryNative, idbFactoryMemory and idbFactoryMemoryFs in idb_shim.dart
  • Allow safe import of idb_shim.dart on web and io.

1.11.0 #

  • Add support for DateTime and Uint8List,
  • fix meta export to always save the same order for stores and indecies

1.10.3+1 #

  • Support keyPath array for index

1.10.2 #

  • Pedantic 1.9

1.10.1 #

  • Add support for idb_sqflite, an implementation for flutter mobile on top of sqflite
  • Add support for service worker self.indexedDB

1.9.0 #

  • Deprecates old names (sorry) and websql
  • Fix update/delete in index cursor for sembast
  • Sdk 2.4 min

1.8.0+3 #

  • Sdk 2.5 support

1.7.6+1 #

  • add support for ObjectStore.openKeyCursor

1.7.5 #

  • Supports dart 2.3

1.7.4 #

  • Supports multiEntry for sembast implementation
  • Fix cursor update with keyPath for sembast

1.7.3 #

  • Fix dot support in keyPath to match native behavior

1.7.2 #

  • Dart 2.2 support, Dart 2.1 compatible

1.7.0 #

  • remove websql support
  • support keyPath as array

1.6.0 #

  • dart2 only, no websql yet

1.5.0 #

  • Dart2 compatible (except websql shim)
  • Depends on sembast 1.7.0

1.4.2 #

  • Add implicit-cast: false support

1.4.0 #

  • Depends on sembast 1.4.0

1.3.6 #

  • Add IdbFactory.cmp

1.3.5 #

  • Simulate multistore transaction on Safari

1.3.3 #

  • Add support for import/export (sembast export format)
  • Fix timing to mimic IE limitation
  • Add workaround for transaction bug in sdk 1.13

1.3.2 #

  • Fix implementation for IE/Edge where the transaction life-cycle is shorter

1.3.1 #

  • Add support for ObjectStore.deleteIndex

1.2.1 #

  • Fix openCursor for Index that included null key before (sembast)
  • Travis test integration

1.0.0 #

  • Initial revision
39
likes
160
points
130k
downloads

Documentation

API reference

Publisher

verified publishertekartik.com

Weekly Downloads

indexed_db dart base interface with implementation for native (browser), file (io) and in memory.

Repository (GitHub)
View/report issues

Topics

#nosql #database

License

BSD-2-Clause (license)

Dependencies

collection, meta, path, sembast, synchronized, web

More

Packages that depend on idb_shim