Releases: Shopify/blockchain-components
@shopify/[email protected]
Patch Changes
-
#208
749a19a
Thanks @QuintonC! - Upgrades TailwindCSS to v3.3.2.This also removes the use of
@tailwindcss/aspect-ratio
and@tailwindcss/line-clamp
as they are now included in the Tailwind package.For
@shopify/connect-wallet
, this includes a minor update to theQrCode
component displayed within theScanScreen
. This change was made to address the removal of@tailwindcss/aspect-ratio
. Additionally, theQRCode
was updated to make use of theSpinner
component which creates a better loading state while the WalletConnect URI is loading.
@shopify/[email protected]
Patch Changes
-
#208
749a19a
Thanks @QuintonC! - Upgrades TailwindCSS to v3.3.2.This also removes the use of
@tailwindcss/aspect-ratio
and@tailwindcss/line-clamp
as they are now included in the Tailwind package.For
@shopify/connect-wallet
, this includes a minor update to theQrCode
component displayed within theScanScreen
. This change was made to address the removal of@tailwindcss/aspect-ratio
. Additionally, theQRCode
was updated to make use of theSpinner
component which creates a better loading state while the WalletConnect URI is loading.
@shopify/[email protected]
@shopify/[email protected]
Major Changes
-
#7
b49ba23
Thanks @QuintonC! - This change include the following updates:- All usage of WalletConnect v1 connectors have been replaced with v2 connectors. Read more about the deprecation of WalletConnect v1.
buildConnectors
function now requires an additional prop,projectId
.- Any usage which does not provide connectors to the
ConnectWalletProvider
will no longer operate as expected. Previously, the package would build the connectors in place for you. This is no longer the case as we cannot provide a WalletConnect v2projectId
to create the fallback and mobile connectors in place for your instance. You must provide connectors to the context provider in order for the package to function. - The
getDefaultConnectors
function has been removed in favor of usingbuildConnectors
.
To update your instance, please ensure that any usage of
buildConnectors
includes aprojectId
value with a valid WalletConnectprojectId
.To obtain a WalletConnect
projectId
, visit the WalletConnect cloud portal.To migrate, make the following changes:
import {buildConnectors} from '@shopify/connect-wallet'; import {configureChains, createConfig, mainnet} from 'wagmi'; import {publicProvider} from 'wagmi/providers/public'; const {chains, publicClient, webSocketPublicClient} = configureChains( [mainnet], [publicProvider()], ); const {connectors, wagmiConnectors} = buildConnectors({ chains, + projectId: "YOUR_PROJECT_ID" }); const config = createConfig({ autoConnect: true, connectors: wagmiConnectors, publicClient, webSocketPublicClient, }); export {chains, config, connectors};
Patch Changes
- #205
2e7f87e
Thanks @QuintonC! - This patch addresses a minor bug relating to state cleanup when a modal is closed. Prior to this patch, an issue was present when closing the modal that would leave the state visible. This was an issue particularly when the user was connecting with a connector which was based on WalletConnect as the QR Code would be cleared. This addresses that by calling thereset
state method which will clear the modal state and properly. In addition, functionality to handle disconnect events during signature flows was added for modal close events.
@shopify/[email protected]
Major Changes
- #176
cc7d7fc
Thanks @QuintonC! - This update includes a dependency upgrade from [email protected] to wagmi@1. As part of this upgrade, we no longer make use of the ethers package, but instead make use of viem.
@shopify/[email protected]
@shopify/[email protected]
Minor Changes
-
#185
7dddd29
Thanks @QuintonC! - This release adds support for providing custom dynamic values into thediscountCustomTitles
prop.Using
{{value}}
will ensure that the discount value is entered into the custom title and formatted as expected.
Patch Changes
-
#191
4fd5ab4
Thanks @QuintonC! - A bug was patched for the Popover component and its use of document.body which was causing errors in some frameworks. -
#193
baeaf5f
Thanks @QuintonC! - Addresses a style collision with TailwindCSS preflight plugin where the background styles of buttons are removed. -
#190
256b4df
Thanks @QuintonC! - Removed i18n context debug logging in non-development environments. -
#189
e97ea85
Thanks @QuintonC! - This patch addresses an issue where the package was not setting theNODE_ENV
variable during compile, resulting in unexpected behavior when utilizing theprocess.env.NODE_ENV
value to add conditional functionality. -
Updated dependencies [
e97ea85
]:- @shopify/[email protected]
@shopify/[email protected]
Patch Changes
-
#189
e97ea85
Thanks @QuintonC! - This patch addresses an issue where the package was not setting theNODE_ENV
variable during compile, resulting in unexpected behavior when utilizing theprocess.env.NODE_ENV
value to add conditional functionality. -
Updated dependencies [
e97ea85
]:- @shopify/[email protected]
@shopify/[email protected]
Minor Changes
- #196
9700f25
Thanks @QuintonC! - Removes usage of Redux and Redux Toolkit in favor of a non-contextual state management package.
Patch Changes
-
#191
4fd5ab4
Thanks @QuintonC! - A bug was patched for the Popover component and its use of document.body which was causing errors in some frameworks. -
#193
baeaf5f
Thanks @QuintonC! - Addresses a style collision with TailwindCSS preflight plugin where the background styles of buttons are removed. -
#190
256b4df
Thanks @QuintonC! - Removed i18n context debug logging in non-development environments. -
#189
e97ea85
Thanks @QuintonC! - This patch addresses an issue where the package was not setting theNODE_ENV
variable during compile, resulting in unexpected behavior when utilizing theprocess.env.NODE_ENV
value to add conditional functionality. -
Updated dependencies [
e97ea85
]:- @shopify/[email protected]
- @shopify/[email protected]