New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@daily-co/daily-js

Package Overview
Dependencies
Maintainers
20
Versions
156
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@daily-co/daily-js - npm Package Compare versions

Comparing version 0.42.2 to 0.43.0

rollup.config.mjs

47

index.d.ts

@@ -299,3 +299,3 @@ // Type definitions for daily-js

* - string[] will share with participants with given list of session ids
*
*
* When the integration is started, it will be started for other participants, too.

@@ -364,3 +364,2 @@ * When it's stopped, it will stop for all participants.

disableSimulcast?: boolean;
experimentalChromeVideoMuteLightOff?: boolean;
keepCamIndicatorLightOn?: boolean;

@@ -739,3 +738,3 @@ experimentalGetUserMediaConstraintsModify?: (

export interface DailyInputAudioSettings {
processor?: DailyInputAudioProcessorSettings;
processor: DailyInputAudioProcessorSettings;
}

@@ -747,9 +746,29 @@

export interface DailyNoInputSettings {
type: 'none';
}
export interface DailyBackgroundBlurInputSettings {
type: 'background-blur';
config: {
strength?: number;
};
}
export interface DailyBackgroundImageInputSettings {
type: 'background-image';
config: {
url?: string;
source?: string | number;
};
}
export type DailyInputVideoProcessorSettings =
| DailyNoInputSettings
| DailyBackgroundBlurInputSettings
| DailyBackgroundImageInputSettings;
export interface DailyInputVideoSettings {
processor?: DailyInputVideoProcessorSettings;
}
export interface DailyInputVideoProcessorSettings {
type: 'none' | 'background-blur' | 'background-image';
config?: {};
}

@@ -836,3 +855,3 @@ export interface DailyEventObjectNoPayload {

export interface DailyFatalConnectionError extends DailyFatalError {
type: Extract<DailyFatalConnectionError, 'connection-error'>;
type: Extract<DailyFatalErrorType, 'connection-error'>;
details: {

@@ -845,3 +864,3 @@ on: 'join' | 'reconnect';

export type DailyFatalErrorObject<T extends DailyFatalError = any> =
export type DailyFatalErrorObject<T extends DailyFatalErrorType> =
T extends DailyFatalConnectionError['type'] ? DailyFatalConnectionError : any;

@@ -852,3 +871,3 @@

errorMsg: string;
error?: DailyFatalErrorObject;
error?: DailyFatalErrorObject<DailyFatalErrorType>;
}

@@ -1404,3 +1423,9 @@

export type SidebarView = null | 'people' | 'chat' | 'network' | 'breakout' | string;
export type SidebarView =
| null
| 'people'
| 'chat'
| 'network'
| 'breakout'
| string;

@@ -1407,0 +1432,0 @@ export interface DailyCall {

{
"name": "@daily-co/daily-js",
"version": "0.42.2",
"version": "0.43.0",
"engines": {

@@ -34,13 +34,10 @@ "node": ">=10.0.0"

"@babel/plugin-proposal-class-properties": "^7.12.1",
"@babel/plugin-transform-modules-commonjs": "^7.12.1",
"@babel/plugin-transform-runtime": "^7.12.10",
"@babel/preset-env": "^7.12.11",
"@rollup/plugin-babel": "^5.2.1",
"@rollup/plugin-replace": "^2.3.2",
"@rollup/plugin-babel": "^6.0.3",
"@rollup/plugin-replace": "^5.0.2",
"@semantic-release/git": "^10.0.1",
"babel-cli": "^6.26.0",
"babel-jest": "^27.4.6",
"babel-loader": "^8.0.6",
"babel-plugin-rewire": "^1.2.0",
"babel-plugin-transform-es2015-modules-commonjs": "^6.26.2",
"conventional-changelog-conventionalcommits": "^5.0.0",

@@ -50,12 +47,11 @@ "dotenv": "^16.0.3",

"prettier": "^2.5.1",
"rollup": "^1.29.0",
"rollup-plugin-cjs-es": "^0.7.0",
"rollup-plugin-commonjs": "^9.3.4",
"rollup-plugin-node-resolve": "^4.2.4",
"rollup-plugin-terser": "^4.0.4",
"rollup": "^3.20.2",
"@rollup/plugin-commonjs": "^24.0.1",
"@rollup/plugin-node-resolve": "^15.0.2",
"@rollup/plugin-terser": "^0.4.0",
"semantic-release": "^19.0.3",
"ts-jest": "^27.1.2",
"webpack": "^4.41.5",
"webpack-cli": "^3.3.11",
"webpack-dev-server": "^3.11.0"
"webpack": "^5.77.0",
"webpack-cli": "^5.0.1",
"webpack-dev-server": "^4.13.2"
},

@@ -118,3 +114,3 @@ "dependencies": {

"scope": "daily-js",
"release": "patch"
"release": "minor"
},

@@ -124,3 +120,3 @@ {

"scope": "dj",
"release": "patch"
"release": "minor"
},

@@ -130,3 +126,3 @@ {

"scope": "call-machine",
"release": "patch"
"release": "minor"
},

@@ -136,3 +132,3 @@ {

"scope": "cm",
"release": "patch"
"release": "minor"
},

@@ -142,3 +138,3 @@ {

"scope": "daily-js",
"release": "patch"
"release": "minor"
},

@@ -148,3 +144,3 @@ {

"scope": "dj",
"release": "patch"
"release": "minor"
},

@@ -154,3 +150,3 @@ {

"scope": "call-machine",
"release": "patch"
"release": "minor"
},

@@ -160,3 +156,3 @@ {

"scope": "cm",
"release": "patch"
"release": "minor"
},

@@ -166,3 +162,3 @@ {

"scope": "daily-js",
"release": "patch"
"release": "minor"
},

@@ -172,3 +168,3 @@ {

"scope": "dj",
"release": "patch"
"release": "minor"
},

@@ -178,3 +174,3 @@ {

"scope": "call-machine",
"release": "patch"
"release": "minor"
},

@@ -184,3 +180,3 @@ {

"scope": "cm",
"release": "patch"
"release": "minor"
},

@@ -190,3 +186,3 @@ {

"scope": "daily-js",
"release": "patch"
"release": "minor"
},

@@ -196,3 +192,3 @@ {

"scope": "call-machine",
"release": "patch"
"release": "minor"
},

@@ -202,3 +198,3 @@ {

"scope": "dj",
"release": "patch"
"release": "minor"
},

@@ -208,3 +204,3 @@ {

"scope": "cm",
"release": "patch"
"release": "minor"
}

@@ -211,0 +207,0 @@ ]

@@ -10,15 +10,7 @@ # 🎥 Get started with Daily

## Turning off the camera will turn off the indicator light by default
Today, calls are by default configured to leave the camera indicator light on even after the camera has been turned off. Starting in 0.43.0, the default behavior will switch, so that turning off the camera turns off the indicator light. This is usually a much better experience for users and worth the tradeoff of slightly slower camera toggling.
To test the change that will be coming in 0.43.0, you can specify `dailyConfig: { experimentalChromeVideoMuteLightOff: true }`. Once the switch to the new default behavior happens, `experimentalChromeVideoMuteLightOff` won't be needed anymore and so will be deprecated.
For those who want to keep the current default behavior of leaving the indicator light on to speed up camera toggling, they can specify `dailyConfig: { keepCamIndicatorLightOn: true }`. This flag is available today.
## Duplicate call instances will not be allowed
Today we do not support multiple call objects to be instantiated and running simultaneously. Doing so causes a smorgasbord of issues, some more obvious than others. After detecting this to be a common issue in development we will be making this setup impossible. Starting in 0.43.0, two currently unsupported behaviors will now throw an `Error` instead of silently failing or simply logging the error. The constructor of a call will throw an `Error` if another one exists and has not been destroyed. And attempting to use a call instance that has been destroyed will throw an `Error`. To see if you are using multiple call objects or using a call after it has been detroyed, check your logs for `Dual call object instances detected`, `Duplicate call object instances detected`, or `You are attempting to use a call instance that was previously destroyed`.
Today we do not support multiple call objects to be instantiated and running simultaneously. Doing so causes a smorgasbord of issues, some more obvious than others. After detecting this to be a common issue in development we will be making this setup impossible. Starting in 0.45.0, two currently unsupported behaviors will now throw an `Error` instead of silently failing or simply logging the error. The constructor of a call will throw an `Error` if another one exists and has not been destroyed. And attempting to use a call instance that has been destroyed will throw an `Error`. To see if you are using multiple call objects or using a call after it has been detroyed, check your logs for `Dual call object instances detected`, `Duplicate call object instances detected`, or `You are attempting to use a call instance that was previously destroyed`.
If you think this will affect you, you can turn on the 0.43.0 behavior and have an `Error` thrown by passing adding `strictMode: true` to your iframe properties passed in at construction:
If you think this will affect you, you can turn on the 0.45.0 behavior and have an `Error` thrown by passing adding `strictMode: true` to your iframe properties passed in at construction:

@@ -25,0 +17,0 @@ ```

// We need to mock the MediaStreamTrack claas and the mediaDevices which are provided by the browser
class MockMediaStreamTrack {}
global.MediaStreamTrack = MockMediaStreamTrack;
global.navigator.mediaDevices = jest.fn();
global.navigator.mediaDevices = { enumerateDevices: async () => [] };
global.__dailyJsVersion__ = '*';

@@ -6,0 +6,0 @@

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc