@dynamic-labs/starknet 2.1.0-alpha.2 → 2.1.0-alpha.4
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,30 @@
|
|
|
1
1
|
|
|
2
|
+
## [2.1.0-alpha.4](https://github.com/dynamic-labs/DynamicAuth/compare/v2.1.0-alpha.3...v2.1.0-alpha.4) (2024-04-23)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* add email and sms to client auth module ([#5436](https://github.com/dynamic-labs/DynamicAuth/issues/5436)) ([5420476](https://github.com/dynamic-labs/DynamicAuth/commit/5420476d1ba38fd4f987f28e9aefbfb3e61ea2bf))
|
|
8
|
+
* headless create passkeys for embedded wallets ([#5395](https://github.com/dynamic-labs/DynamicAuth/issues/5395)) ([0b64099](https://github.com/dynamic-labs/DynamicAuth/commit/0b6409968457f65886248f0a0879e39ec3803fd0))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* prevent wagmi from reconnect when DynamicContextProvider rerender ([#5446](https://github.com/dynamic-labs/DynamicAuth/issues/5446)) ([33337af](https://github.com/dynamic-labs/DynamicAuth/commit/33337af76786963cb3db7fa7c58c1292c529d0ac))
|
|
14
|
+
|
|
15
|
+
## [2.1.0-alpha.3](https://github.com/dynamic-labs/DynamicAuth/compare/v2.1.0-alpha.2...v2.1.0-alpha.3) (2024-04-23)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Features
|
|
19
|
+
|
|
20
|
+
* add merge user accounts flow ([#5429](https://github.com/dynamic-labs/DynamicAuth/issues/5429)) ([41d4239](https://github.com/dynamic-labs/DynamicAuth/commit/41d423906625e28004ba8f20baf57847ed8bf5d0))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### Bug Fixes
|
|
24
|
+
|
|
25
|
+
* disconnect wallet on lock in connect-only ([#5422](https://github.com/dynamic-labs/DynamicAuth/issues/5422)) ([a26f9fe](https://github.com/dynamic-labs/DynamicAuth/commit/a26f9fe93cf8568f1482e10b831de98c77fb2a2d))
|
|
26
|
+
* useReactiveProxy to stop proxing when it finds a reactive value ([#5428](https://github.com/dynamic-labs/DynamicAuth/issues/5428)) ([838dce9](https://github.com/dynamic-labs/DynamicAuth/commit/838dce9ee953361e41772239a91adb1dd8d40234))
|
|
27
|
+
|
|
2
28
|
## [2.1.0-alpha.2](https://github.com/dynamic-labs/DynamicAuth/compare/v2.1.0-alpha.1...v2.1.0-alpha.2) (2024-04-19)
|
|
3
29
|
|
|
4
30
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/starknet",
|
|
3
|
-
"version": "2.1.0-alpha.
|
|
3
|
+
"version": "2.1.0-alpha.4",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/dynamic-labs/DynamicAuth.git",
|
|
@@ -30,11 +30,11 @@
|
|
|
30
30
|
"get-starknet-core": "3.2.0",
|
|
31
31
|
"text-encoding": "0.7.0",
|
|
32
32
|
"starknetkit": "1.1.3",
|
|
33
|
-
"@dynamic-labs/sdk-api-core": "0.0.
|
|
34
|
-
"@dynamic-labs/rpc-provider-starknet": "2.1.0-alpha.
|
|
35
|
-
"@dynamic-labs/utils": "2.1.0-alpha.
|
|
36
|
-
"@dynamic-labs/wallet-book": "2.1.0-alpha.
|
|
37
|
-
"@dynamic-labs/wallet-connector-core": "2.1.0-alpha.
|
|
33
|
+
"@dynamic-labs/sdk-api-core": "0.0.425",
|
|
34
|
+
"@dynamic-labs/rpc-provider-starknet": "2.1.0-alpha.4",
|
|
35
|
+
"@dynamic-labs/utils": "2.1.0-alpha.4",
|
|
36
|
+
"@dynamic-labs/wallet-book": "2.1.0-alpha.4",
|
|
37
|
+
"@dynamic-labs/wallet-connector-core": "2.1.0-alpha.4"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {}
|
|
40
40
|
}
|
|
@@ -209,13 +209,8 @@ class StarknetWalletConnector extends walletConnectorCore.WalletConnectorBase {
|
|
|
209
209
|
return walletConnectorCore.logger.error('Wallet has not been found');
|
|
210
210
|
}
|
|
211
211
|
this.handleAccountChange = (address) => _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
212
|
-
if (!(yield wallet.isPreauthorized()) && !address) {
|
|
213
|
-
this.emit('disconnect');
|
|
214
|
-
return;
|
|
215
|
-
}
|
|
216
|
-
// this is the case where the wallet emits an empty account change event
|
|
217
|
-
// when the user is simply switching network
|
|
218
212
|
if (!address) {
|
|
213
|
+
this.emit('disconnect');
|
|
219
214
|
return;
|
|
220
215
|
}
|
|
221
216
|
if (address.toString()) {
|
|
@@ -205,13 +205,8 @@ class StarknetWalletConnector extends WalletConnectorBase {
|
|
|
205
205
|
return logger.error('Wallet has not been found');
|
|
206
206
|
}
|
|
207
207
|
this.handleAccountChange = (address) => __awaiter(this, void 0, void 0, function* () {
|
|
208
|
-
if (!(yield wallet.isPreauthorized()) && !address) {
|
|
209
|
-
this.emit('disconnect');
|
|
210
|
-
return;
|
|
211
|
-
}
|
|
212
|
-
// this is the case where the wallet emits an empty account change event
|
|
213
|
-
// when the user is simply switching network
|
|
214
208
|
if (!address) {
|
|
209
|
+
this.emit('disconnect');
|
|
215
210
|
return;
|
|
216
211
|
}
|
|
217
212
|
if (address.toString()) {
|