@dynamic-labs/bitcoin 4.78.1 → 4.79.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 +23 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +10 -10
- package/src/connectors/DynamicWaasBitcoinConnector/DynamicWaasBitcoinConnector.cjs +6 -6
- package/src/connectors/DynamicWaasBitcoinConnector/DynamicWaasBitcoinConnector.d.ts +4 -2
- package/src/connectors/DynamicWaasBitcoinConnector/DynamicWaasBitcoinConnector.js +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,27 @@
|
|
|
1
1
|
|
|
2
|
+
### [4.79.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.79.0...v4.79.1) (2026-05-01)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* **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))
|
|
8
|
+
* **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))
|
|
9
|
+
* **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)
|
|
10
|
+
* **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)
|
|
11
|
+
* **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)
|
|
12
|
+
|
|
13
|
+
## [4.79.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.78.1...v4.79.0) (2026-04-30)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Features
|
|
17
|
+
|
|
18
|
+
* **sdk-react-core:** two-layer Google Drive backup access defense [DYNT-754] ([#11069](https://github.com/dynamic-labs/dynamic-auth/issues/11069)) ([1ff8b83](https://github.com/dynamic-labs/dynamic-auth/commit/1ff8b83f9c7ba077c586513a250f6aed114e4b07))
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Bug Fixes
|
|
22
|
+
|
|
23
|
+
* **solana-core,sui-core:** prevent RangeError on send balance ([#11071](https://github.com/dynamic-labs/dynamic-auth/issues/11071)) ([21f5f97](https://github.com/dynamic-labs/dynamic-auth/commit/21f5f9724c788053774ce5eaa19f073af9a33d27))
|
|
24
|
+
|
|
2
25
|
### [4.78.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.78.0...v4.78.1) (2026-04-29)
|
|
3
26
|
|
|
4
27
|
|
package/package.cjs
CHANGED
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/bitcoin",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.79.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",
|
|
@@ -18,23 +18,23 @@
|
|
|
18
18
|
},
|
|
19
19
|
"homepage": "https://www.dynamic.xyz/",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@dynamic-labs-wallet/browser-wallet-client": "0.0.
|
|
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.
|
|
24
|
+
"@dynamic-labs/sdk-api-core": "0.0.956",
|
|
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.
|
|
32
|
-
"@dynamic-labs/logger": "4.
|
|
33
|
-
"@dynamic-labs/types": "4.
|
|
34
|
-
"@dynamic-labs/utils": "4.
|
|
35
|
-
"@dynamic-labs/waas": "4.
|
|
36
|
-
"@dynamic-labs/wallet-book": "4.
|
|
37
|
-
"@dynamic-labs/wallet-connector-core": "4.
|
|
31
|
+
"@dynamic-labs/assert-package-version": "4.79.1",
|
|
32
|
+
"@dynamic-labs/logger": "4.79.1",
|
|
33
|
+
"@dynamic-labs/types": "4.79.1",
|
|
34
|
+
"@dynamic-labs/utils": "4.79.1",
|
|
35
|
+
"@dynamic-labs/waas": "4.79.1",
|
|
36
|
+
"@dynamic-labs/wallet-book": "4.79.1",
|
|
37
|
+
"@dynamic-labs/wallet-connector-core": "4.79.1",
|
|
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 (
|
|
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
|
-
|
|
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 (
|
|
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 (
|
|
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
|
-
|
|
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, {
|