@dynamic-labs/midnight 4.91.6 → 4.92.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,31 @@
1
1
 
2
+ ### [4.92.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.92.0...v4.92.1) (2026-07-09)
3
+
4
+
5
+ ### Bug Fixes
6
+
7
+ * **ethereum:** fire in-app-browser redirect on sign for injected EVM wallets that use in-app-browser experience ([#11888](https://github.com/dynamic-labs/dynamic-auth/issues/11888)) ([5116d91](https://github.com/dynamic-labs/dynamic-auth/commit/5116d91ab2c71000a490d72c5d278549d4d8ae9a))
8
+ * **sdk-react-core:** show clear message for Phantom redirect signing failures (v4 backport) ([#11886](https://github.com/dynamic-labs/dynamic-auth/issues/11886)) ([60ac897](https://github.com/dynamic-labs/dynamic-auth/commit/60ac897ba81f7758ccd7a05f97b619785e1f50a7))
9
+ * **social:** use redirect strategy for step-up OAuth on mobile [V4 backport] ([#11881](https://github.com/dynamic-labs/dynamic-auth/issues/11881)) ([42a202e](https://github.com/dynamic-labs/dynamic-auth/commit/42a202e6255de8db73df02eff37c0b10b24fef1a))
10
+ * **solana:** fire in-app-browser redirect on sign and wallet switch ([#11871](https://github.com/dynamic-labs/dynamic-auth/issues/11871)) ([4e2d6b7](https://github.com/dynamic-labs/dynamic-auth/commit/4e2d6b7ac8fdef5bf7c62b8a726ecaef1c6210ec))
11
+ * **solana:** resolve Phantom/Backpack provider collision and Backpack >=0.10.x connect hangs ([#11856](https://github.com/dynamic-labs/dynamic-auth/issues/11856)) ([#11882](https://github.com/dynamic-labs/dynamic-auth/issues/11882)) ([5784aff](https://github.com/dynamic-labs/dynamic-auth/commit/5784aff9641bbc85445fb466f3ab1d6a14331e73))
12
+
13
+ ## [4.92.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.91.6...v4.92.0) (2026-07-08)
14
+
15
+
16
+ ### Features
17
+
18
+ * **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))
19
+
20
+
21
+ ### Bug Fixes
22
+
23
+ * **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))
24
+ * **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))
25
+ * 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))
26
+ * **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))
27
+ * **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))
28
+
2
29
  ### [4.91.6](https://github.com/dynamic-labs/dynamic-auth/compare/v4.91.5...v4.91.6) (2026-07-03)
3
30
 
4
31
 
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.91.6";
6
+ var version = "4.92.1";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.91.6";
2
+ var version = "4.92.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.91.6",
3
+ "version": "4.92.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.91.6",
22
- "@dynamic-labs/sdk-api-core": "0.0.1046",
21
+ "@dynamic-labs/assert-package-version": "4.92.1",
22
+ "@dynamic-labs/sdk-api-core": "0.0.1067",
23
23
  "@midnight-ntwrk/dapp-connector-api": "4.0.1",
24
- "@dynamic-labs/logger": "4.91.6",
25
- "@dynamic-labs/types": "4.91.6",
26
- "@dynamic-labs/utils": "4.91.6",
27
- "@dynamic-labs/waas": "4.91.6",
28
- "@dynamic-labs/wallet-book": "4.91.6",
29
- "@dynamic-labs/wallet-connector-core": "4.91.6"
24
+ "@dynamic-labs/logger": "4.92.1",
25
+ "@dynamic-labs/types": "4.92.1",
26
+ "@dynamic-labs/utils": "4.92.1",
27
+ "@dynamic-labs/waas": "4.92.1",
28
+ "@dynamic-labs/wallet-book": "4.92.1",
29
+ "@dynamic-labs/wallet-connector-core": "4.92.1"
30
30
  },
31
31
  "peerDependencies": {}
32
32
  }
@@ -66,16 +66,31 @@ declare const DynamicWaasMidnightConnector_base: (abstract new (...args: any[])
66
66
  getWaasWalletClient(traceContext?: import("dist/packages/waas/utils/instrumentation").TraceContext | undefined, { forceRebuild }?: {
67
67
  forceRebuild?: boolean | undefined;
68
68
  } | undefined): Promise<import("@dynamic-labs-wallet/browser-wallet-client").DynamicWalletClient>;
69
- createWalletAccount({ thresholdSignatureScheme, password, bitcoinConfig, }?: {
69
+ createWalletAccount({ thresholdSignatureScheme, password, bitcoinConfig, businessAccountId, }?: {
70
70
  thresholdSignatureScheme?: string | undefined;
71
71
  password?: string | undefined;
72
72
  bitcoinConfig?: import("@dynamic-labs-wallet/browser-wallet-client").BitcoinConfig | undefined;
73
+ businessAccountId?: string | undefined;
73
74
  } | undefined): Promise<{
74
75
  chainName: string;
75
76
  accountAddress: string;
76
77
  publicKeyHex: string;
77
78
  rawPublicKey: string | Uint8Array | undefined;
78
79
  }>;
80
+ addSignerViaReshare({ accountAddress, walletId, businessAccountId, targetSignerIdentity, signerType, password, }: {
81
+ accountAddress: string;
82
+ walletId?: string | undefined;
83
+ businessAccountId: string;
84
+ targetSignerIdentity: {
85
+ userId?: string | undefined;
86
+ identifier?: string | undefined;
87
+ identifierType?: string | undefined;
88
+ };
89
+ signerType?: "endUser" | "server" | undefined;
90
+ password?: string | undefined;
91
+ }): Promise<{
92
+ shareSetId: string;
93
+ }>;
79
94
  importPrivateKey({ privateKey, thresholdSignatureScheme, publicAddressCheck, addressType, legacyWalletId, password, }: {
80
95
  privateKey: string;
81
96
  thresholdSignatureScheme?: string | undefined;
@@ -92,7 +107,7 @@ declare const DynamicWaasMidnightConnector_base: (abstract new (...args: any[])
92
107
  expectedAddresses: Record<string, string>;
93
108
  coinTypes?: Record<string, number> | undefined;
94
109
  password?: string | undefined;
95
- }): Promise<import("@dynamic-labs-wallet/browser-wallet-client").MigrateFromFireblocksResponse>;
110
+ }): Promise<Record<string, unknown>>;
96
111
  exportPrivateKey({ accountAddress, displayContainer, password, }?: {
97
112
  accountAddress?: string | undefined;
98
113
  displayContainer?: HTMLIFrameElement | undefined;
@@ -109,10 +124,7 @@ declare const DynamicWaasMidnightConnector_base: (abstract new (...args: any[])
109
124
  accountAddress: string;
110
125
  password?: string | undefined;
111
126
  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
- */
127
+ }): Promise<void>;
116
128
  exportClientKeysharesFromGoogleDrive({ accountAddress, password, }: {
117
129
  accountAddress: string;
118
130
  password?: string | undefined;
@@ -148,8 +160,9 @@ declare const DynamicWaasMidnightConnector_base: (abstract new (...args: any[])
148
160
  accountAddress: string;
149
161
  newPassword: string;
150
162
  }): Promise<void>;
151
- signRawMessage({ accountAddress, message, password, }: {
163
+ signRawMessage({ accountAddress, context, message, password, }: {
152
164
  accountAddress: string;
165
+ context?: SignMessageContext | undefined;
153
166
  message: string;
154
167
  password?: string | undefined;
155
168
  }): Promise<string>;