tronprotocol / tronweb

Javascript API Library for interacting with the TRON Network
MIT License
388 stars 259 forks source link

[Feature] Think about separate TronWeb into 2 versions - For NodeJS and For Browser. #502

Closed raymondmeg closed 2 days ago

raymondmeg commented 3 months ago

as titile

start940315 commented 3 months ago

Any problem with TronWeb? After upgrade to v6.0.0-beta, we have provided 3 outputs of TronWeb. The esm, the commonjs and umd type for browser. Welcome to try!

raymondmeg commented 3 months ago

It's not about "if there's any problem" . Nodejs is an event driven and IO asynchrony design. different with the browser.

I think separate it will great help Tronweb running on server.

itxtoledo commented 2 months ago

even with funding from Justin Sun they don't update this library, imagine dividing it into two...

start940315 commented 2 months ago

TronWeb does not use node or browser-specific features and works normally in both node and browsers. The beta version already supports modularity, making it easier to use TronWeb in various environments, which is similar to the popular ethers and web3.js.

start940315 commented 2 months ago

even with funding from Justin Sun they don't update this library, imagine dividing it into two...

We currently support the typescript version, welcome to try the beta version. Please install it as follows:

npm install tronweb@beta

If you have any new feature advice or questions, please open an issue at any time.