@dynamic-labs/waas-evm 4.88.5 → 4.89.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 +24 -1
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +8 -8
- package/src/DynamicWaasEVMConnector.cjs +3 -7
- package/src/DynamicWaasEVMConnector.d.ts +9 -0
- package/src/DynamicWaasEVMConnector.js +3 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,27 @@
|
|
|
1
1
|
|
|
2
|
+
## [4.89.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.88.6...v4.89.0) (2026-06-16)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* **moonpay:** add useMoonPayOnramp hook ([#11405](https://github.com/dynamic-labs/dynamic-auth/issues/11405)) ([48cb62f](https://github.com/dynamic-labs/dynamic-auth/commit/48cb62fefecb511fcba9359ee6f6096dfef0b125))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* get wallet metadata from wallet-book when its present ([#11566](https://github.com/dynamic-labs/dynamic-auth/issues/11566)) ([a1a8ad5](https://github.com/dynamic-labs/dynamic-auth/commit/a1a8ad53c063157b189aea138fa338fcc67dc4dd))
|
|
13
|
+
* **waas:** instant logout — clear key share host-side, background iframe cleanup ([#11583](https://github.com/dynamic-labs/dynamic-auth/issues/11583)) ([0ab3378](https://github.com/dynamic-labs/dynamic-auth/commit/0ab3378efdbbe233069b17fad62b0c126397bc3a))
|
|
14
|
+
* **wagmi-connector:** await disconnect before connect to defuse SyncDynamicWagmi race DYNT-549 ([#11579](https://github.com/dynamic-labs/dynamic-auth/issues/11579)) ([6ac7c0e](https://github.com/dynamic-labs/dynamic-auth/commit/6ac7c0e02ed863342047bc5a1e60be3a66b8a425)), closes [#11131](https://github.com/dynamic-labs/dynamic-auth/issues/11131) [#11513](https://github.com/dynamic-labs/dynamic-auth/issues/11513) [#11516](https://github.com/dynamic-labs/dynamic-auth/issues/11516) [#11496](https://github.com/dynamic-labs/dynamic-auth/issues/11496) [#11513](https://github.com/dynamic-labs/dynamic-auth/issues/11513) [/github.com/dynamic-labs/dynamic-auth/blob/main/packages/wagmi-connector/src/lib/hooks/useConnectorId/useConnectorId.ts#L19-L26](https://github.com/dynamic-labs//github.com/dynamic-labs/dynamic-auth/blob/main/packages/wagmi-connector/src/lib/hooks/useConnectorId/useConnectorId.ts/issues/L19-L26) [#11131](https://github.com/dynamic-labs/dynamic-auth/issues/11131) [#11516](https://github.com/dynamic-labs/dynamic-auth/issues/11516) [#11513](https://github.com/dynamic-labs/dynamic-auth/issues/11513)
|
|
15
|
+
* **react-native:** resolve intermittent "Wallet with id <uuid> not found" after login ([#11575](https://github.com/dynamic-labs/dynamic-auth/issues/11575)) ([9d7a246](https://github.com/dynamic-labs/dynamic-auth/commit/9d7a246167927b9339dc33c10977c6d12783ab88))
|
|
16
|
+
|
|
17
|
+
### [4.88.6](https://github.com/dynamic-labs/dynamic-auth/compare/v4.88.5...v4.88.6) (2026-06-13)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* **DynamicBridgeWidget:** prevent bridge chain sync from reverting manual wallet switches ([#11560](https://github.com/dynamic-labs/dynamic-auth/issues/11560)) ([40c4973](https://github.com/dynamic-labs/dynamic-auth/commit/40c4973761b3e887577664f72f89d1d6ba285ea3))
|
|
23
|
+
* resolve EOA wallet client on the correct chain for EIP-7702 smart wallets ([#11564](https://github.com/dynamic-labs/dynamic-auth/issues/11564)) ([893b083](https://github.com/dynamic-labs/dynamic-auth/commit/893b0837a450ec683ccd09f2bb54204b77b6bd50))
|
|
24
|
+
|
|
2
25
|
### [4.88.5](https://github.com/dynamic-labs/dynamic-auth/compare/v4.88.4...v4.88.5) (2026-06-11)
|
|
3
26
|
|
|
4
27
|
|
|
@@ -6502,4 +6525,4 @@ Enjoy!
|
|
|
6502
6525
|
### Bug Fixes
|
|
6503
6526
|
|
|
6504
6527
|
* **view-context:** refactor view context to have initial view ([#2268](https://github.com/dynamic-labs/DynamicAuth/issues/2268)) ([0afe6ae](https://github.com/dynamic-labs/DynamicAuth/commit/0afe6ae469f62fd16fd8471322f9295957f607f6))
|
|
6505
|
-
* **wcv2:** upgrade universal p
|
|
6528
|
+
* **wcv2:** upgrade universal p
|
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.89.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.89.0",
|
|
24
|
+
"@dynamic-labs/ethereum-core": "4.89.0",
|
|
25
|
+
"@dynamic-labs/logger": "4.89.0",
|
|
26
|
+
"@dynamic-labs/types": "4.89.0",
|
|
27
|
+
"@dynamic-labs/utils": "4.89.0",
|
|
28
|
+
"@dynamic-labs/waas": "4.89.0",
|
|
29
|
+
"@dynamic-labs/wallet-connector-core": "4.89.0"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {}
|
|
32
32
|
}
|
|
@@ -190,13 +190,9 @@ class DynamicWaasEVMConnector extends waas.withDynamicWaas(ethereumCore.Ethereum
|
|
|
190
190
|
});
|
|
191
191
|
});
|
|
192
192
|
}
|
|
193
|
-
getRpcUrl() {
|
|
193
|
+
getRpcUrl(evmNetwork) {
|
|
194
194
|
var _a;
|
|
195
|
-
|
|
196
|
-
if (!evmNetwork) {
|
|
197
|
-
throw new Error('EVM network not found');
|
|
198
|
-
}
|
|
199
|
-
return ((_a = evmNetwork === null || evmNetwork === void 0 ? void 0 : evmNetwork.privateCustomerRpcUrls) === null || _a === void 0 ? void 0 : _a[0]) || (evmNetwork === null || evmNetwork === void 0 ? void 0 : evmNetwork.rpcUrls[0]);
|
|
195
|
+
return ((_a = evmNetwork.privateCustomerRpcUrls) === null || _a === void 0 ? void 0 : _a[0]) || evmNetwork.rpcUrls[0];
|
|
200
196
|
}
|
|
201
197
|
validateActiveWallet(expectedAddress) {
|
|
202
198
|
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
@@ -398,13 +394,13 @@ class DynamicWaasEVMConnector extends waas.withDynamicWaas(ethereumCore.Ethereum
|
|
|
398
394
|
if (!targetAccountAddress) {
|
|
399
395
|
return this.getPublicClient();
|
|
400
396
|
}
|
|
401
|
-
const rpcUrl = this.getRpcUrl();
|
|
402
397
|
const evmNetwork = chainId
|
|
403
398
|
? this.getEvmNetworkByChainId(parseInt(chainId))
|
|
404
399
|
: this.currentEvmNetwork();
|
|
405
400
|
if (!evmNetwork) {
|
|
406
401
|
throw new Error('EVM network not found');
|
|
407
402
|
}
|
|
403
|
+
const rpcUrl = this.getRpcUrl(evmNetwork);
|
|
408
404
|
return ethereumCore.createWalletClientWithUiConfirmation({
|
|
409
405
|
account: () => _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
410
406
|
return this.getViemAccount({
|
|
@@ -153,6 +153,15 @@ declare const DynamicWaasEVMConnector_base: (abstract new (...args: any[]) => {
|
|
|
153
153
|
getActiveAccountAddress(): Promise<string | undefined>;
|
|
154
154
|
getConnectedAccounts(): Promise<string[]>;
|
|
155
155
|
generateTraceId(): string;
|
|
156
|
+
buildErrorInstrumentContext(error: unknown): {
|
|
157
|
+
errorCode: string | import("@dynamic-labs/utils").ErrorCode;
|
|
158
|
+
errorMessage: string;
|
|
159
|
+
errorType: string | undefined;
|
|
160
|
+
} | {
|
|
161
|
+
errorCode: string;
|
|
162
|
+
errorMessage?: undefined;
|
|
163
|
+
errorType?: undefined;
|
|
164
|
+
};
|
|
156
165
|
instrument(message: string, context: import("@dynamic-labs/logger").InstrumentOptions & import("dist/packages/waas/utils/instrumentation").InstrumentContext & Record<string, any>): void;
|
|
157
166
|
instrumentAsync<T_1>({ operation, resource, fn, context, }: {
|
|
158
167
|
operation: string;
|
|
@@ -186,13 +186,9 @@ class DynamicWaasEVMConnector extends withDynamicWaas(EthereumWalletConnector) {
|
|
|
186
186
|
});
|
|
187
187
|
});
|
|
188
188
|
}
|
|
189
|
-
getRpcUrl() {
|
|
189
|
+
getRpcUrl(evmNetwork) {
|
|
190
190
|
var _a;
|
|
191
|
-
|
|
192
|
-
if (!evmNetwork) {
|
|
193
|
-
throw new Error('EVM network not found');
|
|
194
|
-
}
|
|
195
|
-
return ((_a = evmNetwork === null || evmNetwork === void 0 ? void 0 : evmNetwork.privateCustomerRpcUrls) === null || _a === void 0 ? void 0 : _a[0]) || (evmNetwork === null || evmNetwork === void 0 ? void 0 : evmNetwork.rpcUrls[0]);
|
|
191
|
+
return ((_a = evmNetwork.privateCustomerRpcUrls) === null || _a === void 0 ? void 0 : _a[0]) || evmNetwork.rpcUrls[0];
|
|
196
192
|
}
|
|
197
193
|
validateActiveWallet(expectedAddress) {
|
|
198
194
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -394,13 +390,13 @@ class DynamicWaasEVMConnector extends withDynamicWaas(EthereumWalletConnector) {
|
|
|
394
390
|
if (!targetAccountAddress) {
|
|
395
391
|
return this.getPublicClient();
|
|
396
392
|
}
|
|
397
|
-
const rpcUrl = this.getRpcUrl();
|
|
398
393
|
const evmNetwork = chainId
|
|
399
394
|
? this.getEvmNetworkByChainId(parseInt(chainId))
|
|
400
395
|
: this.currentEvmNetwork();
|
|
401
396
|
if (!evmNetwork) {
|
|
402
397
|
throw new Error('EVM network not found');
|
|
403
398
|
}
|
|
399
|
+
const rpcUrl = this.getRpcUrl(evmNetwork);
|
|
404
400
|
return createWalletClientWithUiConfirmation({
|
|
405
401
|
account: () => __awaiter(this, void 0, void 0, function* () {
|
|
406
402
|
return this.getViemAccount({
|