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 withmodel.batch(...)
) - [Decorators]. You can now use
@action
on methods of any object that has adatabase: Database
property, and@field @children @date @relation @immutableRelation @json @text @nochange
decorators on any object with aasModel: Model
property. - ๐ [Sync] Adds a temporary/experimental
_unsafeBatchPerCollection: true
flag tosynchronize()
. 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.