From f8c5deb9b6e3edde14202d395dc3870f3da9b2b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eduard=20Bardaj=C3=AD=20Puig?= Date: Fri, 1 Nov 2024 11:45:36 +0000 Subject: [PATCH 1/4] Fix listener --- src/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 2ec97eb..477ee56 100644 --- a/src/index.ts +++ b/src/index.ts @@ -116,9 +116,10 @@ class Wallet { } if (!this.isProviderSet()) { - throw new Error( + console.error( 'No wallet provider selected. The user must first select a wallet before adding listeners to wallet events.' ); + return () => {}; } const adapter = this.defaultAdapters[this.providerId as string]; From 08dd4cbca125f68ecbce7706ddc453adfc044b0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eduard=20Bardaj=C3=AD=20Puig?= Date: Fri, 1 Nov 2024 11:48:58 +0000 Subject: [PATCH 2/4] Bump fix --- example/package-lock.json | 2 +- package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/example/package-lock.json b/example/package-lock.json index 5443dab..748e848 100644 --- a/example/package-lock.json +++ b/example/package-lock.json @@ -43,7 +43,7 @@ } }, "..": { - "version": "2.8.3", + "version": "2.8.4", "license": "ISC", "dependencies": { "@sats-connect/core": "0.4.0-6eb2eb5", diff --git a/package-lock.json b/package-lock.json index 9ffae24..08dd20d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "sats-connect", - "version": "2.8.3", + "version": "2.8.4", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "sats-connect", - "version": "2.8.3", + "version": "2.8.4", "license": "ISC", "dependencies": { "@sats-connect/core": "0.4.0-6eb2eb5", diff --git a/package.json b/package.json index ed355d8..fa74f4f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "sats-connect", - "version": "2.8.3", + "version": "2.8.4", "main": "dist/index.mjs", "files": [ "dist" From 3d5b17b99d3f20be799416b6c1eaaa2877374f08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eduard=20Bardaj=C3=AD=20Puig?= Date: Fri, 1 Nov 2024 11:50:07 +0000 Subject: [PATCH 3/4] Bump sats-connect-core --- package-lock.json | 8 ++++---- package.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index 08dd20d..039f8b2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "2.8.4", "license": "ISC", "dependencies": { - "@sats-connect/core": "0.4.0-6eb2eb5", + "@sats-connect/core": "0.4.0", "@sats-connect/make-default-provider-config": "0.0.10", "@sats-connect/ui": "0.0.7" }, @@ -1716,9 +1716,9 @@ ] }, "node_modules/@sats-connect/core": { - "version": "0.4.0-6eb2eb5", - "resolved": "https://registry.npmjs.org/@sats-connect/core/-/core-0.4.0-6eb2eb5.tgz", - "integrity": "sha512-ukeuG6q5U7JtLZzhe9bzxF2eqbEp9tK/PMsSRwK09heW5e7MLMJG8z4PkFhLyVuVHCKTESGI6+TeHG5V0Aug7g==", + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/@sats-connect/core/-/core-0.4.0.tgz", + "integrity": "sha512-r5wSRqID8QCCkKaqGUFJ0STb81FyM5+NeO6l2+01UnTOb00FPmu+xF5kklLkhjDT4pHy8c4Eob1ehIRp3bXgbg==", "dependencies": { "axios": "1.7.7", "bitcoin-address-validation": "2.2.3", diff --git a/package.json b/package.json index fa74f4f..d28bfcd 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ ] }, "dependencies": { - "@sats-connect/core": "0.4.0-6eb2eb5", + "@sats-connect/core": "0.4.0", "@sats-connect/make-default-provider-config": "0.0.10", "@sats-connect/ui": "0.0.7" }, From f8757fba383b37b165e88134486ce8ab600708ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eduard=20Bardaj=C3=AD=20Puig?= Date: Fri, 1 Nov 2024 12:16:05 +0000 Subject: [PATCH 4/4] Bump major --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 039f8b2..1382757 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "sats-connect", - "version": "2.8.4", + "version": "3.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "sats-connect", - "version": "2.8.4", + "version": "3.0.0", "license": "ISC", "dependencies": { "@sats-connect/core": "0.4.0", diff --git a/package.json b/package.json index d28bfcd..abb26d4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "sats-connect", - "version": "2.8.4", + "version": "3.0.0", "main": "dist/index.mjs", "files": [ "dist"