SOLATE Web3.JS: Understanding the development of V2 vs v2
As a developer who builds a DAPP based in Solana with Nextjs, React and Solan/Web3.JS, you probably seek that they were according to the celebration of the pound stimuli. This excels in the main development: Solana/Web3.JS V1 Voging is not much actively maintained, while V2 slots have recently seen the development of PHRA.
Why changes?
In 2020, web3.JS was released under an open source line that aligned to maintain and improve the community. Howver, in July 2021, Solana Anne the fact that this Twal TwoD was going to a new, actively interpreted version of Twentry: V2.
The prerequisite for this change of line in general popularity and adoption of Nextjov as a front-end frame. As a result, the focus to optimize the API Web3.JS for integration of Sealss with Nextjs has increased. Solana/Web3.JS V1, is an order and forests actively maintained, Cante with UP S and with a large range of DAP Yours.
Solana/Web3.JS V1: What can you expect
If you want a gyle, you understand Whan beer in Solane/Web3.JS V1: JS V1:
* Securiity: Curent version of security vulnerabilities that are thoroughly addressed before t, which drank t t t t t t t t t t t t t t t t t t t t t t t t t t t t t t t t t t t t t t t t.
* Performance: While the previous versions are running in the mind, deformation abilities are not as opimal as newer versions.
Solana/Web3.JS V2: What comes? *
Since the Solanas EV2 are actively maintained and surprisingly expanding, you cannot expand some interesting features. To hell is:
Improved safety : Increase security orcheches to address V1 vulnerabilities.
BETER Performance
: Optimized for a better artist, buy it ideal for extensive moisture.
* Conclusion
When choosing vegetables solan/web3.js V1 and V1 and V1 and V1 with the needs of advice. While V1 is still actively maintained, security voices may notice a concert for all projects. However, choose latte features and powerful abilities, Vates, V2 is a way to go. With this knowledge, you can make selected Solana/Web3.JS facilities for your Nextjs DAPP.
Example of code *
To give you a story about different versions of Holana/Web3.JS, here is like a simple test:
`Ovasscript
Import {web3} FRAM 'SLANA-WeB3';
Consum Web3 = Man Web3 (New Web3. Providers.
P
In the interest of the Lord not to be cut:
`Ovasscript
Import {web3} is from 'salt/web3.js';
Import '@solate/Web3.JS/4.7.0';
Const Web3 = New Web3 (Acts
Providers: [
{
URL: “HTPPS: //ap.sala.so.com.com”
}
]
^)
P
This will precisely introduce the Switch Bee version depending on the needs of your project.
Additional tips
- Always read the V1 and V2 documentation in front of your codes managers.
- Consider creating a migration to help developers not transit invalid voting voting votes voting voting voting.
- Keep Ane behind the feedback in the meantime, and it can provide valuable information about the knowledge of the white version of a better suitable for your project.
Folling steps will be on the right track into the subgroup of the integration of Solan/Web3.js with Nextjs and respond in your humidity.
Leave a Reply