Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: livekit/client-sdk-js
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v2.9.6
Choose a base ref
...
head repository: livekit/client-sdk-js
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v2.9.7
Choose a head ref
  • 2 commits
  • 4 files changed
  • 2 contributors

Commits on Mar 14, 2025

  1. Add attributes to SendTextOptions (#1441)

    lukasIO authored Mar 14, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    0eba145 View commit details
  2. Version Packages (#1442)

    Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
    github-actions[bot] authored Mar 14, 2025
    Copy the full SHA
    cecadc3 View commit details
Showing with 12 additions and 1 deletion.
  1. +6 −0 CHANGELOG.md
  2. +1 −1 package.json
  3. +3 −0 src/room/participant/LocalParticipant.ts
  4. +2 −0 src/room/types.ts
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Change Log

## 2.9.7

### Patch Changes

- Add attributes to SendTextOptions - [#1441](https://github.com/livekit/client-sdk-js/pull/1441) ([@lukasIO](https://github.com/lukasIO))

## 2.9.6

### Patch Changes
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "livekit-client",
"version": "2.9.6",
"version": "2.9.7",
"description": "JavaScript/TypeScript client SDK for LiveKit",
"main": "./dist/livekit-client.umd.js",
"unpkg": "./dist/livekit-client.umd.js",
3 changes: 3 additions & 0 deletions src/room/participant/LocalParticipant.ts
Original file line number Diff line number Diff line change
@@ -1560,6 +1560,7 @@ export default class LocalParticipant extends Participant {
destinationIdentities: options?.destinationIdentities,
topic: options?.topic,
attachedStreamIds: fileIds,
attributes: options?.attributes,
});

await writer.write(text);
@@ -1597,13 +1598,15 @@ export default class LocalParticipant extends Participant {
timestamp: Date.now(),
topic: options?.topic ?? '',
size: options?.totalSize,
attributes: options?.attributes,
};
const header = new DataStream_Header({
streamId,
mimeType: info.mimeType,
topic: info.topic,
timestamp: numberToBigInt(info.timestamp),
totalLength: numberToBigInt(options?.totalSize),
attributes: info.attributes,
contentHeader: {
case: 'textHeader',
value: new DataStream_TextHeader({
2 changes: 2 additions & 0 deletions src/room/types.ts
Original file line number Diff line number Diff line change
@@ -20,6 +20,7 @@ export interface SendTextOptions {
destinationIdentities?: Array<string>;
attachments?: Array<File>;
onProgress?: (progress: number) => void;
attributes?: Record<string, string>;
}

export interface StreamTextOptions {
@@ -31,6 +32,7 @@ export interface StreamTextOptions {
attachedStreamIds?: Array<string>;
replyToStreamId?: string;
totalSize?: number;
attributes?: Record<string, string>;
}

export type DataPublishOptions = {