Skip to content

Releases: kuzzleio/sdk-javascript

Added whoAmI method

04 Feb 14:37
Compare
Choose a tag to compare
  • Added the kuzzle.whoAmI to access current user information

1.4.1

04 Feb 10:01
Compare
Choose a tag to compare
  • added the new checkToken function
  • when a subscription receives a jwtTokenExpired notification, an event jwtTokenExpired is fired
  • added a timer to events: the same event can't be fired multiple times if it has been fired before the timeout is reached
  • empties the jwtToken property when encountering a jwtTokenExpired error or notification
  • updated the travis build so that the dist folder is only generated when building the master branch

Put verb replaced in SDK

02 Feb 09:43
Compare
Choose a tag to compare

Put verb replaced in SDK according to kuzzle version 0.12.0

1.3.9

29 Jan 09:37
Compare
Choose a tag to compare
  • created the renewAllSubscriptions internal function and replaced all subscriptions renewals by a call to this function, to avoid repetition of code
  • created the emitEvent internal function and replaced all event emissions by a call to this function, to avoid repetition of code
  • removed loginStrategy, loginCredentials and loginExpiresIn Kuzzle properties.
  • The Kuzzle object does not login automatically anymore. An explicit call to Kuzzle.login() must be performed
  • Once successfully logged in, all subscriptions are now automatically renewed. This is to avoid having subscriptions not getting notifications anymore because of a token expiration.
  • Added a timer in the KuzzleRoom object, in order to avoid renewals to be executed successively. For instance, when connecting manually to Kuzzle, this call chain would perform 1 unnecessary renewal:
var room = kuzzle
  .dataCollectionFactory('foo', 'bar')
  .subscribe({}, function (err, res) { /* */ });

kuzzle
  .connect()    // <= will trigger a susbcriptions renewal
  .login(...);  // delayed after connect() succeeds. Then triggers a subscriptions renewal.

1.3.8

27 Jan 14:31
Compare
Choose a tag to compare

Removed the KuzzleDataCollection.putMapping method

1.3.7

27 Jan 10:54
Compare
Choose a tag to compare

Fixed a bug where subscriptions made while offline lost the filters argument.

1.3.6

26 Jan 17:04
Compare
Choose a tag to compare
  • Fixed login method

1.3.5

25 Jan 15:33
Compare
Choose a tag to compare

Fixed NPM deployment checksum

1.3.4

20 Jan 17:21
Compare
Choose a tag to compare
  • Kuzzle.login and Kuzzle.logout are now promisified
  • Made the expiresIn argument of the Kuzzle.login method optional
  • Bugfix: the loginExpiresIn property took only a number option. Now it also accepts a string one
  • Added unit tests
  • Made KuzzleDataCollection.documentFactory work according to the SDK documentation

1.3.2: Merge pull request #40 from kuzzleio/serverInfo

15 Jan 13:21
Compare
Choose a tag to compare
  • added the new Kuzzle.getServerInfo method. See geterverInfo
  • added the new Kuzzle.listIndexes method. See listIndexes
  • added a new optional index argument to the Kuzzle.listCollections method. If no index is specified, takes the defaultIndex property. If no default index is found, throws an error. See listCollections