@kheopskit/react 6.0.0-rc.0 → 6.0.0-rc.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 +18 -0
- package/README.md +6 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @kheopskit/react
|
|
2
2
|
|
|
3
|
+
## 6.0.0-rc.2
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#155](https://github.com/kheopskit/kheopskit/pull/155) [`d3a05e1`](https://github.com/kheopskit/kheopskit/commit/d3a05e14f6eebebf182f3d2ddfee4057321fbab0) Thanks [@0xKheops](https://github.com/0xKheops)! - Added: `account.name` is readable on every account type. Solana accounts take it from the Wallet Standard `label`, and Ethereum accounts leave it `undefined`.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- [#157](https://github.com/kheopskit/kheopskit/pull/157) [`2eb5c08`](https://github.com/kheopskit/kheopskit/commit/2eb5c086c201763e84065e05785012d0a845d05d) Thanks [@0xKheops](https://github.com/0xKheops)! - Fixed: Polkadot discovery now reads `window.injectedWeb3` at `load` and 100, 300, 600 and 1100 ms after it, as it already did after subscribe. `isDiscovering` is `true` until the last read, 1100 ms after `load` or after subscribe, whichever is later, so no read is pending once it turns `false`, and that emission lists every extension injected before that read. With `config.walletConnect`, it also waits for the connector to load. A subscription that starts after `load` no longer reads `false` from its first emission. On the server, the registry is read once and no timer is set.
|
|
12
|
+
|
|
13
|
+
Hydration waits for discovery only while a cached wallet has not been discovered. When every cached wallet is discovered and settled, `isHydrating` ends at the grace period without waiting for `load`.
|
|
14
|
+
|
|
15
|
+
## 6.0.0-rc.1
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- [#152](https://github.com/kheopskit/kheopskit/pull/152) [`af84029`](https://github.com/kheopskit/kheopskit/commit/af84029112400600db23a901bb8e8fea10366f2b) Thanks [@0xKheops](https://github.com/0xKheops)! - Fixed: a Polkadot `connect()` started while the extension prompt of an abandoned attempt (aborted `signal` or `disconnect()`) is still open now waits for that prompt instead of calling `enable()` again, and connects when the user approves it. Before, Talisman rejected the new attempt with `USER_REJECTED` ("has not been authorised") and polkadot-js with `CONNECT_FAILED` ("Pending authorisation request already exists"), and approving the first prompt connected nothing.
|
|
20
|
+
|
|
3
21
|
## 6.0.0-rc.0
|
|
4
22
|
|
|
5
23
|
### Major Changes
|
package/README.md
CHANGED
|
@@ -97,6 +97,12 @@ const { wallets, isHydrating } = useWallets();
|
|
|
97
97
|
const accounts = useAccounts();
|
|
98
98
|
```
|
|
99
99
|
|
|
100
|
+
Every account has an optional `name`, so `account.name || account.address`
|
|
101
|
+
typechecks on the whole union. Polkadot accounts get the name the extension
|
|
102
|
+
lists. Solana accounts get the wallet's `label` when it provides one. Ethereum
|
|
103
|
+
accounts never have a name. A wallet can report an empty name, which `||`
|
|
104
|
+
replaces with the address.
|
|
105
|
+
|
|
100
106
|
### Without the factory
|
|
101
107
|
|
|
102
108
|
You can also use the `KheopskitProvider` component directly and recover precise
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kheopskit/react",
|
|
3
|
-
"version": "6.0.0-rc.
|
|
3
|
+
"version": "6.0.0-rc.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"private": false,
|
|
6
6
|
"sideEffects": false,
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
},
|
|
37
37
|
"license": "ISC",
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"@kheopskit/core": "^6.0.0-rc.
|
|
39
|
+
"@kheopskit/core": "^6.0.0-rc.2",
|
|
40
40
|
"react": ">=18.0.0",
|
|
41
41
|
"react-dom": ">=18.0.0",
|
|
42
42
|
"rxjs": ">=7.0.0"
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"react": "^19.3.0",
|
|
48
48
|
"react-dom": "^19.3.0",
|
|
49
49
|
"rxjs": "^7.8.2",
|
|
50
|
-
"@kheopskit/core": "6.0.0-rc.
|
|
50
|
+
"@kheopskit/core": "6.0.0-rc.2"
|
|
51
51
|
},
|
|
52
52
|
"tsdown": {
|
|
53
53
|
"entry": [
|