WatermelonDB v0.22 Release Notes
Release Date: 2021-05-07 // almost 3 years ago-
๐ฅ BREAKING CHANGES
- [SQLite]
experimentalUseJSI: true
option has been renamed tojsi: true
๐ Deprecations
- ๐ [LokiJS]
Q.unsafeLokiFilter
is now deprecated and will be removed in a future version. UseQ.unsafeLokiTransform((raws, loki) => raws.filter(raw => ...))
instead.
๐ New features
- ๐ [SQLite] [JSI]
jsi: true
now works on Android - see docs for installation info
๐ Performance
- โ Removed dependency on rambdax and made the util library smaller
- Faster withObservables
๐ Changes
- ๐ Synchronization:
pushChanges
is optional, will not calculate local changes if not specified. - โก๏ธ withObservables is now a dependency of WatermelonDB for simpler installation and consistent updates. You can (and generally should) delete
@nozbe/with-observables
from your app's package.json - ๐ [Docs] Add advanced tutorial to share database across iOS targets - @thiagobrez
- [SQLite] Allowed callbacks (within the migrationEvents object) to be passed so as to track the migration events status ( onStart, onSuccess, onError ) - @avinashlng1080
- [SQLite] Added a dev-only
Query._sql()
method for quickly extracting SQL from Queries for debugging purposes
๐ Fixes
- Non-react statics hoisting in
withDatabase()
- ๐ Fixed incorrect reference to
process
, which can break apps in some environments (e.g. webpack5) - ๐ [SQLite] [JSI] Fixed JSI mode when running on Hermes
- ๐ Fixed a race condition when using standard fetch methods alongside
Collection.unsafeFetchRecordsWithSQL
- @jspizziri - withObservables shouldn't cause any RxJS issues anymore as it no longer imports RxJS
- ๐ [Typescript] Added
onSetUpError
andonIndexedDBFetchStart
fields toLokiAdapterOptions
; fixes TS error - @3DDario - ๐ [Typescript] Removed duplicated identifiers
useWebWorker
anduseIncrementalIndexedDB
inLokiAdapterOptions
- @3DDario - 0๏ธโฃ [Typescript] Fix default export in logger util
- [SQLite]