Skip to contentSkip to navigationSkip to topbar
On this page

Changelog: Twilio Conversations JavaScript SDK


(warning)

Warning

The non-secure script link does not validate Sub-Resource Integrity(link takes you to an external page) but will download bug fix releases automatically.

The secure link provides cryptographic protection against any changes in the Twilio SDK code, which may be critical in some applications.


Changelog

changelog page anchor

Conversations 2.6.0 (August 8, 2024)

conversations-260-august-8-2024 page anchor
  • .js(link takes you to an external page) Non-minified Conversations SDK bundled for browsers.
  • SHA-256 for non-minified version 2.6.0: sha256-uJB2mytJUimQ4CydQTCvw4ImbDaAUhBhMM9gdRfGpaw=
  • .min.js(link takes you to an external page) Minified Conversations SDK bundled for browsers.
  • Base64 SHA-256 for minified version 2.6.0: sha256-xPEivoMXimPOKythl5xUKOfcCMcVg8DVl0I2BmKfmqc=
  • npm(link takes you to an external page) Conversations Node.js SDK package.
  • Docs(link takes you to an external page) JS SDK documentation.

Secure browser script link

1
<script src="https://sdk.twilio.com/js/conversations/releases/2.6.0/twilio-conversations.min.js"
2
integrity="sha256-xPEivoMXimPOKythl5xUKOfcCMcVg8DVl0I2BmKfmqc="
3
crossorigin="anonymous"></script>

Non-secure browser script link

<script src="https://sdk.twilio.com/js/conversations/v2.6/twilio-conversations.min.js"></script>

Changes

changes page anchor

Features

  • ESM configuration for Rollup: Implemented support for ECMAScript Modules (ESM) in Rollup, enhancing compatibility and performance.

Bug Fixes

  • ensureReady: Removed unnecessary catch and reset actions when Twilsock disconnects, improving stability.
  • Twilsock: Updated the ws package to the latest version, addressing compatibility issues.

Conversations 2.5.0 (October 25, 2023)

conversations-250-october-25-2023 page anchor

Secure browser script link

1
<script src="https://sdk.twilio.com/js/conversations/releases/2.5.0/twilio-conversations.min.js"
2
integrity="sha256-aBKm/Hjylgtmr/XtFMSDbUWf+2VlRHBbj4jdgy/KhRc="
3
crossorigin="anonymous"></script>

Non-secure browser script link

<script src="https://sdk.twilio.com/js/conversations/v2.5/twilio-conversations.min.js"></script>

Features

  • Added support for Email in Flex

Conversations 2.4.0 (April 25, 2023)

conversations-240-april-25-2023 page anchor

Secure browser script link

1
<script src="https://sdk.twilio.com/js/conversations/releases/2.4.0/twilio-conversations.min.js"
2
integrity="sha256-n/6RCcuNipqtzWOWjJ1D+UQuQ6jjm66Nu5z6FR5m/a4="
3
crossorigin="anonymous"></script>

Non-secure browser script link

<script src="https://sdk.twilio.com/js/conversations/v2.4/twilio-conversations.min.js"></script>

Features

  • Added support for message channel metadata
  • Internal improvements and bugfixes

Conversations 2.3.0 (March 21, 2023)

conversations-230-march-21-2023 page anchor

Secure browser script link

1
<script src="https://sdk.twilio.com/js/conversations/releases/2.3.0/twilio-conversations.min.js"
2
integrity="sha256-k37Hx/3U6wN1/ai4gc1FedSzTYAyn1kW3oxTGv+EqLY="
3
crossorigin="anonymous"></script>

Non-secure browser script link

<script src="https://sdk.twilio.com/js/conversations/v2.3/twilio-conversations.min.js"></script>

Features

Conversations 2.2.2 (February 22, 2023)

conversations-222-february-22-2023 page anchor

Secure browser script link

1
<script src="https://sdk.twilio.com/js/conversations/releases/2.2.2/twilio-conversations.min.js"
2
integrity="sha256-KrOF3nMhorDCOFmy8Lpwz/Du0SElgV4KMyBvW76r0U8="
3
crossorigin="anonymous"></script>

Non-secure browser script link

<script src="https://sdk.twilio.com/js/conversations/v2.2/twilio-conversations.min.js"></script>

Bug fixes

  • Methods Conversation.leave and Conversation.removeParticipant will now properly work for participants with identities containing special characters.

Conversations 2.2.1 (November 24, 2022)

conversations-221-november-24-2022 page anchor

Secure browser script link

1
<script src="https://sdk.twilio.com/js/conversations/releases/2.2.1/twilio-conversations.min.js"
2
integrity="sha256-BfGQUsDAH2A06f2v117v7T+4qPiRUKbjCFvu/MhNDBg="
3
crossorigin="anonymous"></script>

