@dynamic-labs/ethereum 4.25.7 → 4.25.8-alpha.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 +12 -4
- package/src/metaMask/MetaMaskConnector.js +12 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
|
|
2
|
+
### [4.25.8-alpha.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.25.7...v4.25.8-alpha.0) (2025-08-04)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* don't deep link to metamask in-app browser when already in the in-app browser ([f7c061e](https://github.com/dynamic-labs/dynamic-auth/commit/f7c061e0820ca7d5ff1600c18ad0763b4288dc1d))
|
|
8
|
+
|
|
2
9
|
### [4.25.7](https://github.com/dynamic-labs/dynamic-auth/compare/v4.25.6...v4.25.7) (2025-07-28)
|
|
3
10
|
|
|
4
11
|
### [4.25.6](https://github.com/dynamic-labs/dynamic-auth/compare/v4.25.5...v4.25.6) (2025-07-28)
|
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.25.
|
|
3
|
+
"version": "4.25.8-alpha.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",
|
|
@@ -23,16 +23,16 @@
|
|
|
23
23
|
"eventemitter3": "5.0.1",
|
|
24
24
|
"buffer": "6.0.3",
|
|
25
25
|
"@metamask/sdk": "0.33.0",
|
|
26
|
-
"@dynamic-labs/assert-package-version": "4.25.
|
|
27
|
-
"@dynamic-labs/embedded-wallet-evm": "4.25.
|
|
28
|
-
"@dynamic-labs/ethereum-core": "4.25.
|
|
29
|
-
"@dynamic-labs/logger": "4.25.
|
|
30
|
-
"@dynamic-labs/rpc-providers": "4.25.
|
|
31
|
-
"@dynamic-labs/types": "4.25.
|
|
32
|
-
"@dynamic-labs/utils": "4.25.
|
|
33
|
-
"@dynamic-labs/waas-evm": "4.25.
|
|
34
|
-
"@dynamic-labs/wallet-book": "4.25.
|
|
35
|
-
"@dynamic-labs/wallet-connector-core": "4.25.
|
|
26
|
+
"@dynamic-labs/assert-package-version": "4.25.8-alpha.0",
|
|
27
|
+
"@dynamic-labs/embedded-wallet-evm": "4.25.8-alpha.0",
|
|
28
|
+
"@dynamic-labs/ethereum-core": "4.25.8-alpha.0",
|
|
29
|
+
"@dynamic-labs/logger": "4.25.8-alpha.0",
|
|
30
|
+
"@dynamic-labs/rpc-providers": "4.25.8-alpha.0",
|
|
31
|
+
"@dynamic-labs/types": "4.25.8-alpha.0",
|
|
32
|
+
"@dynamic-labs/utils": "4.25.8-alpha.0",
|
|
33
|
+
"@dynamic-labs/waas-evm": "4.25.8-alpha.0",
|
|
34
|
+
"@dynamic-labs/wallet-book": "4.25.8-alpha.0",
|
|
35
|
+
"@dynamic-labs/wallet-connector-core": "4.25.8-alpha.0"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"viem": "^2.28.4"
|
|
@@ -414,17 +414,25 @@ class MetaMaskConnector extends InjectedWalletBase.InjectedWalletBase {
|
|
|
414
414
|
}
|
|
415
415
|
shouldDeepLinkToMetaMaskInAppBrowser() {
|
|
416
416
|
// Not in an in-app browser
|
|
417
|
-
if (this.isInAppBrowser)
|
|
417
|
+
if (this.isInAppBrowser) {
|
|
418
418
|
return false;
|
|
419
|
+
}
|
|
419
420
|
// Not a mobile device
|
|
420
|
-
if (!utils.isMobile())
|
|
421
|
+
if (!utils.isMobile()) {
|
|
421
422
|
return false;
|
|
423
|
+
}
|
|
422
424
|
// SDK is configured to use the in-app browser
|
|
423
|
-
if (this.mobileExperience !== 'in-app-browser')
|
|
425
|
+
if (this.mobileExperience !== 'in-app-browser') {
|
|
424
426
|
return false;
|
|
427
|
+
}
|
|
425
428
|
// Wallet does not have an in-app browser link
|
|
426
|
-
if (!this.metadata.inAppBrowserUrl)
|
|
429
|
+
if (!this.metadata.inAppBrowserUrl) {
|
|
427
430
|
return false;
|
|
431
|
+
}
|
|
432
|
+
// We don't want to deep link to the in-app browser when already in the in-app browser
|
|
433
|
+
if (navigator.userAgent.match(/metamaskmobile/i)) {
|
|
434
|
+
return false;
|
|
435
|
+
}
|
|
428
436
|
return true;
|
|
429
437
|
}
|
|
430
438
|
getConnectionUri() {
|
|
@@ -410,17 +410,25 @@ class MetaMaskConnector extends InjectedWalletBase {
|
|
|
410
410
|
}
|
|
411
411
|
shouldDeepLinkToMetaMaskInAppBrowser() {
|
|
412
412
|
// Not in an in-app browser
|
|
413
|
-
if (this.isInAppBrowser)
|
|
413
|
+
if (this.isInAppBrowser) {
|
|
414
414
|
return false;
|
|
415
|
+
}
|
|
415
416
|
// Not a mobile device
|
|
416
|
-
if (!isMobile())
|
|
417
|
+
if (!isMobile()) {
|
|
417
418
|
return false;
|
|
419
|
+
}
|
|
418
420
|
// SDK is configured to use the in-app browser
|
|
419
|
-
if (this.mobileExperience !== 'in-app-browser')
|
|
421
|
+
if (this.mobileExperience !== 'in-app-browser') {
|
|
420
422
|
return false;
|
|
423
|
+
}
|
|
421
424
|
// Wallet does not have an in-app browser link
|
|
422
|
-
if (!this.metadata.inAppBrowserUrl)
|
|
425
|
+
if (!this.metadata.inAppBrowserUrl) {
|
|
423
426
|
return false;
|
|
427
|
+
}
|
|
428
|
+
// We don't want to deep link to the in-app browser when already in the in-app browser
|
|
429
|
+
if (navigator.userAgent.match(/metamaskmobile/i)) {
|
|
430
|
+
return false;
|
|
431
|
+
}
|
|
424
432
|
return true;
|
|
425
433
|
}
|
|
426
434
|
getConnectionUri() {
|