@kheopskit/react 6.0.0-rc.1 → 6.0.0-rc.3

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,5 +1,23 @@
1
1
  # @kheopskit/react
2
2
 
3
+ ## 6.0.0-rc.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#160](https://github.com/kheopskit/kheopskit/pull/160) [`4e55488`](https://github.com/kheopskit/kheopskit/commit/4e5548833b782669f00e33452f5ed4dff9ddcac0) Thanks [@0xKheops](https://github.com/0xKheops)! - Fixed: a remembered wallet forgotten before it injects is no longer reconnected when it does. A placeholder's `disconnect()` now forgets the wallet, or calls the live wallet's `disconnect()` once that one is discovered. `store.forgetWallet(walletId)` during the session cancels the automatic reconnect for good, even if the wallet is remembered again. `disconnect()` now forgets the wallet whatever its status, including while its automatic reconnect waits for the extension or after that reconnect failed, so the next load does not reconnect it. A wallet the user disconnects during hydration no longer holds `isHydrating` until `hydrationTimeout`.
8
+
9
+ ## 6.0.0-rc.2
10
+
11
+ ### Minor Changes
12
+
13
+ - [#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`.
14
+
15
+ ### Patch Changes
16
+
17
+ - [#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.
18
+
19
+ 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`.
20
+
3
21
  ## 6.0.0-rc.1
4
22
 
5
23
  ### Patch 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.1",
3
+ "version": "6.0.0-rc.3",
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.1",
39
+ "@kheopskit/core": "^6.0.0-rc.3",
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.1"
50
+ "@kheopskit/core": "6.0.0-rc.3"
51
51
  },
52
52
  "tsdown": {
53
53
  "entry": [