@dynamic-labs/bitcoin 3.1.1 → 3.1.3

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,18 @@
1
1
 
2
+ ### [3.1.3](https://github.com/dynamic-labs/DynamicAuth/compare/v3.1.2...v3.1.3) (2024-09-25)
3
+
4
+
5
+ ### Features
6
+
7
+ * add isInstalledOnBrowser prop to wallet options in useWalletOptions ([#6977](https://github.com/dynamic-labs/DynamicAuth/issues/6977)) ([9436e48](https://github.com/dynamic-labs/DynamicAuth/commit/9436e48994663b62d1ef5afa0c37df436f68caae))
8
+
9
+ ### [3.1.2](https://github.com/dynamic-labs/DynamicAuth/compare/v3.1.1...v3.1.2) (2024-09-23)
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * issue where builtin stream module was a dependency ([#6985](https://github.com/dynamic-labs/DynamicAuth/issues/6985)) ([5ac1f6c](https://github.com/dynamic-labs/DynamicAuth/commit/5ac1f6c7b96f773d5f2f1899748c2a7fc84235ec))
15
+
2
16
  ### [3.1.1](https://github.com/dynamic-labs/DynamicAuth/compare/v3.1.0...v3.1.1) (2024-09-20)
3
17
 
4
18
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/bitcoin",
3
- "version": "3.1.1",
3
+ "version": "3.1.3",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/dynamic-labs/dynamic-auth.git",
@@ -27,16 +27,16 @@
27
27
  },
28
28
  "dependencies": {
29
29
  "@btckit/types": "0.0.19",
30
- "@dynamic-labs/sdk-api-core": "0.0.529",
30
+ "@dynamic-labs/sdk-api-core": "0.0.535",
31
31
  "@wallet-standard/app": "1.0.1",
32
32
  "@wallet-standard/base": "1.0.1",
33
33
  "bitcoinjs-lib": "6.1.5",
34
34
  "sats-connect": "2.8.0",
35
- "@dynamic-labs/types": "3.1.1",
36
- "@dynamic-labs/utils": "3.1.1",
37
- "@dynamic-labs/wallet-book": "3.1.1",
38
- "@dynamic-labs/wallet-connector-core": "3.1.1",
39
- "stream": "0.0.2"
35
+ "@dynamic-labs/types": "3.1.3",
36
+ "@dynamic-labs/utils": "3.1.3",
37
+ "@dynamic-labs/wallet-book": "3.1.3",
38
+ "@dynamic-labs/wallet-connector-core": "3.1.3",
39
+ "eventemitter3": "5.0.1"
40
40
  },
41
41
  "peerDependencies": {}
42
42
  }
@@ -1,6 +1,4 @@
1
- /// <reference types="node" />
2
- /// <reference types="node" />
3
- import { EventEmitter } from 'stream';
1
+ import { type EventEmitter } from 'eventemitter3';
4
2
  import type { Wallet } from '@wallet-standard/base';
5
3
  import { Chain, IBitcoinWalletConnector, WalletConnectorBase } from '@dynamic-labs/wallet-connector-core';
6
4
  import { WalletBookSchema, WalletSchema } from '@dynamic-labs/wallet-book';
@@ -41,7 +39,7 @@ export declare abstract class BitcoinWalletConnector extends WalletConnectorBase
41
39
  setAdditionalAddresses(mainAddress: string, additionalAddresses: WalletAdditionalAddress[]): Promise<void>;
42
40
  sendRawTransaction(rawTransaction: string): Promise<string>;
43
41
  abstract sendBitcoin(transaction: BitcoinTransaction): Promise<string | undefined>;
44
- getProvider<T>(): T & EventEmitter;
42
+ getProvider<T>(): T & EventEmitter<string | symbol, any>;
45
43
  abstract signPsbt(request: BitcoinSignPsbtRequest): Promise<BitcoinSignPsbtResponse | undefined>;
46
44
  signPsbts(requests: BitcoinSignPsbtRequest[]): Promise<string[] | undefined>;
47
45
  setConnectedAccountWithAddresses({ mainAddress, ordinalsAddress, paymentAddress, active, }: ConnectedAccountWithAddressesProps): Promise<void>;