@dynamic-labs/ethereum 0.18.0-RC.21 → 0.18.0-RC.23

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,20 @@
1
1
 
2
+ ## [0.18.0-RC.23](https://github.com/dynamic-labs/DynamicAuth/compare/v0.18.0-RC.22...v0.18.0-RC.23) (2023-07-31)
3
+
4
+
5
+ ### Features
6
+
7
+ * add hook to expose link/unlink social account ([#2766](https://github.com/dynamic-labs/DynamicAuth/issues/2766)) ([06366ee](https://github.com/dynamic-labs/DynamicAuth/commit/06366eebd9917f39c0177307616bcd936f023326))
8
+ * show modal for duplicate emails ([#2761](https://github.com/dynamic-labs/DynamicAuth/issues/2761)) ([421235b](https://github.com/dynamic-labs/DynamicAuth/commit/421235b4c41ce682b0cf75093dff8281031121cb))
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * missing dependencies and providers for MockContextProvider ([#2779](https://github.com/dynamic-labs/DynamicAuth/issues/2779)) ([15ce9af](https://github.com/dynamic-labs/DynamicAuth/commit/15ce9af40240f50878c2a4f103bdcb98d845b49b))
14
+ * Revert "fix: ensure metamask auto-redirect upon message signing ([#2757](https://github.com/dynamic-labs/DynamicAuth/issues/2757))" ([#2776](https://github.com/dynamic-labs/DynamicAuth/issues/2776)) ([9abe356](https://github.com/dynamic-labs/DynamicAuth/commit/9abe3568a9ba9c70a6e17f03e9746a787feae92e))
15
+
16
+ ## [0.18.0-RC.22](https://github.com/dynamic-labs/DynamicAuth/compare/v0.18.0-RC.21...v0.18.0-RC.22) (2023-07-28)
17
+
2
18
  ## [0.18.0-RC.21](https://github.com/dynamic-labs/DynamicAuth/compare/v0.18.0-RC.20...v0.18.0-RC.21) (2023-07-28)
3
19
 
4
20
  ## [0.18.0-RC.20](https://github.com/dynamic-labs/DynamicAuth/compare/v0.18.0-RC.19...v0.18.0-RC.20) (2023-07-27)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/ethereum",
3
- "version": "0.18.0-RC.21",
3
+ "version": "0.18.0-RC.23",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/dynamic-labs/DynamicAuth.git",
@@ -32,11 +32,11 @@
32
32
  "ethers": "5.7.2",
33
33
  "eventemitter3": "5.0.1",
34
34
  "buffer": "6.0.3",
35
- "@dynamic-labs/rpc-providers": "0.18.0-RC.21",
36
- "@dynamic-labs/types": "0.18.0-RC.21",
37
- "@dynamic-labs/utils": "0.18.0-RC.21",
38
- "@dynamic-labs/wallet-book": "0.18.0-RC.21",
39
- "@dynamic-labs/wallet-connector-core": "0.18.0-RC.21",
35
+ "@dynamic-labs/rpc-providers": "0.18.0-RC.23",
36
+ "@dynamic-labs/types": "0.18.0-RC.23",
37
+ "@dynamic-labs/utils": "0.18.0-RC.23",
38
+ "@dynamic-labs/wallet-book": "0.18.0-RC.23",
39
+ "@dynamic-labs/wallet-connector-core": "0.18.0-RC.23",
40
40
  "@ethersproject/providers": "5.7.2"
41
41
  },
42
42
  "peerDependencies": {}
@@ -125,17 +125,6 @@ class WalletConnectV2 extends EthWalletConnector.EthWalletConnector {
125
125
  get activeAccountKey() {
126
126
  return activeAccountKey(this.key);
127
127
  }
128
- getDeepLink() {
129
- var _a;
130
- const wallet = walletBook.getWalletBookWallet(this.walletBook, this.name);
131
- if (!utils.isMobile() && !((_a = wallet.desktop) === null || _a === void 0 ? void 0 : _a.native)) {
132
- return undefined;
133
- }
134
- return walletConnectorCore.getDeepLink({
135
- metadata: wallet,
136
- mode: 'regular',
137
- });
138
- }
139
128
  supportsNetworkSwitching() {
140
129
  return true;
141
130
  }
@@ -213,11 +202,6 @@ class WalletConnectV2 extends EthWalletConnector.EthWalletConnector {
213
202
  }
214
203
  }
215
204
  const metadata = walletBook.getWalletBookWallet(this.walletBook, this.name);
216
- if (utils.isMobile()) {
217
- // eslint-disable-next-line max-len
218
- // see: https://dynamiclabsgroup.slack.com/archives/C04J69TS3JR/p1689918262752199?thread_ts=1689633771.128409&cid=C04J69TS3JR
219
- localStorage.setItem('WALLETCONNECT_DEEPLINK_CHOICE', JSON.stringify({ href: this.getDeepLink(), name: metadata.name }));
220
- }
221
205
  walletConnectorCore.performPlatformSpecificConnectionMethod(WalletConnectV2.provider.uri, metadata, {
222
206
  onDesktopUri: opts === null || opts === void 0 ? void 0 : opts.onDesktopUri,
223
207
  onDisplayUri: opts === null || opts === void 0 ? void 0 : opts.onDisplayUri,
@@ -322,7 +306,6 @@ class WalletConnectV2 extends EthWalletConnector.EthWalletConnector {
322
306
  endSession() {
323
307
  var _a;
324
308
  return _tslib.__awaiter(this, void 0, void 0, function* () {
325
- localStorage.removeItem('WALLETCONNECT_DEEPLINK_CHOICE');
326
309
  this.clearActiveAccount();
327
310
  this.clearSession();
328
311
  if (!((_a = WalletConnectV2.provider) === null || _a === void 0 ? void 0 : _a.session)) {
@@ -27,7 +27,6 @@ export declare class WalletConnectV2 extends EthWalletConnector {
27
27
  init(): Promise<void>;
28
28
  get sessionTopicKey(): string;
29
29
  get activeAccountKey(): string;
30
- getDeepLink(): string | undefined;
31
30
  supportsNetworkSwitching(): boolean;
32
31
  setupEventListeners(listeners: WalletEventListeners): void;
33
32
  teardownEventListeners(): void;
@@ -2,7 +2,7 @@ import { __awaiter } from '../../_virtual/_tslib.js';
2
2
  import Provider from '@walletconnect/universal-provider';
3
3
  import { ethers } from 'ethers';
4
4
  import EventEmitter from 'eventemitter3';
5
- import { logger, getDeepLink, performPlatformSpecificConnectionMethod, utf8ToHex } from '@dynamic-labs/wallet-connector-core';
5
+ import { logger, performPlatformSpecificConnectionMethod, utf8ToHex } from '@dynamic-labs/wallet-connector-core';
6
6
  import { getWalletBookWallet } from '@dynamic-labs/wallet-book';
7
7
  import { DynamicError, isMobile } from '@dynamic-labs/utils';
8
8
  import { EthWalletConnector } from '../EthWalletConnector.js';
@@ -116,17 +116,6 @@ class WalletConnectV2 extends EthWalletConnector {
116
116
  get activeAccountKey() {
117
117
  return activeAccountKey(this.key);
118
118
  }
119
- getDeepLink() {
120
- var _a;
121
- const wallet = getWalletBookWallet(this.walletBook, this.name);
122
- if (!isMobile() && !((_a = wallet.desktop) === null || _a === void 0 ? void 0 : _a.native)) {
123
- return undefined;
124
- }
125
- return getDeepLink({
126
- metadata: wallet,
127
- mode: 'regular',
128
- });
129
- }
130
119
  supportsNetworkSwitching() {
131
120
  return true;
132
121
  }
@@ -204,11 +193,6 @@ class WalletConnectV2 extends EthWalletConnector {
204
193
  }
205
194
  }
206
195
  const metadata = getWalletBookWallet(this.walletBook, this.name);
207
- if (isMobile()) {
208
- // eslint-disable-next-line max-len
209
- // see: https://dynamiclabsgroup.slack.com/archives/C04J69TS3JR/p1689918262752199?thread_ts=1689633771.128409&cid=C04J69TS3JR
210
- localStorage.setItem('WALLETCONNECT_DEEPLINK_CHOICE', JSON.stringify({ href: this.getDeepLink(), name: metadata.name }));
211
- }
212
196
  performPlatformSpecificConnectionMethod(WalletConnectV2.provider.uri, metadata, {
213
197
  onDesktopUri: opts === null || opts === void 0 ? void 0 : opts.onDesktopUri,
214
198
  onDisplayUri: opts === null || opts === void 0 ? void 0 : opts.onDisplayUri,
@@ -313,7 +297,6 @@ class WalletConnectV2 extends EthWalletConnector {
313
297
  endSession() {
314
298
  var _a;
315
299
  return __awaiter(this, void 0, void 0, function* () {
316
- localStorage.removeItem('WALLETCONNECT_DEEPLINK_CHOICE');
317
300
  this.clearActiveAccount();
318
301
  this.clearSession();
319
302
  if (!((_a = WalletConnectV2.provider) === null || _a === void 0 ? void 0 : _a.session)) {