@dynamic-labs/cosmos 4.5.2 → 4.6.0

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,31 @@
1
1
 
2
+ ## [4.6.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.5.3...v4.6.0) (2025-02-10)
3
+
4
+
5
+ ### Features
6
+
7
+ * expose method to refetch project settings ([#8048](https://github.com/dynamic-labs/dynamic-auth/issues/8048)) ([10af30c](https://github.com/dynamic-labs/dynamic-auth/commit/10af30cb5caf39b95eaae39ad831466f6f73b98a))
8
+ * add new hook to delete user ([#8013](https://github.com/dynamic-labs/dynamic-auth/issues/8013)) ([c312285](https://github.com/dynamic-labs/dynamic-auth/commit/c312285b4e4663eedf83a4c8c043715ba6c1a9ed))
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * add memos and fix state updates to prevent rerenders ([#8024](https://github.com/dynamic-labs/dynamic-auth/issues/8024)) ([89504c0](https://github.com/dynamic-labs/dynamic-auth/commit/89504c0efa29ed846a55d7eb3213a1b9b070368a))
14
+ * back button not working properly in the farcaster connect view ([#8051](https://github.com/dynamic-labs/dynamic-auth/issues/8051)) ([5fe4631](https://github.com/dynamic-labs/dynamic-auth/commit/5fe463105ce43dd7ec31cd90ee6922bd917ed9de))
15
+ * update wallet address when switching networks in cosmos ([#8016](https://github.com/dynamic-labs/dynamic-auth/issues/8016)) ([2925784](https://github.com/dynamic-labs/dynamic-auth/commit/29257846fa99600a67cf010447248451cd17ae60))
16
+
17
+ ### [4.5.3](https://github.com/dynamic-labs/dynamic-auth/compare/v4.5.2...v4.5.3) (2025-02-09)
18
+
19
+
20
+ ### Features
21
+
22
+ * mfa device management hook ([#8022](https://github.com/dynamic-labs/dynamic-auth/issues/8022)) ([48448c4](https://github.com/dynamic-labs/dynamic-auth/commit/48448c4ee8152ec8786674db9b6e025b6d37abca))
23
+
24
+
25
+ ### Bug Fixes
26
+
27
+ * logout user when SDK version change is detected ([#8043](https://github.com/dynamic-labs/dynamic-auth/issues/8043)) ([2ae958a](https://github.com/dynamic-labs/dynamic-auth/commit/2ae958adafe1d18c15e4ce47d3f11c2361847aac))
28
+
2
29
  ### [4.5.2](https://github.com/dynamic-labs/dynamic-auth/compare/v4.5.1...v4.5.2) (2025-02-08)
3
30
 
4
31
 
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.5.2";
6
+ var version = "4.6.0";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.5.2";
2
+ var version = "4.6.0";
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.5.2",
3
+ "version": "4.6.0",
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.5.2",
23
- "@dynamic-labs/types": "4.5.2",
24
- "@dynamic-labs/utils": "4.5.2",
25
- "@dynamic-labs/wallet-book": "4.5.2",
26
- "@dynamic-labs/wallet-connector-core": "4.5.2"
22
+ "@dynamic-labs/assert-package-version": "4.6.0",
23
+ "@dynamic-labs/types": "4.6.0",
24
+ "@dynamic-labs/utils": "4.6.0",
25
+ "@dynamic-labs/wallet-book": "4.6.0",
26
+ "@dynamic-labs/wallet-connector-core": "4.6.0"
27
27
  },
28
28
  "peerDependencies": {}
29
29
  }
@@ -177,6 +177,13 @@ class CosmosWalletConnector extends walletConnectorCore.WalletConnectorBase {
177
177
  supportsNetworkSwitching() {
178
178
  return true;
179
179
  }
180
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
181
+ validateActiveWallet(expectedAddress) {
182
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
183
+ // no need to validate, address changes based on which network is selected
184
+ return;
185
+ });
186
+ }
180
187
  }
181
188
 
182
189
  exports.CosmosWalletConnector = CosmosWalletConnector;
@@ -56,5 +56,6 @@ export declare abstract class CosmosWalletConnector extends WalletConnectorBase
56
56
  getBlockExplorerUrlsForCurrentNetwork(): Promise<string[]>;
57
57
  getEnabledNetworks(): GenericNetwork[];
58
58
  supportsNetworkSwitching(): boolean;
59
+ validateActiveWallet(expectedAddress: string): Promise<void>;
59
60
  }
60
61
  export {};
@@ -173,6 +173,13 @@ class CosmosWalletConnector extends WalletConnectorBase {
173
173
  supportsNetworkSwitching() {
174
174
  return true;
175
175
  }
176
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
177
+ validateActiveWallet(expectedAddress) {
178
+ return __awaiter(this, void 0, void 0, function* () {
179
+ // no need to validate, address changes based on which network is selected
180
+ return;
181
+ });
182
+ }
176
183
  }
177
184
 
178
185
  export { CosmosWalletConnector, DYNAMIC_COSMOS_NETWORK_ID };