What's Changed
- Added:
SyncMetadata.IDand new interfaces for querying sync metadata (#271):// Fetch sync metadata for a given record: SyncMetadata.find(record.syncMetadataID) // Join sync metadata for a given query: Record.leftJoin(SyncMetadata.all) { $0.syncMetadataID.eq($1.id) }
- Added:
SyncEngine.fetchChanges,sendChanges, andsyncChanges(#286). - Fixed: Support
attachMetadatabasein previews (#267). - Fixed: Use metadatabase to query sync metadata to prevent error when sync engine has not explicitly attached the metadata base (#270).
- Fixed: Restrict mutation to sync metadata fields (#276).
- Fixed: Resolve a bug that could reset the timestamp of record when sharing it (#278).
- Fixed: Address a compiler error when introducing
CK{Record,Share}representations to selections and database functions (#283, #284).
Full Changelog: 1.2.0...1.3.0