@dynamic-labs/ton 4.87.1 → 4.88.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,24 @@
1
1
 
2
+ ## [4.88.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.87.2...v4.88.0) (2026-06-04)
3
+
4
+
5
+ ### Features
6
+
7
+ * **waas:** log out on iframe 401 ([#11456](https://github.com/dynamic-labs/dynamic-auth/issues/11456)) ([81b0161](https://github.com/dynamic-labs/dynamic-auth/commit/81b01617810af8f7f996fdbf406e020b9f98272b))
8
+
9
+
10
+ ### Bug Fixes
11
+
12
+ * **starknet:** zero-pad addresses returned by wallet connectors ([#11303](https://github.com/dynamic-labs/dynamic-auth/issues/11303)) ([ef5cda5](https://github.com/dynamic-labs/dynamic-auth/commit/ef5cda5a9933443195b3bd336db8947c2ec050b7))
13
+
14
+ ### [4.87.2](https://github.com/dynamic-labs/dynamic-auth/compare/v4.87.1...v4.87.2) (2026-06-03)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * allow for using v2 zerodev projects ([#11449](https://github.com/dynamic-labs/dynamic-auth/issues/11449)) ([9242698](https://github.com/dynamic-labs/dynamic-auth/commit/9242698670db92b03ad1afc776e674ec9a7e7e54))
20
+ * e2e: ensure MFA item is detached before logout ([#11452](https://github.com/dynamic-labs/dynamic-auth/issues/11452)) ([5a4c67e](https://github.com/dynamic-labs/dynamic-auth/commit/5a4c67e93b66a548346c1065fb373c675f0054a0))
21
+
2
22
  ### [4.87.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.87.0...v4.87.1) (2026-06-03)
3
23
 
4
24
 
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.87.1";
6
+ var version = "4.88.0";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.87.1";
2
+ var version = "4.88.0";
3
3
 
4
4
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/ton",
3
- "version": "4.87.1",
3
+ "version": "4.88.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",
@@ -18,15 +18,15 @@
18
18
  },
19
19
  "homepage": "https://www.dynamic.xyz/",
20
20
  "dependencies": {
21
- "@dynamic-labs-sdk/client": "1.5.0",
22
- "@dynamic-labs/assert-package-version": "4.87.1",
23
- "@dynamic-labs/logger": "4.87.1",
21
+ "@dynamic-labs-sdk/client": "1.7.0",
22
+ "@dynamic-labs/assert-package-version": "4.88.0",
23
+ "@dynamic-labs/logger": "4.88.0",
24
24
  "@dynamic-labs/sdk-api-core": "0.0.1015",
25
- "@dynamic-labs/types": "4.87.1",
26
- "@dynamic-labs/utils": "4.87.1",
27
- "@dynamic-labs/waas": "4.87.1",
28
- "@dynamic-labs/wallet-book": "4.87.1",
29
- "@dynamic-labs/wallet-connector-core": "4.87.1",
25
+ "@dynamic-labs/types": "4.88.0",
26
+ "@dynamic-labs/utils": "4.88.0",
27
+ "@dynamic-labs/waas": "4.88.0",
28
+ "@dynamic-labs/wallet-book": "4.88.0",
29
+ "@dynamic-labs/wallet-connector-core": "4.88.0",
30
30
  "@ton/core": "0.62.0",
31
31
  "@ton/crypto": "3.3.0",
32
32
  "@ton/ton": "16.0.0",
@@ -1,4 +1,5 @@
1
1
  /// <reference types="node" />
2
+ /// <reference types="node" />
2
3
  import type { StateInit } from '@ton/core';
3
4
  export interface CreateWalletStateInitParams {
4
5
  /** Public key as Buffer (32 bytes) */
@@ -1,4 +1,5 @@
1
1
  /// <reference types="node" />
2
+ /// <reference types="node" />
2
3
  import { OutActionSendMsg } from '@ton/core';
3
4
  import { CHAIN } from '@tonconnect/sdk';
4
5
  import { type TonTransactionData } from '../../types';
@@ -1,4 +1,5 @@
1
1
  /// <reference types="node" />
2
+ /// <reference types="node" />
2
3
  import type { LogoutReason } from '@dynamic-labs-sdk/client';
3
4
  import { JwtVerifiedCredential, MFAAction, SignMessageContext, TokenScope } from '@dynamic-labs/sdk-api-core';
4
5
  import { IUITransaction, WalletUiUtils } from '@dynamic-labs/types';
@@ -24,6 +25,7 @@ declare const DynamicWaasTonConnector_base: (abstract new (...args: any[]) => {
24
25
  getElevatedAccessToken?: ((props: {
25
26
  scope: TokenScope;
26
27
  }) => Promise<string | undefined>) | undefined;
28
+ onUnauthorized?: (() => void | Promise<void>) | undefined;
27
29
  environmentId?: string | undefined;
28
30
  baseApiUrl?: string | undefined;
29
31
  relayUrl?: string | undefined;
@@ -35,6 +37,7 @@ declare const DynamicWaasTonConnector_base: (abstract new (...args: any[]) => {
35
37
  __exportHandler: import("@dynamic-labs/waas").WaasExportHandler;
36
38
  validateActiveWallet(expectedAddress: string): Promise<void>;
37
39
  setGetAuthTokenFunction(getAuthToken: () => string): void;
40
+ setOnUnauthorizedFunction(onUnauthorized: () => void | Promise<void>): void;
38
41
  setWaasAuthMode(authMode: "cookie" | "header"): void;
39
42
  setGetMfaTokenFunction(getMfaToken: (props?: {
40
43
  mfaAction?: MFAAction | undefined;
@@ -90,9 +93,10 @@ declare const DynamicWaasTonConnector_base: (abstract new (...args: any[]) => {
90
93
  accountAddress: string;
91
94
  password?: string | undefined;
92
95
  }): Promise<void>;
93
- backupKeySharesToGoogleDrive({ accountAddress, password, }: {
96
+ backupKeySharesToGoogleDrive({ accountAddress, password, googleDriveAccessToken, }: {
94
97
  accountAddress: string;
95
98
  password?: string | undefined;
99
+ googleDriveAccessToken?: string | undefined;
96
100
  }): Promise<void>;
97
101
  exportClientKeysharesFromGoogleDrive({ accountAddress, password, }: {
98
102
  accountAddress: string;