Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

chore(deps) remove remaining lodash dependencies

Saúl Ibarra Corretgé80e08a112af7
diff --git a/react/features/base/lastn/middleware.ts b/react/features/base/lastn/middleware.ts
index 6b000181ff..c530aff354 100644
--- a/react/features/base/lastn/middleware.ts
+++ b/react/features/base/lastn/middleware.ts
@@ -1,4 +1,4 @@
-import debounce from 'lodash/debounce';
+import { debounce } from 'lodash-es';
import { IStore } from '../../app/types';
import { SET_FILMSTRIP_ENABLED } from '../../filmstrip/actionTypes';
diff --git a/react/features/base/react/components/web/MultiSelectAutocomplete.tsx b/react/features/base/react/components/web/MultiSelectAutocomplete.tsx
index e39f93f13e..b60e7b51b4 100644
--- a/react/features/base/react/components/web/MultiSelectAutocomplete.tsx
+++ b/react/features/base/react/components/web/MultiSelectAutocomplete.tsx
@@ -1,4 +1,4 @@
-import _debounce from 'lodash/debounce';
+import { debounce } from 'lodash-es';
import React, { Component } from 'react';
import { MultiSelectItem } from '../../../ui/components/types';
@@ -145,7 +145,7 @@ class MultiSelectAutocomplete extends Component<IProps, IState> {
this._onFilterChange = this._onFilterChange.bind(this);
this._onRetry = this._onRetry.bind(this);
this._onSelectionChange = this._onSelectionChange.bind(this);
- this._sendQuery = _debounce(this._sendQuery.bind(this), 200);
+ this._sendQuery = debounce(this._sendQuery.bind(this), 200);
}
/**
diff --git a/react/features/chat/components/web/MessageContainer.tsx b/react/features/chat/components/web/MessageContainer.tsx
index 658332d490..dae176a3f6 100644
--- a/react/features/chat/components/web/MessageContainer.tsx
+++ b/react/features/chat/components/web/MessageContainer.tsx
@@ -1,4 +1,4 @@
-import throttle from 'lodash/throttle';
+import { throttle } from 'lodash-es';
import React, { RefObject } from 'react';
import { scrollIntoView } from 'seamless-scroll-polyfill';
diff --git a/react/features/filmstrip/components/web/Thumbnail.tsx b/react/features/filmstrip/components/web/Thumbnail.tsx
index 7f40ce83f5..a9ca988daa 100644
--- a/react/features/filmstrip/components/web/Thumbnail.tsx
+++ b/react/features/filmstrip/components/web/Thumbnail.tsx
@@ -1,6 +1,6 @@
import { Theme } from '@mui/material';
import clsx from 'clsx';
-import debounce from 'lodash/debounce';
+import { debounce } from 'lodash-es';
import React, { Component, KeyboardEvent, RefObject, createRef } from 'react';
import { WithTranslation } from 'react-i18next';
import { connect } from 'react-redux';
diff --git a/react/features/mobile/external-api/functions.ts b/react/features/mobile/external-api/functions.ts
index afac6fb401..353e4b7978 100644
--- a/react/features/mobile/external-api/functions.ts
+++ b/react/features/mobile/external-api/functions.ts
@@ -1,4 +1,4 @@
-import debounce from 'lodash/debounce';
+import { debounce } from 'lodash-es';
import { NativeModules } from 'react-native';
import { IParticipant } from '../../base/participants/types';
diff --git a/react/features/mobile/external-api/middleware.ts b/react/features/mobile/external-api/middleware.ts
index 2ddf5d9fd6..ccc7381cab 100644
--- a/react/features/mobile/external-api/middleware.ts
+++ b/react/features/mobile/external-api/middleware.ts
@@ -1,6 +1,6 @@
/* eslint-disable lines-around-comment */
-import debounce from 'lodash/debounce';
+import { debounce } from 'lodash-es';
import { NativeEventEmitter, NativeModules } from 'react-native';
import { AnyAction } from 'redux';
diff --git a/react/features/notifications/actions.ts b/react/features/notifications/actions.ts
index 69997503ab..a92752ec83 100644
--- a/react/features/notifications/actions.ts
+++ b/react/features/notifications/actions.ts
@@ -1,4 +1,4 @@
-import throttle from 'lodash/throttle';
+import { throttle } from 'lodash-es';
import { IStore } from '../app/types';
import { NOTIFICATIONS_ENABLED } from '../base/flags/constants';
diff --git a/react/features/shared-video/components/native/AbstractVideoManager.ts b/react/features/shared-video/components/native/AbstractVideoManager.ts
index 6bc0804779..a55cfed7c3 100644
--- a/react/features/shared-video/components/native/AbstractVideoManager.ts
+++ b/react/features/shared-video/components/native/AbstractVideoManager.ts
@@ -1,4 +1,4 @@
-import throttle from 'lodash/throttle';
+import { throttle } from 'lodash-es';
import { PureComponent } from 'react';
import { IReduxState, IStore } from '../../../app/types';
diff --git a/react/features/shared-video/components/web/AbstractVideoManager.ts b/react/features/shared-video/components/web/AbstractVideoManager.ts
index 5406d6c4d6..6f3d3cacb6 100644
--- a/react/features/shared-video/components/web/AbstractVideoManager.ts
+++ b/react/features/shared-video/components/web/AbstractVideoManager.ts
@@ -1,6 +1,6 @@
// @ts-expect-error
import Logger from '@jitsi/logger';
-import throttle from 'lodash/throttle';
+import { throttle } from 'lodash-es';
import { PureComponent } from 'react';
import { createSharedVideoEvent as createEvent } from '../../../analytics/AnalyticsEvents';
diff --git a/react/features/video-quality/subscriber.ts b/react/features/video-quality/subscriber.ts
index b08c67d62f..66299d99e9 100644
--- a/react/features/video-quality/subscriber.ts
+++ b/react/features/video-quality/subscriber.ts
@@ -1,4 +1,4 @@
-import debounce from 'lodash/debounce';
+import { debounce } from 'lodash-es';
import { IReduxState, IStore } from '../app/types';
import { _handleParticipantError } from '../base/conference/functions';