Full changelog: v3.1.1...v3.2.0
Published Packages
Installation
pnpm add @solana/web3.js@3.2.0 @solana/wallet-adapter@3.2.0Highlights
@solana/web3.js
Connection.getTransactionsForAddress: wraps Kit'sgetTransactionsForAddress, an extra RPC method some providers offer (Helius, QuickNode, Triton, etc.). By default it returns results at the signature level. WithtransactionDetails: 'full'it returns full transactions in any encoding. It supports filters (slot, blockTime, signature, status, tokenAccounts) and pagination. (#4002) @amilzclusterApiUrl('mainnet'): a new'mainnet'cluster that points athttps://api.mainnet.solana.com/.'mainnet-beta'still works but is now deprecated. (#3995)- More accurate block metadata types:
innerInstructionsand token balances are now typed as nullable or optional, matching what the RPC actually returns. Strict TypeScript users may need to add null checks. Thanks @snuff12! (#4014) - Bumped to
@solana/kit8.6.MessageV1now uses Kit's transaction-config helpers instead of local copies. (#4013)
@solana/wallet-adapter
- Bumped to
@solana/kit-plugin-wallet0.23.signOffchainMessageand the check on sign-in (SIWS) offchain messages now go through the plugin. (#4019)
Build
- JavaScript bundles are now built with Rolldown instead of Rollup. The bundles ship the same files, exports and dependencies as before, and are 6–12% smaller.
index.iife.min.jsis minified by esbuild (whitespace only). (#4029, #4009)
Behavior changes (@solana/wallet-adapter)
WalletAdapterNetwork.Mainnetis now'mainnet'(was'mainnet-beta'). If you store the network value, map old'mainnet-beta'values to the new one. (#3995)verifySignInnow requires the standard offchain message encoding, and requires thataccount.publicKeymatchesaccount.address. (#4019)signOffchainMessagenow rejects withWalletSignOffchainMessageErrorunless the wallet signed exactly the requested message with the connected account. (#4019)signInwithuseOffchainMessageon wallets older thansolana:signIn1.1.0 now rejects withWalletSignInErrorinstead ofWalletNotReadyError. (#4019)
Maintenance (dependencies, CI, docs)
Security and dependency updates
- Bump vite to ^8.3.5 to patch launch-editor advisories (#3998)
- Bump markdown-it to 14.3.3 (#3999)
- Bump next from 16.3.8 to 16.4.1 (#4004)
- Patch toml and vitest advisories (#4005)
- Patch undici and serialize-javascript (#4007)
- Resolve pnpm audit advisories and add audit-fix workflow (#4020)
- Dedupe lockfile (#4023)
- Bump major dev dependencies (#4036)
CI and tooling
- Add dependabot config (#4000)
- Bump actions and remove stale bot workflows (#4003)
- Add pnpm audit job (#4010)
- Ignore
@solana-program/stakein dependabot (#4024) - Bump the actions group (#4038)
- Fix npm trusted publishing after setup-node v7 (#4040)
- Run npm publish in the release environment (#4041)
- Add private test wallet for agent-browser (#3994)
Docs
Release
- Release v3.2.0 (#4037)