From 6249f676c2ad32039437e8e50480360ddb43426b Mon Sep 17 00:00:00 2001 From: Yukan Date: Fri, 27 Mar 2026 14:07:15 +0800 Subject: [PATCH 1/6] fix connection issue --- .../namespaces/wallet/methods/requestPermissions/request.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/request/rpc/objects/namespaces/wallet/methods/requestPermissions/request.ts b/src/request/rpc/objects/namespaces/wallet/methods/requestPermissions/request.ts index 05a152b..c4a4ddf 100644 --- a/src/request/rpc/objects/namespaces/wallet/methods/requestPermissions/request.ts +++ b/src/request/rpc/objects/namespaces/wallet/methods/requestPermissions/request.ts @@ -3,7 +3,9 @@ import { walletMethods } from 'src/request/methods'; import * as v from 'valibot'; import { permissionRequestParamsSchema } from '../../shared/permissions'; -export const walletRequestPermissionsParamsSchema = v.array(permissionRequestParamsSchema); +export const walletRequestPermissionsParamsSchema = v.nullish( + v.array(permissionRequestParamsSchema) +); export type WalletRequestPermissionsParams = v.InferOutput< typeof walletRequestPermissionsParamsSchema From 82ea85ccb42159815abc995fe31ccef4286f64db Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 27 Mar 2026 07:46:33 +0000 Subject: [PATCH 2/6] chore: bump minor version to 0.18.0 Agent-Logs-Url: https://github.com/secretkeylabs/sats-connect-core/sessions/3b4c929f-8b5d-46ef-bc61-9ca230dea4ba Co-authored-by: aryzing <4924405+aryzing@users.noreply.github.com> --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index e639c1a..fc6c307 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@sats-connect/core", - "version": "0.17.5", + "version": "0.18.0", "main": "dist/index.mjs", "module": "dist/index.mjs", "types": "dist/index.d.mts", From b1bc44e3c957367c9bdf9e21c803080961789219 Mon Sep 17 00:00:00 2001 From: Edu Date: Fri, 27 Mar 2026 10:58:18 +0200 Subject: [PATCH 3/6] Bump package.lock --- package-lock.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index 379170d..100de86 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@sats-connect/core", - "version": "0.17.5", + "version": "0.18.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@sats-connect/core", - "version": "0.17.5", + "version": "0.18.0", "license": "ISC", "dependencies": { "axios": "1.13.5", From ceca3b34aa23e51e934e665166ec642b63e3f3ae Mon Sep 17 00:00:00 2001 From: Edu Date: Fri, 27 Mar 2026 10:58:20 +0200 Subject: [PATCH 4/6] Fix version --- 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 100de86..92a3533 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@sats-connect/core", - "version": "0.18.0", + "version": "0.17.6", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@sats-connect/core", - "version": "0.18.0", + "version": "0.17.6", "license": "ISC", "dependencies": { "axios": "1.13.5", diff --git a/package.json b/package.json index fc6c307..28431d1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@sats-connect/core", - "version": "0.18.0", + "version": "0.17.6", "main": "dist/index.mjs", "module": "dist/index.mjs", "types": "dist/index.d.mts", From 11f07107ad47ee151d1235fb54c476c05f9467c7 Mon Sep 17 00:00:00 2001 From: Edu Date: Fri, 27 Mar 2026 10:58:23 +0200 Subject: [PATCH 5/6] Add comment --- .../wallet/methods/requestPermissions/request.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/request/rpc/objects/namespaces/wallet/methods/requestPermissions/request.ts b/src/request/rpc/objects/namespaces/wallet/methods/requestPermissions/request.ts index c4a4ddf..91758ff 100644 --- a/src/request/rpc/objects/namespaces/wallet/methods/requestPermissions/request.ts +++ b/src/request/rpc/objects/namespaces/wallet/methods/requestPermissions/request.ts @@ -3,6 +3,13 @@ import { walletMethods } from 'src/request/methods'; import * as v from 'valibot'; import { permissionRequestParamsSchema } from '../../shared/permissions'; +/** + * This method waas previously used to connect to the wallet similarly to how + * `wallet_connect` is used now: when no permissions are explicitly requested, + * account read permissions are implied. The `nullish` schema allows maintaining + * backwards compatibility with this behavior while still allowing for explicit + * permission requests. + */ export const walletRequestPermissionsParamsSchema = v.nullish( v.array(permissionRequestParamsSchema) ); From 83ffa2cfa3e462e277927a791b3f542929f2cc83 Mon Sep 17 00:00:00 2001 From: Edu Date: Fri, 27 Mar 2026 11:02:31 +0200 Subject: [PATCH 6/6] Fix typo --- .../namespaces/wallet/methods/requestPermissions/request.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/request/rpc/objects/namespaces/wallet/methods/requestPermissions/request.ts b/src/request/rpc/objects/namespaces/wallet/methods/requestPermissions/request.ts index 91758ff..299bac7 100644 --- a/src/request/rpc/objects/namespaces/wallet/methods/requestPermissions/request.ts +++ b/src/request/rpc/objects/namespaces/wallet/methods/requestPermissions/request.ts @@ -4,7 +4,7 @@ import * as v from 'valibot'; import { permissionRequestParamsSchema } from '../../shared/permissions'; /** - * This method waas previously used to connect to the wallet similarly to how + * This method was previously used to connect to the wallet similarly to how * `wallet_connect` is used now: when no permissions are explicitly requested, * account read permissions are implied. The `nullish` schema allows maintaining * backwards compatibility with this behavior while still allowing for explicit