Coder Social home page Coder Social logo

Comments (3)

pbeshai avatar pbeshai commented on May 18, 2024 2

Hey, thank you for a very politely worded question! The reason why it's a peer dependency and not a direct dependency is that historically some people needed v5 to support older browsers, while some people wanted v6 to work with newer features. I couldn't get the "you choose your version" to work while listing it as a direct dependency, so I let people choose. I do hope in a new version to make this more obvious / use something like the built-in URLSearchParams as a default, but I need to investigate it more still.

from serialize-query-params.

pbeshai avatar pbeshai commented on May 18, 2024

Addressed via #33 by throwing an exception when the wrong version is present. Available in v1.2.3

from serialize-query-params.

amireynoso avatar amireynoso commented on May 18, 2024

Hey @pbeshai, would you mind explaining your rationale for throwing an exception instead of setting query-string to be a dependency? If this library needs query-string to function, then it should be added to its dependencies. If it doesn't, why is it listed as a peerDependency and/or why would you throw an exception?

I'm not quite sure I understand why the responsibility of installing this supporting library is pushed to the consumers.

Appreciate your work. 🙏

from serialize-query-params.

Related Issues (18)

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.