@stream-io/noise-cancellation-react-native 0.11.0 → 0.12.0

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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,18 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [0.12.0](https://github.com/GetStream/stream-video-js/compare/@stream-io/noise-cancellation-react-native-0.11.1...@stream-io/noise-cancellation-react-native-0.12.0) (2026-10-30)
6
+
7
+ ### Features
8
+
9
+ - surface noise cancellation overload status ([#2528](https://github.com/GetStream/stream-video-js/issues/2528)) ([583da4f](https://github.com/GetStream/stream-video-js/commit/583da4fb28dee80b02e90b5f9722fd258794b70e))
10
+
11
+ ## [0.11.1](https://github.com/GetStream/stream-video-js/compare/@stream-io/noise-cancellation-react-native-0.11.0...@stream-io/noise-cancellation-react-native-0.11.1) (2026-09-11)
12
+
13
+ ### Bug Fixes
14
+
15
+ - **android:** skip explicit Kotlin plugin when AGP registers the kotlin extension ([#2417](https://github.com/GetStream/stream-video-js/issues/2417)) ([6d7ae7f](https://github.com/GetStream/stream-video-js/commit/6d7ae7f15f33dafab5a017597462cba29547187f)), closes [RevenueCat/react-native-purchases#1934](https://github.com/RevenueCat/react-native-purchases/issues/1934)
16
+
5
17
  ## [0.11.0](https://github.com/GetStream/stream-video-js/compare/@stream-io/noise-cancellation-react-native-0.10.0...@stream-io/noise-cancellation-react-native-0.11.0) (2026-08-18)
6
18
 
7
19
  ### Features
@@ -16,7 +16,13 @@ buildscript {
16
16
 
17
17
 
18
18
  apply plugin: "com.android.library"
19
- apply plugin: "kotlin-android"
19
+ // AGP 9 ships built-in Kotlin support and registers the `kotlin` extension
20
+ // itself. Applying the Kotlin plugin on top of it fails configuration with
21
+ // "Cannot add extension with name 'kotlin'". Only apply it when nothing has
22
+ // registered that extension yet.
23
+ if (project.extensions.findByName('kotlin') == null) {
24
+ apply plugin: "kotlin-android"
25
+ }
20
26
 
21
27
 
22
28
  def getExtOrIntegerDefault(name) {
@@ -14,6 +14,25 @@ export interface INoiseCancellation {
14
14
  on: <E extends keyof Events, T = Events[E]>(event: E, callback: T) => () => void;
15
15
  off: <E extends keyof Events, T = Events[E]>(event: E, callback: T) => void;
16
16
  }
17
+ /**
18
+ * The payload of the `overload` event.
19
+ */
20
+ export type NoiseCancellationOverloadEvent = {
21
+ /**
22
+ * `true` when Noise Cancellation will be turned back on automatically
23
+ * after `restoreInMs`, `false` when it stays off.
24
+ */
25
+ willRestore: boolean;
26
+ /**
27
+ * The number of overloads detected so far.
28
+ */
29
+ overflowCount: number;
30
+ /**
31
+ * The delay before Noise Cancellation is turned back on.
32
+ * Set only when `willRestore` is `true`.
33
+ */
34
+ restoreInMs?: number;
35
+ };
17
36
  /**
18
37
  * A list of events one can subscribe to.
19
38
  */
@@ -24,5 +43,10 @@ export type Events = {
24
43
  * @param enabled true when enabled, false otherwise.
25
44
  */
26
45
  change: (enabled: boolean) => void;
46
+ /**
47
+ * Kept for parity with `@stream-io/audio-filters-web`.
48
+ * Never fires on React Native.
49
+ */
50
+ overload: (event: NoiseCancellationOverloadEvent) => void;
27
51
  };
28
52
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,kBAAkB;IACjC,WAAW,EAAE,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAC9C,IAAI,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC1B,aAAa,CAAC,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;IACvC,SAAS,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;IAClC,MAAM,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5B,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7B,OA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IACnB,mBAAmB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,QAAQ,EAAE,MAAM,CAAC,WAAW,EAAE,WAAW,KAAK;QAC5C,MAAM,EAAE,WAAW,CAAC;KACrB,CAAC;IACF,EAAE,EAAE,CAAC,CAAC,SAAS,MAAM,MAAM,EAAE,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC,EACxC,KAAK,EAAE,CAAC,EACR,QAAQ,EAAE,CAAC,KACR,MAAM,IAAI,CAAC;IAChB,GAAG,EAAE,CAAC,CAAC,SAAS,MAAM,MAAM,EAAE,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,KAAK,IAAI,CAAC;CAC7E;AAED;;GAEG;AACH,MAAM,MAAM,8BAA8B,GAAG;IAC3C;;;OAGG;IACH,WAAW,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,MAAM,GAAG;IACnB;;;;OAIG;IACH,MAAM,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IAEnC;;;OAGG;IACH,QAAQ,EAAE,CAAC,KAAK,EAAE,8BAA8B,KAAK,IAAI,CAAC;CAC3D,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stream-io/noise-cancellation-react-native",
3
- "version": "0.11.0",
3
+ "version": "0.12.0",
4
4
  "description": "Noise cancellation for the Stream React Native Video SDK",
5
5
  "main": "dist/commonjs/index.js",
6
6
  "module": "dist/module/index.js",
@@ -48,7 +48,7 @@
48
48
  },
49
49
  "homepage": "https://github.com/GetStream/stream-video-js#readme",
50
50
  "devDependencies": {
51
- "@stream-io/react-native-webrtc": "145.3.1",
51
+ "@stream-io/react-native-webrtc": "145.4.1",
52
52
  "@stream-io/typescript-config": "^0.0.0",
53
53
  "react": "19.2.3",
54
54
  "react-native": "0.86.2",
package/src/types.ts CHANGED
@@ -18,6 +18,26 @@ export interface INoiseCancellation {
18
18
  off: <E extends keyof Events, T = Events[E]>(event: E, callback: T) => void;
19
19
  }
20
20
 
21
+ /**
22
+ * The payload of the `overload` event.
23
+ */
24
+ export type NoiseCancellationOverloadEvent = {
25
+ /**
26
+ * `true` when Noise Cancellation will be turned back on automatically
27
+ * after `restoreInMs`, `false` when it stays off.
28
+ */
29
+ willRestore: boolean;
30
+ /**
31
+ * The number of overloads detected so far.
32
+ */
33
+ overflowCount: number;
34
+ /**
35
+ * The delay before Noise Cancellation is turned back on.
36
+ * Set only when `willRestore` is `true`.
37
+ */
38
+ restoreInMs?: number;
39
+ };
40
+
21
41
  /**
22
42
  * A list of events one can subscribe to.
23
43
  */
@@ -28,4 +48,10 @@ export type Events = {
28
48
  * @param enabled true when enabled, false otherwise.
29
49
  */
30
50
  change: (enabled: boolean) => void;
51
+
52
+ /**
53
+ * Kept for parity with `@stream-io/audio-filters-web`.
54
+ * Never fires on React Native.
55
+ */
56
+ overload: (event: NoiseCancellationOverloadEvent) => void;
31
57
  };