@twilio/conversations 2.0.0-rc.3 → 2.0.0-rc.4

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.
@@ -2269,7 +2269,7 @@ class Conversation extends replayEventEmitter.ReplayEventEmitter {
2269
2269
  * @param attributes Attributes to be attached to the participant.
2270
2270
  */
2271
2271
  async addNonChatParticipant(proxyAddress, address, attributes) {
2272
- return this.participantsEntity.addNonChatParticipant(proxyAddress, address, attributes !== null && attributes !== void 0 ? attributes : {});
2272
+ return this.participantsEntity.addNonChatParticipant(proxyAddress, address, attributes);
2273
2273
  }
2274
2274
  /**
2275
2275
  * Advance the conversation's last read message index to the current read horizon.
@@ -3236,7 +3236,7 @@ class PushNotification {
3236
3236
  }
3237
3237
  }
3238
3238
 
3239
- var version = "2.0.0-rc.3";
3239
+ var version = "2.0.0-rc.4";
3240
3240
 
3241
3241
  const trimSlashes = (url) => url.replace(/(^\/+|\/+$)/g, '');
3242
3242
  const isMutationConflictResponse = (response) => response.status.code === 202;
@@ -3446,6 +3446,13 @@ exports.Client = Client_1 = class Client extends replayEventEmitter.ReplayEventE
3446
3446
  * The factory method will automatically trigger connection.
3447
3447
  * Do not use it if you need finer-grained control.
3448
3448
  *
3449
+ * Since this method returns an already-initialized client, some of the events
3450
+ * will be lost because they happen *before* the initialization. It is
3451
+ * recommended that `client.onWithReplay` is used as opposed to `client.on`
3452
+ * for subscribing to client events. The `client.onWithReplay` will re-emit
3453
+ * the most recent value for a given event if it emitted before the
3454
+ * subscription.
3455
+ *
3449
3456
  * @param token Access token.
3450
3457
  * @param options Options to customize the client.
3451
3458
  * @returns Returns a fully initialized client.