@dynamic-labs/midnight 5.3.2 → 5.4.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 +34 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +8 -8
- package/src/waas/connector/DynamicWaasMidnightConnector.cjs +2 -5
- package/src/waas/connector/DynamicWaasMidnightConnector.d.ts +9 -46
- package/src/waas/connector/DynamicWaasMidnightConnector.js +2 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,38 @@
|
|
|
1
1
|
|
|
2
|
+
### [5.4.1](https://github.com/dynamic-labs/dynamic-auth/compare/v5.4.0...v5.4.1) (2026-08-26)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* **webview-controller:** resolve which keychain key a session belongs to ([#12246](https://github.com/dynamic-labs/dynamic-auth/issues/12246)) ([3d110db](https://github.com/dynamic-labs/dynamic-auth/commit/3d110db831c6e9d82d07d86841f5c7733924b17e))
|
|
8
|
+
* **bitcoin:** forward the password through the BTC importPrivateKey override ([#12278](https://github.com/dynamic-labs/dynamic-auth/issues/12278)) ([21e1df3](https://github.com/dynamic-labs/dynamic-auth/commit/21e1df3e33e96e2efdb15ffa0fd29a441056202e))
|
|
9
|
+
* **react-native-extension:** recover 4.x expo-secure-store sessions on keychain miss ([#12254](https://github.com/dynamic-labs/dynamic-auth/issues/12254)) ([217e991](https://github.com/dynamic-labs/dynamic-auth/commit/217e991838f3073c12e2d2fab7a2e12830faad9e)), closes [#12092](https://github.com/dynamic-labs/dynamic-auth/issues/12092) [#12092](https://github.com/dynamic-labs/dynamic-auth/issues/12092) [#12092](https://github.com/dynamic-labs/dynamic-auth/issues/12092) [#12092](https://github.com/dynamic-labs/dynamic-auth/issues/12092) [#12242](https://github.com/dynamic-labs/dynamic-auth/issues/12242) [#12242](https://github.com/dynamic-labs/dynamic-auth/issues/12242)
|
|
10
|
+
* **transaction-card:** use walletConnector prop for network/fee instead of primaryWallet ([#12063](https://github.com/dynamic-labs/dynamic-auth/issues/12063)) ([81314d2](https://github.com/dynamic-labs/dynamic-auth/commit/81314d25fba4b20ab89631bc2d9ceeb9e2b6b2ac))
|
|
11
|
+
* **waas-svm:** instrument sponsorship retry attempts ([#12281](https://github.com/dynamic-labs/dynamic-auth/issues/12281)) ([7273a4b](https://github.com/dynamic-labs/dynamic-auth/commit/7273a4bc456cad512c0e9fbcd2abd66532a2f7df))
|
|
12
|
+
* **webview-controller:** recover 4.x secure-storage sessions and surface init failures ([#12242](https://github.com/dynamic-labs/dynamic-auth/issues/12242)) ([b51605c](https://github.com/dynamic-labs/dynamic-auth/commit/b51605cc9bdbb5d695173192c502a58d899bbbdd)), closes [#12094](https://github.com/dynamic-labs/dynamic-auth/issues/12094) [#12095](https://github.com/dynamic-labs/dynamic-auth/issues/12095) [#12098](https://github.com/dynamic-labs/dynamic-auth/issues/12098) [dynamic-labs/flutter-sdk#256](https://github.com/dynamic-labs/flutter-sdk/issues/256)
|
|
13
|
+
|
|
14
|
+
## [5.4.0](https://github.com/dynamic-labs/dynamic-auth/compare/v5.3.2...v5.4.0) (2026-08-25)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **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))
|
|
20
|
+
* **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))
|
|
21
|
+
* **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))
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Bug Fixes
|
|
25
|
+
|
|
26
|
+
* **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))
|
|
27
|
+
* 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))
|
|
28
|
+
* **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))
|
|
29
|
+
* **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))
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
### Performance Improvements
|
|
33
|
+
|
|
34
|
+
* **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))
|
|
35
|
+
|
|
2
36
|
### [5.3.2](https://github.com/dynamic-labs/dynamic-auth/compare/v5.3.1...v5.3.2) (2026-08-19)
|
|
3
37
|
|
|
4
38
|
|
package/package.cjs
CHANGED
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/midnight",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.4.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": "5.
|
|
21
|
+
"@dynamic-labs/assert-package-version": "5.4.1",
|
|
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.
|
|
25
|
-
"@dynamic-labs/types": "5.
|
|
26
|
-
"@dynamic-labs/utils": "5.
|
|
27
|
-
"@dynamic-labs/waas": "5.
|
|
28
|
-
"@dynamic-labs/wallet-book": "5.
|
|
29
|
-
"@dynamic-labs/wallet-connector-core": "5.
|
|
24
|
+
"@dynamic-labs/logger": "5.4.1",
|
|
25
|
+
"@dynamic-labs/types": "5.4.1",
|
|
26
|
+
"@dynamic-labs/utils": "5.4.1",
|
|
27
|
+
"@dynamic-labs/waas": "5.4.1",
|
|
28
|
+
"@dynamic-labs/wallet-book": "5.4.1",
|
|
29
|
+
"@dynamic-labs/wallet-connector-core": "5.4.1"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {}
|
|
32
32
|
}
|
|
@@ -472,14 +472,11 @@ class DynamicWaasMidnightConnector extends waas.withDynamicWaas(WaasMidnightWall
|
|
|
472
472
|
const _super = Object.create(null, {
|
|
473
473
|
createWalletAccount: { get: () => super.createWalletAccount }
|
|
474
474
|
});
|
|
475
|
-
return _tslib.__awaiter(this, arguments, void 0, function* (
|
|
475
|
+
return _tslib.__awaiter(this, arguments, void 0, function* (params = {}) {
|
|
476
476
|
// Midnight automatically creates all address types (unshielded, dust, shielded)
|
|
477
477
|
// from a single keygen. The primary address is unshielded, additional addresses
|
|
478
478
|
// (dust and shielded) are returned as additionalAddresses from the server.
|
|
479
|
-
return _super.createWalletAccount.call(this,
|
|
480
|
-
password,
|
|
481
|
-
thresholdSignatureScheme,
|
|
482
|
-
});
|
|
479
|
+
return _super.createWalletAccount.call(this, params);
|
|
483
480
|
});
|
|
484
481
|
}
|
|
485
482
|
// Passes through the wallet client's shape. `dust` carries `{ balance, cap }`
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ConnectedAPI, TokenType } from '@midnight-ntwrk/dapp-connector-api';
|
|
2
2
|
import { JwtVerifiedCredential, MFAAction, SignMessageContext, TokenScope } from '@dynamic-labs/sdk-api-core';
|
|
3
3
|
import { IUITransaction, WalletUiUtils } from '@dynamic-labs/types';
|
|
4
|
-
import { IDynamicWaasConnector, InternalWalletConnector } from '@dynamic-labs/wallet-connector-core';
|
|
4
|
+
import { CreateWalletAccountParams, IDynamicWaasConnector, InternalWalletConnector } from '@dynamic-labs/wallet-connector-core';
|
|
5
5
|
import { Logger } from '@dynamic-labs/logger';
|
|
6
6
|
import type { DynamicWaasMidnightConnectorProps, MidnightContractWalletProvider, MidnightSerializableTransaction } from '../../types';
|
|
7
7
|
import { MidnightWallet } from '../../wallet/MidnightWallet';
|
|
@@ -67,12 +67,7 @@ declare const DynamicWaasMidnightConnector_base: (abstract new (...args: any[])
|
|
|
67
67
|
getWaasWalletClient(traceContext?: import("dist/packages/waas/utils/instrumentation").TraceContext | undefined, { forceRebuild }?: {
|
|
68
68
|
forceRebuild?: boolean | undefined;
|
|
69
69
|
} | undefined): Promise<import("@dynamic-labs-wallet/browser-wallet-client").DynamicWalletClient>;
|
|
70
|
-
createWalletAccount({ thresholdSignatureScheme, password, bitcoinConfig, businessAccountId, }?: {
|
|
71
|
-
thresholdSignatureScheme?: string | undefined;
|
|
72
|
-
password?: string | undefined;
|
|
73
|
-
bitcoinConfig?: import("@dynamic-labs-wallet/browser-wallet-client").BitcoinConfig | undefined;
|
|
74
|
-
businessAccountId?: string | undefined;
|
|
75
|
-
} | undefined): Promise<{
|
|
70
|
+
createWalletAccount({ thresholdSignatureScheme, password, bitcoinConfig, businessAccountId, }?: CreateWalletAccountParams | undefined): Promise<{
|
|
76
71
|
chainName: string;
|
|
77
72
|
accountAddress: string;
|
|
78
73
|
publicKeyHex: string;
|
|
@@ -92,14 +87,7 @@ declare const DynamicWaasMidnightConnector_base: (abstract new (...args: any[])
|
|
|
92
87
|
}): Promise<{
|
|
93
88
|
shareSetId: string;
|
|
94
89
|
}>;
|
|
95
|
-
importPrivateKey({ privateKey, thresholdSignatureScheme, publicAddressCheck, addressType, legacyWalletId, password, }:
|
|
96
|
-
privateKey: string;
|
|
97
|
-
thresholdSignatureScheme?: string | undefined;
|
|
98
|
-
publicAddressCheck?: string | undefined;
|
|
99
|
-
addressType?: string | undefined;
|
|
100
|
-
legacyWalletId?: string | undefined;
|
|
101
|
-
password?: string | undefined;
|
|
102
|
-
}): Promise<void>;
|
|
90
|
+
importPrivateKey({ privateKey, thresholdSignatureScheme, publicAddressCheck, addressType, legacyWalletId, password, isRawScalarImport, }: import("@dynamic-labs/wallet-connector-core").ImportPrivateKeyParams): Promise<void>;
|
|
103
91
|
migrateFromFireblocks({ deviceId, jwt, walletPassword, ncwStorage, expectedAddresses, coinTypes, password, }: {
|
|
104
92
|
deviceId: string;
|
|
105
93
|
jwt: string;
|
|
@@ -117,14 +105,7 @@ declare const DynamicWaasMidnightConnector_base: (abstract new (...args: any[])
|
|
|
117
105
|
getExportHandler(): {
|
|
118
106
|
clear: () => void;
|
|
119
107
|
};
|
|
120
|
-
exportClientKeyshares({ accountAddress, password, }:
|
|
121
|
-
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
|
-
password?: string | undefined;
|
|
127
|
-
}): Promise<void>;
|
|
108
|
+
exportClientKeyshares({ accountAddress, password, }: import("@dynamic-labs/wallet-connector-core").ExportClientKeysharesParams): Promise<void>;
|
|
128
109
|
runBackupLifecycle({ provider, accountAddress, password, performBackup, }: {
|
|
129
110
|
provider: string;
|
|
130
111
|
accountAddress: string;
|
|
@@ -140,11 +121,7 @@ declare const DynamicWaasMidnightConnector_base: (abstract new (...args: any[])
|
|
|
140
121
|
};
|
|
141
122
|
}) => Promise<void>;
|
|
142
123
|
}): Promise<void>;
|
|
143
|
-
backupKeySharesToGoogleDrive({ accountAddress, password, googleDriveAccessToken, }:
|
|
144
|
-
accountAddress: string;
|
|
145
|
-
password?: string | undefined;
|
|
146
|
-
googleDriveAccessToken?: string | undefined;
|
|
147
|
-
}): Promise<void>;
|
|
124
|
+
backupKeySharesToGoogleDrive({ accountAddress, password, googleDriveAccessToken, }: import("@dynamic-labs/wallet-connector-core").BackupKeySharesToGoogleDriveParams): Promise<void>;
|
|
148
125
|
exportClientKeysharesFromGoogleDrive({ accountAddress, password, }: {
|
|
149
126
|
accountAddress: string;
|
|
150
127
|
password?: string | undefined;
|
|
@@ -158,24 +135,13 @@ declare const DynamicWaasMidnightConnector_base: (abstract new (...args: any[])
|
|
|
158
135
|
}): Promise<void>;
|
|
159
136
|
hideICloudSignIn(): Promise<void>;
|
|
160
137
|
isICloudAuthenticated(): Promise<boolean>;
|
|
161
|
-
refreshWalletAccountShares({ accountAddress, password, }:
|
|
162
|
-
|
|
163
|
-
password?: string | undefined;
|
|
164
|
-
}): Promise<void>;
|
|
165
|
-
reshareWalletAccountShares({ accountAddress, thresholdSignatureScheme, password, }: {
|
|
166
|
-
accountAddress: string;
|
|
167
|
-
thresholdSignatureScheme: string;
|
|
168
|
-
password?: string | undefined;
|
|
169
|
-
}): Promise<void>;
|
|
138
|
+
refreshWalletAccountShares({ accountAddress, password, }: import("@dynamic-labs/wallet-connector-core").RefreshWalletAccountSharesParams): Promise<void>;
|
|
139
|
+
reshareWalletAccountShares({ accountAddress, thresholdSignatureScheme, password, }: import("@dynamic-labs/wallet-connector-core").ReshareWalletAccountSharesParams): Promise<void>;
|
|
170
140
|
revokeDelegation({ accountAddress, password, }: {
|
|
171
141
|
accountAddress: string;
|
|
172
142
|
password?: string | undefined;
|
|
173
143
|
}): Promise<void>;
|
|
174
|
-
updatePassword({ accountAddress, existingPassword, newPassword, }:
|
|
175
|
-
accountAddress: string;
|
|
176
|
-
existingPassword?: string | undefined;
|
|
177
|
-
newPassword: string;
|
|
178
|
-
}): Promise<void>;
|
|
144
|
+
updatePassword({ accountAddress, existingPassword, newPassword, }: import("@dynamic-labs/wallet-connector-core").UpdatePasswordParams): Promise<void>;
|
|
179
145
|
setPassword({ accountAddress, newPassword, }: {
|
|
180
146
|
accountAddress: string;
|
|
181
147
|
newPassword: string;
|
|
@@ -402,10 +368,7 @@ export declare class DynamicWaasMidnightConnector extends DynamicWaasMidnightCon
|
|
|
402
368
|
* @param password - Optional password for the wallet
|
|
403
369
|
* @returns The created wallet account information with primary (unshielded) address
|
|
404
370
|
*/
|
|
405
|
-
createWalletAccount(
|
|
406
|
-
thresholdSignatureScheme?: string;
|
|
407
|
-
password?: string;
|
|
408
|
-
}): Promise<{
|
|
371
|
+
createWalletAccount(params?: CreateWalletAccountParams): Promise<{
|
|
409
372
|
chainName: string;
|
|
410
373
|
accountAddress: string;
|
|
411
374
|
publicKeyHex: string;
|
|
@@ -468,14 +468,11 @@ class DynamicWaasMidnightConnector extends withDynamicWaas(WaasMidnightWalletCon
|
|
|
468
468
|
const _super = Object.create(null, {
|
|
469
469
|
createWalletAccount: { get: () => super.createWalletAccount }
|
|
470
470
|
});
|
|
471
|
-
return __awaiter(this, arguments, void 0, function* (
|
|
471
|
+
return __awaiter(this, arguments, void 0, function* (params = {}) {
|
|
472
472
|
// Midnight automatically creates all address types (unshielded, dust, shielded)
|
|
473
473
|
// from a single keygen. The primary address is unshielded, additional addresses
|
|
474
474
|
// (dust and shielded) are returned as additionalAddresses from the server.
|
|
475
|
-
return _super.createWalletAccount.call(this,
|
|
476
|
-
password,
|
|
477
|
-
thresholdSignatureScheme,
|
|
478
|
-
});
|
|
475
|
+
return _super.createWalletAccount.call(this, params);
|
|
479
476
|
});
|
|
480
477
|
}
|
|
481
478
|
// Passes through the wallet client's shape. `dust` carries `{ balance, cap }`
|