@dynamic-labs/waas-evm 4.91.3 → 4.91.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,4 +1,21 @@
1
1
 
2
+ ### [4.91.5](https://github.com/dynamic-labs/dynamic-auth/compare/v4.91.4...v4.91.5) (2026-07-02)
3
+
4
+
5
+ ### Bug Fixes
6
+
7
+ * revoke WaaS signed-session callback on client rebuild to stop iOS nonce race ([#11766](https://github.com/dynamic-labs/dynamic-auth/issues/11766)) ([c895b5d](https://github.com/dynamic-labs/dynamic-auth/commit/c895b5d0987d62a9f5597741dbeae0ec7fedfe5b))
8
+ * **sdk-react-core:** allow sendOneTimeCode to target non-primary chain wallets ([#11777](https://github.com/dynamic-labs/dynamic-auth/issues/11777)) ([63f82af](https://github.com/dynamic-labs/dynamic-auth/commit/63f82af7c52be595bc2948ec88ee9c919ac9275a))
9
+ * **webview-controller:** resolve post-login wallet race in Viem and ZeroDev controllers ([#11774](https://github.com/dynamic-labs/dynamic-auth/issues/11774)) ([95ed26e](https://github.com/dynamic-labs/dynamic-auth/commit/95ed26eee09d9aff5a5af6517ab7e1360ef5f337))
10
+
11
+ ### [4.91.4](https://github.com/dynamic-labs/dynamic-auth/compare/v4.91.3...v4.91.4) (2026-07-01)
12
+
13
+
14
+ ### Bug Fixes
15
+
16
+ * conditionally use /op/ route for AA transactions based on block explorer support ([#11628](https://github.com/dynamic-labs/dynamic-auth/issues/11628)) ([95822dc](https://github.com/dynamic-labs/dynamic-auth/commit/95822dc0edbcd739afe870f0b3881555fdb17eb6))
17
+ * require error codes in all SDK error classes ([#11761](https://github.com/dynamic-labs/dynamic-auth/issues/11761)) ([5744811](https://github.com/dynamic-labs/dynamic-auth/commit/5744811efdd1e415aaf51eec5b3300b323ec1347))
18
+
2
19
  ### [4.91.3](https://github.com/dynamic-labs/dynamic-auth/compare/v4.91.2...v4.91.3) (2026-06-30)
3
20
 
4
21
 
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.91.3";
6
+ var version = "4.91.5";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.91.3";
2
+ var version = "4.91.5";
3
3
 
4
4
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/waas-evm",
3
- "version": "4.91.3",
3
+ "version": "4.91.5",
4
4
  "description": "A React SDK for implementing wallet web3 authentication and authorization to your website.",
5
5
  "author": "Dynamic Labs, Inc.",
6
6
  "license": "MIT",
@@ -20,13 +20,13 @@
20
20
  "dependencies": {
21
21
  "@dynamic-labs/sdk-api-core": "0.0.1046",
22
22
  "viem": "^2.45.3",
23
- "@dynamic-labs/assert-package-version": "4.91.3",
24
- "@dynamic-labs/ethereum-core": "4.91.3",
25
- "@dynamic-labs/logger": "4.91.3",
26
- "@dynamic-labs/types": "4.91.3",
27
- "@dynamic-labs/utils": "4.91.3",
28
- "@dynamic-labs/waas": "4.91.3",
29
- "@dynamic-labs/wallet-connector-core": "4.91.3"
23
+ "@dynamic-labs/assert-package-version": "4.91.5",
24
+ "@dynamic-labs/ethereum-core": "4.91.5",
25
+ "@dynamic-labs/logger": "4.91.5",
26
+ "@dynamic-labs/types": "4.91.5",
27
+ "@dynamic-labs/utils": "4.91.5",
28
+ "@dynamic-labs/waas": "4.91.5",
29
+ "@dynamic-labs/wallet-connector-core": "4.91.5"
30
30
  },
31
31
  "peerDependencies": {}
32
32
  }
@@ -205,7 +205,7 @@ class DynamicWaasEVMConnector extends waas.withDynamicWaas(ethereumCore.Ethereum
205
205
  signedSessionId: '',
206
206
  });
207
207
  if (!targetWallet) {
208
- throw new utils.DynamicError('Account not found');
208
+ throw new utils.DynamicError('Account not found', 'account_not_found');
209
209
  }
210
210
  const isWalletActive = walletConnectorCore.isSameAddress(targetWallet.accountAddress, ((_b = this.getActiveAccount()) === null || _b === void 0 ? void 0 : _b.address) || '', this.connectedChain);
211
211
  if (!isWalletActive) {
@@ -225,7 +225,7 @@ class DynamicWaasEVMConnector extends waas.withDynamicWaas(ethereumCore.Ethereum
225
225
  const client = yield this.getWaasWalletClient();
226
226
  const signedSessionId = yield ((_b = this.getSignedSessionId) === null || _b === void 0 ? void 0 : _b.call(this));
227
227
  if (!signedSessionId) {
228
- throw new utils.DynamicError('Signed session ID is required');
228
+ throw new utils.DynamicError('Signed session ID is required', 'signed_session_id_is_required');
229
229
  }
230
230
  return {
231
231
  address: accountAddress,
@@ -431,7 +431,7 @@ class DynamicWaasEVMConnector extends waas.withDynamicWaas(ethereumCore.Ethereum
431
431
  const walletClient = yield this.getWaasWalletClient();
432
432
  const signedSessionId = yield ((_b = this.getSignedSessionId) === null || _b === void 0 ? void 0 : _b.call(this));
433
433
  if (!signedSessionId) {
434
- throw new utils.DynamicError('Signed session ID is required');
434
+ throw new utils.DynamicError('Signed session ID is required', 'signed_session_id_is_required');
435
435
  }
436
436
  const accountAddress = (_c = this.getActiveAccount()) === null || _c === void 0 ? void 0 : _c.address;
437
437
  const mfaToken = yield ((_d = this.getMfaToken) === null || _d === void 0 ? void 0 : _d.call(this, {
@@ -564,7 +564,7 @@ class DynamicWaasEVMConnector extends waas.withDynamicWaas(ethereumCore.Ethereum
564
564
  address: from,
565
565
  }));
566
566
  if (!publicClient || !walletClient) {
567
- throw new utils.DynamicError('No public client available');
567
+ throw new utils.DynamicError('No public client available', 'no_public_client_available');
568
568
  }
569
569
  return new ethereumCore.ViemUiTransaction({
570
570
  account: from,
@@ -621,7 +621,7 @@ class DynamicWaasEVMConnector extends waas.withDynamicWaas(ethereumCore.Ethereum
621
621
  this.setActiveAccount(address);
622
622
  return address;
623
623
  }
624
- throw new utils.DynamicError('No active wallet address found');
624
+ throw new utils.DynamicError('No active wallet address found', 'no_active_wallet_address_found');
625
625
  }
626
626
  return activeAccount.address;
627
627
  });
@@ -644,7 +644,7 @@ class DynamicWaasEVMConnector extends waas.withDynamicWaas(ethereumCore.Ethereum
644
644
  const walletClient = yield this.getWaasWalletClient();
645
645
  const signedSessionId = yield ((_a = this.getSignedSessionId) === null || _a === void 0 ? void 0 : _a.call(this));
646
646
  if (!signedSessionId) {
647
- throw new utils.DynamicError('Signed session ID is required');
647
+ throw new utils.DynamicError('Signed session ID is required', 'signed_session_id_is_required');
648
648
  }
649
649
  const mfaToken = yield ((_b = this.getMfaToken) === null || _b === void 0 ? void 0 : _b.call(this, {
650
650
  mfaAction: sdkApiCore.MFAAction.WalletWaasSign,
@@ -36,6 +36,7 @@ declare const DynamicWaasEVMConnector_base: (abstract new (...args: any[]) => {
36
36
  relayUrl?: string | undefined;
37
37
  baseClientKeysharesRelayApiUrl?: string | undefined;
38
38
  dynamicWaasClient: import("@dynamic-labs-wallet/browser-wallet-client").DynamicWalletClient | undefined;
39
+ revokeSignedSession: (() => void) | undefined;
39
40
  chainName: string;
40
41
  authMode: "cookie" | "header";
41
42
  logger: Logger;
@@ -67,6 +68,9 @@ declare const DynamicWaasEVMConnector_base: (abstract new (...args: any[]) => {
67
68
  accountAddress: string;
68
69
  password?: string | undefined;
69
70
  }): Promise<void>;
71
+ createRevocableSignedSessionCallback(): {
72
+ getSignedSessionId: () => Promise<string>;
73
+ };
70
74
  createDynamicWaasClient(traceContext?: import("dist/packages/waas/utils/instrumentation").TraceContext | undefined): Promise<import("@dynamic-labs-wallet/browser-wallet-client").DynamicWalletClient>;
71
75
  getWaasWalletClient(traceContext?: import("dist/packages/waas/utils/instrumentation").TraceContext | undefined, { forceRebuild }?: {
72
76
  forceRebuild?: boolean | undefined;
@@ -201,7 +201,7 @@ class DynamicWaasEVMConnector extends withDynamicWaas(EthereumWalletConnector) {
201
201
  signedSessionId: '',
202
202
  });
203
203
  if (!targetWallet) {
204
- throw new DynamicError('Account not found');
204
+ throw new DynamicError('Account not found', 'account_not_found');
205
205
  }
206
206
  const isWalletActive = isSameAddress(targetWallet.accountAddress, ((_b = this.getActiveAccount()) === null || _b === void 0 ? void 0 : _b.address) || '', this.connectedChain);
207
207
  if (!isWalletActive) {
@@ -221,7 +221,7 @@ class DynamicWaasEVMConnector extends withDynamicWaas(EthereumWalletConnector) {
221
221
  const client = yield this.getWaasWalletClient();
222
222
  const signedSessionId = yield ((_b = this.getSignedSessionId) === null || _b === void 0 ? void 0 : _b.call(this));
223
223
  if (!signedSessionId) {
224
- throw new DynamicError('Signed session ID is required');
224
+ throw new DynamicError('Signed session ID is required', 'signed_session_id_is_required');
225
225
  }
226
226
  return {
227
227
  address: accountAddress,
@@ -427,7 +427,7 @@ class DynamicWaasEVMConnector extends withDynamicWaas(EthereumWalletConnector) {
427
427
  const walletClient = yield this.getWaasWalletClient();
428
428
  const signedSessionId = yield ((_b = this.getSignedSessionId) === null || _b === void 0 ? void 0 : _b.call(this));
429
429
  if (!signedSessionId) {
430
- throw new DynamicError('Signed session ID is required');
430
+ throw new DynamicError('Signed session ID is required', 'signed_session_id_is_required');
431
431
  }
432
432
  const accountAddress = (_c = this.getActiveAccount()) === null || _c === void 0 ? void 0 : _c.address;
433
433
  const mfaToken = yield ((_d = this.getMfaToken) === null || _d === void 0 ? void 0 : _d.call(this, {
@@ -560,7 +560,7 @@ class DynamicWaasEVMConnector extends withDynamicWaas(EthereumWalletConnector) {
560
560
  address: from,
561
561
  }));
562
562
  if (!publicClient || !walletClient) {
563
- throw new DynamicError('No public client available');
563
+ throw new DynamicError('No public client available', 'no_public_client_available');
564
564
  }
565
565
  return new ViemUiTransaction({
566
566
  account: from,
@@ -617,7 +617,7 @@ class DynamicWaasEVMConnector extends withDynamicWaas(EthereumWalletConnector) {
617
617
  this.setActiveAccount(address);
618
618
  return address;
619
619
  }
620
- throw new DynamicError('No active wallet address found');
620
+ throw new DynamicError('No active wallet address found', 'no_active_wallet_address_found');
621
621
  }
622
622
  return activeAccount.address;
623
623
  });
@@ -640,7 +640,7 @@ class DynamicWaasEVMConnector extends withDynamicWaas(EthereumWalletConnector) {
640
640
  const walletClient = yield this.getWaasWalletClient();
641
641
  const signedSessionId = yield ((_a = this.getSignedSessionId) === null || _a === void 0 ? void 0 : _a.call(this));
642
642
  if (!signedSessionId) {
643
- throw new DynamicError('Signed session ID is required');
643
+ throw new DynamicError('Signed session ID is required', 'signed_session_id_is_required');
644
644
  }
645
645
  const mfaToken = yield ((_b = this.getMfaToken) === null || _b === void 0 ? void 0 : _b.call(this, {
646
646
  mfaAction: MFAAction.WalletWaasSign,