@dynamic-labs/solana-core 3.0.0-alpha.62 → 3.0.0-alpha.63

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,21 @@
1
1
 
2
+ ## [3.0.0-alpha.63](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.62...v3.0.0-alpha.63) (2024-09-10)
3
+
4
+
5
+ ### ⚠ BREAKING CHANGES
6
+
7
+ * remove signWithEmailWalletName (#6824)
8
+
9
+ ### Features
10
+
11
+ * remove signWithEmailWalletName ([#6824](https://github.com/dynamic-labs/DynamicAuth/issues/6824)) ([9da06ce](https://github.com/dynamic-labs/DynamicAuth/commit/9da06ce6f83813e00827295a2952a805e0ef5ec0))
12
+
13
+
14
+ ### Bug Fixes
15
+
16
+ * omit body when creating 204 response data ([#6458](https://github.com/dynamic-labs/DynamicAuth/issues/6458)) ([06aab01](https://github.com/dynamic-labs/DynamicAuth/commit/06aab016eed0fa5ac41e43ece73780844d8d12ad))
17
+ * use a better object clone function to clone wallet signers ([#6835](https://github.com/dynamic-labs/DynamicAuth/issues/6835)) ([d88c195](https://github.com/dynamic-labs/DynamicAuth/commit/d88c195ce8e3af8e2fd8e6d76fbbdad618bc6c85))
18
+
2
19
  ## [3.0.0-alpha.62](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.61...v3.0.0-alpha.62) (2024-09-08)
3
20
 
4
21
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/solana-core",
3
- "version": "3.0.0-alpha.62",
3
+ "version": "3.0.0-alpha.63",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/dynamic-labs/dynamic-auth.git",
@@ -31,11 +31,11 @@
31
31
  "@solana/spl-token": "0.4.6"
32
32
  },
33
33
  "peerDependencies": {
34
- "@dynamic-labs/rpc-providers": "3.0.0-alpha.62",
35
- "@dynamic-labs/types": "3.0.0-alpha.62",
36
- "@dynamic-labs/utils": "3.0.0-alpha.62",
37
- "@dynamic-labs/wallet-book": "3.0.0-alpha.62",
38
- "@dynamic-labs/wallet-connector-core": "3.0.0-alpha.62",
34
+ "@dynamic-labs/rpc-providers": "3.0.0-alpha.63",
35
+ "@dynamic-labs/types": "3.0.0-alpha.63",
36
+ "@dynamic-labs/utils": "3.0.0-alpha.63",
37
+ "@dynamic-labs/wallet-book": "3.0.0-alpha.63",
38
+ "@dynamic-labs/wallet-connector-core": "3.0.0-alpha.63",
39
39
  "eventemitter3": "5.0.1"
40
40
  }
41
41
  }
@@ -5,6 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
6
  var _tslib = require('../../_virtual/_tslib.cjs');
7
7
  var walletConnectorCore = require('@dynamic-labs/wallet-connector-core');
8
+ var utils = require('@dynamic-labs/utils');
8
9
 
9
10
  class SolanaWallet extends walletConnectorCore.Wallet {
10
11
  /**
@@ -27,19 +28,24 @@ class SolanaWallet extends walletConnectorCore.Wallet {
27
28
  if (!signer) {
28
29
  throw new Error('unable to retrieve Solana signer');
29
30
  }
30
- return Object.assign(Object.assign({}, signer), { addListener: signer.addListener, emit: signer.emit, eventNames: signer.eventNames, listenerCount: signer.listenerCount, listeners: signer.listeners, off: signer.off, on: signer.on, once: signer.once, removeAllListeners: signer.removeAllListeners, removeListener: signer.removeListener, signAllTransactions: (transactions) => _tslib.__awaiter(this, void 0, void 0, function* () {
31
+ return utils.cloneObjectWithOverrides(signer, {
32
+ signAllTransactions: (transactions) => _tslib.__awaiter(this, void 0, void 0, function* () {
31
33
  yield this.sync();
32
34
  return signer.signAllTransactions(transactions);
33
- }), signAndSendTransaction: (transaction, ...args) => _tslib.__awaiter(this, void 0, void 0, function* () {
35
+ }),
36
+ signAndSendTransaction: (transaction, ...args) => _tslib.__awaiter(this, void 0, void 0, function* () {
34
37
  yield this.sync();
35
38
  return signer.signAndSendTransaction(transaction, ...args);
36
- }), signMessage: (message, ...args) => _tslib.__awaiter(this, void 0, void 0, function* () {
39
+ }),
40
+ signMessage: (message, ...args) => _tslib.__awaiter(this, void 0, void 0, function* () {
37
41
  yield this.sync();
38
42
  return signer.signMessage(message, ...args);
39
- }), signTransaction: (transaction) => _tslib.__awaiter(this, void 0, void 0, function* () {
43
+ }),
44
+ signTransaction: (transaction) => _tslib.__awaiter(this, void 0, void 0, function* () {
40
45
  yield this.sync();
41
46
  return signer.signTransaction(transaction);
42
- }) });
47
+ }),
48
+ });
43
49
  });
44
50
  }
45
51
  }
@@ -1,6 +1,7 @@
1
1
  'use client'
2
2
  import { __awaiter } from '../../_virtual/_tslib.js';
3
3
  import { Wallet } from '@dynamic-labs/wallet-connector-core';
4
+ import { cloneObjectWithOverrides } from '@dynamic-labs/utils';
4
5
 
5
6
  class SolanaWallet extends Wallet {
6
7
  /**
@@ -23,19 +24,24 @@ class SolanaWallet extends Wallet {
23
24
  if (!signer) {
24
25
  throw new Error('unable to retrieve Solana signer');
25
26
  }
26
- return Object.assign(Object.assign({}, signer), { addListener: signer.addListener, emit: signer.emit, eventNames: signer.eventNames, listenerCount: signer.listenerCount, listeners: signer.listeners, off: signer.off, on: signer.on, once: signer.once, removeAllListeners: signer.removeAllListeners, removeListener: signer.removeListener, signAllTransactions: (transactions) => __awaiter(this, void 0, void 0, function* () {
27
+ return cloneObjectWithOverrides(signer, {
28
+ signAllTransactions: (transactions) => __awaiter(this, void 0, void 0, function* () {
27
29
  yield this.sync();
28
30
  return signer.signAllTransactions(transactions);
29
- }), signAndSendTransaction: (transaction, ...args) => __awaiter(this, void 0, void 0, function* () {
31
+ }),
32
+ signAndSendTransaction: (transaction, ...args) => __awaiter(this, void 0, void 0, function* () {
30
33
  yield this.sync();
31
34
  return signer.signAndSendTransaction(transaction, ...args);
32
- }), signMessage: (message, ...args) => __awaiter(this, void 0, void 0, function* () {
35
+ }),
36
+ signMessage: (message, ...args) => __awaiter(this, void 0, void 0, function* () {
33
37
  yield this.sync();
34
38
  return signer.signMessage(message, ...args);
35
- }), signTransaction: (transaction) => __awaiter(this, void 0, void 0, function* () {
39
+ }),
40
+ signTransaction: (transaction) => __awaiter(this, void 0, void 0, function* () {
36
41
  yield this.sync();
37
42
  return signer.signTransaction(transaction);
38
- }) });
43
+ }),
44
+ });
39
45
  });
40
46
  }
41
47
  }