From be327a3072a99f530e099df7321d03dc31c9068a Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 22 May 2024 13:08:19 -0700 Subject: [PATCH] [Version update] v4.0.2 (#1303) * Revert "update testapp to 4.0.1 (#1300)" This reverts commit 53f37742c40ff5c20f6c652611b322c318332328. * v4.0.2 --------- Co-authored-by: Jungho Bang Co-authored-by: bangtoven --- apps/testapp/package.json | 2 +- apps/testapp/src/components/Layout.tsx | 2 +- .../context/CBWSDKReactContextProvider.tsx | 10 ++-- packages/wallet-sdk/package.json | 2 +- packages/wallet-sdk/src/version.ts | 2 +- yarn.lock | 58 ++++++++++++------- 6 files changed, 45 insertions(+), 31 deletions(-) diff --git a/apps/testapp/package.json b/apps/testapp/package.json index e4dbd38a51..793873801c 100644 --- a/apps/testapp/package.json +++ b/apps/testapp/package.json @@ -12,7 +12,7 @@ "@chakra-ui/react": "^2.8.0", "@coinbase/wallet-sdk-3.7.2": "npm:@coinbase/wallet-sdk@3.7.2", "@coinbase/wallet-sdk-3.9.3": "npm:@coinbase/wallet-sdk@3.9.3", - "@coinbase/wallet-sdk-4.0.1": "npm:@coinbase/wallet-sdk@4.0.1", + "@coinbase/wallet-sdk-4.0.0": "npm:@coinbase/wallet-sdk@4.0.0", "@emotion/react": "^11.11.1", "@emotion/styled": "^11.11.0", "@metamask/eth-sig-util": "^7.0.0", diff --git a/apps/testapp/src/components/Layout.tsx b/apps/testapp/src/components/Layout.tsx index 8a643414a7..ddb04ba454 100644 --- a/apps/testapp/src/components/Layout.tsx +++ b/apps/testapp/src/components/Layout.tsx @@ -65,7 +65,7 @@ export function Layout({ children }: LayoutProps) { ))} - {sdkVersion === '4.0.1' && ( + {sdkVersion === '4.0.0' && ( <> }> diff --git a/apps/testapp/src/context/CBWSDKReactContextProvider.tsx b/apps/testapp/src/context/CBWSDKReactContextProvider.tsx index 6058007131..22d68f32fa 100644 --- a/apps/testapp/src/context/CBWSDKReactContextProvider.tsx +++ b/apps/testapp/src/context/CBWSDKReactContextProvider.tsx @@ -1,6 +1,6 @@ import { CoinbaseWalletSDK as CoinbaseWalletSDK372 } from '@coinbase/wallet-sdk-3.7.2'; import { CoinbaseWalletSDK as CoinbaseWalletSDK393 } from '@coinbase/wallet-sdk-3.9.3'; -import { CoinbaseWalletSDK as CoinbaseWalletSDK401 } from '@coinbase/wallet-sdk-4.0.1'; +import { CoinbaseWalletSDK as CoinbaseWalletSDK400 } from '@coinbase/wallet-sdk-4.0.0'; import React, { useEffect, useMemo } from 'react'; type CBWSDKProviderProps = { @@ -10,7 +10,7 @@ type CBWSDKProviderProps = { const CBWSDKReactContext = React.createContext(null); const SELECTED_SDK_KEY = 'selected_sdk_version'; -export const sdkVersions = ['4.0.1', '3.9.3', '3.7.2'] as const; +export const sdkVersions = ['4.0.0', '3.9.3', '3.7.2'] as const; export type SDKVersionType = (typeof sdkVersions)[number]; const SELECTED_SCW_URL_KEY = 'scw_url'; @@ -73,8 +73,8 @@ export function CBWSDKReactContextProvider({ children }: CBWSDKProviderProps) { useEffect(() => { let cbwsdk; let preference; - if (version === '4.0.1') { - cbwsdk = new CoinbaseWalletSDK401({ + if (version === '4.0.0') { + cbwsdk = new CoinbaseWalletSDK400({ appName: 'SDK Playground', appChainIds: [84532, 8452], }); @@ -99,7 +99,7 @@ export function CBWSDKReactContextProvider({ children }: CBWSDKProviderProps) { }, [version, option]); useEffect(() => { - if (version === '4.0.1') { + if (version === '4.0.0') { if (scwUrl) window.setPopupUrl?.(scwUrl); } }, [version, scwUrl, sdk]); diff --git a/packages/wallet-sdk/package.json b/packages/wallet-sdk/package.json index 79c1cb1d80..fb93291821 100644 --- a/packages/wallet-sdk/package.json +++ b/packages/wallet-sdk/package.json @@ -1,6 +1,6 @@ { "name": "@coinbase/wallet-sdk", - "version": "4.0.1", + "version": "4.0.2", "description": "Coinbase Wallet JavaScript SDK", "keywords": [ "cipher", diff --git a/packages/wallet-sdk/src/version.ts b/packages/wallet-sdk/src/version.ts index 2d7102528a..12922485e5 100644 --- a/packages/wallet-sdk/src/version.ts +++ b/packages/wallet-sdk/src/version.ts @@ -1 +1 @@ -export const LIB_VERSION = '4.0.1'; +export const LIB_VERSION = '4.0.2'; diff --git a/yarn.lock b/yarn.lock index b7e73ae64e..807339dbf1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2825,7 +2825,42 @@ __metadata: languageName: node linkType: hard -"@coinbase/wallet-sdk-4.0.1@npm:@coinbase/wallet-sdk@4.0.1, @coinbase/wallet-sdk@workspace:packages/wallet-sdk": +"@coinbase/wallet-sdk-4.0.0@npm:@coinbase/wallet-sdk@4.0.0": + version: 4.0.0 + resolution: "@coinbase/wallet-sdk@npm:4.0.0" + dependencies: + buffer: ^6.0.3 + clsx: ^1.2.1 + eventemitter3: ^5.0.1 + keccak: ^3.0.3 + preact: ^10.16.0 + sha.js: ^2.4.11 + checksum: f9101233cd4529daae235eb01fcd10fe3c9ab075b3171beacb755ff475be7a9e33957fb4ffedbdd34092c3045ddcbf6fda181a5adfd531307a4cc8937861ef38 + languageName: node + linkType: hard + +"@coinbase/wallet-sdk-testapp@workspace:apps/testapp": + version: 0.0.0-use.local + resolution: "@coinbase/wallet-sdk-testapp@workspace:apps/testapp" + dependencies: + "@chakra-ui/icons": ^2.1.1 + "@chakra-ui/react": ^2.8.0 + "@coinbase/wallet-sdk-3.7.2": "npm:@coinbase/wallet-sdk@3.7.2" + "@coinbase/wallet-sdk-3.9.3": "npm:@coinbase/wallet-sdk@3.9.3" + "@coinbase/wallet-sdk-4.0.0": "npm:@coinbase/wallet-sdk@4.0.0" + "@emotion/react": ^11.11.1 + "@emotion/styled": ^11.11.0 + "@metamask/eth-sig-util": ^7.0.0 + "@types/react": 18.2.15 + framer-motion: ^10.13.1 + next: ^13.5.0 + react: ^18.2.0 + react-dom: ^18.2.0 + react-hook-form: ^7.45.2 + languageName: unknown + linkType: soft + +"@coinbase/wallet-sdk@workspace:packages/wallet-sdk": version: 0.0.0-use.local resolution: "@coinbase/wallet-sdk@workspace:packages/wallet-sdk" dependencies: @@ -2861,27 +2896,6 @@ __metadata: languageName: unknown linkType: soft -"@coinbase/wallet-sdk-testapp@workspace:apps/testapp": - version: 0.0.0-use.local - resolution: "@coinbase/wallet-sdk-testapp@workspace:apps/testapp" - dependencies: - "@chakra-ui/icons": ^2.1.1 - "@chakra-ui/react": ^2.8.0 - "@coinbase/wallet-sdk-3.7.2": "npm:@coinbase/wallet-sdk@3.7.2" - "@coinbase/wallet-sdk-3.9.3": "npm:@coinbase/wallet-sdk@3.9.3" - "@coinbase/wallet-sdk-4.0.1": "npm:@coinbase/wallet-sdk@4.0.1" - "@emotion/react": ^11.11.1 - "@emotion/styled": ^11.11.0 - "@metamask/eth-sig-util": ^7.0.0 - "@types/react": 18.2.15 - framer-motion: ^10.13.1 - next: ^13.5.0 - react: ^18.2.0 - react-dom: ^18.2.0 - react-hook-form: ^7.45.2 - languageName: unknown - linkType: soft - "@cspotcode/source-map-support@npm:^0.8.0": version: 0.8.1 resolution: "@cspotcode/source-map-support@npm:0.8.1"