Code Monkey home page Code Monkey logo

Comments (3)

YuriGor avatar YuriGor commented on May 28, 2024 1

I support two versions of lib:

  • with a Lodash as an external dependency, explicitly provided by client code
  • with a Lodash as internal built in dependency.
    I am actually not sure what exactly is a "peer" dependency, will read some docs..

from deepdash.

YuriGor avatar YuriGor commented on May 28, 2024 1

Well, I read about peer deps, and I think it's not a deepdash case.
Lodash is heavily used internally, so it's a 'normal' dependency.
Depending on build type:

  • if standalone - then used Lodash methods will be tree shaken and bundled by Rollup
  • if as a mixin extension - then Lodash instance explicitly given by user will be used instead

I have a dream to replace all the Lodash dependencies in the standalone version by native/self-written alternatives. It's especially desired because of #58
After that, I will be able to switch Lodash from deps to peer deps.

Also, it would be good to support also Underscore.js - it still has some good audience, so maybe folks will appreciate Deepdash too. But in this case, I am not sure if I will need to list both Lodash and Underscore as peer deps, because they are alternatives to each other.

from deepdash.

YuriGor avatar YuriGor commented on May 28, 2024

Well, I had several attempts of doing this, and the heaviest thing I found is the clone / cloneDeep method deepdash depends on in filterDeep.
But these attempts made me to learn the core problem deeper so now I am about of great refactoring of filterDeep.

from deepdash.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.