@dynamic-labs/waas-svm 4.60.1 → 4.61.1

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,26 @@
1
1
 
2
+ ### [4.61.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.61.0...v4.61.1) (2026-02-11)
3
+
4
+
5
+ ### Bug Fixes
6
+
7
+ * remove warning when SVM gas sponsorship enabled ([#10412](https://github.com/dynamic-labs/dynamic-auth/issues/10412)) ([dc1a615](https://github.com/dynamic-labs/dynamic-auth/commit/dc1a615a43c89942c9b17101bb1da4492df8140b))
8
+
9
+ ## [4.61.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.60.1...v4.61.0) (2026-02-10)
10
+
11
+
12
+ ### Features
13
+
14
+ * 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))
15
+ * 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))
16
+ * 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))
17
+
18
+
19
+ ### Bug Fixes
20
+
21
+ * 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))
22
+ * 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))
23
+
2
24
  ### [4.60.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.60.0...v4.60.1) (2026-02-09)
3
25
 
4
26
 
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.1";
6
+ var version = "4.61.1";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.60.1";
2
+ var version = "4.61.1";
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.1",
3
+ "version": "4.61.1",
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",
@@ -19,18 +19,18 @@
19
19
  "homepage": "https://www.dynamic.xyz/",
20
20
  "dependencies": {
21
21
  "@dynamic-labs/sdk-api-core": "0.0.864",
22
- "@dynamic-labs/embedded-wallet-solana": "4.60.1",
22
+ "@dynamic-labs/embedded-wallet-solana": "4.61.1",
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.1",
27
- "@dynamic-labs/logger": "4.60.1",
28
- "@dynamic-labs/rpc-providers": "4.60.1",
29
- "@dynamic-labs/solana-core": "4.60.1",
30
- "@dynamic-labs/types": "4.60.1",
31
- "@dynamic-labs/utils": "4.60.1",
32
- "@dynamic-labs/waas": "4.60.1",
33
- "@dynamic-labs/wallet-connector-core": "4.60.1"
26
+ "@dynamic-labs/assert-package-version": "4.61.1",
27
+ "@dynamic-labs/logger": "4.61.1",
28
+ "@dynamic-labs/rpc-providers": "4.61.1",
29
+ "@dynamic-labs/solana-core": "4.61.1",
30
+ "@dynamic-labs/types": "4.61.1",
31
+ "@dynamic-labs/utils": "4.61.1",
32
+ "@dynamic-labs/waas": "4.61.1",
33
+ "@dynamic-labs/wallet-connector-core": "4.61.1"
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)) {
@@ -30,9 +30,6 @@ declare const DynamicWaasSVMConnector_base: (abstract new (...args: any[]) => {
30
30
  validateActiveWallet(expectedAddress: string): Promise<void>;
31
31
  setGetAuthTokenFunction(getAuthToken: () => string): void;
32
32
  setWaasAuthMode(authMode: "cookie" | "header"): void;
33
- /**
34
- * Enable or disable SVM gas sponsorship for this connector.
35
- */
36
33
  setGetMfaTokenFunction(getMfaToken: (props?: {
37
34
  mfaAction?: MFAAction | undefined;
38
35
  } | undefined) => Promise<string | undefined>): void;
@@ -124,9 +121,8 @@ declare const DynamicWaasSVMConnector_base: (abstract new (...args: any[]) => {
124
121
  accountAddress: string;
125
122
  password?: string | undefined;
126
123
  }): Promise<import("@dynamic-labs-wallet/core").GetWalletResponse>;
127
- getWalletRecoveryState({ accountAddress, signedSessionId, }: {
124
+ getWalletRecoveryState({ accountAddress, }: {
128
125
  accountAddress: string;
129
- signedSessionId: string;
130
126
  }): Promise<import("@dynamic-labs-wallet/core").WalletRecoveryState>;
131
127
  endSession(): Promise<void>;
132
128
  getActiveAccountAddress(): Promise<string | undefined>;
@@ -147,12 +143,13 @@ export declare class DynamicWaasSVMConnector extends DynamicWaasSVMConnector_bas
147
143
  isEmbeddedWallet: boolean;
148
144
  activeAccountAddress: string | undefined;
149
145
  protected walletUiUtils: WalletUiUtils<InternalWalletConnector>;
150
- private svmGasSponsorshipEnabled;
146
+ private getSvmGasSponsorshipEnabled;
151
147
  constructor(props: DynamicWaasSVMConnectorProps);
152
148
  /**
153
- * 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.
154
151
  */
155
- setSvmGasSponsorshipEnabled(enabled: boolean): void;
152
+ setSvmGasSponsorshipEnabled(getEnabled: () => boolean): void;
156
153
  /**
157
154
  * Check if a transaction is already signed (has non-zero signatures).
158
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)) {