@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 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
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.25.7";
6
+ var version = "4.25.8-alpha.0";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.25.7";
2
+ var version = "4.25.8-alpha.0";
3
3
 
4
4
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/ethereum",
3
- "version": "4.25.7",
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.7",
27
- "@dynamic-labs/embedded-wallet-evm": "4.25.7",
28
- "@dynamic-labs/ethereum-core": "4.25.7",
29
- "@dynamic-labs/logger": "4.25.7",
30
- "@dynamic-labs/rpc-providers": "4.25.7",
31
- "@dynamic-labs/types": "4.25.7",
32
- "@dynamic-labs/utils": "4.25.7",
33
- "@dynamic-labs/waas-evm": "4.25.7",
34
- "@dynamic-labs/wallet-book": "4.25.7",
35
- "@dynamic-labs/wallet-connector-core": "4.25.7"
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() {