@twilio/conversations 2.0.1-rc.1 → 2.0.1-rc.5
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 +36 -0
- package/README.md +4 -12
- package/dist/browser.js +2 -2
- package/dist/browser.js.map +1 -1
- package/dist/docs/index.html +4 -10
- package/dist/docs/modules.html +4 -10
- package/dist/lib.js +2 -2
- package/dist/lib.js.map +1 -1
- package/dist/react-native.js +2 -2
- package/dist/react-native.js.map +1 -1
- package/dist/twilio-conversations.js +5 -5
- package/dist/twilio-conversations.min.js +2 -2
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
@@ -3,6 +3,42 @@
|
|
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.0.1-rc.5](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@2.0.1-rc.4...@twilio/conversations@2.0.1-rc.5) (2021-11-10)
|
7
|
+
|
8
|
+
|
9
|
+
### Bug Fixes
|
10
|
+
|
11
|
+
* Fix the post-install script (yet again) ([c8cb1ee](https://github.com/twilio/rtd-sdk-monorepo-js/commit/c8cb1ee501d1c793497985592d2c1ae97162a219))
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
### [2.0.1-rc.4](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@2.0.1-rc.3...@twilio/conversations@2.0.1-rc.4) (2021-11-09)
|
16
|
+
|
17
|
+
|
18
|
+
### Bug Fixes
|
19
|
+
|
20
|
+
* Fix getChannelBySid returning wrong channels issue ([3eeaf1f](https://github.com/twilio/rtd-sdk-monorepo-js/commit/3eeaf1fc64d77c48305ff7c43b8a92c81e6ead7b))
|
21
|
+
* Fix the post-install script to be runnable cross-platform ([a16eede](https://github.com/twilio/rtd-sdk-monorepo-js/commit/a16eede598dd3dbdda1997fbd2033fa2254f113f))
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
### [2.0.1-rc.3](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@2.0.1-rc.2...@twilio/conversations@2.0.1-rc.3) (2021-10-26)
|
26
|
+
|
27
|
+
|
28
|
+
### Bug Fixes
|
29
|
+
|
30
|
+
* Bump Node required version to current LTS (14) ([ee272b3](https://github.com/twilio/rtd-sdk-monorepo-js/commit/ee272b350f4556a454a18a8aa192c37b54aaaeeb))
|
31
|
+
|
32
|
+
|
33
|
+
|
34
|
+
### [2.0.1-rc.2](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@2.0.1-rc.1...@twilio/conversations@2.0.1-rc.2) (2021-10-25)
|
35
|
+
|
36
|
+
**Note:** Version bump only for package @twilio/conversations
|
37
|
+
|
38
|
+
|
39
|
+
|
40
|
+
|
41
|
+
|
6
42
|
### [2.0.1-rc.1](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@2.0.1-rc.0...@twilio/conversations@2.0.1-rc.1) (2021-10-22)
|
7
43
|
|
8
44
|
**Note:** Version bump only for package @twilio/conversations
|
package/README.md
CHANGED
@@ -7,7 +7,7 @@ Visit our official site for more detalis: [https://www.twilio.com/conversations]
|
|
7
7
|
|
8
8
|
Instantiating and using
|
9
9
|
------------
|
10
|
-
To use the library you need [to generate a token](https://www.twilio.com/docs/conversations/create-tokens) and pass it to the
|
10
|
+
To use the library you need [to generate a token](https://www.twilio.com/docs/conversations/create-tokens) and pass it to the Conversations Client constructor.
|
11
11
|
|
12
12
|
### NPM
|
13
13
|
```
|
@@ -48,17 +48,9 @@ directly in your web app using a `<script>` tag.
|
|
48
48
|
```html
|
49
49
|
<script src="https://media.twiliocdn.com/sdk/js/conversations/v2.0/twilio-conversations.min.js"></script>
|
50
50
|
```
|
51
|
-
Using this method, `twilio-conversations.js` will set a browser global `Twilio.Conversations` through which you can use the client
|
51
|
+
Using this method, `twilio-conversations.js` will set a browser global `Twilio.Conversations` through which you can use the client:
|
52
52
|
```
|
53
|
-
Twilio.Conversations.Client
|
54
|
-
// Use client
|
55
|
-
});
|
56
|
-
```
|
57
|
-
|
58
|
-
or, if you prefer `async`/`await` syntax:
|
59
|
-
```
|
60
|
-
let client = await Twilio.Conversations.Client.create(token);
|
61
|
-
// Use client
|
53
|
+
const client = new Twilio.Conversations.Client(token);
|
62
54
|
```
|
63
55
|
|
64
56
|
### Security
|
@@ -72,7 +64,7 @@ number. While less flexible it is significantly more secure, which is required b
|
|
72
64
|
To consume securely use the following script snippet format:
|
73
65
|
|
74
66
|
```html
|
75
|
-
<script src="https://media.twiliocdn.com/sdk/js/conversations/releases/2.0.
|
67
|
+
<script src="https://media.twiliocdn.com/sdk/js/conversations/releases/2.0.1/twilio-conversations.min.js"
|
76
68
|
integrity="sha256-<HASH FROM THE CHANGELOGS PAGE>"
|
77
69
|
crossorigin="anonymous"></script>
|
78
70
|
```
|
package/dist/browser.js
CHANGED
@@ -5678,7 +5678,7 @@ var Conversations = /*#__PURE__*/function (_ReplayEventEmitter) {
|
|
5678
5678
|
conversationsMap = _context4.sent;
|
5679
5679
|
_context4.next = 5;
|
5680
5680
|
return conversationsMap.getItems({
|
5681
|
-
|
5681
|
+
key: sid
|
5682
5682
|
});
|
5683
5683
|
|
5684
5684
|
case 5:
|
@@ -6599,7 +6599,7 @@ function PushNotification(data) {
|
|
6599
6599
|
this.data = data.data || {};
|
6600
6600
|
};
|
6601
6601
|
|
6602
|
-
var version = "2.0.1-rc.
|
6602
|
+
var version = "2.0.1-rc.5";
|
6603
6603
|
|
6604
6604
|
function ownKeys$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
6605
6605
|
|