@dynamic-labs/midnight 4.100.0 → 4.100.2

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,19 @@
1
1
 
2
+ ### [4.100.2](https://github.com/dynamic-labs/dynamic-auth/compare/v4.100.1...v4.100.2) (2026-09-17)
3
+
4
+
5
+ ### Bug Fixes
6
+
7
+ * **webview-controller:** route MetaMask connector storage through native secure storage [V4 backport] ([#12418](https://github.com/dynamic-labs/dynamic-auth/issues/12418)) ([0a9047c](https://github.com/dynamic-labs/dynamic-auth/commit/0a9047c72f184fca3fd27116d0a9eaa0a5bc69e6)), closes [#12304](https://github.com/dynamic-labs/dynamic-auth/issues/12304)
8
+
9
+ ### [4.100.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.100.0...v4.100.1) (2026-09-16)
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * **ethereum-core:** prefer dashboard-saved RPC urls when mapping viem chains ([#12407](https://github.com/dynamic-labs/dynamic-auth/issues/12407)) ([e794605](https://github.com/dynamic-labs/dynamic-auth/commit/e79460541f5d99caee64e9f4699baa1bf1b36544))
15
+ * **wallet-connect:** fix Rabby WalletConnect connection on Mobile [V4 backport] ([#12387](https://github.com/dynamic-labs/dynamic-auth/issues/12387)) ([a2f137f](https://github.com/dynamic-labs/dynamic-auth/commit/a2f137f5dc203f7fbfc4399b9999751c22851654))
16
+
2
17
  ## [4.100.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.99.0...v4.100.0) (2026-09-10)
3
18
 
4
19
 
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.100.0";
6
+ var version = "4.100.2";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.100.0";
2
+ var version = "4.100.2";
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.100.0",
3
+ "version": "4.100.2",
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.100.0",
22
- "@dynamic-labs/sdk-api-core": "0.12.0",
21
+ "@dynamic-labs/assert-package-version": "4.100.2",
22
+ "@dynamic-labs/sdk-api-core": "0.40.0",
23
23
  "@midnight-ntwrk/dapp-connector-api": "4.0.1",
24
- "@dynamic-labs/logger": "4.100.0",
25
- "@dynamic-labs/types": "4.100.0",
26
- "@dynamic-labs/utils": "4.100.0",
27
- "@dynamic-labs/waas": "4.100.0",
28
- "@dynamic-labs/wallet-book": "4.100.0",
29
- "@dynamic-labs/wallet-connector-core": "4.100.0"
24
+ "@dynamic-labs/logger": "4.100.2",
25
+ "@dynamic-labs/types": "4.100.2",
26
+ "@dynamic-labs/utils": "4.100.2",
27
+ "@dynamic-labs/waas": "4.100.2",
28
+ "@dynamic-labs/wallet-book": "4.100.2",
29
+ "@dynamic-labs/wallet-connector-core": "4.100.2"
30
30
  },
31
31
  "peerDependencies": {}
32
32
  }
@@ -57,31 +57,38 @@ declare const DynamicWaasMidnightConnector_base: (abstract new (...args: any[])
57
57
  setGetSessionPublicKeyFunction(getSessionPublicKey: () => Promise<string | undefined>): void;
58
58
  delegateKeyShares({ accountAddress, password, }: {
59
59
  accountAddress: string;
60
+ /**
61
+ * Gets the currently active account address
62
+ * @returns The active account address or undefined if not set
63
+ */
60
64
  password?: string | undefined;
61
65
  }): Promise<void>;
62
66
  createRevocableSignedSessionCallback(): {
63
67
  getSignedSessionId: () => Promise<string>;
64
68
  };
65
69
  createDynamicWaasClient(traceContext?: import("dist/packages/waas/utils/instrumentation").TraceContext | undefined): Promise<import("@dynamic-labs-wallet/browser-wallet-client").DynamicWalletClient>;
66
- detachWaasClient(client: import("@dynamic-labs-wallet/browser-wallet-client").DynamicWalletClient | undefined, reason: string): boolean;
70
+ /**
71
+ * Sets the active account address for this connector
72
+ * @param accountAddress - The Midnight account address to set as active
73
+ */
74
+ detachWaasClient(client: import("@dynamic-labs-wallet/browser-wallet-client").DynamicWalletClient | undefined, reason: string): boolean; /**
75
+ * Requires and returns the signed session ID
76
+ * @returns The signed session ID
77
+ * @throws {DynamicError} If signed session ID is not available
78
+ */
67
79
  getWaasWalletClient(traceContext?: import("dist/packages/waas/utils/instrumentation").TraceContext | undefined, { forceRebuild }?: {
68
80
  forceRebuild?: boolean | undefined;
69
81
  } | undefined): Promise<import("@dynamic-labs-wallet/browser-wallet-client").DynamicWalletClient>;
70
82
  createWalletAccount({ thresholdSignatureScheme, password, bitcoinConfig, businessAccountId, }?: {
71
83
  thresholdSignatureScheme?: string | undefined;
72
84
  password?: string | undefined;
73
- bitcoinConfig?: import("@dynamic-labs-wallet/browser-wallet-client").BitcoinConfig | undefined;
85
+ bitcoinConfig?: import("@dynamic-labs-wallet/core").BitcoinConfig | undefined;
74
86
  businessAccountId?: string | undefined;
75
87
  } | undefined): Promise<{
76
88
  chainName: string;
77
89
  accountAddress: string;
78
90
  publicKeyHex: string;
79
- rawPublicKey: string | Uint8Array | undefined; /**
80
- * Validates that the expected wallet address matches the active wallet
81
- * Updates the active account address if it doesn't match
82
- * @param expectedAddress - The expected wallet address to validate
83
- * @throws {DynamicError} If signed session ID is not available or account is not found
84
- */
91
+ rawPublicKey: string | Uint8Array | undefined;
85
92
  }>;
86
93
  addSignerViaReshare({ accountAddress, walletId, businessAccountId, targetSignerIdentity, signerType, password, }: {
87
94
  accountAddress: string;
@@ -94,7 +101,7 @@ declare const DynamicWaasMidnightConnector_base: (abstract new (...args: any[])
94
101
  };
95
102
  signerType?: "endUser" | "server" | undefined;
96
103
  password?: string | undefined;
97
- }): Promise<{
104
+ }): Promise<import("@dynamic-labs-wallet/core").BusinessAccountActionRequired | {
98
105
  shareSetId: string;
99
106
  }>;
100
107
  importPrivateKey({ privateKey, thresholdSignatureScheme, publicAddressCheck, addressType, legacyWalletId, password, }: {
@@ -175,10 +182,10 @@ declare const DynamicWaasMidnightConnector_base: (abstract new (...args: any[])
175
182
  unlockWallet({ accountAddress, password, }: {
176
183
  accountAddress: string;
177
184
  password?: string | undefined;
178
- }): Promise<import("@dynamic-labs-wallet/browser-wallet-client").GetWalletResponse>;
185
+ }): Promise<import("@dynamic-labs-wallet/core").GetWalletResponse>;
179
186
  getWalletRecoveryState({ accountAddress, }: {
180
187
  accountAddress: string;
181
- }): Promise<import("@dynamic-labs-wallet/browser-wallet-client").WalletRecoveryState>;
188
+ }): Promise<import("@dynamic-labs-wallet/core").WalletRecoveryState>;
182
189
  endSession(reason?: import("@dynamic-labs-sdk/client").LogoutReason | undefined): Promise<void>;
183
190
  getActiveAccountAddress(): Promise<string | undefined>;
184
191
  getConnectedAccounts(): Promise<string[]>;