@dynamic-labs/ethereum 4.7.2 → 4.8.1

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,25 @@
1
1
 
2
+ ### [4.8.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.8.0...v4.8.1) (2025-02-25)
3
+
4
+
5
+ ### Bug Fixes
6
+
7
+ * wc redirect for safari inside iframe ([#8131](https://github.com/dynamic-labs/dynamic-auth/issues/8131)) ([8c74bea](https://github.com/dynamic-labs/dynamic-auth/commit/8c74beae505014eb85be4fd211909709d0a339dd))
8
+
9
+ ## [4.8.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.7.2...v4.8.0) (2025-02-25)
10
+
11
+
12
+ ### Features
13
+
14
+ * add support for network switching for SOL wallets ([#8095](https://github.com/dynamic-labs/dynamic-auth/issues/8095)) ([8997b39](https://github.com/dynamic-labs/dynamic-auth/commit/8997b399e1e5cd294aad8b719d39928eed5e911d))
15
+ * add support for solNetworks override ([#8138](https://github.com/dynamic-labs/dynamic-auth/issues/8138)) ([8c3f374](https://github.com/dynamic-labs/dynamic-auth/commit/8c3f374a9b2b451f984aed98e7ce506552e2a6c5))
16
+ * **react-native:** add account abstraction multi-chain ([#8132](https://github.com/dynamic-labs/dynamic-auth/issues/8132)) ([c64a26e](https://github.com/dynamic-labs/dynamic-auth/commit/c64a26e16943d913edf4683084f59592a9aeedfc))
17
+
18
+
19
+ ### Bug Fixes
20
+
21
+ * ensure zero dev network cache use project id ([#8133](https://github.com/dynamic-labs/dynamic-auth/issues/8133)) ([408c4ed](https://github.com/dynamic-labs/dynamic-auth/commit/408c4ed764a623b6d870cd24973320e5ca4a74c7))
22
+
2
23
  ### [4.7.2](https://github.com/dynamic-labs/dynamic-auth/compare/v4.7.1...v4.7.2) (2025-02-22)
3
24
 
4
25
  ### Features
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.7.2";
6
+ var version = "4.8.1";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.7.2";
2
+ var version = "4.8.1";
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.7.2",
3
+ "version": "4.8.1",
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,14 +24,14 @@
24
24
  "eventemitter3": "5.0.1",
25
25
  "buffer": "6.0.3",
26
26
  "@metamask/sdk": "0.32.0",
27
- "@dynamic-labs/assert-package-version": "4.7.2",
28
- "@dynamic-labs/embedded-wallet-evm": "4.7.2",
29
- "@dynamic-labs/ethereum-core": "4.7.2",
30
- "@dynamic-labs/logger": "4.7.2",
31
- "@dynamic-labs/types": "4.7.2",
32
- "@dynamic-labs/utils": "4.7.2",
33
- "@dynamic-labs/wallet-book": "4.7.2",
34
- "@dynamic-labs/wallet-connector-core": "4.7.2"
27
+ "@dynamic-labs/assert-package-version": "4.8.1",
28
+ "@dynamic-labs/embedded-wallet-evm": "4.8.1",
29
+ "@dynamic-labs/ethereum-core": "4.8.1",
30
+ "@dynamic-labs/logger": "4.8.1",
31
+ "@dynamic-labs/types": "4.8.1",
32
+ "@dynamic-labs/utils": "4.8.1",
33
+ "@dynamic-labs/wallet-book": "4.8.1",
34
+ "@dynamic-labs/wallet-connector-core": "4.8.1"
35
35
  },
36
36
  "peerDependencies": {
37
37
  "viem": "^2.21.55"
@@ -133,7 +133,7 @@ class MetaMaskConnector extends InjectedWalletBase.InjectedWalletBase {
133
133
  if (this.shouldDeepLinkToMetaMaskInAppBrowser() &&
134
134
  this.metadata.inAppBrowserUrl) {
135
135
  // Redirect to the in-app browser and append the current url
136
- window.location.href = `${this.metadata.inAppBrowserUrl}/${window.location.href}`;
136
+ utils.PlatformService.openURL(`${this.metadata.inAppBrowserUrl}/${window.location.href}`);
137
137
  resolve(undefined);
138
138
  return;
139
139
  }
@@ -129,7 +129,7 @@ class MetaMaskConnector extends InjectedWalletBase {
129
129
  if (this.shouldDeepLinkToMetaMaskInAppBrowser() &&
130
130
  this.metadata.inAppBrowserUrl) {
131
131
  // Redirect to the in-app browser and append the current url
132
- window.location.href = `${this.metadata.inAppBrowserUrl}/${window.location.href}`;
132
+ PlatformService.openURL(`${this.metadata.inAppBrowserUrl}/${window.location.href}`);
133
133
  resolve(undefined);
134
134
  return;
135
135
  }
@@ -4,6 +4,7 @@
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
6
  var _tslib = require('../../../_virtual/_tslib.cjs');
7
+ var utils = require('@dynamic-labs/utils');
7
8
  var InjectedWalletBase = require('../../injected/InjectedWalletBase.cjs');
8
9
  var logger = require('../logger.cjs');
9
10
 
@@ -34,7 +35,7 @@ const getConnectorConstructorInjectedWallet = (key, wallet) => {
34
35
  logger.logger.error(error.message);
35
36
  throw error;
36
37
  }
37
- window.location.href = `${inAppBrowserBase}/${window.location.href}`;
38
+ utils.PlatformService.openURL(`${inAppBrowserBase}/${window.location.href}`);
38
39
  return undefined;
39
40
  });
40
41
  }
@@ -1,5 +1,6 @@
1
1
  'use client'
2
2
  import { __awaiter } from '../../../_virtual/_tslib.js';
3
+ import { PlatformService } from '@dynamic-labs/utils';
3
4
  import { InjectedWalletBase } from '../../injected/InjectedWalletBase.js';
4
5
  import { logger } from '../logger.js';
5
6
 
@@ -30,7 +31,7 @@ const getConnectorConstructorInjectedWallet = (key, wallet) => {
30
31
  logger.error(error.message);
31
32
  throw error;
32
33
  }
33
- window.location.href = `${inAppBrowserBase}/${window.location.href}`;
34
+ PlatformService.openURL(`${inAppBrowserBase}/${window.location.href}`);
34
35
  return undefined;
35
36
  });
36
37
  }
@@ -7,9 +7,9 @@ var _tslib = require('../../_virtual/_tslib.cjs');
7
7
  var EthereumProvider = require('@walletconnect/ethereum-provider');
8
8
  var EventEmitter = require('eventemitter3');
9
9
  var viem = require('viem');
10
- var walletConnectorCore = require('@dynamic-labs/wallet-connector-core');
11
- var utils = require('@dynamic-labs/utils');
12
10
  var ethereumCore = require('@dynamic-labs/ethereum-core');
11
+ var utils = require('@dynamic-labs/utils');
12
+ var walletConnectorCore = require('@dynamic-labs/wallet-connector-core');
13
13
 
14
14
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
15
15
 
@@ -372,7 +372,7 @@ class WalletConnect extends ethereumCore.EthereumWalletConnector {
372
372
  }
373
373
  const deepLink = this.getDeepLink();
374
374
  if (utils.isMobile() && deepLink) {
375
- window.location.href = deepLink;
375
+ utils.PlatformService.openURL(deepLink);
376
376
  }
377
377
  const signMessageFn = (messageToSign) => _tslib.__awaiter(this, void 0, void 0, function* () {
378
378
  const activeAccount = this.getActiveAccount();
@@ -1,9 +1,9 @@
1
1
  import EthereumProvider from '@walletconnect/ethereum-provider';
2
2
  import type { SessionTypes } from '@walletconnect/types';
3
3
  import { Account, Transport, Chain as ViemChain } from 'viem';
4
- import { GetAddressOpts, DeepLinkVariant, IWalletConnectConnector } from '@dynamic-labs/wallet-connector-core';
5
- import { EvmNetwork } from '@dynamic-labs/types';
6
4
  import { EthereumWalletConnector, EthereumWalletConnectorOpts } from '@dynamic-labs/ethereum-core';
5
+ import { EvmNetwork } from '@dynamic-labs/types';
6
+ import { DeepLinkVariant, GetAddressOpts, IWalletConnectConnector } from '@dynamic-labs/wallet-connector-core';
7
7
  export type WalletConnectOpts = EthereumWalletConnectorOpts & {
8
8
  projectId?: string;
9
9
  walletName: string;
@@ -3,9 +3,9 @@ import { __awaiter } from '../../_virtual/_tslib.js';
3
3
  import EthereumProvider from '@walletconnect/ethereum-provider';
4
4
  import EventEmitter from 'eventemitter3';
5
5
  import { createWalletClient, custom } from 'viem';
6
- import { logger, performPlatformSpecificConnectionMethod, getDeepLink } from '@dynamic-labs/wallet-connector-core';
7
- import { parseIntSafe, sleep, DynamicError, isMobile } from '@dynamic-labs/utils';
8
6
  import { EthereumWalletConnector, chainsMap } from '@dynamic-labs/ethereum-core';
7
+ import { parseIntSafe, sleep, DynamicError, isMobile, PlatformService } from '@dynamic-labs/utils';
8
+ import { logger, performPlatformSpecificConnectionMethod, getDeepLink } from '@dynamic-labs/wallet-connector-core';
9
9
 
10
10
  const activeAccountKey = (walletName) => `dynamic-wc2-active-account-${walletName}`;
11
11
  const sessionTopicKey = (walletName) => `dynamic-wc2-session-topic-${walletName}`;
@@ -363,7 +363,7 @@ class WalletConnect extends EthereumWalletConnector {
363
363
  }
364
364
  const deepLink = this.getDeepLink();
365
365
  if (isMobile() && deepLink) {
366
- window.location.href = deepLink;
366
+ PlatformService.openURL(deepLink);
367
367
  }
368
368
  const signMessageFn = (messageToSign) => __awaiter(this, void 0, void 0, function* () {
369
369
  const activeAccount = this.getActiveAccount();