The New web3.js - Release Candidate
Pre-release
Pre-release
steveluscher
released this
31 Jul 23:15
·
341 commits
to master
since this release
v2.0.0-rc.0 (2024-07-31)
This is an open invitation to test out what we intend to release as v2.0. Your feedback in these final moments before release will help us catch any bugs and rough edges that we missed during development.
To install the Release Candidate:
npm install --save @solana/web3.js@rc
- Try the runnable examples in the
examples/
directory to get a feel for the API. - Use the example dApp at https://solana-labs.github.io/solana-web3.js/example/ – source available here – for an example of how to build transactions with the new web3.js for use with wallets.
- Install TypeScript clients for on-chain programs like System and Token, then build a useful application or backend service.
Before the general release of web3.js, shortly before Breakpoint 2024 in September, we want to collect as much feedback as possible from you. If you find a bug, are missing a feature, or would like an API modified, file a GitHub Issue.
Changelog since Technology Preview 4
- #2907
677a9c4
Thanks @steveluscher! -__DEV__
mode will now be the default if you don't setprocess.env.NODE_ENV
at all. This means fewer people ‘accidentally’ finding themselves in production mode with minified error messages. - #2905
56fde06
Thanks @steveluscher! - Fixed the type ofconfig
ongetComputeUnitEstimateForTransactionMessage
. It is now optional and does not includetransactionMessage
. - #2968
9239e6e
Thanks @lorisleiva! - Tighten return type of isProgramError - #2928
bac3747
Thanks @steveluscher! - Added auseSignIn
hook that, given aUiWallet
orUiWalletAccount
, returns a function that you can call to trigger a wallet's ‘Sign In With Solana’ feature. - #2950
29821df
Thanks @mcintyre94! - Refactor rpc-spec to remove requirement for transports to implement parts of JSON RPC spec - #2910
42a70f4
Thanks @Jac0xb! - Fixed a bug where the RPC would fail to throw errors in the event that you configured it with anAbortSignal
- #2969
419c12e
Thanks @mcintyre94! - Add a function to replace accounts in a transaction message using lookup tables - #2905
56fde06
Thanks @steveluscher! - Fixed the type ofconfig
ongetComputeUnitEstimateForTransactionMessage
. It is now optional and does not includetransactionMessage
.