@dynamic-labs/waas-svm 4.60.0 → 4.61.0

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,34 @@
1
1
 
2
+ ## [4.61.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.60.1...v4.61.0) (2026-02-10)
3
+
4
+
5
+ ### Features
6
+
7
+ * add unlockWallet and getWalletRecoveryState to WaaS ([#10407](https://github.com/dynamic-labs/dynamic-auth/issues/10407)) ([e0d1a28](https://github.com/dynamic-labs/dynamic-auth/commit/e0d1a2830f36eee6c6e84737011e8cf59966122d))
8
+ * add useWalletPassword hook for waas wallet password management ([#10399](https://github.com/dynamic-labs/dynamic-auth/issues/10399)) ([508835f](https://github.com/dynamic-labs/dynamic-auth/commit/508835fb0f4f17b7353a4378f4c254e02f0a46ff))
9
+ * add WaaS unlock and recovery UI to mobile demo ([#10408](https://github.com/dynamic-labs/dynamic-auth/issues/10408)) ([94cdb88](https://github.com/dynamic-labs/dynamic-auth/commit/94cdb882fca3c34d157b42d5208f56812008c43b))
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * bump axios to fix high vulnerability ([#10406](https://github.com/dynamic-labs/dynamic-auth/issues/10406)) ([303e2dc](https://github.com/dynamic-labs/dynamic-auth/commit/303e2dcf1e7e8ecad4caf2d74e805ee427c1d00e))
15
+ * patch node-forge CVE-2025-12816 in global-wallet ([#10401](https://github.com/dynamic-labs/dynamic-auth/issues/10401)) ([46e6eb2](https://github.com/dynamic-labs/dynamic-auth/commit/46e6eb28a0add0052299eaa4ac2dcbe8b1faa98c))
16
+
17
+ ### [4.60.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.60.0...v4.60.1) (2026-02-09)
18
+
19
+
20
+ ### Features
21
+
22
+ * add WAAS password handlers to DynamicContextProvider settings ([#10360](https://github.com/dynamic-labs/dynamic-auth/issues/10360)) ([5fc3fa7](https://github.com/dynamic-labs/dynamic-auth/commit/5fc3fa7148c53b64d36672be2d1ae629cb9cdaf8))
23
+ * improve password handling and UI for wallet protection ([#10386](https://github.com/dynamic-labs/dynamic-auth/issues/10386)) ([d27936e](https://github.com/dynamic-labs/dynamic-auth/commit/d27936e5bea37facceefccc0f2507d25a775ad33))
24
+ * pass authToken to wallet recovery operations ([#10379](https://github.com/dynamic-labs/dynamic-auth/issues/10379)) ([294efc7](https://github.com/dynamic-labs/dynamic-auth/commit/294efc7ab5816f63b7e5cc49a150cf9d34d300af))
25
+
26
+
27
+ ### Bug Fixes
28
+
29
+ * override fast-xml-parser to 5.3.4 for CVE-2026-25128 ([#10381](https://github.com/dynamic-labs/dynamic-auth/issues/10381)) ([7fb4c22](https://github.com/dynamic-labs/dynamic-auth/commit/7fb4c221252b84bf38bbdab0b37b8f9a981ebe1a))
30
+ * unlock wallet view error handling and password error UI ([#10388](https://github.com/dynamic-labs/dynamic-auth/issues/10388)) ([5ffc8e1](https://github.com/dynamic-labs/dynamic-auth/commit/5ffc8e1e6dd0d7f32bb94c37ce3674be949f010b))
31
+
2
32
  ## [4.60.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.59.2...v4.60.0) (2026-02-05)
3
33
 
4
34
 
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.60.0";
6
+ var version = "4.61.0";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.60.0";
2
+ var version = "4.61.0";
3
3
 
4
4
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/waas-svm",
3
- "version": "4.60.0",
3
+ "version": "4.61.0",
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",
@@ -18,19 +18,19 @@
18
18
  },
19
19
  "homepage": "https://www.dynamic.xyz/",
20
20
  "dependencies": {
21
- "@dynamic-labs/sdk-api-core": "0.0.860",
22
- "@dynamic-labs/embedded-wallet-solana": "4.60.0",
21
+ "@dynamic-labs/sdk-api-core": "0.0.864",
22
+ "@dynamic-labs/embedded-wallet-solana": "4.61.0",
23
23
  "@solana/web3.js": "1.98.1",
24
24
  "eventemitter3": "5.0.1",
25
25
  "bs58": "5.0.0",
26
- "@dynamic-labs/assert-package-version": "4.60.0",
27
- "@dynamic-labs/logger": "4.60.0",
28
- "@dynamic-labs/rpc-providers": "4.60.0",
29
- "@dynamic-labs/solana-core": "4.60.0",
30
- "@dynamic-labs/types": "4.60.0",
31
- "@dynamic-labs/utils": "4.60.0",
32
- "@dynamic-labs/waas": "4.60.0",
33
- "@dynamic-labs/wallet-connector-core": "4.60.0"
26
+ "@dynamic-labs/assert-package-version": "4.61.0",
27
+ "@dynamic-labs/logger": "4.61.0",
28
+ "@dynamic-labs/rpc-providers": "4.61.0",
29
+ "@dynamic-labs/solana-core": "4.61.0",
30
+ "@dynamic-labs/types": "4.61.0",
31
+ "@dynamic-labs/utils": "4.61.0",
32
+ "@dynamic-labs/waas": "4.61.0",
33
+ "@dynamic-labs/wallet-connector-core": "4.61.0"
34
34
  },
35
35
  "peerDependencies": {}
36
36
  }
@@ -24,15 +24,16 @@ class DynamicWaasSVMConnector extends waas.withDynamicWaas(solanaCore.SolanaWall
24
24
  this.name = 'Dynamic Waas';
25
25
  this.overrideKey = 'dynamicwaas';
26
26
  this.isEmbeddedWallet = true;
27
- this.svmGasSponsorshipEnabled = false;
27
+ this.getSvmGasSponsorshipEnabled = () => false;
28
28
  this.logger = logger.logger;
29
29
  this.walletUiUtils = props.walletUiUtils;
30
30
  }
31
31
  /**
32
- * Enable or disable SVM gas sponsorship for this connector.
32
+ * Set a getter that resolves the current SVM gas sponsorship state.
33
+ * Using a getter avoids stale values from initialization race conditions.
33
34
  */
34
- setSvmGasSponsorshipEnabled(enabled) {
35
- this.svmGasSponsorshipEnabled = enabled;
35
+ setSvmGasSponsorshipEnabled(getEnabled) {
36
+ this.getSvmGasSponsorshipEnabled = getEnabled;
36
37
  }
37
38
  /**
38
39
  * Check if a transaction is already signed (has non-zero signatures).
@@ -49,7 +50,7 @@ class DynamicWaasSVMConnector extends waas.withDynamicWaas(solanaCore.SolanaWall
49
50
  */
50
51
  maybeSponsorTransaction(transaction) {
51
52
  return _tslib.__awaiter(this, void 0, void 0, function* () {
52
- if (!this.svmGasSponsorshipEnabled) {
53
+ if (!this.getSvmGasSponsorshipEnabled()) {
53
54
  return transaction;
54
55
  }
55
56
  if (this.isTxAlreadySigned(transaction)) {
@@ -16,7 +16,7 @@ declare const DynamicWaasSVMConnector_base: (abstract new (...args: any[]) => {
16
16
  getMfaToken?: ((props?: {
17
17
  mfaAction?: MFAAction | undefined;
18
18
  } | undefined) => Promise<string | undefined>) | undefined;
19
- getPasswordForSigning?: import("dist/packages/waas/src/DynamicWaasMixin").GetPasswordForSigningFn | undefined;
19
+ getWalletPassword?: import("@dynamic-labs/wallet-connector-core").GetWalletPasswordFn | undefined;
20
20
  getAuthToken?: (() => string) | undefined;
21
21
  environmentId?: string | undefined;
22
22
  baseApiUrl?: string | undefined;
@@ -33,7 +33,7 @@ declare const DynamicWaasSVMConnector_base: (abstract new (...args: any[]) => {
33
33
  setGetMfaTokenFunction(getMfaToken: (props?: {
34
34
  mfaAction?: MFAAction | undefined;
35
35
  } | undefined) => Promise<string | undefined>): void;
36
- setGetPasswordForSigningFunction(getPasswordForSigning: import("dist/packages/waas/src/DynamicWaasMixin").GetPasswordForSigningFn): void;
36
+ setGetWalletPasswordFunction(getWalletPassword: import("@dynamic-labs/wallet-connector-core").GetWalletPasswordFn): void;
37
37
  getPasswordIfNeeded({ accountAddress, }: {
38
38
  accountAddress: string;
39
39
  }): Promise<string | undefined>;
@@ -61,9 +61,7 @@ declare const DynamicWaasSVMConnector_base: (abstract new (...args: any[]) => {
61
61
  importPrivateKey({ privateKey, thresholdSignatureScheme, publicAddressCheck, addressType, legacyWalletId, }: {
62
62
  privateKey: string;
63
63
  thresholdSignatureScheme?: string | undefined;
64
- publicAddressCheck?: string | undefined; /**
65
- * Override setEnvironmentId to ensure it's set on the global logger
66
- */
64
+ publicAddressCheck?: string | undefined;
67
65
  addressType?: string | undefined;
68
66
  legacyWalletId?: string | undefined;
69
67
  }): Promise<void>;
@@ -111,7 +109,7 @@ declare const DynamicWaasSVMConnector_base: (abstract new (...args: any[]) => {
111
109
  }): Promise<void>;
112
110
  updatePassword({ accountAddress, existingPassword, newPassword, }: {
113
111
  accountAddress: string;
114
- existingPassword: string;
112
+ existingPassword?: string | undefined;
115
113
  newPassword: string;
116
114
  }): Promise<void>;
117
115
  signRawMessage({ accountAddress, message, password, }: {
@@ -121,11 +119,10 @@ declare const DynamicWaasSVMConnector_base: (abstract new (...args: any[]) => {
121
119
  }): Promise<string>;
122
120
  unlockWallet({ accountAddress, password, }: {
123
121
  accountAddress: string;
124
- password: string;
122
+ password?: string | undefined;
125
123
  }): Promise<import("@dynamic-labs-wallet/core").GetWalletResponse>;
126
- getWalletRecoveryState({ accountAddress, signedSessionId, }: {
124
+ getWalletRecoveryState({ accountAddress, }: {
127
125
  accountAddress: string;
128
- signedSessionId: string;
129
126
  }): Promise<import("@dynamic-labs-wallet/core").WalletRecoveryState>;
130
127
  endSession(): Promise<void>;
131
128
  getActiveAccountAddress(): Promise<string | undefined>;
@@ -146,12 +143,13 @@ export declare class DynamicWaasSVMConnector extends DynamicWaasSVMConnector_bas
146
143
  isEmbeddedWallet: boolean;
147
144
  activeAccountAddress: string | undefined;
148
145
  protected walletUiUtils: WalletUiUtils<InternalWalletConnector>;
149
- private svmGasSponsorshipEnabled;
146
+ private getSvmGasSponsorshipEnabled;
150
147
  constructor(props: DynamicWaasSVMConnectorProps);
151
148
  /**
152
- * Enable or disable SVM gas sponsorship for this connector.
149
+ * Set a getter that resolves the current SVM gas sponsorship state.
150
+ * Using a getter avoids stale values from initialization race conditions.
153
151
  */
154
- setSvmGasSponsorshipEnabled(enabled: boolean): void;
152
+ setSvmGasSponsorshipEnabled(getEnabled: () => boolean): void;
155
153
  /**
156
154
  * Check if a transaction is already signed (has non-zero signatures).
157
155
  */
@@ -20,15 +20,16 @@ class DynamicWaasSVMConnector extends withDynamicWaas(SolanaWalletConnector) {
20
20
  this.name = 'Dynamic Waas';
21
21
  this.overrideKey = 'dynamicwaas';
22
22
  this.isEmbeddedWallet = true;
23
- this.svmGasSponsorshipEnabled = false;
23
+ this.getSvmGasSponsorshipEnabled = () => false;
24
24
  this.logger = logger;
25
25
  this.walletUiUtils = props.walletUiUtils;
26
26
  }
27
27
  /**
28
- * Enable or disable SVM gas sponsorship for this connector.
28
+ * Set a getter that resolves the current SVM gas sponsorship state.
29
+ * Using a getter avoids stale values from initialization race conditions.
29
30
  */
30
- setSvmGasSponsorshipEnabled(enabled) {
31
- this.svmGasSponsorshipEnabled = enabled;
31
+ setSvmGasSponsorshipEnabled(getEnabled) {
32
+ this.getSvmGasSponsorshipEnabled = getEnabled;
32
33
  }
33
34
  /**
34
35
  * Check if a transaction is already signed (has non-zero signatures).
@@ -45,7 +46,7 @@ class DynamicWaasSVMConnector extends withDynamicWaas(SolanaWalletConnector) {
45
46
  */
46
47
  maybeSponsorTransaction(transaction) {
47
48
  return __awaiter(this, void 0, void 0, function* () {
48
- if (!this.svmGasSponsorshipEnabled) {
49
+ if (!this.getSvmGasSponsorshipEnabled()) {
49
50
  return transaction;
50
51
  }
51
52
  if (this.isTxAlreadySigned(transaction)) {