@dynamic-labs/global-wallet-client 4.2.3 → 4.3.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,25 @@
1
1
 
2
+ ### [4.3.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.3.0...v4.3.1) (2025-01-23)
3
+
4
+
5
+ ### Bug Fixes
6
+
7
+ * correctly parse message to sign when it has unscaped new line character ([#7850](https://github.com/dynamic-labs/dynamic-auth/issues/7850)) ([156c144](https://github.com/dynamic-labs/dynamic-auth/commit/156c1440989ef7cb9a9066491e8670bc1737eb68))
8
+ * ensure user wallets state has been updated before emitting walletAdded/walletRemoved events ([#7863](https://github.com/dynamic-labs/dynamic-auth/issues/7863)) ([2bf61db](https://github.com/dynamic-labs/dynamic-auth/commit/2bf61dbace85d93c8fb684a9c7304fe562a85395))
9
+ * ensure zerodev simulation has correct gas limit and initCode data ([#7861](https://github.com/dynamic-labs/dynamic-auth/issues/7861)) ([88c2588](https://github.com/dynamic-labs/dynamic-auth/commit/88c2588256a2421907c0d9f0f724a8708cf9a54a))
10
+
11
+ ## [4.3.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.2.3...v4.3.0) (2025-01-21)
12
+
13
+
14
+ ### Features
15
+
16
+ * add support for Nightly wallet on Eclipse ([#7848](https://github.com/dynamic-labs/dynamic-auth/issues/7848)) ([dd6e8d4](https://github.com/dynamic-labs/dynamic-auth/commit/dd6e8d41daf632a1b55137f903b6fc99a148c071))
17
+
18
+
19
+ ### Bug Fixes
20
+
21
+ * fix storage sync issues when upgrade to sdk v4 while user is logged in ([#7835](https://github.com/dynamic-labs/dynamic-auth/issues/7835)) ([528b6f9](https://github.com/dynamic-labs/dynamic-auth/commit/528b6f9ce5d0e77d518dcfb7021fc711d2a9e503))
22
+
2
23
  ### [4.2.3](https://github.com/dynamic-labs/dynamic-auth/compare/v4.2.2...v4.2.3) (2025-01-16)
3
24
 
4
25
 
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.2.3";
6
+ var version = "4.3.1";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.2.3";
2
+ var version = "4.3.1";
3
3
 
4
4
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/global-wallet-client",
3
- "version": "4.2.3",
3
+ "version": "4.3.1",
4
4
  "description": "Core package for building Dynamic's Global Wallet",
5
5
  "author": "Dynamic Labs, Inc.",
6
6
  "license": "MIT",
@@ -39,11 +39,11 @@
39
39
  },
40
40
  "homepage": "https://www.dynamic.xyz/",
41
41
  "dependencies": {
42
- "@dynamic-labs/assert-package-version": "4.2.3",
43
- "@dynamic-labs/logger": "4.2.3",
44
- "@dynamic-labs/store": "4.2.3",
45
- "@dynamic-labs/types": "4.2.3",
46
- "@dynamic-labs/utils": "4.2.3",
42
+ "@dynamic-labs/assert-package-version": "4.3.1",
43
+ "@dynamic-labs/logger": "4.3.1",
44
+ "@dynamic-labs/store": "4.3.1",
45
+ "@dynamic-labs/types": "4.3.1",
46
+ "@dynamic-labs/utils": "4.3.1",
47
47
  "eventemitter3": "5.0.1"
48
48
  },
49
49
  "peerDependencies": {
@@ -52,5 +52,22 @@
52
52
  "@solana/wallet-standard-features": "^1.2.0",
53
53
  "@wallet-standard/features": "^1.0.3",
54
54
  "@wallet-standard/base": "^1.0.1"
55
+ },
56
+ "peerDependenciesMeta": {
57
+ "viem": {
58
+ "optional": true
59
+ },
60
+ "@solana/web3.js": {
61
+ "optional": true
62
+ },
63
+ "@solana/wallet-standard-features": {
64
+ "optional": true
65
+ },
66
+ "@wallet-standard/features": {
67
+ "optional": true
68
+ },
69
+ "@wallet-standard/base": {
70
+ "optional": true
71
+ }
55
72
  }
56
73
  }
@@ -1,7 +1,7 @@
1
1
  import { EIP1193Provider } from 'viem';
2
2
  type AnnounceEip6963ProviderProps = {
3
3
  info: {
4
- icon: `data:image/png;base64,${string}`;
4
+ icon: string;
5
5
  name: string;
6
6
  rdns: string;
7
7
  uuid?: string;
@@ -79,7 +79,12 @@ const createPopupOpener = ({ environmentId, popupInfo, store, popupActionTimeout
79
79
  popup.location = popupFinalUrl.href;
80
80
  }
81
81
  didOpenPopup = true;
82
- return resultDeferredPromise.promise.finally(() => {
82
+ return resultDeferredPromise.promise
83
+ .catch((err) => {
84
+ closePopup();
85
+ throw err;
86
+ })
87
+ .finally(() => {
83
88
  /**
84
89
  * Sets a timeout to close the popup.
85
90
  * It will only no new actions were fired.
@@ -75,7 +75,12 @@ const createPopupOpener = ({ environmentId, popupInfo, store, popupActionTimeout
75
75
  popup.location = popupFinalUrl.href;
76
76
  }
77
77
  didOpenPopup = true;
78
- return resultDeferredPromise.promise.finally(() => {
78
+ return resultDeferredPromise.promise
79
+ .catch((err) => {
80
+ closePopup();
81
+ throw err;
82
+ })
83
+ .finally(() => {
79
84
  /**
80
85
  * Sets a timeout to close the popup.
81
86
  * It will only no new actions were fired.
@@ -4,6 +4,8 @@
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
6
  var store = require('@dynamic-labs/store');
7
+ var utils = require('@dynamic-labs/utils');
8
+ var _package = require('../../../package.cjs');
7
9
 
8
10
  const createClientStore = ({ storage = localStorage, } = {}) => {
9
11
  const store$1 = store.persist({
@@ -16,6 +18,7 @@ const createClientStore = ({ storage = localStorage, } = {}) => {
16
18
  solana: null,
17
19
  wallets: [],
18
20
  })),
21
+ version: utils.formatVersion(_package.version, 'major.minor'),
19
22
  });
20
23
  return {
21
24
  /**
@@ -1,5 +1,7 @@
1
1
  'use client'
2
2
  import { persist, createStore } from '@dynamic-labs/store';
3
+ import { formatVersion } from '@dynamic-labs/utils';
4
+ import { version } from '../../../package.js';
3
5
 
4
6
  const createClientStore = ({ storage = localStorage, } = {}) => {
5
7
  const store = persist({
@@ -12,6 +14,7 @@ const createClientStore = ({ storage = localStorage, } = {}) => {
12
14
  solana: null,
13
15
  wallets: [],
14
16
  })),
17
+ version: formatVersion(version, 'major.minor'),
15
18
  });
16
19
  return {
17
20
  /**