メニュー

Expand
ページを評価:

チェンジログ:Twilio カンバセーション JavaScript SDK

The non-secure script link does not validate Sub-Resource Integrity 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.

Latest release

You can always access the latest release’s docs via this link.

Support for previous versions of the Conversations SDKs

Twilio Conversations SDKs use Semantic Versioning. Twilio supports version N-1 for 12 months after the first GA release of version N. We recommend that you upgrade to the latest version as soon as possible to avoid any breaking changes.

Support for 1.x will cease on October 19, 2022. Please upgrade to the latest version.

変更履歴

Conversations 2.0.0 (October 19, 2021)

  • .js Non-minified Conversations SDK bundled for browsers, hosted on Twilio CDN.
    • SHA-256 for non-minified version 2.0.0: sha256-Zi+sUnqbLqAWgi1ckoSa9ym+lCfVY6xOZvDR+/ToHgM=
  • .min.js Minified Conversations SDK bundled for browsers, hosted on Twilio CDN.
    • Base64 SHA-256 for minified version 2.0.0: sha256-/pQ4lYklKpRl6E4ruYcKqTUcLsfM2FQLUarDWVA9I0o=
  • npm Conversations Node.js SDK package.
  • Docs JS SDK documentation, hosted on Twilio CDN.

Secure browser script link

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

Non-secure browser script link

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

変更点

破壊的変更

  • 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 with 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";.

新機能

  • 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)

  • .js Non-minified Conversations SDK bundled for browsers, hosted on Twilio CDN.
    • SHA-256 for non-minified version 1.2.3: sha256-fCxO5CJdh4ylmCrBWCTzsqhpE6aIbJ3L0cmt6FGGiDU=
  • .min.js Minified Conversations SDK bundled for browsers, hosted on Twilio CDN.
    • Base64 SHA-256 for minified version 1.2.3: sha256-fGJzzkCU7845NUd6g0dG6/p0vm5aAIIAi0Vmsply9II=
  • npm Conversations Node.js SDK package.
  • Docs JS SDK documentation, hosted on Twilio CDN.

Secure browser script link

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

Non-secure browser script link

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

変更点

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

Conversations 1.2.1 (July 2, 2021)

  • .js Non-minified Conversations SDK bundled for browsers, hosted on Twilio CDN.
    • SHA-256 for non-minified version 1.2.1: sha256-/ni6qklORrIc+z+QcqdgxSOlmaczOFLq85cJfKqoKGE=
  • .min.js Minified Conversations SDK bundled for browsers, hosted on Twilio CDN.
    • Base64 SHA-256 for minified version 1.2.1: sha256-2UkMXiUMrGQwt95PXoLiklv9Hgl87uLXA3G6q/9HP7I=
  • npm Conversations Node.js SDK package.
  • Docs JS SDK documentation, hosted on Twilio CDN.

Secure browser script link

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

Non-secure browser script link

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

変更点

  • 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)

  • .js Non-minified Conversations SDK bundled for browsers, hosted on Twilio CDN.
    • SHA-256 for non-minified version 1.2.0: sha256-f48Ke76doR3wMUykEyccmedAUfDqMAaEH7fe4limPAo=
  • .min.js Minified Conversations SDK bundled for browsers, hosted on Twilio CDN.
    • Base64 SHA-256 for minified version 1.2.0: sha256-lYzPQyaIqs8RXkKxfQnkDbfiosIrDKs/OsJ2VjCcMc8=
  • npm Conversations Node.js SDK package.
  • Docs JS SDK documentation, hosted on Twilio CDN.

Secure browser script link

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

Non-secure browser script link

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

変更点

  • 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)

  • js Non-minified Conversations SDK bundled for browsers, hosted on Twilio CDN.
    • SHA-256 for non-minified version 1.1.0: sha256-DFmUiLiTxQM3i9TCRl8DKUHEm48e6egBi7KlXQ5engc=
  • .min.js Minified Conversations SDK bundled for browsers, hosted on Twilio CDN.
    • Base64 SHA-256 for minified version 1.1.0: sha256-CyaWtQO775FKI8f8jyY9Oj2w97RC9r6WHooi8OzgSgE=
  • npm Conversations Node.js SDK package.
  • Docs JS SDK documentation, hosted on Twilio CDN.

Secure browser script link

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

Non-secure browser script link

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

変更点


Conversations 1.0.0 (Sep 28, 2020)

First official release for the new Conversations product

  • .js Non-minified Conversations SDK bundled for browsers, hosted on Twilio CDN.
  • SHA-256 for non-minified version 1.0.0: WpAJSSVar1v0rQ89XYLt4MLAOuK+kZ4Brxbadl62p9c=
  • .min.js Minified Conversations SDK bundled for browsers, hosted on Twilio CDN.
    • Base64 SHA-256 for minified version 1.0.0: wwGP7TgNRaTpRZj6r7CM/ZPMa/mMj44/QRLQNnQMJjU=
  • npm Conversations Node.js SDK package.
  • Docs JS SDK documentation, hosted on Twilio CDN.

Secure browser script link

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

Non-secure browser script link

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

Conversations 0.1.0 (Sep 3, 2020)

First public release for the new Conversations product

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

ページを評価:

ヘルプが必要ですか?

We all do sometimes; code is hard. Get help now from our support team, or lean on the wisdom of the crowd by visiting Twilio's Community Forums or browsing the Twilio tag on Stack Overflow.

フィードバックくださりありがとうございます!

We are always striving to improve our documentation quality, and your feedback is valuable to us. Please select the reason(s) for your feedback or provide additional information about how we can improve:

Sending your feedback...
🎉 Thank you for your feedback!
Something went wrong. Please try again.

Thanks for your feedback!

Refer us and get $10 in 3 simple steps!

ステップ1

Get link

Get a free personal referral link here

ステップ2:

Give $10

Your user signs up and upgrade using link

ステップ3

Get $10

1,250 free SMSes
OR 1,000 free voice mins
OR 12,000 chats
OR more