@dynamic-labs/ethereum 4.32.0 → 4.32.1-preview.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 +7 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +11 -11
- package/src/metaMask/MetaMaskConnector.cjs +18 -4
- package/src/metaMask/MetaMaskConnector.js +18 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
|
|
2
|
+
### [4.32.1-preview.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.32.0...v4.32.1-preview.0) (2025-09-19)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* correct naming ([#9513](https://github.com/dynamic-labs/dynamic-auth/issues/9513)) ([5b4e31b](https://github.com/dynamic-labs/dynamic-auth/commit/5b4e31b9bbf2401d377201a4cd12edf79eaef75f))
|
|
8
|
+
|
|
2
9
|
## [4.32.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.31.4...v4.32.0) (2025-09-17)
|
|
3
10
|
|
|
4
11
|
|
package/package.cjs
CHANGED
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/ethereum",
|
|
3
|
-
"version": "4.32.0",
|
|
3
|
+
"version": "4.32.1-preview.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",
|
|
@@ -24,16 +24,16 @@
|
|
|
24
24
|
"eventemitter3": "5.0.1",
|
|
25
25
|
"buffer": "6.0.3",
|
|
26
26
|
"@metamask/sdk": "0.33.0",
|
|
27
|
-
"@dynamic-labs/assert-package-version": "4.32.0",
|
|
28
|
-
"@dynamic-labs/embedded-wallet-evm": "4.32.0",
|
|
29
|
-
"@dynamic-labs/ethereum-core": "4.32.0",
|
|
30
|
-
"@dynamic-labs/logger": "4.32.0",
|
|
31
|
-
"@dynamic-labs/rpc-providers": "4.32.0",
|
|
32
|
-
"@dynamic-labs/types": "4.32.0",
|
|
33
|
-
"@dynamic-labs/utils": "4.32.0",
|
|
34
|
-
"@dynamic-labs/waas-evm": "4.32.0",
|
|
35
|
-
"@dynamic-labs/wallet-book": "4.32.0",
|
|
36
|
-
"@dynamic-labs/wallet-connector-core": "4.32.0"
|
|
27
|
+
"@dynamic-labs/assert-package-version": "4.32.1-preview.0",
|
|
28
|
+
"@dynamic-labs/embedded-wallet-evm": "4.32.1-preview.0",
|
|
29
|
+
"@dynamic-labs/ethereum-core": "4.32.1-preview.0",
|
|
30
|
+
"@dynamic-labs/logger": "4.32.1-preview.0",
|
|
31
|
+
"@dynamic-labs/rpc-providers": "4.32.1-preview.0",
|
|
32
|
+
"@dynamic-labs/types": "4.32.1-preview.0",
|
|
33
|
+
"@dynamic-labs/utils": "4.32.1-preview.0",
|
|
34
|
+
"@dynamic-labs/waas-evm": "4.32.1-preview.0",
|
|
35
|
+
"@dynamic-labs/wallet-book": "4.32.1-preview.0",
|
|
36
|
+
"@dynamic-labs/wallet-connector-core": "4.32.1-preview.0"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
39
|
"viem": "^2.28.4"
|
|
@@ -414,17 +414,31 @@ class MetaMaskConnector extends InjectedWalletBase.InjectedWalletBase {
|
|
|
414
414
|
}
|
|
415
415
|
shouldDeepLinkToMetaMaskInAppBrowser() {
|
|
416
416
|
// Not in an in-app browser
|
|
417
|
-
|
|
417
|
+
console.log('In in-app browser - isInAppBrowser', this.isInAppBrowser);
|
|
418
|
+
if (this.isInAppBrowser) {
|
|
418
419
|
return false;
|
|
420
|
+
}
|
|
421
|
+
console.log('In in-app browser - isMobile', utils.isMobile());
|
|
419
422
|
// Not a mobile device
|
|
420
|
-
if (!utils.isMobile())
|
|
423
|
+
if (!utils.isMobile()) {
|
|
421
424
|
return false;
|
|
425
|
+
}
|
|
426
|
+
console.log('In in-app browser - mobileExperience', this.mobileExperience);
|
|
422
427
|
// SDK is configured to use the in-app browser
|
|
423
|
-
if (this.mobileExperience !== 'in-app-browser')
|
|
428
|
+
if (this.mobileExperience !== 'in-app-browser') {
|
|
424
429
|
return false;
|
|
430
|
+
}
|
|
431
|
+
console.log('In in-app browser - metadata.inAppBrowserUrl', this.metadata.inAppBrowserUrl);
|
|
425
432
|
// Wallet does not have an in-app browser link
|
|
426
|
-
if (!this.metadata.inAppBrowserUrl)
|
|
433
|
+
if (!this.metadata.inAppBrowserUrl) {
|
|
427
434
|
return false;
|
|
435
|
+
}
|
|
436
|
+
console.log('In in-app browser - navigator.userAgent', navigator.userAgent);
|
|
437
|
+
// We don't want to deep link to the in-app browser when already in the in-app browser
|
|
438
|
+
if (navigator.userAgent.match(/metamaskmobile/i)) {
|
|
439
|
+
return false;
|
|
440
|
+
}
|
|
441
|
+
console.log('In in-app browser - returning true to use deeplink');
|
|
428
442
|
return true;
|
|
429
443
|
}
|
|
430
444
|
getConnectionUri() {
|
|
@@ -410,17 +410,31 @@ class MetaMaskConnector extends InjectedWalletBase {
|
|
|
410
410
|
}
|
|
411
411
|
shouldDeepLinkToMetaMaskInAppBrowser() {
|
|
412
412
|
// Not in an in-app browser
|
|
413
|
-
|
|
413
|
+
console.log('In in-app browser - isInAppBrowser', this.isInAppBrowser);
|
|
414
|
+
if (this.isInAppBrowser) {
|
|
414
415
|
return false;
|
|
416
|
+
}
|
|
417
|
+
console.log('In in-app browser - isMobile', isMobile());
|
|
415
418
|
// Not a mobile device
|
|
416
|
-
if (!isMobile())
|
|
419
|
+
if (!isMobile()) {
|
|
417
420
|
return false;
|
|
421
|
+
}
|
|
422
|
+
console.log('In in-app browser - mobileExperience', this.mobileExperience);
|
|
418
423
|
// SDK is configured to use the in-app browser
|
|
419
|
-
if (this.mobileExperience !== 'in-app-browser')
|
|
424
|
+
if (this.mobileExperience !== 'in-app-browser') {
|
|
420
425
|
return false;
|
|
426
|
+
}
|
|
427
|
+
console.log('In in-app browser - metadata.inAppBrowserUrl', this.metadata.inAppBrowserUrl);
|
|
421
428
|
// Wallet does not have an in-app browser link
|
|
422
|
-
if (!this.metadata.inAppBrowserUrl)
|
|
429
|
+
if (!this.metadata.inAppBrowserUrl) {
|
|
423
430
|
return false;
|
|
431
|
+
}
|
|
432
|
+
console.log('In in-app browser - navigator.userAgent', navigator.userAgent);
|
|
433
|
+
// We don't want to deep link to the in-app browser when already in the in-app browser
|
|
434
|
+
if (navigator.userAgent.match(/metamaskmobile/i)) {
|
|
435
|
+
return false;
|
|
436
|
+
}
|
|
437
|
+
console.log('In in-app browser - returning true to use deeplink');
|
|
424
438
|
return true;
|
|
425
439
|
}
|
|
426
440
|
getConnectionUri() {
|