@dynamic-labs/ethereum 4.32.0 → 4.32.1-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,12 @@
1
1
 
2
+ ### [4.32.1-alpha.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.32.0...v4.32.1-alpha.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
+ * don't deep link to metamask in-app browser when already in the in-app browser ([585b31f](https://github.com/dynamic-labs/dynamic-auth/commit/585b31f73c03534e6c1a59630599d17f331ff9a0))
9
+
2
10
  ## [4.32.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.31.4...v4.32.0) (2025-09-17)
3
11
 
4
12
 
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.32.0";
6
+ var version = "4.32.1-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.32.0";
2
+ var version = "4.32.1-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.32.0",
3
+ "version": "4.32.1-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",
@@ -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-alpha.0",
28
+ "@dynamic-labs/embedded-wallet-evm": "4.32.1-alpha.0",
29
+ "@dynamic-labs/ethereum-core": "4.32.1-alpha.0",
30
+ "@dynamic-labs/logger": "4.32.1-alpha.0",
31
+ "@dynamic-labs/rpc-providers": "4.32.1-alpha.0",
32
+ "@dynamic-labs/types": "4.32.1-alpha.0",
33
+ "@dynamic-labs/utils": "4.32.1-alpha.0",
34
+ "@dynamic-labs/waas-evm": "4.32.1-alpha.0",
35
+ "@dynamic-labs/wallet-book": "4.32.1-alpha.0",
36
+ "@dynamic-labs/wallet-connector-core": "4.32.1-alpha.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
- if (this.isInAppBrowser)
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
- if (this.isInAppBrowser)
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() {