@dynamic-labs/cosmos 4.40.0 → 4.40.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,17 @@
1
1
 
2
+ ### [4.40.2](https://github.com/dynamic-labs/dynamic-auth/compare/v4.40.1...v4.40.2) (2025-10-28)
3
+
4
+
5
+ ### Bug Fixes
6
+
7
+ * upgrade node to 20.20 in sanity-yarn-add-sdk job for compatibility ([#9743](https://github.com/dynamic-labs/dynamic-auth/issues/9743)) ([58d7e32](https://github.com/dynamic-labs/dynamic-auth/commit/58d7e32cd3965fba983c91c6345eae3bfe8dd1d5))
8
+
9
+ ### [4.40.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.40.0...v4.40.1) (2025-10-24)
10
+
11
+ ### Bug Fixes
12
+
13
+ * 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))
14
+
2
15
  ## [4.40.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.39.0...v4.40.0) (2025-10-22)
3
16
 
4
17
 
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.2";
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.2";
3
3
 
4
4
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/cosmos",
3
- "version": "4.40.0",
3
+ "version": "4.40.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",
@@ -19,11 +19,11 @@
19
19
  "homepage": "https://www.dynamic.xyz/",
20
20
  "dependencies": {
21
21
  "@keplr-wallet/types": "0.12.121",
22
- "@dynamic-labs/assert-package-version": "4.40.0",
23
- "@dynamic-labs/types": "4.40.0",
24
- "@dynamic-labs/utils": "4.40.0",
25
- "@dynamic-labs/wallet-book": "4.40.0",
26
- "@dynamic-labs/wallet-connector-core": "4.40.0"
22
+ "@dynamic-labs/assert-package-version": "4.40.2",
23
+ "@dynamic-labs/types": "4.40.2",
24
+ "@dynamic-labs/utils": "4.40.2",
25
+ "@dynamic-labs/wallet-book": "4.40.2",
26
+ "@dynamic-labs/wallet-connector-core": "4.40.2"
27
27
  },
28
28
  "peerDependencies": {}
29
29
  }
@@ -164,6 +164,10 @@ class CosmosWalletConnector extends walletConnectorCore.WalletConnectorBase {
164
164
  connect() {
165
165
  return _tslib.__awaiter(this, void 0, void 0, function* () {
166
166
  var _a;
167
+ const didOpenInAppBrowser = this.openInAppBrowserIfRequired();
168
+ if (didOpenInAppBrowser || !this.isInstalledOnBrowser()) {
169
+ return;
170
+ }
167
171
  yield ((_a = this.getWallet()) === null || _a === void 0 ? void 0 : _a.enable(this.chainIdMapping
168
172
  .filter((mapping) => !mapping.experimental)
169
173
  .map((mapping) => mapping.cosmosNetworkId)));
@@ -160,6 +160,10 @@ class CosmosWalletConnector extends WalletConnectorBase {
160
160
  connect() {
161
161
  return __awaiter(this, void 0, void 0, function* () {
162
162
  var _a;
163
+ const didOpenInAppBrowser = this.openInAppBrowserIfRequired();
164
+ if (didOpenInAppBrowser || !this.isInstalledOnBrowser()) {
165
+ return;
166
+ }
163
167
  yield ((_a = this.getWallet()) === null || _a === void 0 ? void 0 : _a.enable(this.chainIdMapping
164
168
  .filter((mapping) => !mapping.experimental)
165
169
  .map((mapping) => mapping.cosmosNetworkId)));