Comments (6)
You mean them having to pull in their own versions of eosjs/2?
from scatter-js.
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.
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.
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.
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.
from scatter-js.
Oh, got it. Thanks a lot!
from scatter-js.
Related Issues (20)
- Can't call eos contract by use WalletAPI CreateTransaction HOT 1
- TypeError: c is not a constructor
- eosjs2 naming confusion HOT 1
- signing arbitrary data HOT 1
- Repeat websocket connections causes WalletAPI to utilize closed old websocket HOT 5
- README broken links HOT 3
- Add custom network globe icon is broken in v. 12.0.0 HOT 3
- TypeError: ScatterJS.scatter.eosHook is not a function at ta.html:61
- Defining "ScatterJS.scatter.eos" Cannot call related methods
- Scatter not found in Firefox HOT 1
- Cannot read property 'getRawAbi' of undefined
- Can't connect to scatter from browser
- Blocking when sendTransaction in Tron HOT 1
- ES6 Proxy is not defined in IE11 and Old Chrome
- Detecting auth
- JSON parsing error when RelaySocket connect fails HOT 2
- When calling transact(eosio.msig), Firefox and Chrome caught exception that said firewalled. HOT 2
- 404 at https://relay.get-scatter.com/app/connect/nodejs_env
- ScatterCDN failed
- Whitelisting
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scatter-js.