From dbbf8b87dea9051a97f687465469e12ca3cb8427 Mon Sep 17 00:00:00 2001 From: Gancho Radkov Date: Wed, 30 Oct 2024 10:26:36 +0200 Subject: [PATCH 1/3] chore: deprecate web3wallet --- package.json | 3 +-- packages/web3wallet/README.md | 4 ++++ packages/web3wallet/package.json | 2 +- scripts/update_web3wallet_version.sh | 33 ---------------------------- 4 files changed, 6 insertions(+), 36 deletions(-) delete mode 100755 scripts/update_web3wallet_version.sh diff --git a/package.json b/package.json index 309959341..3c54f6bdc 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,6 @@ "packages/core", "packages/sign-client", "packages/react-native-compat", - "packages/web3wallet", "providers/universal-provider", "providers/signer-connection", "providers/ethereum-provider" @@ -37,7 +36,7 @@ "test:ignoreUnhandled": "npm run test:ignoreUnhandled --workspaces --if-present", "check": "npm run lint; npm run build; npm run test", "reset": "npm run clean; npm run check", - "new-version": "lerna version --no-private --no-git-tag-version --exact && ./scripts/update_relayer_sdk_version.sh && ./scripts/update_web3wallet_version.sh && npm i", + "new-version": "lerna version --no-private --no-git-tag-version --exact && ./scripts/update_relayer_sdk_version.sh", "pre-publish": "npm run new-version; npm run reset", "npm-publish:rc": "lerna exec --no-private -- npm publish --access public --tag rc", "npm-publish:latest": "lerna exec --no-private -- npm publish --access public --tag latest", diff --git a/packages/web3wallet/README.md b/packages/web3wallet/README.md index 227d6b4fa..80b6a9616 100644 --- a/packages/web3wallet/README.md +++ b/packages/web3wallet/README.md @@ -1,3 +1,7 @@ +# Deprecation Warning ⚠️⚠️⚠️ + +Web3Wallet package is deprecated. Please use `@reown/walletkit` instead. [Migration guide link](https://docs.reown.com/walletkit/upgrade/from-web3wallet-web) + # @walletconnect/web3wallet ## Description diff --git a/packages/web3wallet/package.json b/packages/web3wallet/package.json index 9784e838c..cd04bd9a7 100644 --- a/packages/web3wallet/package.json +++ b/packages/web3wallet/package.json @@ -2,7 +2,7 @@ "name": "@walletconnect/web3wallet", "description": "Web3Wallet for WalletConnect Protocol", "version": "1.16.1", - "private": false, + "private": true, "author": "WalletConnect, Inc. ", "homepage": "https://github.com/walletconnect/walletconnect-monorepo/", "license": "Apache-2.0", diff --git a/scripts/update_web3wallet_version.sh b/scripts/update_web3wallet_version.sh deleted file mode 100755 index b74238fea..000000000 --- a/scripts/update_web3wallet_version.sh +++ /dev/null @@ -1,33 +0,0 @@ -#!/bin/bash -# Context: https://vaneyckt.io/posts/safer_bash_scripts_with_set_euxo_pipefail/ -set -Eeuo pipefail - -file_location="packages/web3wallet/package.json" - -# Get the next version from lerna.json. -lerna_file="lerna.json" -lerna_version=$(grep -E '"version": "(.*)"' $lerna_file | sed -E 's/"version": "(.*)"/\1/' | sed 's/^[[:space:]]*//') - -IFS='.' read -r -a VERSION_PARTS <<< "$lerna_version" -MAJOR_VERSION=${VERSION_PARTS[0]} -MINOR_VERSION=${VERSION_PARTS[1]} -PATCH_VERSION=${VERSION_PARTS[2]} -echo "major version: $MAJOR_VERSION" -echo "minor version: $MINOR_VERSION" -echo "patch version: $PATCH_VERSION" - -# web3wallet version is always one major & one minor version behind the lerna version -next_web3wallet_version="$((MAJOR_VERSION - 1)).$((MINOR_VERSION - 1)).$PATCH_VERSION" - -echo "[SCRIPT] Updating Web3wallet version to $next_web3wallet_version in $file_location..." -# Use sed to update the value in the file -if [ "$(uname)" = "Darwin" ]; then - # MacOS requires an empty string as the second argument to -i - sed -i '' -E "s/\"version\": \"[^\"]+\"/\"version\": \"$next_web3wallet_version\"/" "$file_location" -else - sed -i -E "s/\"version\": \"[^\"]+\"/\"version\": \"$next_web3wallet_version\"/" "$file_location" -fi - -echo "[SCRIPT] Version updated to $next_web3wallet_version in $file_location" - -echo "[SCRIPT] ...Done!" \ No newline at end of file From c9262c66f01971b7bb82200b8bfb2d4997adf14d Mon Sep 17 00:00:00 2001 From: Gancho Radkov <43912948+ganchoradkov@users.noreply.github.com> Date: Wed, 30 Oct 2024 10:30:59 +0200 Subject: [PATCH 2/3] chore: adds repo link --- packages/web3wallet/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/web3wallet/README.md b/packages/web3wallet/README.md index 80b6a9616..16620db07 100644 --- a/packages/web3wallet/README.md +++ b/packages/web3wallet/README.md @@ -1,6 +1,6 @@ # Deprecation Warning ⚠️⚠️⚠️ -Web3Wallet package is deprecated. Please use `@reown/walletkit` instead. [Migration guide link](https://docs.reown.com/walletkit/upgrade/from-web3wallet-web) +Web3Wallet package is deprecated. Please use [`@reown/walletkit`](https://github.com/reown-com/reown-walletkit-js) instead. [Migration guide link](https://docs.reown.com/walletkit/upgrade/from-web3wallet-web) # @walletconnect/web3wallet From 8171c4aec786dc3908e936309a3c8e19c694e9f6 Mon Sep 17 00:00:00 2001 From: Gancho Radkov Date: Wed, 30 Oct 2024 12:08:04 +0200 Subject: [PATCH 3/3] fix: ci --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 3c54f6bdc..fb7cd822b 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,7 @@ "packages/utils", "packages/core", "packages/sign-client", + "packages/web3wallet", "packages/react-native-compat", "providers/universal-provider", "providers/signer-connection",