Giter VIP home page Giter VIP logo

Comments (4)

mmkal avatar mmkal commented on September 10, 2024 1

Sure. I think "easy usage" is a good goal. I want to be sure it's as convenient to use as possible, so I agree it might be preferable to publish a separate package for ioredis (or deno) rather than let them pollute the API surface. So far they haven't IMO, even in the proposal PR.

If npm i handy-redis redis vs npm i handy-redis is the only extra work required, it's not a very high price to pay. Arguably it's actually beneficial, as it makes sure users are aware what they're using under the hood. If there are any other problems you've found with usage though, let me know and I'll look into them.

from handy-redis.

mmkal avatar mmkal commented on September 10, 2024

The npm i handy-redis instruction in the top right of the npm page is part of npmjs.com and isn't controlled by this package.

The reasons redis isn't in dependencies:

  • to allow users to more easily install different versions. This library is mostly types, the runtime is very light.
  • in future node_redis might not be the only kind of underlying client. I'm trying out ioredis and might add deno support in future.

Is there some way you think the instructions should be clearer? I'd consider making it a peer dependency. I've held off on this so far because in my experience they're more headache than they're worth, with the current landscape of package managers.

from handy-redis.

lumosmind avatar lumosmind commented on September 10, 2024

I can understand. You want to create generic solution. But there is well known principle "Single Responsibility".
You can create different packages for node_redis and ioredis as kind of abstraction layers . These abstraction layers use your generic solution as dependency under the hood. So your download rate increase with other two abstraction packages. And usage of these packages could be easy.

from handy-redis.

lumosmind avatar lumosmind commented on September 10, 2024

Maybe you can improve readme.md file to get attention of developers. Because they can think the package has some problems until read all of the readme.md file.

from handy-redis.

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.