Releases: kuzzleio/sdk-javascript
Releases · kuzzleio/sdk-javascript
Put verb replaced in SDK
Put verb replaced in SDK according to kuzzle version 0.12.0
1.3.9
- 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
andloginExpiresIn
Kuzzle properties. - The
Kuzzle
object 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
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
1.3.7
1.3.6
- Fixed login method
1.3.5
1.3.4
Kuzzle.login
andKuzzle.logout
are now promisified- Made the
expiresIn
argument of theKuzzle.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
- added the new
Kuzzle.getServerInfo
method. See geterverInfo - added the new
Kuzzle.listIndexes
method. See listIndexes - added a new optional
index
argument to theKuzzle.listCollections
method. If noindex
is specified, takes thedefaultIndex
property. If no default index is found, throws an error. See listCollections
1.3.1
Kuzzle 0.9 compatibility
- Added support for user authentication (see the documentation about the login and logout methods)
- Updated the SDK to match the new Kuzzle 0.9 API responses format
- Changed the way the SDK handles the
index
argument (see the kuzzle constructor documentation)
1.2.0
⚠️ Movedindex
from the Kuzzle's constructor options to mandatory arguments- Updated unit tests accordingly
KuzzleDataMapping.refresh
now check if a mapping was found before assigning the result to the internal storage- Bugfix:
KuzzleDataMapping.refresh
was looking for themainindex
index instead ofKuzzle.index