- [LokiJS]
useWebWorkeranduseIncrementalIndexedDBoptions are now required (previously, skipping them would only trigger a warning)
- [Model]
Model.updatemethod now returns updated record - [adapters]
onSetUpError: Error => voidoption is added to bothSQLiteAdapterandLokiJSAdapter. Supply this option to catch initialization errors and offer the user to reload or log out - [LokiJS] new
extraLokiOptionsandextraIncrementalIDBOptionsoptions - [Android] Autolinking is now supported (v0.20 is insufficient)
- [Sync] Optional
logpassed 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:trueoption is now deprecated and will be replaced withexperimentalUseJSI: truein 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
experimentalNestedJoindefinition andunsafeSqlExprclause
- [Resilience] Added extra diagnostics for when you encounter the
Record ID aa#bb was sent over the bridge, but it's not cachederror and a recovery path (LokiJSAdapter-only). Please file an issue if you encounter this issue! - [Typescript] Fixed type on OnFunction to accept
andin join - [Typescript] Fixed type
database#batch(records)'s argumentrecordsto 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