@twilio/conversations 2.2.0-rc.12 → 2.2.0-rc.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/README.md +20 -16
- package/builds/browser.js +2 -5
- package/builds/browser.js.map +1 -1
- package/builds/lib.d.ts +1 -4
- package/builds/lib.js +2 -5
- package/builds/lib.js.map +1 -1
- package/builds/twilio-conversations.js +15 -10
- package/builds/twilio-conversations.min.js +1 -1
- package/dist/client.js +1 -4
- package/dist/client.js.map +1 -1
- package/dist/packages/conversations/package.json.js +1 -1
- package/docs/classes/Client.html +0 -4
- package/docs/index.html +20 -16
- package/docs/modules.html +20 -16
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
@@ -3,6 +3,16 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
5
5
|
|
6
|
+
## [2.2.0-rc.13](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@2.2.0-rc.12...@twilio/conversations@2.2.0-rc.13) (2022-09-13)
|
7
|
+
|
8
|
+
|
9
|
+
### Bug Fixes
|
10
|
+
|
11
|
+
* Remove unused parameter from initialized event ([de54b9e](https://github.com/twilio/rtd-sdk-monorepo-js/commit/de54b9ec29ad358bcb6d946fb96e4fc4be3f45ce))
|
12
|
+
* SyncError getting minified. RTDSDK-3717 ([0b99992](https://github.com/twilio/rtd-sdk-monorepo-js/commit/0b99992ed6c684d74c7b19c45956d293aa5662fd))
|
13
|
+
|
14
|
+
|
15
|
+
|
6
16
|
## [2.2.0-rc.12](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@2.2.0-rc.11...@twilio/conversations@2.2.0-rc.12) (2022-08-23)
|
7
17
|
|
8
18
|
|
package/README.md
CHANGED
@@ -18,31 +18,35 @@ Using this method, you can `require` `twilio-conversations` and then use the
|
|
18
18
|
client:
|
19
19
|
```
|
20
20
|
const { Client } = require('@twilio/conversations');
|
21
|
+
|
21
22
|
const client = new Client(token);
|
22
|
-
|
23
|
-
//
|
24
|
-
client.on('
|
25
|
-
|
26
|
-
// Use the client
|
27
|
-
}
|
28
|
-
|
29
|
-
if (error) {
|
30
|
-
// Handle error
|
31
|
-
}
|
23
|
+
|
24
|
+
// Before you use the client, subscribe to the `'initialized'` event.
|
25
|
+
client.on('initialized', () => {
|
26
|
+
// Use the client.
|
32
27
|
}
|
28
|
+
|
29
|
+
// To catch client initialization errors, subscribe to the `'initFailed'` event.
|
30
|
+
client.on('initFailed', ({ error }) => {
|
31
|
+
// Handle the error.
|
32
|
+
});
|
33
33
|
```
|
34
34
|
|
35
35
|
The SDK could also be imported using the ES module syntax:
|
36
36
|
```
|
37
37
|
import { Client } from '@twilio/conversations';
|
38
|
+
|
38
39
|
const client = new Client(token);
|
39
|
-
|
40
|
-
//
|
41
|
-
client.on('
|
42
|
-
|
43
|
-
// Use the client
|
44
|
-
}
|
40
|
+
|
41
|
+
// Before you use the client, subscribe to the `'initialized'` event.
|
42
|
+
client.on('initialized', () => {
|
43
|
+
// Use the client.
|
45
44
|
}
|
45
|
+
|
46
|
+
// To catch client initialization errors, subscribe to the `'initFailed'` event.
|
47
|
+
client.on('initFailed', ({ error }) => {
|
48
|
+
// Handle the error.
|
49
|
+
});
|
46
50
|
```
|
47
51
|
|
48
52
|
### CDN
|
package/builds/browser.js
CHANGED
@@ -7326,7 +7326,7 @@ function PushNotification(data) {
|
|
7326
7326
|
this.data = data.data || {};
|
7327
7327
|
});
|
7328
7328
|
|
7329
|
-
var version = "2.2.0-rc.
|
7329
|
+
var version = "2.2.0-rc.13";
|
7330
7330
|
|
7331
7331
|
function ownKeys$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
7332
7332
|
|
@@ -7738,9 +7738,6 @@ exports.Client = Client_1 = (_class = /*#__PURE__*/function (_ReplayEventEmitter
|
|
7738
7738
|
|
7739
7739
|
/**
|
7740
7740
|
* Fired when the client has completed initialization successfully.
|
7741
|
-
*
|
7742
|
-
* Parameters:
|
7743
|
-
* 1. object `data` - Optional info object provided with the event
|
7744
7741
|
* @event
|
7745
7742
|
*/
|
7746
7743
|
|
@@ -8806,7 +8803,7 @@ exports.Client = Client_1 = (_class = /*#__PURE__*/function (_ReplayEventEmitter
|
|
8806
8803
|
this._resolveEnsureReady();
|
8807
8804
|
|
8808
8805
|
this.emit("stateChanged", "initialized");
|
8809
|
-
this.emit("initialized"
|
8806
|
+
this.emit("initialized");
|
8810
8807
|
|
8811
8808
|
case 34:
|
8812
8809
|
case "end":
|