Non-secure browser script link

<script src="https://sdk.twilio.com/js/conversations/v2.2/twilio-conversations.min.js"></script>

Bug fixes

  • Client.getConversationBySid will no longer throw a deprecation warning when it shouldn't.

Conversations 2.2.0 (September 22, 2022)

conversations-220-september-22-2022 page anchor

Secure browser script link

1
<script src="https://sdk.twilio.com/js/conversations/releases/2.2.0/twilio-conversations.min.js"
2
integrity="sha256-IVvvlFjCqVxfaKZj7uHAVoOwBtl5q5EjGz4KScEIN+4="
3
crossorigin="anonymous"></script>

Non-secure browser script link

<script src="https://sdk.twilio.com/js/conversations/v2.2/twilio-conversations.min.js"></script>

Deprecations (will be removed in 3.0):

  • Client.token getter has been deprecated.
  • Client.create has been deprecated, use new Client instead.
  • Message.getMediaByCategory has been deprecated, use Message.getMediaByCategories instead.
  • Message.attachTemporaryUrlsFor has been deprecated, use getTemporaryContentUrlsForMedia instead.
  • Event Client.stateChanged has been deprecated, use Client.initialized and Client.initFailed events instead.

New features

  • Change multiple media interfaces to match the mobile platform SDKs.

Bug fixes

  • Client initialization no longer fails with broken conversations.
  • Class name SyncError will no longer get minified in minified bundles.
  • Attribute parsing has been fixed for SMS participants.

Conversations 2.1.0 (March 3, 2022)

conversations-210-march-3-2022 page anchor

Secure browser script link

1
<script src="https://sdk.twilio.com/js/conversations/releases/2.1.0/twilio-conversations.min.js"
2
integrity="sha256-v2SFLWujVq0wnwHpcxct7bzTP8wII7sumEhAKMEqgHQ="
3
crossorigin="anonymous"></script>

Non-secure browser script link

<script src="https://sdk.twilio.com/js/conversations/v2.1/twilio-conversations.min.js"></script>

New features:

  • Improved client synchronization time for users with many Conversations and Participants.
  • Added bindings property to Participant and Conversation.
  • Added email body and history accessors to Message.
  • Updated MessageBuilder to support email payload.

Bug fixes

  • Attempting to use FormData in a non-browser environment will now throw an exception.
  • Fixed null exceptions are thrown when attempting to execute Message.getEmailBody when no body is attached or when attempting to execute Message.getEmailHistory when no history is attached.
  • Improved type-checking errors thrown in Message.attachTemporaryUrlsFor.
  • Fixed bindings update always coming in participantUpdated reasons.
  • Various documentation improvements.

Conversations 2.0.1 (January 26, 2022)

conversations-201-january-26-2022 page anchor

Secure browser script link

1
<script src="https://sdk.twilio.com/js/conversations/releases/2.0.1/twilio-conversations.min.js"
2
integrity="sha256-qh6mHMySA1dWklWKE8GLSfL0vKvTTL4rppgJBU6GIcQ="
3
crossorigin="anonymous"></script>

Non-secure browser script link

<script src="https://sdk.twilio.com/js/conversations/v2.0/twilio-conversations.min.js"></script>
  • Fixed a post-install script causing issues on some platforms.
  • Fixed an issue with Client.getConversationBySid returning wrong conversations.
  • Bumped required Node.js version to 14.

Conversations 2.0.0 (October 19, 2021)

conversations-200-october-19-2021 page anchor

Secure browser script link

1
<script src="https://sdk.twilio.com/js/conversations/releases/2.0.0/twilio-conversations.min.js"
2
integrity="sha256-/pQ4lYklKpRl6E4ruYcKqTUcLsfM2FQLUarDWVA9I0o="
3
crossorigin="anonymous"></script>

Non-secure browser script link

<script src="https://sdk.twilio.com/js/conversations/v2.0/twilio-conversations.min.js"></script>

Breaking changes

  • null can no longer be passed in place of ClientOptions for client instantiation.
  • null can no longer be passed to Conversations.updateFriendlyName.
  • null can no longer be passed to User.updateFriendlyName.
  • Passing null to Conversation.sendMessage will result in the message body being an empty string.
  • Client is now considered fully initialized only when the new stateChanged event is emitted with the value "initialized".
  • Accessing Client.reachabilityEnabled before the client is fully initialized will now throw an error.
  • Accessing Client.user before the client is fully initialized will now return a non-initialized user. On client initialization, the user will initialize and receive the updated event with all the update reasons.
  • Default exports have been removed. The SDK now only supports named exports, e.g., import { Client } from "@twilio/conversations";.

