@dynamic-labs/bitcoin 4.40.0 → 4.40.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 CHANGED
@@ -1,4 +1,10 @@
1
1
 
2
+ ### [4.40.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.40.0...v4.40.1) (2025-10-24)
3
+
4
+ ### Bug Fixes
5
+
6
+ * add support for Keplr in-app browser redirect for cosmos chain ([#9770](https://github.com/dynamic-labs/dynamic-auth/issues/9770)) ([35652f3](https://github.com/dynamic-labs/dynamic-auth/commit/35652f3167a4e768f5d4c634ab1b4f127fd5076a))
7
+
2
8
  ## [4.40.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.39.0...v4.40.0) (2025-10-22)
3
9
 
4
10
 
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.40.0";
6
+ var version = "4.40.1";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.40.0";
2
+ var version = "4.40.1";
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.40.0",
3
+ "version": "4.40.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",
@@ -23,13 +23,13 @@
23
23
  "@wallet-standard/app": "1.0.1",
24
24
  "@wallet-standard/base": "1.0.1",
25
25
  "bitcoinjs-lib": "6.1.5",
26
- "sats-connect": "4.1.1",
26
+ "sats-connect": "4.2.0",
27
27
  "jsontokens": "4.0.1",
28
- "@dynamic-labs/assert-package-version": "4.40.0",
29
- "@dynamic-labs/types": "4.40.0",
30
- "@dynamic-labs/utils": "4.40.0",
31
- "@dynamic-labs/wallet-book": "4.40.0",
32
- "@dynamic-labs/wallet-connector-core": "4.40.0",
28
+ "@dynamic-labs/assert-package-version": "4.40.1",
29
+ "@dynamic-labs/types": "4.40.1",
30
+ "@dynamic-labs/utils": "4.40.1",
31
+ "@dynamic-labs/wallet-book": "4.40.1",
32
+ "@dynamic-labs/wallet-connector-core": "4.40.1",
33
33
  "eventemitter3": "5.0.1"
34
34
  },
35
35
  "peerDependencies": {}
@@ -327,22 +327,6 @@ class BitcoinWalletConnector extends walletConnectorCore.WalletConnectorBase {
327
327
  return ['https://btcscan.org/'];
328
328
  });
329
329
  }
330
- openInAppBrowserIfRequired() {
331
- var _a;
332
- if (this.isInstalledOnBrowser() ||
333
- !utils.isMobile() ||
334
- !((_a = this.metadata) === null || _a === void 0 ? void 0 : _a.inAppBrowserUrl) ||
335
- this.mobileExperience === 'redirect') {
336
- return false;
337
- }
338
- const inAppBrowserCompiledTemplate = utils.template(this.metadata.inAppBrowserUrl);
339
- const deepLink = inAppBrowserCompiledTemplate({
340
- // TODO: use PlatformService
341
- encodedDappURI: encodeURIComponent(window.location.toString()),
342
- });
343
- utils.PlatformService.openURL(deepLink);
344
- return true;
345
- }
346
330
  }
347
331
 
348
332
  exports.BitcoinWalletConnector = BitcoinWalletConnector;
@@ -54,5 +54,4 @@ export declare abstract class BitcoinWalletConnector extends WalletConnectorBase
54
54
  }): Promise<string | undefined>;
55
55
  proveOwnership(address: string, messageToSign: string): Promise<string | undefined>;
56
56
  getBlockExplorerUrlsForCurrentNetwork(): Promise<string[]>;
57
- protected openInAppBrowserIfRequired(): boolean;
58
57
  }
@@ -3,7 +3,7 @@ import { __awaiter } from '../../_virtual/_tslib.js';
3
3
  import { AddressPurpose } from 'sats-connect';
4
4
  import { WalletConnectorBase, isConnectorMethodSupported, eventListenerHandlers, logger } from '@dynamic-labs/wallet-connector-core';
5
5
  import { getWalletBookWallet } from '@dynamic-labs/wallet-book';
6
- import { isLedgerAddressViaVerifiedCredentials, isMobile, template, PlatformService, DynamicError } from '@dynamic-labs/utils';
6
+ import { isLedgerAddressViaVerifiedCredentials, DynamicError } from '@dynamic-labs/utils';
7
7
  import { WalletAddressType } from '@dynamic-labs/sdk-api-core';
8
8
  import { BitcoinLocalStorageCache } from '../BitcoinLocalStorageCache.js';
9
9
  import { BitcoinProviderHelper } from '../bitcoinProviderHelper.js';
@@ -323,22 +323,6 @@ class BitcoinWalletConnector extends WalletConnectorBase {
323
323
  return ['https://btcscan.org/'];
324
324
  });
325
325
  }
326
- openInAppBrowserIfRequired() {
327
- var _a;
328
- if (this.isInstalledOnBrowser() ||
329
- !isMobile() ||
330
- !((_a = this.metadata) === null || _a === void 0 ? void 0 : _a.inAppBrowserUrl) ||
331
- this.mobileExperience === 'redirect') {
332
- return false;
333
- }
334
- const inAppBrowserCompiledTemplate = template(this.metadata.inAppBrowserUrl);
335
- const deepLink = inAppBrowserCompiledTemplate({
336
- // TODO: use PlatformService
337
- encodedDappURI: encodeURIComponent(window.location.toString()),
338
- });
339
- PlatformService.openURL(deepLink);
340
- return true;
341
- }
342
326
  }
343
327
 
344
328
  export { BitcoinWalletConnector };