Skip to content

Commit

Permalink
fix: Remove clone-deep dependency in favor of native `structuredClo…
Browse files Browse the repository at this point in the history
…ne` (#214)
  • Loading branch information
askoufis authored Jul 2, 2024
1 parent db2547e commit 882294a
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 110 deletions.
107 changes: 0 additions & 107 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
"dist"
],
"dependencies": {
"clone-deep": "^4.0.1",
"flat": "^5.0.2",
"wildcard": "^2.0.1"
},
Expand Down
3 changes: 1 addition & 2 deletions src/join-arrays.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import cloneDeep from "clone-deep";
import { Customize, Key } from "./types";
import mergeWith from "./merge-with";
import { isRegex, isFunction, isPlainObject } from "./utils";
Expand Down Expand Up @@ -48,7 +47,7 @@ export default function joinArrays({
}

if (isPlainObject(b)) {
return cloneDeep(b);
return structuredClone(b);
}

if (isArray(b)) {
Expand Down

0 comments on commit 882294a

Please sign in to comment.