- [LokiJS]
useWebWorker
anduseIncrementalIndexedDB
options are now required (previously, skipping them would only trigger a warning)
- [Model]
Model.update
method now returns updated record - [adapters]
onSetUpError: Error => void
option is added to bothSQLiteAdapter
andLokiJSAdapter
. Supply this option to catch initialization errors and offer the user to reload or log out - [LokiJS] new
extraLokiOptions
andextraIncrementalIDBOptions
options - [Android] Autolinking is now supported (v0.20 is insufficient)
- [Sync] Optional
log
passed to sync now has more helpful diagnostic information - [Sync] Open-sourced a simple SyncLogger you can optionally use. See docs for more info.
- [SQLiteAdapter]
synchronous:true
option is now deprecated and will be replaced withexperimentalUseJSI: true
in the future. Please test if your app compiles and works well withexperimentalUseJSI: true
, and if not - file an issue! - [LokiJS] Changed default autosave interval from 250 to 500ms
- [Typescript] Add
experimentalNestedJoin
definition andunsafeSqlExpr
clause
- [Resilience] Added extra diagnostics for when you encounter the
Record ID aa#bb was sent over the bridge, but it's not cached
error and a recovery path (LokiJSAdapter-only). Please file an issue if you encounter this issue! - [Typescript] Fixed type on OnFunction to accept
and
in join - [Typescript] Fixed type
database#batch(records)
's argumentrecords
to accept mixed types
- Added an experimental mode where a broken database state is detected, further mutations prevented, and the user notified
- Added an experimental mode that attempts to fix IndexedDB corruption issue & improves launch performance