Skip to content

Commit b5eca41

Browse files
committed
release: changeset for client consistency fixes
1 parent b0561d5 commit b5eca41

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
"@evolution-sdk/evolution": patch
3+
---
4+
5+
Restructured client internals and fixed several consistency issues in the promise-based API layer.
6+
7+
Signing logic has been extracted from `Wallets.ts` into a dedicated `internal/Signing.ts` module, and client assembly now lives in `internal/Client.ts`. The `WalletNew` module was renamed to `Wallet`; the legacy `ClientImpl` and `dual` modules were removed.
8+
9+
`runEffectPromise` no longer mutates error stack traces — the `cleanErrorChain` infrastructure was removed entirely. `Cause.squash` now throws the original error object unchanged, which means `instanceof` checks and `_tag` discrimination work correctly when consumers catch errors from promise-based methods.
10+
11+
All 19 `Effect.runPromise` call sites in the client layer were replaced with `runEffectPromise` so errors are consistently unwrapped across `readOnlyWallet`, `cip30Wallet`, `createOfflineSignerClient`, `createReadOnlyClient`, and `createSigningClient`.
12+
13+
- Provider method wiring in `SigningClient` now uses spread instead of manual `.bind()` calls
14+
- `ProviderError.cause` is now optional, matching `WalletError` and `TransactionBuilderError`
15+
- Removed `cause: null` sentinels from all error constructors

0 commit comments

Comments
 (0)