Skip to content

Commit

Permalink
Replace deep-extend with merge from lodash
Browse files Browse the repository at this point in the history
The `merge` function from `deep-extend` is at least mostly equivalent
to `merge` from `lodash` - certainly in how we're using it.
  • Loading branch information
Gudahtt committed Jan 27, 2020
1 parent 491675d commit 574ed1f
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/scripts/migrations/009.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This migration breaks out the CurrencyController substate
*/

import merge from 'deep-extend'
import { merge } from 'lodash'

import clone from 'clone'

Expand Down
2 changes: 1 addition & 1 deletion app/scripts/migrations/010.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This migration breaks out the ShapeShiftController substate
*/

import merge from 'deep-extend'
import { merge } from 'lodash'

import clone from 'clone'

Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@
"d3": "^5.15.0",
"debounce": "1.1.0",
"debounce-stream": "^2.0.0",
"deep-extend": "^0.5.1",
"deep-freeze-strict": "1.1.1",
"detect-node": "^2.0.3",
"dnode": "^1.2.2",
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8734,7 +8734,7 @@ deep-equal@^1.0.0, deep-equal@^1.0.1, deep-equal@~1.0.1:
resolved "https://registry.yarnpkg.com/deep-equal/-/deep-equal-1.0.1.tgz#f5d260292b660e084eff4cdbc9f08ad3247448b5"
integrity sha1-9dJgKStmDghO/0zbyfCK0yR0SLU=

deep-extend@^0.5.0, deep-extend@^0.5.1:
deep-extend@^0.5.0:
version "0.5.1"
resolved "https://registry.yarnpkg.com/deep-extend/-/deep-extend-0.5.1.tgz#b894a9dd90d3023fbf1c55a394fb858eb2066f1f"
integrity sha512-N8vBdOa+DF7zkRrDCsaOXoCs/E2fJfx9B9MrKnnSiHNh4ws7eSys6YQE4KvT1cecKmOASYQBhbKjeuDD9lT81w==
Expand Down

0 comments on commit 574ed1f

Please sign in to comment.