Skip to content

Commit

Permalink
Use shared mutex helper lib (#301)
Browse files Browse the repository at this point in the history
* enable strict checking

* Use share mutex helper lib

* Revert "enable strict checking"

This reverts commit cd82095.

* Create lemon-readers-eat.md
  • Loading branch information
lukasIO authored Oct 16, 2024
1 parent 515f379 commit b956466
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 95 deletions.
5 changes: 5 additions & 0 deletions .changeset/lemon-readers-eat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@livekit/rtc-node": patch
---

Use shared mutex helper lib
5 changes: 3 additions & 2 deletions packages/livekit-rtc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,14 @@
},
"dependencies": {
"@bufbuild/protobuf": "^1.4.2",
"@livekit/mutex": "^1.0.0",
"@livekit/typed-emitter": "^3.0.0"
},
"devDependencies": {
"@napi-rs/cli": "^2.18.0",
"@types/node": "^20.9.2",
"typescript": "^5.2.2",
"prettier": "^3.0.3"
"prettier": "^3.0.3",
"typescript": "^5.2.2"
},
"optionalDependencies": {
"@livekit/rtc-node-darwin-arm64": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion packages/livekit-rtc/src/audio_stream.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
// SPDX-FileCopyrightText: 2024 LiveKit, Inc.
//
// SPDX-License-Identifier: Apache-2.0
import { Mutex } from '@livekit/mutex';
import { AudioFrame } from './audio_frame.js';
import type { FfiEvent } from './ffi_client.js';
import { FfiClient, FfiClientEvent, FfiHandle } from './ffi_client.js';
import type { AudioStreamInfo, NewAudioStreamResponse } from './proto/audio_frame_pb.js';
import { AudioStreamType, NewAudioStreamRequest } from './proto/audio_frame_pb.js';
import type { Track } from './track.js';
import { Mutex } from './utils.js';

export class AudioStream implements AsyncIterableIterator<AudioFrame> {
/** @internal */
Expand Down
47 changes: 0 additions & 47 deletions packages/livekit-rtc/src/utils.test.ts

This file was deleted.

44 changes: 0 additions & 44 deletions packages/livekit-rtc/src/utils.ts

This file was deleted.

2 changes: 1 addition & 1 deletion packages/livekit-rtc/src/video_stream.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// SPDX-FileCopyrightText: 2024 LiveKit, Inc.
//
// SPDX-License-Identifier: Apache-2.0
import { Mutex } from '@livekit/mutex';
import type { FfiEvent } from './ffi_client.js';
import { FfiClient, FfiClientEvent, FfiHandle } from './ffi_client.js';
import type {
Expand All @@ -10,7 +11,6 @@ import type {
} from './proto/video_frame_pb.js';
import { NewVideoStreamRequest, VideoStreamType } from './proto/video_frame_pb.js';
import type { Track } from './track.js';
import { Mutex } from './utils.js';
import { VideoFrame } from './video_frame.js';

export type VideoFrameEvent = {
Expand Down
8 changes: 8 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b956466

Please sign in to comment.