Skip to content

Release 4.4.0

Compare
Choose a tag to compare
@adamchel adamchel released this 31 May 22:36
· 14 commits to master since this release
1054fcd

NOTE: This release has breaking changes for the MongoDB Mobile Sync Beta

  • Mobile sync now uses compact change streams, which should save on network usage for collections with large documents and frequent updates that only affect a few fields.
    • When calling configure on a Sync, the ChangeEventListener will no longer guarantee that the ChangeEvent will have a non-null result for getFullDocument() if the OperationType is UPDATE.
    • When calling configure on a Sync, the signature for ConflictHandler#resolveConflict has changed:
      • It now returns a ConflictResolution. See the documentation for ConflictResolution for more information.
      • The type of the remote event in resolveConflict is now a CompactChangeEvent, to reflect the type of event received from the server. This means that when the remote event is an UPDATE, getFullDocument() will always return null.
  • It is now possible to add a listener/callback on the stream returned by RemoteMongoCollection#watch and RemoteMongoCollection#watchCompact.