Coder Social home page Coder Social logo

Comments (3)

homura avatar homura commented on June 2, 2024 1

It depends on how users utilize the Spore SDK.

If we only require Spore SDK methods and not other Lumos methods, then installing the Spore SDK is better.

However, if we need other CKB-related methods in most situations when using Spore SDK, then it's more flexible to use peerDependencies with a ranged version. This approach would be beneficial since we only need one Lumos in the build to create a lighter production build.

BTW, Lumos has refactored the entry package @ckb-lumos/lumos from 0.22, and we don't need to import several child packages in most cases. This will make it simpler when Spore SDK chooses the peerDependencies solution

"@ckb-lumos/bi": "^0.22.0-next.3",
"@ckb-lumos/rpc": "^0.22.0-next.3",
"@ckb-lumos/base": "^0.22.0-next.3",
"@ckb-lumos/lumos": "^0.22.0-next.3",
"@ckb-lumos/codec": "^0.22.0-next.3",
"@ckb-lumos/config-manager": "^0.22.0-next.3",
"@ckb-lumos/common-scripts": "^0.22.0-next.3",

from spore-sdk.

ashuralyk avatar ashuralyk commented on June 2, 2024

@ShookLyngs this issue gets a potential resolution for a better experience?

from spore-sdk.

ShookLyngs avatar ShookLyngs commented on June 2, 2024

this issue gets a potential resolution for a better experience?

For now, I suggest we keep the lumos family in the dependencies. Moving them to peerDependencies can potentially introduce other unexpected issues for developers (too many peer dependencies), which is not our intention.

Regarding the improvement resolution, as homura mentioned, if we can reduce the lumos-related dependency count in the spore-sdk, such as only having @ckb-lumos/lumos as a dependency, we can consider moving it to the peerDependencies. This change is unlikely to cause troubles for developers.

from spore-sdk.

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.