@twilio/conversations 2.2.0 → 2.2.1

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,24 @@
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.1](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@2.2.1-rc.0...@twilio/conversations@2.2.1) (2022-11-24)
7
+
8
+ **Note:** Version bump only for package @twilio/conversations
9
+
10
+
11
+
12
+
13
+
14
+ ### [2.2.1-rc.0](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@2.2.0...@twilio/conversations@2.2.1-rc.0) (2022-11-21)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * Fix Client.getConversationBySid displaying faulty deprecation warnings ([38c9c61](https://github.com/twilio/rtd-sdk-monorepo-js/commit/38c9c61870888d3fcaa2740e67c6110fe73edd41))
20
+ * Fix encapsulation of Client.peekConversationBySid ([424dff1](https://github.com/twilio/rtd-sdk-monorepo-js/commit/424dff12051e5b13fdb1efa94b97a28661e67a63))
21
+
22
+
23
+
6
24
  ## [2.2.0](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@2.2.0-rc.15...@twilio/conversations@2.2.0) (2022-09-22)
7
25
 
8
26
  **Note:** Version bump only for package @twilio/conversations
package/README.md CHANGED
@@ -24,7 +24,7 @@ const client = new Client(token);
24
24
  // Before you use the client, subscribe to the `'initialized'` event.
25
25
  client.on('initialized', () => {
26
26
  // Use the client.
27
- }
27
+ });
28
28
 
29
29
  // To catch client initialization errors, subscribe to the `'initFailed'` event.
30
30
  client.on('initFailed', ({ error }) => {
@@ -41,7 +41,7 @@ const client = new Client(token);
41
41
  // Before you use the client, subscribe to the `'initialized'` event.
42
42
  client.on('initialized', () => {
43
43
  // Use the client.
44
- }
44
+ });
45
45
 
46
46
  // To catch client initialization errors, subscribe to the `'initFailed'` event.
47
47
  client.on('initFailed', ({ error }) => {
package/builds/browser.js CHANGED
@@ -7329,7 +7329,7 @@ function PushNotification(data) {
7329
7329
  this.data = data.data || {};
7330
7330
  });
7331
7331
 
7332
- var version = "2.2.0";
7332
+ var version = "2.2.1";
7333
7333
 
7334
7334
  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; }
7335
7335
 
@@ -8186,13 +8186,16 @@ exports.Client = Client_1 = (_class = /*#__PURE__*/function (_ReplayEventEmitter
8186
8186
  break;
8187
8187
  }
8188
8188
 
8189
- deprecationDecorator.deprecationWarning("The method getConversationBySid is deprecated to retrieve conversations you're not part of. Use peekConversationBySid instead.");
8190
- _context4.next = 11;
8189
+ _context4.next = 10;
8191
8190
  return this.peekConversationBySid(conversationSid);
8192
8191
 
8193
- case 11:
8192
+ case 10:
8194
8193
  conversation = _context4.sent;
8195
8194
 
8195
+ if (conversation) {
8196
+ deprecationDecorator.deprecationWarning("The method getConversationBySid is deprecated to retrieve conversations you're not part of. Use peekConversationBySid instead.");
8197
+ }
8198
+
8196
8199
  case 12:
8197
8200
  if (conversation) {
8198
8201
  _context4.next = 14;