Coder Social home page Coder Social logo

Comments (6)

nsjames avatar nsjames commented on June 15, 2024

You mean them having to pull in their own versions of eosjs/2?

from scatter-js.

 avatar commented on June 15, 2024

Yes, exactly! There are multiple benefits. The main benefit is that, If user want to support using eosjs2 without scatter (while also reserve the usage of using eosjs2 with scatter), then user won't import another eosjs2 instance, which means smaller bundle file size. If you have some requirements for the version of user's eosjs2, then it should be listed in the peer dependency version. See https://nodejs.org/en/blog/npm/peer-dependencies/

from scatter-js.

nsjames avatar nsjames commented on June 15, 2024

ScatterJS doesn't come with eosjs or eosjs2. It's up to the developer to provide the version of those libraries they are using so that they aren't locked into certain versions because that's what we're using.

from scatter-js.

 avatar commented on June 15, 2024

But it does come with one in plugins 😅 https://github.com/GetScatter/scatter-js/blob/master/packages/plugin-eosjs2/package.json#L7

from scatter-js.

nsjames avatar nsjames commented on June 15, 2024

Errr, not really. It's listed in the dependencies but never pulled into the packed or built libraries so it doesn't exist inside of the files you'd be importing. I removed it from my local ( and on the eosjs on too which seemed to be there as well ) and have pushed it to the repo, but it can't be pushed to npm or the cdn because no changes happened on the exports so no versioning can occur. Next time I push changes it'll update the package json.

9b56a8f

from scatter-js.

 avatar commented on June 15, 2024

Oh, got it. Thanks a lot!

from scatter-js.

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.