@dynamic-labs/global-wallet-client 4.20.2 → 4.20.3

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,11 @@
1
1
 
2
+ ### [4.20.3](https://github.com/dynamic-labs/dynamic-auth/compare/v4.20.2...v4.20.3) (2025-06-13)
3
+
4
+
5
+ ### Bug Fixes
6
+
7
+ * use minified jwt for waas wallet client auth ([#8938](https://github.com/dynamic-labs/dynamic-auth/issues/8938)) ([f7b9e14](https://github.com/dynamic-labs/dynamic-auth/commit/f7b9e1435e397a64fdf4f42f9b3ad354314e0191))
8
+
2
9
  ### [4.20.2](https://github.com/dynamic-labs/dynamic-auth/compare/v4.20.1...v4.20.2) (2025-06-11)
3
10
 
4
11
 
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.20.2";
6
+ var version = "4.20.3";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.20.2";
2
+ var version = "4.20.3";
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.20.2",
3
+ "version": "4.20.3",
4
4
  "description": "Core package for building Dynamic's Global Wallet",
5
5
  "author": "Dynamic Labs, Inc.",
6
6
  "license": "MIT",
@@ -63,12 +63,12 @@
63
63
  },
64
64
  "homepage": "https://www.dynamic.xyz/",
65
65
  "dependencies": {
66
- "@dynamic-labs/assert-package-version": "4.20.2",
67
- "@dynamic-labs/logger": "4.20.2",
68
- "@dynamic-labs/message-transport": "4.20.2",
69
- "@dynamic-labs/store": "4.20.2",
70
- "@dynamic-labs/types": "4.20.2",
71
- "@dynamic-labs/utils": "4.20.2",
66
+ "@dynamic-labs/assert-package-version": "4.20.3",
67
+ "@dynamic-labs/logger": "4.20.3",
68
+ "@dynamic-labs/message-transport": "4.20.3",
69
+ "@dynamic-labs/store": "4.20.3",
70
+ "@dynamic-labs/types": "4.20.3",
71
+ "@dynamic-labs/utils": "4.20.3",
72
72
  "eventemitter3": "5.0.1"
73
73
  },
74
74
  "peerDependencies": {
@@ -80,7 +80,7 @@
80
80
  "zksync-sso": "0.2.0",
81
81
  "@wallet-standard/wallet": "^1.1.0",
82
82
  "@zerodev/sdk": "5.4.36",
83
- "@dynamic-labs/ethereum-aa": "4.20.2"
83
+ "@dynamic-labs/ethereum-aa": "4.20.3"
84
84
  },
85
85
  "peerDependenciesMeta": {
86
86
  "viem": {
@@ -1,9 +1,20 @@
1
1
  import { SessionConfig } from 'zksync-sso/utils';
2
2
  import { BaseWallet, ConvertBigIntToString } from '@dynamic-labs/types';
3
- type SessionConfigAsString = Omit<ConvertBigIntToString<SessionConfig>, 'signer'>;
3
+ type SessionConfigWithoutSigner = Omit<SessionConfig, 'signer'>;
4
+ type SessionConfigWithouSignerAsString = ConvertBigIntToString<SessionConfigWithoutSigner>;
5
+ type SessionConfigWithSignerAsString = ConvertBigIntToString<SessionConfig>;
4
6
  type createZksyncSessionParams = {
5
7
  addModuleWithPaymaster?: boolean;
6
- sessionConfig: SessionConfigAsString;
8
+ sessionConfig: SessionConfigWithouSignerAsString;
9
+ };
10
+ type CreateZksyncSessionResponse = {
11
+ sessionId: string;
12
+ expiresAt: string;
13
+ session: {
14
+ sessionKeyValidator: `0x${string}`;
15
+ sessionConfiguration: SessionConfigWithSignerAsString;
16
+ sessionKey: `0x${string}`;
17
+ };
7
18
  };
8
19
  /**
9
20
  * Creates a session with the wallet.
@@ -20,8 +31,5 @@ type createZksyncSessionParams = {
20
31
  * const { sessionId, expiresAt } = await createZksyncSession(Wallet, { sessionConfig });
21
32
  * ```
22
33
  */
23
- export declare const createZksyncSession: (wallet: BaseWallet, { sessionConfig, addModuleWithPaymaster }: createZksyncSessionParams) => Promise<{
24
- sessionId: string;
25
- expiresAt: string;
26
- }>;
34
+ export declare const createZksyncSession: (wallet: BaseWallet, { sessionConfig, addModuleWithPaymaster }: createZksyncSessionParams) => Promise<CreateZksyncSessionResponse>;
27
35
  export {};
@@ -47,7 +47,6 @@ const listZksyncSessions = (wallet) => _tslib.__awaiter(void 0, void 0, void 0,
47
47
  },
48
48
  connection: getActiveConnection.getActiveConnection(client),
49
49
  name: 'zksync-request',
50
- useIframe: true,
51
50
  });
52
51
  return data;
53
52
  });
@@ -43,7 +43,6 @@ const listZksyncSessions = (wallet) => __awaiter(void 0, void 0, void 0, functio
43
43
  },
44
44
  connection: getActiveConnection(client),
45
45
  name: 'zksync-request',
46
- useIframe: true,
47
46
  });
48
47
  return data;
49
48
  });
@@ -41,7 +41,6 @@ const sendTransaction = (wallet, params) => _tslib.__awaiter(void 0, void 0, voi
41
41
  },
42
42
  connection: getActiveConnection.getActiveConnection(client),
43
43
  name: 'eth-request',
44
- useIframe: params.sessionId ? true : false,
45
44
  });
46
45
  return data;
47
46
  });
@@ -37,7 +37,6 @@ const sendTransaction = (wallet, params) => __awaiter(void 0, void 0, void 0, fu
37
37
  },
38
38
  connection: getActiveConnection(client),
39
39
  name: 'eth-request',
40
- useIframe: params.sessionId ? true : false,
41
40
  });
42
41
  return data;
43
42
  });