@dynamic-labs/midnight 5.3.2 → 5.4.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,26 @@
1
1
 
2
+ ## [5.4.0](https://github.com/dynamic-labs/dynamic-auth/compare/v5.3.2...v5.4.0) (2026-08-25)
3
+
4
+
5
+ ### Features
6
+
7
+ * **aleo:** wire up signMessage on the WaaS Aleo connector ([#12235](https://github.com/dynamic-labs/dynamic-auth/issues/12235)) ([e56cbf5](https://github.com/dynamic-labs/dynamic-auth/commit/e56cbf5546bdcc21ce916dece43ae36dcea9b808))
8
+ * **waas:** thread isRawScalarImport through importPrivateKey for ed25519 chains ([#12220](https://github.com/dynamic-labs/dynamic-auth/issues/12220)) ([ced9efa](https://github.com/dynamic-labs/dynamic-auth/commit/ced9efac5fa5a4a1280383419f56fe22733722cd))
9
+ * **webview:** add policies message contract and controller ([#12248](https://github.com/dynamic-labs/dynamic-auth/issues/12248)) ([8557c1e](https://github.com/dynamic-labs/dynamic-auth/commit/8557c1ed3861e12f1f06b2bb610184813b577daa))
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * **bitcoin:** pass the wallet's address type when signing ([#12265](https://github.com/dynamic-labs/dynamic-auth/issues/12265)) ([b8a8eab](https://github.com/dynamic-labs/dynamic-auth/commit/b8a8eab7e4cc294cc307fb10ea6814e76111a274))
15
+ * remediate high-severity tar vulnerability and prune a dead override ([#12268](https://github.com/dynamic-labs/dynamic-auth/issues/12268)) ([6b1b343](https://github.com/dynamic-labs/dynamic-auth/commit/6b1b343e7947e8da30012446677e342ae9bfe14a))
16
+ * **waas-svm:** fix retry-classification and environmentId gaps in [#12240](https://github.com/dynamic-labs/dynamic-auth/issues/12240) ([#12247](https://github.com/dynamic-labs/dynamic-auth/issues/12247)) ([e79cecc](https://github.com/dynamic-labs/dynamic-auth/commit/e79ceccd424c48c3a7f45fdd6ea288c269ac0171))
17
+ * **wallet-connect:** reopen WalletConnect IndexedDB when the browser closes the connection ([#12262](https://github.com/dynamic-labs/dynamic-auth/issues/12262)) ([1a20dde](https://github.com/dynamic-labs/dynamic-auth/commit/1a20ddeaeec590ae3390c9e47ef3c14738379b83))
18
+
19
+
20
+ ### Performance Improvements
21
+
22
+ * **ethereum-gasless-core:** parallel 7702 auth signing and long-poll sponsored-tx status ([#12225](https://github.com/dynamic-labs/dynamic-auth/issues/12225)) ([53ca916](https://github.com/dynamic-labs/dynamic-auth/commit/53ca91668f8dd839c52d55a0e5d7bb5257f7f415))
23
+
2
24
  ### [5.3.2](https://github.com/dynamic-labs/dynamic-auth/compare/v5.3.1...v5.3.2) (2026-08-19)
3
25
 
4
26
 
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "5.3.2";
6
+ var version = "5.4.0";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "5.3.2";
2
+ var version = "5.4.0";
3
3
 
4
4
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/midnight",
3
- "version": "5.3.2",
3
+ "version": "5.4.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/assert-package-version": "5.3.2",
21
+ "@dynamic-labs/assert-package-version": "5.4.0",
22
22
  "@dynamic-labs/sdk-api-core": "0.12.0",
23
23
  "@midnight-ntwrk/dapp-connector-api": "4.0.1",
24
- "@dynamic-labs/logger": "5.3.2",
25
- "@dynamic-labs/types": "5.3.2",
26
- "@dynamic-labs/utils": "5.3.2",
27
- "@dynamic-labs/waas": "5.3.2",
28
- "@dynamic-labs/wallet-book": "5.3.2",
29
- "@dynamic-labs/wallet-connector-core": "5.3.2"
24
+ "@dynamic-labs/logger": "5.4.0",
25
+ "@dynamic-labs/types": "5.4.0",
26
+ "@dynamic-labs/utils": "5.4.0",
27
+ "@dynamic-labs/waas": "5.4.0",
28
+ "@dynamic-labs/wallet-book": "5.4.0",
29
+ "@dynamic-labs/wallet-connector-core": "5.4.0"
30
30
  },
31
31
  "peerDependencies": {}
32
32
  }
@@ -92,13 +92,14 @@ declare const DynamicWaasMidnightConnector_base: (abstract new (...args: any[])
92
92
  }): Promise<{
93
93
  shareSetId: string;
94
94
  }>;
95
- importPrivateKey({ privateKey, thresholdSignatureScheme, publicAddressCheck, addressType, legacyWalletId, password, }: {
95
+ importPrivateKey({ privateKey, thresholdSignatureScheme, publicAddressCheck, addressType, legacyWalletId, password, isRawScalarImport, }: {
96
96
  privateKey: string;
97
97
  thresholdSignatureScheme?: string | undefined;
98
98
  publicAddressCheck?: string | undefined;
99
99
  addressType?: string | undefined;
100
100
  legacyWalletId?: string | undefined;
101
101
  password?: string | undefined;
102
+ isRawScalarImport?: boolean | undefined;
102
103
  }): Promise<void>;
103
104
  migrateFromFireblocks({ deviceId, jwt, walletPassword, ncwStorage, expectedAddresses, coinTypes, password, }: {
104
105
  deviceId: string;
@@ -119,10 +120,6 @@ declare const DynamicWaasMidnightConnector_base: (abstract new (...args: any[])
119
120
  };
120
121
  exportClientKeyshares({ accountAddress, password, }: {
121
122
  accountAddress: string;
122
- /**
123
- * When active account is not set (e.g. primary wallet restored from session),
124
- * fall back to the first Midnight verified credential so signing and getAddress work.
125
- */
126
123
  password?: string | undefined;
127
124
  }): Promise<void>;
128
125
  runBackupLifecycle({ provider, accountAddress, password, performBackup, }: {
@@ -223,6 +220,13 @@ declare const DynamicWaasMidnightConnector_base: (abstract new (...args: any[])
223
220
  unshielded: Record<string, string>;
224
221
  shielded: Record<string, string>;
225
222
  dust: {
223
+ /**
224
+ * Signs and finalizes (ZK proves) a Midnight transaction via MPC.
225
+ * Step 2 of the 3-step flow: createTransferTransaction → signTransaction → submitTransaction.
226
+ *
227
+ * @param serializedTransaction - Base64-encoded unsigned UnprovenTransaction
228
+ * @returns Base64-encoded FinalizedTransaction, ready for submitTransaction
229
+ */
226
230
  balance: string;
227
231
  cap: string;
228
232
  };