Releases: blocknative/web3-onboard
Fix Filters Validation
This release of the injected wallets package includes a fix to the validation when filtering wallets so that a boolean
and string[]
type is valid as indicated by the types.
Changelog:
- web3-onboard:v2.0.2: [fix] - Injected Filters (#874)
Auto Select Wallet Disable Modals
This release adds an enhancement to the auto select wallet flow, allowing for an additional option to disable modals which prevents modals from flashing on screen on a successful auto connect.
const previouslySelectedWallet = window.localStorage.getItem('selectedWalletLabel')
onboard.connectWallet({
autoSelect: {
label: previouslyConnectedWallet,
disableModals: true
}
})
The original way of calling connectWallet
with the autoselect
parameter as a string
is also still valid and will get converted to the new options object internally.
There are edge cases where a user may have disabled, logged out or revoked access to your app since last session, in which case the usual wallet popups will fire, but no Onboard modals will display and the call to connect wallet may not resolve if the user does not successfully log in.
Changelog:
- web3-onboard/core:v2.0.9: [enhancement] - Autoselect Disable Modals (#873)
[core] - CSS Var z-index
A small release that adds a CSS var for all modals z-index
property which can be modified via --onboard-modal-z-index: <new value>
Changelog:
- Add modals z-index (#876)
Bug Fix for ENS Check
This release has a small bugfix to ensure that there is a chain rpcUrl before trying to do an ENS lookup.
Changelog:
- core/v2.0.8: [fix] - Check Before ENS Lookup (#871)
Update Common Package
This release of the core
package updates the common
package to include a type fix for the EIP1193Provider
.
Changelog:
- [fix] - Provider Types (#869)
Update EIP1193 Type
This release of the common
package update the request
type on the EIP1193
provider so that it is compatible with the ethers ExternalProvider
type.
Changelog:
- [fix] - Provider Types (#869)
Gnosis Module Fixes
[gnosis:v2.0.1]
- Adds check to see if loaded within an iframe. If loaded in an iframe then it is possibly a Gnosis Safe context, so return the Gnosis module, if not, then it cannot be a safe context, so return empty array.
- Patches
eth_requestAccounts
method on provider to return safe address - Adds error message if Gnosis is selected, but not in a safe context
- Fixes SafeAppSDK import that was failing in some build environments
[core:v2.0.5]
- Adds scroll to top functionality for core wallet select modal to ensure that error message is displayed even when scrolled to the bottom of modal
[demo:v2.0.1]
- Adds Gnosis safe to the demo package
ENS Fix
Wallet Connect RPC Provider Fixes
- Fixes WalletConnect provider so that it can make calls to RPC endpoints that were previously failing.
Changelog:
- walletconnect-v2.0.1: [fix] - Add RPC Providers (#860)
Version 2: Web3-Onboard 🎉🔥
Web3-Onboard is the long awaited full re-write of Onboard that takes everything that we have learned in designing/managing Onboard V1 and implements a new architecture and API. This initial release has feature parity with version 1 along with a bunch of new features. This first release will also serve as a flexible foundation/architecture for the many upcoming features that we have planned.
Features
- Re-designed UI: New modern UI that is fully customizable via CSS vars.
- Multiple Chain Support: Your users can now switch between chains/networks with ease. You configure which EVM compatible chains you want to support.
- Multiple Wallets and Accounts Connection: Your users can now connect multiple wallets and/or multiple accounts within each wallet at the same time.
- React Hooks: A React Hooks package for slick integration in to React apps.
- Minimal Dependencies: All wallet dependencies are included in separate packages, so you only include the ones you want to use.
- Dynamic Imports: Supporting multiple wallets in your app requires a lot of dependencies. Onboard dynamically imports a wallet and dependencies only when the user selects it, so that minimal bandwidth is used.
- Wallet Provider Standardization: All wallet modules expose a provider that is patched to be compliant with the EIP-1193, EIP-1102, EIP-3085 and EIP-3326 specifications.
Packages with new versions:
Wallet packages with new versions: