@stream-io/video-react-sdk 1.24.3 → 1.25.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stream-io/video-react-sdk",
3
- "version": "1.24.3",
3
+ "version": "1.25.0",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.es.js",
6
6
  "types": "./dist/index.d.ts",
@@ -30,9 +30,9 @@
30
30
  ],
31
31
  "dependencies": {
32
32
  "@floating-ui/react": "^0.27.6",
33
- "@stream-io/video-client": "1.35.1",
34
- "@stream-io/video-filters-web": "0.3.0",
35
- "@stream-io/video-react-bindings": "1.10.3",
33
+ "@stream-io/video-client": "1.36.0",
34
+ "@stream-io/video-filters-web": "0.4.0",
35
+ "@stream-io/video-react-bindings": "1.10.4",
36
36
  "chart.js": "^4.4.4",
37
37
  "clsx": "^2.0.0",
38
38
  "react-chartjs-2": "^5.3.0"
@@ -10,7 +10,7 @@ import {
10
10
  import { flushSync } from 'react-dom';
11
11
  import clsx from 'clsx';
12
12
  import { useCall } from '@stream-io/video-react-bindings';
13
- import { Call, disposeOfMediaStream, getLogger } from '@stream-io/video-client';
13
+ import { Call, disposeOfMediaStream } from '@stream-io/video-client';
14
14
  import {
15
15
  BackgroundBlurLevel,
16
16
  BackgroundFilter,
@@ -198,9 +198,8 @@ export const BackgroundFiltersProvider = (
198
198
 
199
199
  const handleError = useCallback(
200
200
  (error: any) => {
201
- getLogger(['filters'])(
202
- 'warn',
203
- 'Filter encountered an error and will be disabled',
201
+ console.warn(
202
+ '[filters] Filter encountered an error and will be disabled',
204
203
  );
205
204
  disableBackgroundFilter();
206
205
  onError?.(error);
@@ -1,5 +1,3 @@
1
- import { getLogger } from '@stream-io/video-client';
2
-
3
1
  export type PropsWithErrorHandler<T = unknown> = T & {
4
2
  /**
5
3
  * Will be called if the call control action failed with an error (e.g. user didn't grant a
@@ -20,8 +18,6 @@ export const createCallControlHandler = (
20
18
  props: PropsWithErrorHandler,
21
19
  handler: () => Promise<void>,
22
20
  ): (() => Promise<void>) => {
23
- const logger = getLogger(['react-sdk']);
24
-
25
21
  return async () => {
26
22
  try {
27
23
  await handler();
@@ -32,7 +28,7 @@ export const createCallControlHandler = (
32
28
  }
33
29
 
34
30
  if (!isNotAllowedError(error)) {
35
- logger('error', 'Call control handler failed', error);
31
+ console.error('Call control handler failed', error);
36
32
  }
37
33
  }
38
34
  };