nodejs-storage icon indicating copy to clipboard operation
nodejs-storage copied to clipboard

refactor(deps): Remove `extend` dependency

Open danielbankhead opened this issue 2 years ago • 2 comments

Remove extend & @types/extend dependencies in favor of native, standardized dependencies.

danielbankhead avatar May 05 '22 17:05 danielbankhead

There are several places in the code that we utilize the deep option to extend (example here). While the shallow cases could be replaced by Object.assign the deep cases would require us to either roll our own recursive option, leave extend in place, or remove in favor or something like lodash.

ddelgrosso1 avatar Aug 02 '22 15:08 ddelgrosso1

Here are a few options worth exploring:

  • https://developer.mozilla.org/en-US/docs/Glossary/Deep_copy
  • https://developer.mozilla.org/en-US/docs/Web/API/structuredClone

danielbankhead avatar Aug 12 '22 20:08 danielbankhead