Skip to content

Releases: QuickBlox/quickblox-javascript-sdk

2.10.0

15 Mar 10:45
64db7b1

Choose a tag to compare

Improvements / Updated:

  • Add the opportunity to choose crypto standard (sha1, sha256);
    By default, uses sha1. If you want to use sha256 add hash property to config;
var CONFIG = {
  debug: {mode: 1},
  hash: 'sha256'
};
QB.init(3477, 'ChRnwEJ3WzxH9O4', 'AS546kpUQ2tfbvv', CONFIG);

2.9.0

01 Mar 09:04
2c7b71e

Choose a tag to compare

Added:

  • Add possibility to set a bandwidth limit for the video call.
    Set the bandwidth at create sssion by QB.webrtc.createNewSession(calleesIds, sessionType, callerID, { bandwidth: Number });.

  • Add DELETE Custom Object by criteria by updated a method QB.data.delete.
    Now the method takes QB.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

30 Jan 13:59

Choose a tag to compare

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:

2.8.0 - NativeScript support

04 Jan 15:01
bc05f71

Choose a tag to compare

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

09 Nov 13:44

Choose a tag to compare

Added:

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

11 Oct 09:28

Choose a tag to compare

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

26 Jul 16:08

Choose a tag to compare

Deprecated:

  • QB.chat.privacylist.setAsActive() is deprecated;

Fixed:

Improvement:

  • Add work with media in Data sample;

2.6.0

12 Jun 15:06

Choose a tag to compare

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) and onLeaveOccupant(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 with buildNotMinified 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

12 Jun 15:06

Choose a tag to compare

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) and onLeaveOccupant(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 with buildNotMinified 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

22 May 09:11

Choose a tag to compare

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;