@dynamic-labs/midnight 4.92.4 → 5.0.0-rc.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,17 @@
1
1
 
2
+ ## [5.0.0-rc.1](https://github.com/dynamic-labs/dynamic-auth/compare/v5.0.0-rc.0...v5.0.0-rc.1) (2026-07-17)
3
+
4
+
5
+ ### ⚠ BREAKING CHANGES
6
+
7
+ * move legacy embedded wallet to waas upgrade flow to new legacy-embedded-wallet-migration package (#11841)
8
+ * drop default injection of legacy embedded wallet connectors (#11833)
9
+ * remove legacy embedded wallet support (#11979)
10
+ * throw when legacy embedded wallet is detected without migration provider (#11855)
11
+ * remove deprecated eclipse package (#11831)
12
+ * remove deprecated functions and props (#11832)
13
+
14
+
2
15
  ### [4.92.4](https://github.com/dynamic-labs/dynamic-auth/compare/v4.92.3...v4.92.4) (2026-07-16)
3
16
 
4
17
 
@@ -57,6 +70,7 @@
57
70
  * improve social OAuth error messages ([#11837](https://github.com/dynamic-labs/dynamic-auth/issues/11837)) ([8e57c06](https://github.com/dynamic-labs/dynamic-auth/commit/8e57c067c5a89111a32a12fb82e190cf6c46ad67))
58
71
  * **react-native-extension:** reject path traversal in downloadFile fileName ([#11816](https://github.com/dynamic-labs/dynamic-auth/issues/11816)) ([9367a56](https://github.com/dynamic-labs/dynamic-auth/commit/9367a56b6daa853d7f7e7f5534261bc68825b239))
59
72
  * **sdk-react-core:** display exactly the bytes signed in personal_sign preview ([#11818](https://github.com/dynamic-labs/dynamic-auth/issues/11818)) ([30b9382](https://github.com/dynamic-labs/dynamic-auth/commit/30b93829122f00060cb484aef09a03294c03f651))
73
+
60
74
 
61
75
  ### [4.91.6](https://github.com/dynamic-labs/dynamic-auth/compare/v4.91.5...v4.91.6) (2026-07-03)
62
76
 
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.92.4";
6
+ var version = "5.0.0-rc.1";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.92.4";
2
+ var version = "5.0.0-rc.1";
3
3
 
4
4
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/midnight",
3
- "version": "4.92.4",
3
+ "version": "5.0.0-rc.1",
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/assert-package-version": "4.92.4",
22
- "@dynamic-labs/sdk-api-core": "0.0.1073",
21
+ "@dynamic-labs/assert-package-version": "5.0.0-rc.1",
22
+ "@dynamic-labs/sdk-api-core": "0.0.1082",
23
23
  "@midnight-ntwrk/dapp-connector-api": "4.0.1",
24
- "@dynamic-labs/logger": "4.92.4",
25
- "@dynamic-labs/types": "4.92.4",
26
- "@dynamic-labs/utils": "4.92.4",
27
- "@dynamic-labs/waas": "4.92.4",
28
- "@dynamic-labs/wallet-book": "4.92.4",
29
- "@dynamic-labs/wallet-connector-core": "4.92.4"
24
+ "@dynamic-labs/logger": "5.0.0-rc.1",
25
+ "@dynamic-labs/types": "5.0.0-rc.1",
26
+ "@dynamic-labs/utils": "5.0.0-rc.1",
27
+ "@dynamic-labs/waas": "5.0.0-rc.1",
28
+ "@dynamic-labs/wallet-book": "5.0.0-rc.1",
29
+ "@dynamic-labs/wallet-connector-core": "5.0.0-rc.1"
30
30
  },
31
31
  "peerDependencies": {}
32
32
  }
@@ -27,7 +27,7 @@ declare const DynamicWaasMidnightConnector_base: (abstract new (...args: any[])
27
27
  relayUrl?: string | undefined;
28
28
  baseClientKeysharesRelayApiUrl?: string | undefined;
29
29
  dynamicWaasClient: import("@dynamic-labs-wallet/browser-wallet-client").DynamicWalletClient | undefined;
30
- revokeSignedSession: (() => void) | undefined;
30
+ revokeSignedSession: ((reason?: string | undefined) => void) | undefined;
31
31
  chainName: string;
32
32
  authMode: "cookie" | "header";
33
33
  logger: Logger;
@@ -120,6 +120,21 @@ declare const DynamicWaasMidnightConnector_base: (abstract new (...args: any[])
120
120
  accountAddress: string;
121
121
  password?: string | undefined;
122
122
  }): Promise<void>;
123
+ runBackupLifecycle({ provider, accountAddress, password, performBackup, }: {
124
+ provider: string;
125
+ accountAddress: string;
126
+ password?: string | undefined;
127
+ performBackup: (prerequisites: {
128
+ walletClient: import("@dynamic-labs-wallet/browser-wallet-client").DynamicWalletClient;
129
+ resolvedPassword: string | undefined;
130
+ signedSessionId: string;
131
+ sessionPublicKey: string | undefined;
132
+ traceContext: {
133
+ traceId: string;
134
+ startTime: number;
135
+ };
136
+ }) => Promise<void>;
137
+ }): Promise<void>;
123
138
  backupKeySharesToGoogleDrive({ accountAddress, password, googleDriveAccessToken, }: {
124
139
  accountAddress: string;
125
140
  password?: string | undefined;
@@ -137,12 +152,6 @@ declare const DynamicWaasMidnightConnector_base: (abstract new (...args: any[])
137
152
  displayContainer: HTMLElement;
138
153
  }): Promise<void>;
139
154
  hideICloudSignIn(): Promise<void>;
140
- /**
141
- * Spread into wallet-client calls. Published browser-wallet-client builds
142
- * that predate per-network support don't declare `networkId` — spreading a
143
- * non-literal keeps this compiling against those types; older clients drop
144
- * the field and default to preview.
145
- */
146
155
  isICloudAuthenticated(): Promise<boolean>;
147
156
  refreshWalletAccountShares({ accountAddress, password, }: {
148
157
  accountAddress: string;
@@ -170,7 +179,13 @@ declare const DynamicWaasMidnightConnector_base: (abstract new (...args: any[])
170
179
  accountAddress: string;
171
180
  context?: SignMessageContext | undefined;
172
181
  message: string;
173
- password?: string | undefined;
182
+ password?: string | undefined; /**
183
+ * Internal method to sign a message with MFA token
184
+ * @param message - The message to sign
185
+ * @returns The signed message as a string
186
+ * @throws {DynamicError} If active account address is not set
187
+ * @throws {DynamicError} If signed session ID is not available
188
+ */
174
189
  }): Promise<string>;
175
190
  unlockWallet({ accountAddress, password, }: {
176
191
  accountAddress: string;