WatermelonDB v0.11.0 Release Notes

Release Date: 2019-03-12 // about 5 years ago
  • ๐Ÿ’ฅ Breaking

    • โš ๏ธ Potentially BREAKING fix: a @date field now returns a Jan 1, 1970 date instead of null if the field's raw value is 0. This is considered a bug fix, since it's unexpected to receive a null from a getter of a field whose column schema doesn't say isOptional: true. However, if you relied on this behavior, this might be a breaking change.
    • โš ๏ธ BREAKING: Database.unsafeResetDatabase() now requires that you run it inside an Action

    ๐Ÿ› Bug fixes

    • ๐Ÿ”€ [Sync] Fixed an issue where synchronization would continue running despite unsafeResetDatabase being called
    • [Android] fix compile error for kotlin 1.3+

    Other changes

    • Actions are now aborted when unsafeResetDatabase() is called, making reseting database a little bit safer
    • โšก๏ธ Updated demo dependencies
    • ๐ŸŒ LokiJS is now a dependency of WatermelonDB (although it's only required for use on the web)
    • ๐Ÿšš [Android] removed unused test class
    • โšก๏ธ [Android] updated ktlint to 0.30.0