@dynamic-labs/midnight 4.91.5 → 4.92.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 +23 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +9 -9
- package/src/waas/connector/DynamicWaasMidnightConnector.d.ts +22 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,27 @@
|
|
|
1
1
|
|
|
2
|
+
## [4.92.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.91.6...v4.92.0) (2026-07-08)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* **captcha:** add Cloudflare Turnstile provider support alongside hCaptcha (v4) ([#11798](https://github.com/dynamic-labs/dynamic-auth/issues/11798)) ([114c770](https://github.com/dynamic-labs/dynamic-auth/commit/114c7702e900d8dedeebe7be867de35d11a93f31))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* **ethereum-aa:** resolve kernel client config per wallet (v4) ([#11870](https://github.com/dynamic-labs/dynamic-auth/issues/11870)) ([1b66d79](https://github.com/dynamic-labs/dynamic-auth/commit/1b66d79b4a32b4b6de433b7536bc46e6719224c6))
|
|
13
|
+
* **iframe-setup:** block dangerous URL schemes and verify sender in OPEN_URL ([#11819](https://github.com/dynamic-labs/dynamic-auth/issues/11819)) ([329b27e](https://github.com/dynamic-labs/dynamic-auth/commit/329b27e9fac825916ab227ec8cf93dc343898923))
|
|
14
|
+
* 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))
|
|
15
|
+
* **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))
|
|
16
|
+
* **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))
|
|
17
|
+
|
|
18
|
+
### [4.91.6](https://github.com/dynamic-labs/dynamic-auth/compare/v4.91.5...v4.91.6) (2026-07-03)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Bug Fixes
|
|
22
|
+
|
|
23
|
+
* **react-native:** ensure webview loads on cold start ([#11787](https://github.com/dynamic-labs/dynamic-auth/issues/11787)) ([8f3dc8e](https://github.com/dynamic-labs/dynamic-auth/commit/8f3dc8e2a7de06f012ea6e922d4e76aee1c84c1a))
|
|
24
|
+
|
|
2
25
|
### [4.91.5](https://github.com/dynamic-labs/dynamic-auth/compare/v4.91.4...v4.91.5) (2026-07-02)
|
|
3
26
|
|
|
4
27
|
|
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": "4.
|
|
3
|
+
"version": "4.92.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": "4.
|
|
22
|
-
"@dynamic-labs/sdk-api-core": "0.0.
|
|
21
|
+
"@dynamic-labs/assert-package-version": "4.92.0",
|
|
22
|
+
"@dynamic-labs/sdk-api-core": "0.0.1067",
|
|
23
23
|
"@midnight-ntwrk/dapp-connector-api": "4.0.1",
|
|
24
|
-
"@dynamic-labs/logger": "4.
|
|
25
|
-
"@dynamic-labs/types": "4.
|
|
26
|
-
"@dynamic-labs/utils": "4.
|
|
27
|
-
"@dynamic-labs/waas": "4.
|
|
28
|
-
"@dynamic-labs/wallet-book": "4.
|
|
29
|
-
"@dynamic-labs/wallet-connector-core": "4.
|
|
24
|
+
"@dynamic-labs/logger": "4.92.0",
|
|
25
|
+
"@dynamic-labs/types": "4.92.0",
|
|
26
|
+
"@dynamic-labs/utils": "4.92.0",
|
|
27
|
+
"@dynamic-labs/waas": "4.92.0",
|
|
28
|
+
"@dynamic-labs/wallet-book": "4.92.0",
|
|
29
|
+
"@dynamic-labs/wallet-connector-core": "4.92.0"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {}
|
|
32
32
|
}
|
|
@@ -63,19 +63,38 @@ declare const DynamicWaasMidnightConnector_base: (abstract new (...args: any[])
|
|
|
63
63
|
getSignedSessionId: () => Promise<string>;
|
|
64
64
|
};
|
|
65
65
|
createDynamicWaasClient(traceContext?: import("dist/packages/waas/utils/instrumentation").TraceContext | undefined): Promise<import("@dynamic-labs-wallet/browser-wallet-client").DynamicWalletClient>;
|
|
66
|
+
/**
|
|
67
|
+
* Called when the user selects this wallet in the modal.
|
|
68
|
+
* Sets the active account so getAddress/getNetwork work correctly during network validation.
|
|
69
|
+
*/
|
|
66
70
|
getWaasWalletClient(traceContext?: import("dist/packages/waas/utils/instrumentation").TraceContext | undefined, { forceRebuild }?: {
|
|
67
71
|
forceRebuild?: boolean | undefined;
|
|
68
72
|
} | undefined): Promise<import("@dynamic-labs-wallet/browser-wallet-client").DynamicWalletClient>;
|
|
69
|
-
createWalletAccount({ thresholdSignatureScheme, password, bitcoinConfig, }?: {
|
|
73
|
+
createWalletAccount({ thresholdSignatureScheme, password, bitcoinConfig, businessAccountId, }?: {
|
|
70
74
|
thresholdSignatureScheme?: string | undefined;
|
|
71
75
|
password?: string | undefined;
|
|
72
76
|
bitcoinConfig?: import("@dynamic-labs-wallet/browser-wallet-client").BitcoinConfig | undefined;
|
|
77
|
+
businessAccountId?: string | undefined;
|
|
73
78
|
} | undefined): Promise<{
|
|
74
79
|
chainName: string;
|
|
75
80
|
accountAddress: string;
|
|
76
81
|
publicKeyHex: string;
|
|
77
82
|
rawPublicKey: string | Uint8Array | undefined;
|
|
78
83
|
}>;
|
|
84
|
+
addSignerViaReshare({ accountAddress, walletId, businessAccountId, targetSignerIdentity, signerType, password, }: {
|
|
85
|
+
accountAddress: string;
|
|
86
|
+
walletId?: string | undefined;
|
|
87
|
+
businessAccountId: string;
|
|
88
|
+
targetSignerIdentity: {
|
|
89
|
+
userId?: string | undefined;
|
|
90
|
+
identifier?: string | undefined;
|
|
91
|
+
identifierType?: string | undefined;
|
|
92
|
+
};
|
|
93
|
+
signerType?: "endUser" | "server" | undefined;
|
|
94
|
+
password?: string | undefined;
|
|
95
|
+
}): Promise<{
|
|
96
|
+
shareSetId: string;
|
|
97
|
+
}>;
|
|
79
98
|
importPrivateKey({ privateKey, thresholdSignatureScheme, publicAddressCheck, addressType, legacyWalletId, password, }: {
|
|
80
99
|
privateKey: string;
|
|
81
100
|
thresholdSignatureScheme?: string | undefined;
|
|
@@ -92,7 +111,7 @@ declare const DynamicWaasMidnightConnector_base: (abstract new (...args: any[])
|
|
|
92
111
|
expectedAddresses: Record<string, string>;
|
|
93
112
|
coinTypes?: Record<string, number> | undefined;
|
|
94
113
|
password?: string | undefined;
|
|
95
|
-
}): Promise<
|
|
114
|
+
}): Promise<Record<string, unknown>>;
|
|
96
115
|
exportPrivateKey({ accountAddress, displayContainer, password, }?: {
|
|
97
116
|
accountAddress?: string | undefined;
|
|
98
117
|
displayContainer?: HTMLIFrameElement | undefined;
|
|
@@ -109,10 +128,7 @@ declare const DynamicWaasMidnightConnector_base: (abstract new (...args: any[])
|
|
|
109
128
|
accountAddress: string;
|
|
110
129
|
password?: string | undefined;
|
|
111
130
|
googleDriveAccessToken?: string | undefined;
|
|
112
|
-
}): Promise<void>;
|
|
113
|
-
* When active account is not set (e.g. primary wallet restored from session),
|
|
114
|
-
* fall back to the first Midnight verified credential so signing and getAddress work.
|
|
115
|
-
*/
|
|
131
|
+
}): Promise<void>;
|
|
116
132
|
exportClientKeysharesFromGoogleDrive({ accountAddress, password, }: {
|
|
117
133
|
accountAddress: string;
|
|
118
134
|
password?: string | undefined;
|