WatermelonDB v0.12.2 Release Notes

Release Date: 2019-04-19 // about 5 years ago
  • ๐Ÿ›  Fixes

    • [TypeScript] 'Cannot use 'in' operator to search for 'initializer'; decorator fix

    ๐Ÿ”„ Changes

    • [Database] You can now pass falsy values to Database.batch(...) (false, null, undefined). This is useful in keeping code clean when doing operations conditionally. (Also works with model.batch(...))
    • [Decorators]. You can now use @action on methods of any object that has a database: Database property, and @field @children @date @relation @immutableRelation @json @text @nochange decorators on any object with a asModel: Model property.
    • ๐Ÿ”€ [Sync] Adds a temporary/experimental _unsafeBatchPerCollection: true flag to synchronize(). This causes server changes to be committed to database in multiple batches, and not one. This is NOT preferred for reliability and performance reasons, but it works around a memory issue that might cause your app to crash on very large syncs (>20,000 records). Use this only if necessary. Note that this option might be removed at any time if a better solution is found.