@dynamic-labs/wallet-connector-core 4.5.3 → 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,19 @@
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
+
2
17
  ### [4.5.3](https://github.com/dynamic-labs/dynamic-auth/compare/v4.5.2...v4.5.3) (2025-02-09)
3
18
 
4
19
 
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.3";
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.3";
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/wallet-connector-core",
3
- "version": "4.5.3",
3
+ "version": "4.6.0",
4
4
  "description": "Core package for utilities and types for handling multiple wallet/chain support Dynamic SDK",
5
5
  "author": "Dynamic Labs, Inc.",
6
6
  "license": "MIT",
@@ -18,13 +18,13 @@
18
18
  },
19
19
  "homepage": "https://www.dynamic.xyz/",
20
20
  "dependencies": {
21
- "@dynamic-labs/sdk-api-core": "0.0.613",
22
- "@dynamic-labs/assert-package-version": "4.5.3",
23
- "@dynamic-labs/logger": "4.5.3",
24
- "@dynamic-labs/rpc-providers": "4.5.3",
25
- "@dynamic-labs/types": "4.5.3",
26
- "@dynamic-labs/utils": "4.5.3",
27
- "@dynamic-labs/wallet-book": "4.5.3",
21
+ "@dynamic-labs/sdk-api-core": "0.0.615",
22
+ "@dynamic-labs/assert-package-version": "4.6.0",
23
+ "@dynamic-labs/logger": "4.6.0",
24
+ "@dynamic-labs/rpc-providers": "4.6.0",
25
+ "@dynamic-labs/types": "4.6.0",
26
+ "@dynamic-labs/utils": "4.6.0",
27
+ "@dynamic-labs/wallet-book": "4.6.0",
28
28
  "eventemitter3": "5.0.1"
29
29
  },
30
30
  "peerDependencies": {}
@@ -6,12 +6,11 @@ Object.defineProperty(exports, '__esModule', { value: true });
6
6
  var shouldLowercaseAddress = require('../../../shouldLowercaseAddress.cjs');
7
7
 
8
8
  const normalizeAddress = (rawAddress, chain) => {
9
- if (rawAddress.startsWith('0x')) {
10
- rawAddress = rawAddress.slice(2);
9
+ let address = rawAddress;
10
+ if (address === null || address === void 0 ? void 0 : address.startsWith('0x')) {
11
+ address = address.slice(2);
11
12
  }
12
- const address = shouldLowercaseAddress.shouldLowercaseAddress(chain)
13
- ? rawAddress.toLowerCase()
14
- : rawAddress;
13
+ address = shouldLowercaseAddress.shouldLowercaseAddress(chain) ? address === null || address === void 0 ? void 0 : address.toLowerCase() : address;
15
14
  return address;
16
15
  };
17
16
 
@@ -1 +1 @@
1
- export declare const normalizeAddress: (rawAddress: string, chain: string) => string;
1
+ export declare const normalizeAddress: (rawAddress: string | undefined, chain: string) => string | undefined;
@@ -2,12 +2,11 @@
2
2
  import { shouldLowercaseAddress } from '../../../shouldLowercaseAddress.js';
3
3
 
4
4
  const normalizeAddress = (rawAddress, chain) => {
5
- if (rawAddress.startsWith('0x')) {
6
- rawAddress = rawAddress.slice(2);
5
+ let address = rawAddress;
6
+ if (address === null || address === void 0 ? void 0 : address.startsWith('0x')) {
7
+ address = address.slice(2);
7
8
  }
8
- const address = shouldLowercaseAddress(chain)
9
- ? rawAddress.toLowerCase()
10
- : rawAddress;
9
+ address = shouldLowercaseAddress(chain) ? address === null || address === void 0 ? void 0 : address.toLowerCase() : address;
11
10
  return address;
12
11
  };
13
12