@dynamic-labs/bitcoin 4.79.0 → 4.79.2

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,22 @@
1
1
 
2
+ ### [4.79.2](https://github.com/dynamic-labs/dynamic-auth/compare/v4.79.1...v4.79.2) (2026-05-04)
3
+
4
+
5
+ ### Bug Fixes
6
+
7
+ * **react-native:** remove extra react-native turbo modules instructions ([#11126](https://github.com/dynamic-labs/dynamic-auth/issues/11126))
8
+
9
+ ### [4.79.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.79.0...v4.79.1) (2026-05-01)
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * **playwright:** tolerate confirm-only transfer wallet modal ([#11081](https://github.com/dynamic-labs/dynamic-auth/issues/11081)) ([f4f2b85](https://github.com/dynamic-labs/dynamic-auth/commit/f4f2b85e515a3dfb7f54bd1dd697fa8fddea74f0))
15
+ * **sdk-react-core:** replace rAF polling with setTimeout in animationFrameTimeout ([#11086](https://github.com/dynamic-labs/dynamic-auth/issues/11086)) ([73cad2a](https://github.com/dynamic-labs/dynamic-auth/commit/73cad2a1be0a331b7504aca2b6dcb1ef770a6b37))
16
+ * **wagmi-connector:** emit change on wallet-internal MM account switch DYNT-549 ([#11044](https://github.com/dynamic-labs/dynamic-auth/issues/11044)) ([4345aa2](https://github.com/dynamic-labs/dynamic-auth/commit/4345aa2a96bc0fac5a5c8280875e6ab122391b98)), closes [#11043](https://github.com/dynamic-labs/dynamic-auth/issues/11043) [#11045](https://github.com/dynamic-labs/dynamic-auth/issues/11045) [#10945](https://github.com/dynamic-labs/dynamic-auth/issues/10945) [#10945](https://github.com/dynamic-labs/dynamic-auth/issues/10945)
17
+ * **wagmi-connector:** fix accountChange listener leak DYNT-549 ([#11043](https://github.com/dynamic-labs/dynamic-auth/issues/11043)) ([e4652aa](https://github.com/dynamic-labs/dynamic-auth/commit/e4652aa3b3c586bd4648deda4a0406ca555f3481)), closes [#11044](https://github.com/dynamic-labs/dynamic-auth/issues/11044) [#11045](https://github.com/dynamic-labs/dynamic-auth/issues/11045)
18
+ * **wagmi-connector:** use accountChange event payload as authoritative address in SyncDynamicWagmi DYNT-549 ([#11045](https://github.com/dynamic-labs/dynamic-auth/issues/11045)) ([77a300b](https://github.com/dynamic-labs/dynamic-auth/commit/77a300be77d90dc3c1aefe02a2074764d89a1cb7)), closes [#11043](https://github.com/dynamic-labs/dynamic-auth/issues/11043) [#11044](https://github.com/dynamic-labs/dynamic-auth/issues/11044) [#11044](https://github.com/dynamic-labs/dynamic-auth/issues/11044)
19
+
2
20
  ## [4.79.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.78.1...v4.79.0) (2026-04-30)
3
21
 
4
22
 
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.79.0";
6
+ var version = "4.79.2";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.79.0";
2
+ var version = "4.79.2";
3
3
 
4
4
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/bitcoin",
3
- "version": "4.79.0",
3
+ "version": "4.79.2",
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",
@@ -21,20 +21,20 @@
21
21
  "@dynamic-labs-wallet/browser-wallet-client": "0.0.325",
22
22
  "@bitcoinerlab/secp256k1": "1.1.1",
23
23
  "@btckit/types": "0.0.19",
24
- "@dynamic-labs/sdk-api-core": "0.0.956",
24
+ "@dynamic-labs/sdk-api-core": "0.0.958",
25
25
  "@wallet-standard/app": "1.0.1",
26
26
  "@wallet-standard/base": "1.0.1",
27
27
  "bitcoinjs-lib": "6.1.5",
28
28
  "ecpair": "2.1.0",
29
29
  "sats-connect": "4.2.1",
30
30
  "jsontokens": "4.0.1",
31
- "@dynamic-labs/assert-package-version": "4.79.0",
32
- "@dynamic-labs/logger": "4.79.0",
33
- "@dynamic-labs/types": "4.79.0",
34
- "@dynamic-labs/utils": "4.79.0",
35
- "@dynamic-labs/waas": "4.79.0",
36
- "@dynamic-labs/wallet-book": "4.79.0",
37
- "@dynamic-labs/wallet-connector-core": "4.79.0",
31
+ "@dynamic-labs/assert-package-version": "4.79.2",
32
+ "@dynamic-labs/logger": "4.79.2",
33
+ "@dynamic-labs/types": "4.79.2",
34
+ "@dynamic-labs/utils": "4.79.2",
35
+ "@dynamic-labs/waas": "4.79.2",
36
+ "@dynamic-labs/wallet-book": "4.79.2",
37
+ "@dynamic-labs/wallet-connector-core": "4.79.2",
38
38
  "eventemitter3": "5.0.1"
39
39
  },
40
40
  "peerDependencies": {}
@@ -256,10 +256,12 @@ class DynamicWaasBitcoinConnector extends waas.withDynamicWaas(BitcoinWalletConn
256
256
  });
257
257
  }
258
258
  /**
259
- * Creates a new Bitcoin wallet account with Bitcoin-specific defaults
259
+ * Creates a new Bitcoin wallet account with Bitcoin-specific defaults.
260
+ * If `bitcoinConfig.addressType` is not provided, the underlying BTC client
261
+ * defaults to `native_segwit`.
260
262
  * @param thresholdSignatureScheme - The threshold signature scheme (default: 'TWO_OF_TWO')
261
263
  * @param password - Optional password for the wallet
262
- * @param bitcoinConfig - Bitcoin configuration (required for Bitcoin)
264
+ * @param bitcoinConfig - Bitcoin configuration (addressType, network)
263
265
  * @returns The created wallet account information
264
266
  */
265
267
  createWalletAccount() {
@@ -267,11 +269,9 @@ class DynamicWaasBitcoinConnector extends waas.withDynamicWaas(BitcoinWalletConn
267
269
  createWalletAccount: { get: () => super.createWalletAccount }
268
270
  });
269
271
  return _tslib.__awaiter(this, arguments, void 0, function* ({ thresholdSignatureScheme = 'TWO_OF_TWO', password, bitcoinConfig, } = {}) {
270
- if (!bitcoinConfig || !bitcoinConfig.addressType) {
271
- throw new utils.DynamicError('Bitcoin config with address type is required for Bitcoin');
272
- }
272
+ var _a;
273
273
  const finalBitcoinConfig = {
274
- addressType: bitcoinConfig.addressType,
274
+ addressType: ((_a = bitcoinConfig === null || bitcoinConfig === void 0 ? void 0 : bitcoinConfig.addressType) !== null && _a !== void 0 ? _a : 'native_segwit'),
275
275
  network: yield this.getBitcoinNetworkEnum(),
276
276
  };
277
277
  return _super.createWalletAccount.call(this, {
@@ -252,10 +252,12 @@ export declare class DynamicWaasBitcoinConnector extends DynamicWaasBitcoinConne
252
252
  */
253
253
  sendBitcoin(transaction: BitcoinTransaction): Promise<string | undefined>;
254
254
  /**
255
- * Creates a new Bitcoin wallet account with Bitcoin-specific defaults
255
+ * Creates a new Bitcoin wallet account with Bitcoin-specific defaults.
256
+ * If `bitcoinConfig.addressType` is not provided, the underlying BTC client
257
+ * defaults to `native_segwit`.
256
258
  * @param thresholdSignatureScheme - The threshold signature scheme (default: 'TWO_OF_TWO')
257
259
  * @param password - Optional password for the wallet
258
- * @param bitcoinConfig - Bitcoin configuration (required for Bitcoin)
260
+ * @param bitcoinConfig - Bitcoin configuration (addressType, network)
259
261
  * @returns The created wallet account information
260
262
  */
261
263
  createWalletAccount({ thresholdSignatureScheme, password, bitcoinConfig, }?: {
@@ -252,10 +252,12 @@ class DynamicWaasBitcoinConnector extends withDynamicWaas(BitcoinWalletConnector
252
252
  });
253
253
  }
254
254
  /**
255
- * Creates a new Bitcoin wallet account with Bitcoin-specific defaults
255
+ * Creates a new Bitcoin wallet account with Bitcoin-specific defaults.
256
+ * If `bitcoinConfig.addressType` is not provided, the underlying BTC client
257
+ * defaults to `native_segwit`.
256
258
  * @param thresholdSignatureScheme - The threshold signature scheme (default: 'TWO_OF_TWO')
257
259
  * @param password - Optional password for the wallet
258
- * @param bitcoinConfig - Bitcoin configuration (required for Bitcoin)
260
+ * @param bitcoinConfig - Bitcoin configuration (addressType, network)
259
261
  * @returns The created wallet account information
260
262
  */
261
263
  createWalletAccount() {
@@ -263,11 +265,9 @@ class DynamicWaasBitcoinConnector extends withDynamicWaas(BitcoinWalletConnector
263
265
  createWalletAccount: { get: () => super.createWalletAccount }
264
266
  });
265
267
  return __awaiter(this, arguments, void 0, function* ({ thresholdSignatureScheme = 'TWO_OF_TWO', password, bitcoinConfig, } = {}) {
266
- if (!bitcoinConfig || !bitcoinConfig.addressType) {
267
- throw new DynamicError('Bitcoin config with address type is required for Bitcoin');
268
- }
268
+ var _a;
269
269
  const finalBitcoinConfig = {
270
- addressType: bitcoinConfig.addressType,
270
+ addressType: ((_a = bitcoinConfig === null || bitcoinConfig === void 0 ? void 0 : bitcoinConfig.addressType) !== null && _a !== void 0 ? _a : 'native_segwit'),
271
271
  network: yield this.getBitcoinNetworkEnum(),
272
272
  };
273
273
  return _super.createWalletAccount.call(this, {