@dynamic-labs/wallet-connector-core 4.88.6 → 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 +15 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +7 -7
- package/src/WalletConnectorBase/WalletConnectorBase.cjs +5 -2
- package/src/WalletConnectorBase/WalletConnectorBase.d.ts +1 -0
- package/src/WalletConnectorBase/WalletConnectorBase.js +5 -2
- package/src/utils/getWalletMetadataFromWalletBook/getWalletMetadataFromWalletBook.cjs +2 -2
- package/src/utils/getWalletMetadataFromWalletBook/getWalletMetadataFromWalletBook.js +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,19 @@
|
|
|
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
|
+
|
|
2
17
|
### [4.88.6](https://github.com/dynamic-labs/dynamic-auth/compare/v4.88.5...v4.88.6) (2026-06-13)
|
|
3
18
|
|
|
4
19
|
|
package/package.cjs
CHANGED
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/wallet-connector-core",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.89.0",
|
|
4
4
|
"description": "Core package for utilities and types for handling multiple wallet/chain support Dynamic SDK",
|
|
5
5
|
"author": "Dynamic Labs, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -22,12 +22,12 @@
|
|
|
22
22
|
"@dynamic-labs/sdk-api-core": "0.0.1015",
|
|
23
23
|
"@dynamic-labs-wallet/browser-wallet-client": "1.0.16",
|
|
24
24
|
"@dynamic-labs-wallet/forward-mpc-client": "0.10.1",
|
|
25
|
-
"@dynamic-labs/assert-package-version": "4.
|
|
26
|
-
"@dynamic-labs/logger": "4.
|
|
27
|
-
"@dynamic-labs/rpc-providers": "4.
|
|
28
|
-
"@dynamic-labs/types": "4.
|
|
29
|
-
"@dynamic-labs/utils": "4.
|
|
30
|
-
"@dynamic-labs/wallet-book": "4.
|
|
25
|
+
"@dynamic-labs/assert-package-version": "4.89.0",
|
|
26
|
+
"@dynamic-labs/logger": "4.89.0",
|
|
27
|
+
"@dynamic-labs/rpc-providers": "4.89.0",
|
|
28
|
+
"@dynamic-labs/types": "4.89.0",
|
|
29
|
+
"@dynamic-labs/utils": "4.89.0",
|
|
30
|
+
"@dynamic-labs/wallet-book": "4.89.0",
|
|
31
31
|
"eventemitter3": "5.0.1"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {}
|
|
@@ -124,7 +124,7 @@ class WalletConnectorBase extends EventEmitter__default["default"] {
|
|
|
124
124
|
this.isInitialized = true;
|
|
125
125
|
this.constructorProps = props;
|
|
126
126
|
this._walletBookInstance = WalletBookSingleton.WalletBookSingleton.getOrCreate(props.walletBook);
|
|
127
|
-
this.
|
|
127
|
+
this._constructorMetadata = props.metadata;
|
|
128
128
|
this.walletConnectorEventsEmitter =
|
|
129
129
|
this.constructorProps.walletConnectorEventsEmitter ||
|
|
130
130
|
walletConnectorEvents.walletConnectorEvents;
|
|
@@ -330,10 +330,13 @@ class WalletConnectorBase extends EventEmitter__default["default"] {
|
|
|
330
330
|
get metadata() {
|
|
331
331
|
var _a;
|
|
332
332
|
if (!this._metadata) {
|
|
333
|
-
|
|
333
|
+
const walletBookMetadata = getWalletMetadataFromWalletBook.getWalletMetadataFromWalletBook({
|
|
334
334
|
walletBook: this.walletBook,
|
|
335
335
|
walletKey: this.key,
|
|
336
336
|
});
|
|
337
|
+
if (walletBookMetadata || this._constructorMetadata) {
|
|
338
|
+
this._metadata = Object.assign(Object.assign({ icon: '', id: this.key, name: this.name }, walletBookMetadata), this._constructorMetadata);
|
|
339
|
+
}
|
|
337
340
|
}
|
|
338
341
|
return (_a = this._metadata) !== null && _a !== void 0 ? _a : { icon: '', id: this.key, name: this.name };
|
|
339
342
|
}
|
|
@@ -23,6 +23,7 @@ export declare abstract class WalletConnectorBase<C extends WalletConstructor<an
|
|
|
23
23
|
constructorProps: any;
|
|
24
24
|
_walletBookInstance: WalletBookSingleton;
|
|
25
25
|
_metadata: WalletMetadata | undefined;
|
|
26
|
+
private _constructorMetadata;
|
|
26
27
|
walletConnectorEventsEmitter: WalletConnectorEventEmitter;
|
|
27
28
|
walletFallback: WalletSchema | undefined;
|
|
28
29
|
isGlobalTransaction: boolean;
|
|
@@ -116,7 +116,7 @@ class WalletConnectorBase extends EventEmitter {
|
|
|
116
116
|
this.isInitialized = true;
|
|
117
117
|
this.constructorProps = props;
|
|
118
118
|
this._walletBookInstance = WalletBookSingleton.getOrCreate(props.walletBook);
|
|
119
|
-
this.
|
|
119
|
+
this._constructorMetadata = props.metadata;
|
|
120
120
|
this.walletConnectorEventsEmitter =
|
|
121
121
|
this.constructorProps.walletConnectorEventsEmitter ||
|
|
122
122
|
walletConnectorEvents;
|
|
@@ -322,10 +322,13 @@ class WalletConnectorBase extends EventEmitter {
|
|
|
322
322
|
get metadata() {
|
|
323
323
|
var _a;
|
|
324
324
|
if (!this._metadata) {
|
|
325
|
-
|
|
325
|
+
const walletBookMetadata = getWalletMetadataFromWalletBook({
|
|
326
326
|
walletBook: this.walletBook,
|
|
327
327
|
walletKey: this.key,
|
|
328
328
|
});
|
|
329
|
+
if (walletBookMetadata || this._constructorMetadata) {
|
|
330
|
+
this._metadata = Object.assign(Object.assign({ icon: '', id: this.key, name: this.name }, walletBookMetadata), this._constructorMetadata);
|
|
331
|
+
}
|
|
329
332
|
}
|
|
330
333
|
return (_a = this._metadata) !== null && _a !== void 0 ? _a : { icon: '', id: this.key, name: this.name };
|
|
331
334
|
}
|
|
@@ -21,7 +21,7 @@ const getWalletMetadataFromWalletBook = ({ walletKey, walletBookWallet, walletBo
|
|
|
21
21
|
const wallet = walletBookWallet !== null && walletBookWallet !== void 0 ? walletBookWallet : walletBook.getWalletBookWallet(walletBook$1, walletKey, walletFallback);
|
|
22
22
|
// if no walletBookWallet is provided and no wallet is found in the wallet book, throw an error
|
|
23
23
|
if (!wallet) {
|
|
24
|
-
logger.logger.
|
|
24
|
+
logger.logger.debug('Wallet not found in wallet book');
|
|
25
25
|
return;
|
|
26
26
|
}
|
|
27
27
|
return {
|
|
@@ -42,7 +42,7 @@ const getWalletMetadataFromWalletBook = ({ walletKey, walletBookWallet, walletBo
|
|
|
42
42
|
};
|
|
43
43
|
}
|
|
44
44
|
catch (e) {
|
|
45
|
-
logger.logger.
|
|
45
|
+
logger.logger.debug('Error getting wallet metadata from wallet book', {
|
|
46
46
|
error: e,
|
|
47
47
|
});
|
|
48
48
|
return;
|
|
@@ -17,7 +17,7 @@ const getWalletMetadataFromWalletBook = ({ walletKey, walletBookWallet, walletBo
|
|
|
17
17
|
const wallet = walletBookWallet !== null && walletBookWallet !== void 0 ? walletBookWallet : getWalletBookWallet(walletBook, walletKey, walletFallback);
|
|
18
18
|
// if no walletBookWallet is provided and no wallet is found in the wallet book, throw an error
|
|
19
19
|
if (!wallet) {
|
|
20
|
-
logger.
|
|
20
|
+
logger.debug('Wallet not found in wallet book');
|
|
21
21
|
return;
|
|
22
22
|
}
|
|
23
23
|
return {
|
|
@@ -38,7 +38,7 @@ const getWalletMetadataFromWalletBook = ({ walletKey, walletBookWallet, walletBo
|
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
40
|
catch (e) {
|
|
41
|
-
logger.
|
|
41
|
+
logger.debug('Error getting wallet metadata from wallet book', {
|
|
42
42
|
error: e,
|
|
43
43
|
});
|
|
44
44
|
return;
|