@dynamic-labs/waas 4.65.0 → 4.66.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 +13 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +10 -10
- package/src/DynamicWaasMixin.cjs +26 -19
- package/src/DynamicWaasMixin.js +26 -19
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,17 @@
|
|
|
1
1
|
|
|
2
|
+
## [4.66.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.65.0...v4.66.0) (2026-03-02)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* **stellar:** send serialized XDR for transaction signing ([#10548](https://github.com/dynamic-labs/dynamic-auth/issues/10548)) ([3ff6438](https://github.com/dynamic-labs/dynamic-auth/commit/3ff64384e16d5fdb32cd6a3fd144757bf05f4456))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* prevent MFA backup codes screen from being dismissed before acknowledgement ([#10530](https://github.com/dynamic-labs/dynamic-auth/issues/10530)) ([67086f0](https://github.com/dynamic-labs/dynamic-auth/commit/67086f0b4a1302d39853eb2eedcb6f5b8bfca889))
|
|
13
|
+
* **react-native:** add retry when setting items to secure store ([#10576](https://github.com/dynamic-labs/dynamic-auth/issues/10576)) ([22ea162](https://github.com/dynamic-labs/dynamic-auth/commit/22ea162420806a4a67394c99f3691754982a7f1f))
|
|
14
|
+
|
|
2
15
|
## [4.65.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.64.0...v4.65.0) (2026-02-27)
|
|
3
16
|
|
|
4
17
|
|
package/package.cjs
CHANGED
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/waas",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.66.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"author": "Dynamic Labs, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -16,16 +16,16 @@
|
|
|
16
16
|
"./package.json": "./package.json"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@dynamic-labs/assert-package-version": "4.
|
|
19
|
+
"@dynamic-labs/assert-package-version": "4.66.0",
|
|
20
20
|
"@dynamic-labs/sdk-api-core": "0.0.875",
|
|
21
|
-
"@dynamic-labs-wallet/browser-wallet-client": "0.0.
|
|
22
|
-
"@dynamic-labs/ethereum-core": "4.
|
|
23
|
-
"@dynamic-labs/logger": "4.
|
|
24
|
-
"@dynamic-labs/solana-core": "4.
|
|
25
|
-
"@dynamic-labs/sui-core": "4.
|
|
26
|
-
"@dynamic-labs/utils": "4.
|
|
27
|
-
"@dynamic-labs/wallet-book": "4.
|
|
28
|
-
"@dynamic-labs/wallet-connector-core": "4.
|
|
21
|
+
"@dynamic-labs-wallet/browser-wallet-client": "0.0.289",
|
|
22
|
+
"@dynamic-labs/ethereum-core": "4.66.0",
|
|
23
|
+
"@dynamic-labs/logger": "4.66.0",
|
|
24
|
+
"@dynamic-labs/solana-core": "4.66.0",
|
|
25
|
+
"@dynamic-labs/sui-core": "4.66.0",
|
|
26
|
+
"@dynamic-labs/utils": "4.66.0",
|
|
27
|
+
"@dynamic-labs/wallet-book": "4.66.0",
|
|
28
|
+
"@dynamic-labs/wallet-connector-core": "4.66.0"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {}
|
|
31
31
|
}
|
package/src/DynamicWaasMixin.cjs
CHANGED
|
@@ -440,7 +440,6 @@ const withDynamicWaas = (BaseClass) => {
|
|
|
440
440
|
}
|
|
441
441
|
updatePassword(_a) {
|
|
442
442
|
return _tslib.__awaiter(this, arguments, void 0, function* ({ accountAddress, existingPassword, newPassword, }) {
|
|
443
|
-
var _b, _c;
|
|
444
443
|
if (!accountAddress) {
|
|
445
444
|
throw new utils.DynamicError('Account address is required');
|
|
446
445
|
}
|
|
@@ -449,36 +448,44 @@ const withDynamicWaas = (BaseClass) => {
|
|
|
449
448
|
throw new utils.DynamicError('Existing password is required to update password');
|
|
450
449
|
}
|
|
451
450
|
const walletClient = yield this.getWaasWalletClient();
|
|
452
|
-
|
|
453
|
-
if (!signedSessionId) {
|
|
451
|
+
if (!this.getSignedSessionId) {
|
|
454
452
|
throw new utils.DynamicError('Signed session ID is required');
|
|
455
453
|
}
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
454
|
+
const wallets = yield walletClient.getAllWallets();
|
|
455
|
+
const encryptedWallets = wallets.filter((w) => { var _a; return (_a = w.clientKeySharesBackupInfo) === null || _a === void 0 ? void 0 : _a.passwordEncrypted; });
|
|
456
|
+
yield Promise.all(encryptedWallets.map((wallet) => _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
457
|
+
var _b;
|
|
458
|
+
const signedSessionId = yield this.getSignedSessionId();
|
|
459
|
+
yield walletClient.updatePassword({
|
|
460
|
+
accountAddress: wallet.accountAddress,
|
|
461
|
+
authToken: (_b = this.getAuthToken) === null || _b === void 0 ? void 0 : _b.call(this),
|
|
462
|
+
existingPassword: resolvedExistingPassword,
|
|
463
|
+
newPassword,
|
|
464
|
+
signedSessionId,
|
|
465
|
+
});
|
|
466
|
+
})));
|
|
463
467
|
});
|
|
464
468
|
}
|
|
465
469
|
setPassword(_a) {
|
|
466
470
|
return _tslib.__awaiter(this, arguments, void 0, function* ({ accountAddress, newPassword, }) {
|
|
467
|
-
var _b, _c;
|
|
468
471
|
if (!accountAddress) {
|
|
469
472
|
throw new utils.DynamicError('Account address is required');
|
|
470
473
|
}
|
|
471
474
|
const walletClient = yield this.getWaasWalletClient();
|
|
472
|
-
|
|
473
|
-
if (!signedSessionId) {
|
|
475
|
+
if (!this.getSignedSessionId) {
|
|
474
476
|
throw new utils.DynamicError('Signed session ID is required');
|
|
475
477
|
}
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
478
|
+
const wallets = yield walletClient.getAllWallets();
|
|
479
|
+
yield Promise.all(wallets.map((wallet) => _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
480
|
+
var _b;
|
|
481
|
+
const signedSessionId = yield this.getSignedSessionId();
|
|
482
|
+
yield walletClient.setPassword({
|
|
483
|
+
accountAddress: wallet.accountAddress,
|
|
484
|
+
authToken: (_b = this.getAuthToken) === null || _b === void 0 ? void 0 : _b.call(this),
|
|
485
|
+
newPassword,
|
|
486
|
+
signedSessionId,
|
|
487
|
+
});
|
|
488
|
+
})));
|
|
482
489
|
});
|
|
483
490
|
}
|
|
484
491
|
signRawMessage(_a) {
|
package/src/DynamicWaasMixin.js
CHANGED
|
@@ -436,7 +436,6 @@ const withDynamicWaas = (BaseClass) => {
|
|
|
436
436
|
}
|
|
437
437
|
updatePassword(_a) {
|
|
438
438
|
return __awaiter(this, arguments, void 0, function* ({ accountAddress, existingPassword, newPassword, }) {
|
|
439
|
-
var _b, _c;
|
|
440
439
|
if (!accountAddress) {
|
|
441
440
|
throw new DynamicError('Account address is required');
|
|
442
441
|
}
|
|
@@ -445,36 +444,44 @@ const withDynamicWaas = (BaseClass) => {
|
|
|
445
444
|
throw new DynamicError('Existing password is required to update password');
|
|
446
445
|
}
|
|
447
446
|
const walletClient = yield this.getWaasWalletClient();
|
|
448
|
-
|
|
449
|
-
if (!signedSessionId) {
|
|
447
|
+
if (!this.getSignedSessionId) {
|
|
450
448
|
throw new DynamicError('Signed session ID is required');
|
|
451
449
|
}
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
450
|
+
const wallets = yield walletClient.getAllWallets();
|
|
451
|
+
const encryptedWallets = wallets.filter((w) => { var _a; return (_a = w.clientKeySharesBackupInfo) === null || _a === void 0 ? void 0 : _a.passwordEncrypted; });
|
|
452
|
+
yield Promise.all(encryptedWallets.map((wallet) => __awaiter(this, void 0, void 0, function* () {
|
|
453
|
+
var _b;
|
|
454
|
+
const signedSessionId = yield this.getSignedSessionId();
|
|
455
|
+
yield walletClient.updatePassword({
|
|
456
|
+
accountAddress: wallet.accountAddress,
|
|
457
|
+
authToken: (_b = this.getAuthToken) === null || _b === void 0 ? void 0 : _b.call(this),
|
|
458
|
+
existingPassword: resolvedExistingPassword,
|
|
459
|
+
newPassword,
|
|
460
|
+
signedSessionId,
|
|
461
|
+
});
|
|
462
|
+
})));
|
|
459
463
|
});
|
|
460
464
|
}
|
|
461
465
|
setPassword(_a) {
|
|
462
466
|
return __awaiter(this, arguments, void 0, function* ({ accountAddress, newPassword, }) {
|
|
463
|
-
var _b, _c;
|
|
464
467
|
if (!accountAddress) {
|
|
465
468
|
throw new DynamicError('Account address is required');
|
|
466
469
|
}
|
|
467
470
|
const walletClient = yield this.getWaasWalletClient();
|
|
468
|
-
|
|
469
|
-
if (!signedSessionId) {
|
|
471
|
+
if (!this.getSignedSessionId) {
|
|
470
472
|
throw new DynamicError('Signed session ID is required');
|
|
471
473
|
}
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
474
|
+
const wallets = yield walletClient.getAllWallets();
|
|
475
|
+
yield Promise.all(wallets.map((wallet) => __awaiter(this, void 0, void 0, function* () {
|
|
476
|
+
var _b;
|
|
477
|
+
const signedSessionId = yield this.getSignedSessionId();
|
|
478
|
+
yield walletClient.setPassword({
|
|
479
|
+
accountAddress: wallet.accountAddress,
|
|
480
|
+
authToken: (_b = this.getAuthToken) === null || _b === void 0 ? void 0 : _b.call(this),
|
|
481
|
+
newPassword,
|
|
482
|
+
signedSessionId,
|
|
483
|
+
});
|
|
484
|
+
})));
|
|
478
485
|
});
|
|
479
486
|
}
|
|
480
487
|
signRawMessage(_a) {
|