Releases: QuickBlox/quickblox-javascript-sdk
2.10.0
Improvements / Updated:
- Add the opportunity to choose crypto standard (sha1, sha256);
By default, uses sha1. If you want to use sha256 addhashproperty to config;
var CONFIG = {
debug: {mode: 1},
hash: 'sha256'
};
QB.init(3477, 'ChRnwEJ3WzxH9O4', 'AS546kpUQ2tfbvv', CONFIG);2.9.0
Added:
-
Add possibility to set a bandwidth limit for the video call.
Set the bandwidth at create sssion byQB.webrtc.createNewSession(calleesIds, sessionType, callerID, { bandwidth: Number });. -
Add DELETE Custom Object by criteria by updated a method QB.data.delete.
Now the method takesQB.data.delete(className, {string|array|object}, callback)where second parameter an id (String) or a list of ids (Array) or criteria rules (Object) to delete.
Check out docs for more details;
Updated:
-
Normalize an answer on DELETE Custom Object by criteria for any passed types.
Check out docs for more details; -
Update QB.webrtc.onCallStatsReport(session, userId, stats, error) listener;
Samples:
-
Add ability set credentials and endpoints by search param of URL in webRTC sample:
https//:www.host.com/?appId={Number}&authKey={String}&authSecret={String}&endpoints.api={String}&endpoints.chat={String}.
Also remove production configuration/app and leave stage app configuration; -
Add a bandwidth configuration to WebRTC sample;
-
Remove code for "Hack for Firefox" (https://bugzilla.mozilla.org/show_bug.cgi?id=852665) cause we are support FF52+ now;
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 withbuildNotMinifiedtask;
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 withbuildNotMinifiedtask;
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;