Skip to content

2.1.0

Compare
Choose a tag to compare
@stafyniaksacha stafyniaksacha released this 19 Sep 15:22
· 1432 commits to master since this release

Breaking Changes

  • KuzzleDataCollection constructor signature has been changed from:
    KuzzleDataCollection(kuzzle, index, collection)
    to:
    KuzzleDataCollection(kuzzle, collection, index)
    This has been done to make it on par with the Kuzzle.dataCollectionFactory method #109
  • Subscription changes: #112
    • KuzzleDataCollection.subscribe and KuzzleDocument.subscribe now both return an object containing an onDone method, allowing to chain callback registrations. These callbacks are called once the subscription is done, with the following arguments: callback(error, kuzzleRoomObject).
    • KuzzleRoom.renew now accepts an optional callback as its last argument. This callback is invoked with the subscription result (the first callback argument is still only invoked whenever a notification is received)

Bugfixes

  • Handles WebSocket disconnection error code (#110) #111

Other changes

  • Normalized return values #108