Skip to content

Releases: Shopify/blockchain-components

@shopify/[email protected]

12 Jul 19:45
72ada51
Compare
Choose a tag to compare

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 the QrCode component displayed within the ScanScreen. This change was made to address the removal of @tailwindcss/aspect-ratio. Additionally, the QRCode was updated to make use of the Spinner component which creates a better loading state while the WalletConnect URI is loading.

@shopify/[email protected]

12 Jul 19:45
72ada51
Compare
Choose a tag to compare

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 the QrCode component displayed within the ScanScreen. This change was made to address the removal of @tailwindcss/aspect-ratio. Additionally, the QRCode was updated to make use of the Spinner component which creates a better loading state while the WalletConnect URI is loading.

@shopify/[email protected]

28 Jun 13:58
3cdaf86
Compare
Choose a tag to compare

Patch Changes

  • #203 7b16197 Thanks @QuintonC! - Addresses a minor bug with a lack of unique keys on mapped elements

@shopify/[email protected]

28 Jun 13:58
3cdaf86
Compare
Choose a tag to compare

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 v2 projectId 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 using buildConnectors.

    To update your instance, please ensure that any usage of buildConnectors includes a projectId value with a valid WalletConnect projectId.

    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 the reset 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]

13 Jun 16:45
d50ee1d
Compare
Choose a tag to compare

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]

08 Jun 15:24
2f67921
Compare
Choose a tag to compare

Patch Changes

  • #199 74ec3db Thanks @QuintonC! - Addressed a minor bug where after connecting, if an attempt to reconnect without refreshing occurs the modal would show a connecting state rather than a clean state.

@shopify/[email protected]

05 Jun 16:46
53b22de
Compare
Choose a tag to compare

Minor Changes

  • #185 7dddd29 Thanks @QuintonC! - This release adds support for providing custom dynamic values into the discountCustomTitles 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 the NODE_ENV variable during compile, resulting in unexpected behavior when utilizing the process.env.NODE_ENV value to add conditional functionality.

  • Updated dependencies [e97ea85]:

@shopify/[email protected]

05 Jun 16:46
53b22de
Compare
Choose a tag to compare

Patch Changes

  • #189 e97ea85 Thanks @QuintonC! - This patch addresses an issue where the package was not setting the NODE_ENV variable during compile, resulting in unexpected behavior when utilizing the process.env.NODE_ENV value to add conditional functionality.

  • Updated dependencies [e97ea85]:

@shopify/[email protected]

05 Jun 16:46
53b22de
Compare
Choose a tag to compare

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 the NODE_ENV variable during compile, resulting in unexpected behavior when utilizing the process.env.NODE_ENV value to add conditional functionality.

  • Updated dependencies [e97ea85]:

@shopify/[email protected]

05 Jun 16:46
53b22de
Compare
Choose a tag to compare

Patch Changes

  • #189 e97ea85 Thanks @QuintonC! - This patch addresses an issue where the package was not setting the NODE_ENV variable during compile, resulting in unexpected behavior when utilizing the process.env.NODE_ENV value to add conditional functionality.