Repository navigation
chore: version packages - #81
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and publish to npm yourself or setup this action to publish automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@bigmi/client@0.10.4
Patch Changes
#80
c3bff6aThanks @chybisov! - Detect Binance whenwindow.binancew3wcarries no bitcoin provider butwindow.unisatreportsisBinance. The check returned early onbinancew3walone, so that build fell through and Binance was reported unavailable.#80
c3bff6aThanks @chybisov! - Clear a connection even when the connector'sdisconnect()throws.xverse,oylandleatherthrowProviderNotFoundErroronce their provider is gone, which skipped the delete and left the connection to be promoted tocurrent— so the store still reported an account that could never sign, and the next disconnect failed too. The state is now consistent and the error still reaches the caller. The connector's own storage shim is cleared on that path too, so the store and storage cannot disagree and a later reconnect cannot silently restore what the user disconnected.#80
c3bff6aThanks @chybisov! - Stop MetaMask Bitcoin from opening the extension on page load.connect()ignored theisReconnectingflag and read accounts through the interactivebitcoin:connect, soreconnect()prompted a returning user whose wallet was locked. It now reads the session the wallet already restored, matchingunisat,okx,binance,bitgetandonekey.The wallet fills its
accountsfrom a session lookup it does not await, so that read is polled briefly rather than taken as a first snapshot — otherwise a wallet that registers after the app mounts reports no session and never recovers. An absent session now rejects withConnectorNotConnectedErrorinstead ofUserRejectedRequestError, since nothing was shown to the user.isAuthorized()deliberately gates on the storage shim and the wallet's presence, not on its accounts: the wallet fills itsaccountsfrom a lookup it does not await, so reading them there would race the restore, report false on every reload and skip reconnect entirely.connect({ isReconnecting: true })is what waits for the session and rejects when it never arrives. A failure while reconnecting keeps its own error type rather than becomingUserRejectedRequestError, and an account that cannot be parsed is skipped instead of ending the poll.A
changeevent no longer throws out of MetaMask's emitter when one account cannot be parsed, and a batch where nothing parses is treated as the transient half-initialized state rather than a disconnect, and a selection that leaves no payment address now disconnects instead of reporting a connected wallet with no usable address. The connected shim is cleared when the wallet itself disconnects, so revoking the site inside MetaMask is not retried on every load.An empty selection — a user with no Bitcoin account — now rejects with
ConnectorNotConnectedErroron the interactive path too, rather than aTypeErrorrelabelled as a rejection. A reconnect that finds no session keeps the connected shim, because the poll cannot tell an absent session from a wallet that has not answered yet and dropping it would permanently sign out a user whose session is valid; a genuine revoke still clears it throughonDisconnect. Only the interactivebitcoin:connectmaps toUserRejectedRequestError, so a blocked storage write no longer reports a successful connect as a rejection, andonDisconnectreleases the events subscription so a later connect rebinds to the current wallet object.@bigmi/react@0.9.4
Patch Changes
c3bff6a,c3bff6a,c3bff6a]: