Releases: QuickBlox/quickblox-javascript-sdk
2.8.1
Fixed:
- the Fetch API (if a response is an empty body);
- the header 'Content-Type' in the qbData module;
- the header 'QB-SDK' for REST API requests;
- the QB.chat.message.unreadCount() method;
- the QB.chat.dialog.create() method;
- the QB.users.listUsers() method;
Samples:
- fixes for the Chat Sample:
- fixes for the Sata Sample:
- fixes for the WebRTC Sample:
2.8.0 - NativeScript support
Improvements:
- Added fetch API instead $.ajax() and request() (REST API support for NativeScript);
- Chat adapted for NativeScript enviroments;
- The MessageProxy and the DialogProxy were remove from qbChat.js to separate modules;
Add:
- Add stream management test cases;
- Add link on API ref. in Readme.md.
Fixed:
- Fix TypeError: Cannot read property 'statusCode' of undefined for Node env;
2.7.0
Added:
- Address book functionality;
- Last activity (https://xmpp.org/extensions/xep-0012.html);
QB.chat.getLastUserActivity(userId) - to send query;
QB.chat.onLastUserActivityListener(userId, seconds) - get last user activity;
- Support WebRTC in Safari 11 (experimental);
Updated:
- API Reference:
- QB.addressbook,
- QB.content,
- QB.data,
- QB.pushnotifications,
- QB.user;
- possibilty to get user by phone number;
Removed:
- QB.chat.privacyList.setAsActive();
- QB.content.taggetForCurrentUser();
Samples:
- WebRTC sample - Hide record button if MediaRecorder is unavailable.
2.6.2
Added:
- Added ignores for npm (.npmignore file);
Imporvements:
- Data sample improvements;
Fixed:
- Fixed XML stanza for send message with attachments in nodejs environment;
- Fixed file's size for response from QB.content.createAndUpload(file, callback);
Removed:
- Remove some samples (content, custom object);
2.6.1
Deprecated:
- QB.chat.privacylist.setAsActive() is deprecated;
Fixed:
- issue on the Mozilla Firefox (https://bugzilla.mozilla.org/show_bug.cgi?id=1377434);
- issue with unwrapped custom data to extentions.userInfo, now all custom data set to userInfo object;
Improvement:
- Add work with media in Data sample;
2.6.0
New:
-
new callback
onKickOccupant(dialogId, initiatorUserId)
to handle a case where User2 joined chat dialog and User1 removed him from occupants; -
new callbacks
onJoinOccupant(dialogId, userId)
andonLeaveOccupant(dialogId, userId)
to handle group dialog changes; -
new task
npm run buildNotMinified
; -
Karma/Istanbul code coverage tools. To start use the following comand:
node node_modules/.bin/karma start karma.conf.js
. To see a report look at subdirectory coverage in the default location.
Warning! Before run you need to rebuild sdk withbuildNotMinified
task;
Updated:
- refactored API logs format;
Fixed:
- ability to use multiple QB instances;
- onMessageErrorListener does not work under (Node.js);
- QB.chat.privacylist.delete method does not work (Node.js);
- an issue with recursion when do QB.chat.disconnect inside QB.chat.connect's callback (Node.js);
- QB.users.resetPassword always returns an error;
- QB.chat.privacylist.update method does not work properly when change deny-> allow;
- methods to decline the use of active/privacy lists (QB.chat.privacylist.setAsDefault('', callback) and QB.chat.privacylist.setAsActive('', callback)) does not work properly. Also, now you can pass null instead of empty string '' to decline;
- QB.chat.privacylist.getNames method does not return anything if a user does not have any active/default lists;
- QB.chat.privacylist.getNames returns all names except active/default at names key under Node.js. Made it similar to browser env behaviour;
- QB.chat.muc.listOnlineUsers method not returns an array of integers instead of array of strings.
- Event handlers to be registered with Strophe multiple times ( thanks @ruffin-- );
2.5.5
New:
-
new callback
onKickOccupant(dialogId, initiatorUserId)
to handle a case where User2 joined chat dialog and User1 removed him from occupants; -
new callbacks
onJoinOccupant(dialogId, userId)
andonLeaveOccupant(dialogId, userId)
to handle group dialog changes; -
new task
npm run buildNotMinified
; -
Karma/Istanbul code coverage tools. To start use the following comand:
node node_modules/.bin/karma start karma.conf.js
. To see a report look at subdirectory coverage in the default location.
Warning! Before run you need to rebuild sdk withbuildNotMinified
task;
Updated:
- refactored API logs format;
Fixed:
- ability to use multiple QB instances;
- onMessageErrorListener does not work under (Node.js);
- QB.chat.privacylist.delete method does not work (Node.js);
- an issue with recursion when do QB.chat.disconnect inside QB.chat.connect's callback (Node.js);
- QB.users.resetPassword always returns an error;
- QB.chat.privacylist.update method does not work properly when change deny-> allow;
- methods to decline the use of active/privacy lists (QB.chat.privacylist.setAsDefault('', callback) and QB.chat.privacylist.setAsActive('', callback)) does not work properly. Also, now you can pass null instead of empty string '' to decline;
- QB.chat.privacylist.getNames method does not return anything if a user does not have any active/default lists;
- QB.chat.privacylist.getNames returns all names except active/default at names key under Node.js. Made it similar to browser env behaviour;
- QB.chat.muc.listOnlineUsers method not returns an array of integers instead of array of strings.
- Event handlers to be registered with Strophe multiple times ( thanks @ruffin-- );
2.5.4
Remove:
- qbLocation Module (Use Custom Object);
New:
- chat sample;
Fixed:
- can't login into sample video chat (test and dev) with 1 login name;
- can't reconnect after voluntary disconnect before;
- QB.chat.onContactListListener doesn't fire;
2.5.3
Patch with minified quickblox.min.js;
Nothing changed;
2.5.2
New:
- Added a webrtc-adapter as dependency;
- Added new property to params for QB.chat.connect();
If you don't want to get list of users (roster) pass connectWithoutGettingRoster to QB.chat.connect();
// @example
QB.chat.connect({
userId: user.id,
password: user.pass,
connectWithoutGettingRoster: true
}, function(err) {});
Fixed:
- Broken any chat functionality after lost a connection;
Samples:
- Rewrite a sample of chat. Old version doesn't support and will be removed in next release;