You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Made/Proposed 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.
- new callback `onKickOccupant(dialogId, initiatorUserId)` to handle a case where User2 joined chat dialog and User1 removed him from occupants;
TODO: Is this method describe by JSDOC?
- new callbacks `onJoinOccupant(dialogId, userId)` and `onLeaveOccupant(dialogId, userId)` to handle group dialog changes;
TODO: Is this method describe by JSDOC?
## 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-- )
**How should this be manually tested?**
do 'npm install' and run tests;
**Does the documentation need an update?**
- to describe new callback functionality onKickOccupant(dialogId, initiatorUserId);
- to describe new callback functionality onJoinOccupant(dialogId, userId);
- to describe new callback functionality onLeaveOccupant(dialogId, userId);
Copy file name to clipboardExpand all lines: README.md
+5-7Lines changed: 5 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -15,28 +15,26 @@ The QuickBlox JavaScript SDK provides a JavaScript library making it even easier
15
15
16
16
For the library to work, you need to include either [jQuery](http://jquery.com/) or [Zepto](http://zeptojs.com/) in your html before `quickblox.min.js`, like so:
17
17
18
-
For correct work of JS SDK you must include the library in your html before `quickblox.min.js`, like so:
Begin with version 2.5.0 no dependencies for work correctly is not needed.
23
+
Beginning with version 2.5.0, no dependencies are need for the QuickBlox SDK to work correctly.
26
24
27
25
## Bower and RequireJS
28
26
29
-
If you use bower package manager for your project, you can install JS SDK through bower:
27
+
If you use the bower package manager for your project, you can install the JS SDK through bower:
30
28
31
29
```
32
30
bower install quickblox --save
33
31
```
34
32
35
-
When you use **RequireJS**, you are able to use quickblox as AMD module. SDK supports [UMD (Universal Module Definition)](https://github.com/umdjs/umd) pattern for JavaScript modules. So it is possible to use SDK everywhere (as browser global variable, with AMD module loader like RequireJS or as CommonJS module for Node.js environment).
33
+
When you use **RequireJS**, you are able to use QuickBlox as an AMD compliant module. The SDK supports the [UMD (Universal Module Definition)](https://github.com/umdjs/umd) pattern for JavaScript modules, so it is possible to use the SDK everywhere (as a global variable in the browser via an AMD module loader like RequireJS or as a CommonJS module in a Node.js environment).
36
34
37
35
## Node.js and NPM integration
38
36
39
-
Also you can use QuickBlox JavaScript SDK with server-side applications on NodeJS through the native node package. Just install the package in your application project like that:
37
+
Also you can use QuickBlox JavaScript SDK with server-side applications on NodeJS through the native node package. Just install the package in your application project like this:
0 commit comments