All notable changes to this project will be documented in this file.
- BREAKING: Table column
last_modified
is no longer automatically added to all database tables. If you don't use this column (e.g. in your custom sync code), you don't have to do anything. If you do, manually add this column to all table definitions in your Schema:Don't bump schema version or write a migration for this.{ name: 'last_modified', type: 'number', isOptional: true }
- [WIP] Sync primitives
- Added
Q.like
- you can now make queries similar to SQLLIKE
- Added
DatabaseProvider
andwithDatabase
Higher-Order Component to reduce prop drilling - Added experimental Actions API. This will be documented in a future release.
- Fixes crash on older Android React Native targets without
jsc-android
installed
- [Schema] Column type 'bool' is deprecated — change to 'boolean'
- Added support for Schema Migrations. See documentation for more details.
- Added fundaments for integration of Danger with Jest
- Fixed "dependency cycle" warning
- [SQLite] Fixed rare cases where database could be left in an unusable state (added missing transaction)
- [Flow] Fixes
oneOf()
typing and some other variance errors - [React Native] App should launch a little faster, because schema is only compiled on demand now
- Fixed typos in README.md
- Updated Flow to 0.85
- The
@nozbe/watermelondb/babel/cjs
/@nozbe/watermelondb/babel/esm
Babel plugin that ships with Watermelon is deprecated and no longer necessary. Delete it from your Babel config as it will be removed in a future update
- Removed dependency on
async
(Web Worker should be ~30KB smaller) - Refactored
Collection
andsimpleObserver
for getting changes in an array and also adds CollectionChangeTypes for differentiation between different changes - Updated dependencies
- Simplified build system by using relative imports
- Simplified build package by outputting CJS-only files
- Added iOS and Android integration tests and lint checks to TravisCI
- Changed Flow setup for apps using Watermelon - see docs/Advanced/Flow.md
- Improved documentation, and demo code
- Updated dependencies
- Add quotes to all names in sql queries to allow keywords as table or column names
- Fixed running model tests in apps with Watermelon in the loop
- Fixed Flow when using Watermelon in apps
Initial release of WatermelonDB