@dynamic-labs/waas-evm 4.87.1 → 4.88.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 +20 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +8 -8
- package/src/DynamicWaasEVMConnector.cjs +6 -2
- package/src/DynamicWaasEVMConnector.d.ts +6 -2
- package/src/DynamicWaasEVMConnector.js +6 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,24 @@
|
|
|
1
1
|
|
|
2
|
+
## [4.88.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.87.2...v4.88.0) (2026-06-04)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* **waas:** log out on iframe 401 ([#11456](https://github.com/dynamic-labs/dynamic-auth/issues/11456)) ([81b0161](https://github.com/dynamic-labs/dynamic-auth/commit/81b01617810af8f7f996fdbf406e020b9f98272b))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* **starknet:** zero-pad addresses returned by wallet connectors ([#11303](https://github.com/dynamic-labs/dynamic-auth/issues/11303)) ([ef5cda5](https://github.com/dynamic-labs/dynamic-auth/commit/ef5cda5a9933443195b3bd336db8947c2ec050b7))
|
|
13
|
+
|
|
14
|
+
### [4.87.2](https://github.com/dynamic-labs/dynamic-auth/compare/v4.87.1...v4.87.2) (2026-06-03)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* allow for using v2 zerodev projects ([#11449](https://github.com/dynamic-labs/dynamic-auth/issues/11449)) ([9242698](https://github.com/dynamic-labs/dynamic-auth/commit/9242698670db92b03ad1afc776e674ec9a7e7e54))
|
|
20
|
+
* e2e: ensure MFA item is detached before logout ([#11452](https://github.com/dynamic-labs/dynamic-auth/issues/11452)) ([5a4c67e](https://github.com/dynamic-labs/dynamic-auth/commit/5a4c67e93b66a548346c1065fb373c675f0054a0))
|
|
21
|
+
|
|
2
22
|
### [4.87.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.87.0...v4.87.1) (2026-06-03)
|
|
3
23
|
|
|
4
24
|
|
package/package.cjs
CHANGED
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/waas-evm",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.88.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",
|
|
@@ -20,13 +20,13 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@dynamic-labs/sdk-api-core": "0.0.1015",
|
|
22
22
|
"viem": "^2.45.3",
|
|
23
|
-
"@dynamic-labs/assert-package-version": "4.
|
|
24
|
-
"@dynamic-labs/ethereum-core": "4.
|
|
25
|
-
"@dynamic-labs/logger": "4.
|
|
26
|
-
"@dynamic-labs/types": "4.
|
|
27
|
-
"@dynamic-labs/utils": "4.
|
|
28
|
-
"@dynamic-labs/waas": "4.
|
|
29
|
-
"@dynamic-labs/wallet-connector-core": "4.
|
|
23
|
+
"@dynamic-labs/assert-package-version": "4.88.0",
|
|
24
|
+
"@dynamic-labs/ethereum-core": "4.88.0",
|
|
25
|
+
"@dynamic-labs/logger": "4.88.0",
|
|
26
|
+
"@dynamic-labs/types": "4.88.0",
|
|
27
|
+
"@dynamic-labs/utils": "4.88.0",
|
|
28
|
+
"@dynamic-labs/waas": "4.88.0",
|
|
29
|
+
"@dynamic-labs/wallet-connector-core": "4.88.0"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {}
|
|
32
32
|
}
|
|
@@ -491,13 +491,17 @@ class DynamicWaasEVMConnector extends waas.withDynamicWaas(ethereumCore.Ethereum
|
|
|
491
491
|
const _super = Object.create(null, {
|
|
492
492
|
backupKeySharesToGoogleDrive: { get: () => super.backupKeySharesToGoogleDrive }
|
|
493
493
|
});
|
|
494
|
-
return _tslib.__awaiter(this, arguments, void 0, function* ({ accountAddress, password, }) {
|
|
494
|
+
return _tslib.__awaiter(this, arguments, void 0, function* ({ accountAddress, password, googleDriveAccessToken, }) {
|
|
495
495
|
if (!accountAddress) {
|
|
496
496
|
throw new Error('Account address is required');
|
|
497
497
|
}
|
|
498
498
|
// EVM-specific: set active account before backing up
|
|
499
499
|
this.setActiveAccount(accountAddress);
|
|
500
|
-
return _super.backupKeySharesToGoogleDrive.call(this, {
|
|
500
|
+
return _super.backupKeySharesToGoogleDrive.call(this, {
|
|
501
|
+
accountAddress,
|
|
502
|
+
googleDriveAccessToken,
|
|
503
|
+
password,
|
|
504
|
+
});
|
|
501
505
|
});
|
|
502
506
|
}
|
|
503
507
|
// Chain-specific override for refreshWalletAccountShares - EVM needs to set active account first
|
|
@@ -29,6 +29,7 @@ declare const DynamicWaasEVMConnector_base: (abstract new (...args: any[]) => {
|
|
|
29
29
|
getElevatedAccessToken?: ((props: {
|
|
30
30
|
scope: TokenScope;
|
|
31
31
|
}) => Promise<string | undefined>) | undefined;
|
|
32
|
+
onUnauthorized?: (() => void | Promise<void>) | undefined;
|
|
32
33
|
environmentId?: string | undefined;
|
|
33
34
|
baseApiUrl?: string | undefined;
|
|
34
35
|
relayUrl?: string | undefined;
|
|
@@ -40,6 +41,7 @@ declare const DynamicWaasEVMConnector_base: (abstract new (...args: any[]) => {
|
|
|
40
41
|
__exportHandler: WaasExportHandler;
|
|
41
42
|
validateActiveWallet(expectedAddress: string): Promise<void>;
|
|
42
43
|
setGetAuthTokenFunction(getAuthToken: () => string): void;
|
|
44
|
+
setOnUnauthorizedFunction(onUnauthorized: () => void | Promise<void>): void;
|
|
43
45
|
setWaasAuthMode(authMode: "cookie" | "header"): void;
|
|
44
46
|
setGetMfaTokenFunction(getMfaToken: (props?: {
|
|
45
47
|
mfaAction?: MFAAction | undefined;
|
|
@@ -95,9 +97,10 @@ declare const DynamicWaasEVMConnector_base: (abstract new (...args: any[]) => {
|
|
|
95
97
|
accountAddress: string;
|
|
96
98
|
password?: string | undefined;
|
|
97
99
|
}): Promise<void>;
|
|
98
|
-
backupKeySharesToGoogleDrive({ accountAddress, password, }: {
|
|
100
|
+
backupKeySharesToGoogleDrive({ accountAddress, password, googleDriveAccessToken, }: {
|
|
99
101
|
accountAddress: string;
|
|
100
102
|
password?: string | undefined;
|
|
103
|
+
googleDriveAccessToken?: string | undefined;
|
|
101
104
|
}): Promise<void>;
|
|
102
105
|
exportClientKeysharesFromGoogleDrive({ accountAddress, password, }: {
|
|
103
106
|
accountAddress: string;
|
|
@@ -231,9 +234,10 @@ export declare class DynamicWaasEVMConnector extends DynamicWaasEVMConnector_bas
|
|
|
231
234
|
accountAddress: string;
|
|
232
235
|
password?: string;
|
|
233
236
|
}): Promise<void>;
|
|
234
|
-
backupKeySharesToGoogleDrive({ accountAddress, password, }: {
|
|
237
|
+
backupKeySharesToGoogleDrive({ accountAddress, password, googleDriveAccessToken, }: {
|
|
235
238
|
accountAddress: string;
|
|
236
239
|
password?: string;
|
|
240
|
+
googleDriveAccessToken?: string;
|
|
237
241
|
}): Promise<void>;
|
|
238
242
|
refreshWalletAccountShares({ accountAddress, password, }: {
|
|
239
243
|
accountAddress: string;
|
|
@@ -487,13 +487,17 @@ class DynamicWaasEVMConnector extends withDynamicWaas(EthereumWalletConnector) {
|
|
|
487
487
|
const _super = Object.create(null, {
|
|
488
488
|
backupKeySharesToGoogleDrive: { get: () => super.backupKeySharesToGoogleDrive }
|
|
489
489
|
});
|
|
490
|
-
return __awaiter(this, arguments, void 0, function* ({ accountAddress, password, }) {
|
|
490
|
+
return __awaiter(this, arguments, void 0, function* ({ accountAddress, password, googleDriveAccessToken, }) {
|
|
491
491
|
if (!accountAddress) {
|
|
492
492
|
throw new Error('Account address is required');
|
|
493
493
|
}
|
|
494
494
|
// EVM-specific: set active account before backing up
|
|
495
495
|
this.setActiveAccount(accountAddress);
|
|
496
|
-
return _super.backupKeySharesToGoogleDrive.call(this, {
|
|
496
|
+
return _super.backupKeySharesToGoogleDrive.call(this, {
|
|
497
|
+
accountAddress,
|
|
498
|
+
googleDriveAccessToken,
|
|
499
|
+
password,
|
|
500
|
+
});
|
|
497
501
|
});
|
|
498
502
|
}
|
|
499
503
|
// Chain-specific override for refreshWalletAccountShares - EVM needs to set active account first
|