WatermelonDB v0.22 Release Notes

Release Date: 2021-05-07 // almost 3 years ago
  • ๐Ÿ’ฅ BREAKING CHANGES

    • [SQLite] experimentalUseJSI: true option has been renamed to jsi: true

    ๐Ÿ—„ Deprecations

    • ๐Ÿšš [LokiJS] Q.unsafeLokiFilter is now deprecated and will be removed in a future version. Use Q.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 and onIndexedDBFetchStart fields to LokiAdapterOptions; fixes TS error - @3DDario
    • ๐Ÿšš [Typescript] Removed duplicated identifiers useWebWorker and useIncrementalIndexedDB in LokiAdapterOptions - @3DDario
    • 0๏ธโƒฃ [Typescript] Fix default export in logger util