Skip to content

Commit

Permalink
refactor: consolidate lodash packages (#176)
Browse files Browse the repository at this point in the history
  • Loading branch information
erickzhao authored Nov 22, 2024
1 parent 10b7419 commit 9a80083
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 31 deletions.
5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@
"electron-window-state": "5.0.3",
"fs-extra": "9.0.1",
"jsonic": "1.0.1",
"lodash.isequal": "^4.5.0",
"lodash.throttle": "^4.1.1",
"lodash": "^4.17.21",
"lz-string": "^1.4.4",
"mobx": "5.15.7",
"mobx-react": "6.3.0",
Expand Down Expand Up @@ -79,8 +78,6 @@
"@types/fs-extra": "^9.0.4",
"@types/http-proxy": "^1.17.14",
"@types/jest": "^29.5.2",
"@types/lodash.isequal": "^4.5.6",
"@types/lodash.throttle": "^4.1.6",
"@types/lz-string": "^1.3.34",
"@types/node": "^20.11.0",
"@types/query-string": "^6.3.0",
Expand Down
2 changes: 1 addition & 1 deletion src/main/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { app } from 'electron';

import * as path from 'path';
import fs from 'fs-extra';
import throttle from 'lodash.throttle';
import { throttle } from 'lodash';

export class SettingsFileManager {
private _settings: Record<string, unknown> = this.getSettings();
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/analytics/external-config-analytics.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import isEqual from 'lodash.isequal';
import { isEqual } from 'lodash';

export interface RootData {
defaults: object | undefined;
Expand Down
26 changes: 1 addition & 25 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2593,20 +2593,6 @@
dependencies:
"@types/lodash" "*"

"@types/lodash.isequal@^4.5.6":
version "4.5.6"
resolved "https://registry.yarnpkg.com/@types/lodash.isequal/-/lodash.isequal-4.5.6.tgz#ff42a1b8e20caa59a97e446a77dc57db923bc02b"
integrity sha512-Ww4UGSe3DmtvLLJm2F16hDwEQSv7U0Rr8SujLUA2wHI2D2dm8kPu6Et+/y303LfjTIwSBKXB/YTUcAKpem/XEg==
dependencies:
"@types/lodash" "*"

"@types/lodash.throttle@^4.1.6":
version "4.1.6"
resolved "https://registry.yarnpkg.com/@types/lodash.throttle/-/lodash.throttle-4.1.6.tgz#f5ba2c22244ee42ff6c2c49e614401a870c1009c"
integrity sha512-/UIH96i/sIRYGC60NoY72jGkCJtFN5KVPhEMMMTjol65effe1gPn0tycJqV5tlSwMTzX8FqzB5yAj0rfGHTPNg==
dependencies:
"@types/lodash" "*"

"@types/lodash@*":
version "4.14.161"
resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.161.tgz#a21ca0777dabc6e4f44f3d07f37b765f54188b18"
Expand Down Expand Up @@ -8533,11 +8519,6 @@ lodash.get@^4.0.0:
resolved "https://registry.yarnpkg.com/lodash.get/-/lodash.get-4.4.2.tgz#2d177f652fa31e939b4438d5341499dfa3825e99"
integrity sha1-LRd/ZS+jHpObRDjVNBSZ36OCXpk=

lodash.isequal@^4.5.0:
version "4.5.0"
resolved "https://registry.yarnpkg.com/lodash.isequal/-/lodash.isequal-4.5.0.tgz#415c4478f2bcc30120c22ce10ed3226f7d3e18e0"
integrity sha512-pDo3lu8Jhfjqls6GkMgpahsF9kCyayhgykjyLMNFTKWrpVdAQtYyB4muAMWozBB4ig/dtWAmsMxLEI8wuz+DYQ==

lodash.memoize@4.x, lodash.memoize@^4.1.2:
version "4.1.2"
resolved "https://registry.yarnpkg.com/lodash.memoize/-/lodash.memoize-4.1.2.tgz#bcc6c49a42a2840ed997f323eada5ecd182e0bfe"
Expand Down Expand Up @@ -8568,17 +8549,12 @@ lodash.templatesettings@^4.0.0:
dependencies:
lodash._reinterpolate "^3.0.0"

lodash.throttle@^4.1.1:
version "4.1.1"
resolved "https://registry.yarnpkg.com/lodash.throttle/-/lodash.throttle-4.1.1.tgz#c23e91b710242ac70c37f1e1cda9274cc39bf2f4"
integrity sha1-wj6RtxAkKscMN/HhzaknTMOb8vQ=

lodash.uniq@^4.5.0:
version "4.5.0"
resolved "https://registry.yarnpkg.com/lodash.uniq/-/lodash.uniq-4.5.0.tgz#d0225373aeb652adc1bc82e4945339a842754773"
integrity sha1-0CJTc662Uq3BvILklFM5qEJ1R3M=

lodash@^4.17.15, lodash@^4.17.19, lodash@^4.17.20, lodash@^4.17.4:
lodash@^4.17.15, lodash@^4.17.19, lodash@^4.17.20, lodash@^4.17.21, lodash@^4.17.4:
version "4.17.21"
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c"
integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==
Expand Down

0 comments on commit 9a80083

Please sign in to comment.