@dynamic-labs/global-wallet-client 4.2.3 → 4.3.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,16 @@
1
1
 
2
+ ## [4.3.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.2.3...v4.3.0) (2025-01-21)
3
+
4
+
5
+ ### Features
6
+
7
+ * 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))
8
+
9
+
10
+ ### Bug Fixes
11
+
12
+ * 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))
13
+
2
14
  ### [4.2.3](https://github.com/dynamic-labs/dynamic-auth/compare/v4.2.2...v4.2.3) (2025-01-16)
3
15
 
4
16
 
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.0";
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.0";
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.0",
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.0",
43
+ "@dynamic-labs/logger": "4.3.0",
44
+ "@dynamic-labs/store": "4.3.0",
45
+ "@dynamic-labs/types": "4.3.0",
46
+ "@dynamic-labs/utils": "4.3.0",
47
47
  "eventemitter3": "5.0.1"
48
48
  },
49
49
  "peerDependencies": {
@@ -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
  /**