New features

  • Migrated to the Sessionless protocol.
  • Added support for multiple media.
    • Conversation.prepareMessage could now be used to send multiple media messages.
  • Added support for init registrations.
    • The client should now be created using the constructor. The stateChanged event should be utilized to react to client initialization.
    • The factory method Client.create is now deprecated. Use the constructor instead.
      • If a client is created using the deprecated factory method, then Client.onWithReplay should be used to subscribe to its events.
      • If Client.on is used instead, then some events that are triggered on client initialization will get lost.
    • Client.unsetPushRegistrationId is now deprecated. Use Client.removePushRegistrations instead.

Other changes

  • Conversation.addNonChatParticipant now allows all valid JSON values to be passed as attributes.
  • Fixed type resolution issues on Angular.
  • Fixed initialization problems on React Native.
  • The SDK now additionally exports the following types: ParticipantUpdatedEventArgs, MessageUpdatedEventArgs, UserUpdatedEventArgs, Paginator, and NotificationTypes.
  • All events are now strictly typed when using TypeScript.

Conversations 1.2.3 (July 26, 2021)

conversations-123-july-26-2021 page anchor

Secure browser script link

1
<script src="https://sdk.twilio.com/js/conversations/releases/1.2.3/twilio-conversations.min.js"
2
integrity="sha256-fGJzzkCU7845NUd6g0dG6/p0vm5aAIIAi0Vmsply9II="
3
crossorigin="anonymous"></script>

Non-secure browser script link

<script src="https://sdk.twilio.com/js/conversations/v1.2/twilio-conversations.min.js"></script>

Changes

  • Fix compilation of TS with type exports, broken since 1.2.1.

Conversations 1.2.1 (July 2, 2021)

conversations-121-july-2-2021 page anchor

Secure browser script link

1
<script src="https://sdk.twilio.com/js/conversations/releases/1.2.1/twilio-conversations.min.js"
2
integrity="sha256-2UkMXiUMrGQwt95PXoLiklv9Hgl87uLXA3G6q/9HP7I="
3
crossorigin="anonymous"></script>

Non-secure browser script link

<script src="https://sdk.twilio.com/js/conversations/v1.2/twilio-conversations.min.js"></script>

Changes

  • Fix IE11 issues: the SDK should now properly load and work on IE11.
  • Upgraded to a modern build toolchain, reducing the bundle size.

Conversations 1.2.0 (May 17, 2021)

conversations-120-may-17-2021 page anchor

Secure browser script link

1
<script src="https://sdk.twilio.com/js/conversations/releases/1.2.0/twilio-conversations.min.js"
2
integrity="sha256-lYzPQyaIqs8RXkKxfQnkDbfiosIrDKs/OsJ2VjCcMc8="
3
crossorigin="anonymous"></script>

Non-secure browser script link

<script src="https://sdk.twilio.com/js/conversations/v1.2/twilio-conversations.min.js"></script>

Changes

  • Fix Conversation.lastReadMessageIndex not being set during client initialization.
  • TypeScript typing for Conversation.lastReadMessageIndex got changed to number \| null.
  • Dependency bumps.
  • Documentation improvements.

Conversations 1.1.0 (Oct 16, 2020)

conversations-110-oct-16-2020 page anchor

Secure browser script link

1
<script src="https://sdk.twilio.com/js/conversations/releases/1.1.0/twilio-conversations.min.js"
2
integrity="sha256-CyaWtQO775FKI8f8jyY9Oj2w97RC9r6WHooi8OzgSgE="
3
crossorigin="anonymous"></script>

Non-secure browser script link

<script src="https://sdk.twilio.com/js/conversations/v1.0/twilio-conversations.min.js"></script>

Changes


Conversations 1.0.0 (Sep 28, 2020)

conversations-100-sep-28-2020 page anchor

First official release for the new Conversations(link takes you to an external page) product

Secure browser script link

1
<script src="https://sdk.twilio.com/js/conversations/releases/1.0.0/twilio-conversations.min.js"
2
integrity="sha256-wwGP7TgNRaTpRZj6r7CM/ZPMa/mMj44/QRLQNnQMJjU="
3
crossorigin="anonymous"></script>

Non-secure browser script link

<script src="https://sdk.twilio.com/js/conversations/v1.0/twilio-conversations.min.js"></script>

Conversations 0.1.0 (Sep 3, 2020)

conversations-010-sep-3-2020 page anchor

First public release for the new Conversations(link takes you to an external page) product

This release was for testing only, please do not use it.

Need some help?

Terms of service

Copyright © 2024 Twilio Inc.