@twilio/conversations 2.2.0-rc.11 → 2.2.0-rc.12

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 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.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
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * Fix 2.2.0 release blockers ([f54f564](https://github.com/twilio/rtd-sdk-monorepo-js/commit/f54f56421d7e8f14476abfbf6a315a84d203c88c))
12
+ * Fix faulty event emits on token update. RTDSDK-3699 ([4c40f39](https://github.com/twilio/rtd-sdk-monorepo-js/commit/4c40f39334ab6a62379c4b5c25c6a4f8cc168959))
13
+
14
+
15
+
6
16
  ## [2.2.0-rc.11](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@2.2.0-rc.10...@twilio/conversations@2.2.0-rc.11) (2022-07-26)
7
17
 
8
18
  **Note:** Version bump only for package @twilio/conversations
package/README.md CHANGED
@@ -50,7 +50,7 @@ client.on('stateChanged', ({ state, error }) => {
50
50
  Releases of `twilio-conversations.js` are hosted on a CDN, and you can include these
51
51
  directly in your web app using a `<script>` tag.
52
52
  ```html
53
- <script src="https://media.twiliocdn.com/sdk/js/conversations/v3.0/twilio-conversations.min.js"></script>
53
+ <script src="https://media.twiliocdn.com/sdk/js/conversations/v2.2/twilio-conversations.min.js"></script>
54
54
  ```
55
55
  Using this method, `twilio-conversations.js` will set a browser global `Twilio.Conversations` through which you can use the client:
56
56
  ```
@@ -68,7 +68,7 @@ number. While less flexible it is significantly more secure, which is required b
68
68
  To consume securely use the following script snippet format:
69
69
 
70
70
  ```html
71
- <script src="https://media.twiliocdn.com/sdk/js/conversations/releases/3.0.0/twilio-conversations.min.js"
71
+ <script src="https://media.twiliocdn.com/sdk/js/conversations/releases/2.2.0/twilio-conversations.min.js"
72
72
  integrity="sha256-<HASH FROM THE CHANGELOGS PAGE>"
73
73
  crossorigin="anonymous"></script>
74
74
  ```
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.11";
7329
+ var version = "2.2.0-rc.12";
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
 
@@ -7939,11 +7939,11 @@ exports.Client = Client_1 = (_class = /*#__PURE__*/function (_ReplayEventEmitter
7939
7939
  });
7940
7940
  };
7941
7941
 
7942
- _this._services.twilsockClient.on("connectionError", emitFailed);
7942
+ _this._services.twilsockClient.once("connectionError", emitFailed);
7943
7943
 
7944
- _this._services.twilsockClient.on("disconnected", emitDisconnected);
7944
+ _this._services.twilsockClient.once("disconnected", emitDisconnected);
7945
7945
 
7946
- _this._services.twilsockClient.on("connected", /*#__PURE__*/_asyncToGenerator__default["default"]( /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee() {
7946
+ _this._services.twilsockClient.once("connected", /*#__PURE__*/_asyncToGenerator__default["default"]( /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee() {
7947
7947
  var startupEvent, connectionError;
7948
7948
  return _regeneratorRuntime__default["default"].wrap(function _callee$(_context) {
7949
7949
  while (1) {