Skip to content

Commit

Permalink
chore: get rid of lodash
Browse files Browse the repository at this point in the history
  • Loading branch information
b-ma committed Jan 18, 2025
1 parent 43c4079 commit 8128f75
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/common/BasePlugin.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import merge from 'lodash/merge.js';
import merge from 'merge-deep';

export const kBasePluginStatus = Symbol('soundworks:base-plugin-status');

Expand Down Expand Up @@ -170,7 +170,7 @@ class BasePlugin {
* @see {@link BasePluginManager#onStateChange}
*/
propagateStateChange(updates) {
merge(this.state, updates);
this.state = merge(this.state, updates);
this.#onStateChangeCallbacks.forEach(callback => callback(this.state));
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/common/ParameterBag.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import cloneDeep from 'lodash/cloneDeep.js';
import cloneDeep from 'clone-deep';
import equal from 'fast-deep-equal';

export const sharedOptions = {
Expand Down

0 comments on commit 8128f75

Please sign in to comment.