Releases: kuzzleio/sdk-javascript
Releases · kuzzleio/sdk-javascript
Added whoAmI method
- Added the
kuzzle.whoAmIto access current user information
1.4.1
- added the new
checkTokenfunction - when a subscription receives a
jwtTokenExpirednotification, an eventjwtTokenExpiredis 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
jwtTokenproperty when encountering ajwtTokenExpirederror or notification - updated the travis build so that the
distfolder is only generated when building themasterbranch
Put verb replaced in SDK
Put verb replaced in SDK according to kuzzle version 0.12.0
1.3.9
- created the
renewAllSubscriptionsinternal function and replaced all subscriptions renewals by a call to this function, to avoid repetition of code - created the
emitEventinternal function and replaced all event emissions by a call to this function, to avoid repetition of code - removed
loginStrategy,loginCredentialsandloginExpiresInKuzzle properties. - The
Kuzzleobject does not login automatically anymore. An explicit call toKuzzle.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
KuzzleRoomobject, 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
1.3.7
1.3.6
- Fixed login method
1.3.5
1.3.4
Kuzzle.loginandKuzzle.logoutare now promisified- Made the
expiresInargument of theKuzzle.loginmethod optional - Bugfix: the
loginExpiresInproperty took only a number option. Now it also accepts a string one - Added unit tests
- Made
KuzzleDataCollection.documentFactorywork according to the SDK documentation
1.3.2: Merge pull request #40 from kuzzleio/serverInfo
- added the new
Kuzzle.getServerInfomethod. See geterverInfo - added the new
Kuzzle.listIndexesmethod. See listIndexes - added a new optional
indexargument to theKuzzle.listCollectionsmethod. If noindexis specified, takes thedefaultIndexproperty. If no default index is found, throws an error. See listCollections