@net-mesh/browser 0.39.0 → 0.41.0

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
@@ -14,6 +14,30 @@ missing method at the call site rather than at install time. Unlike
14
14
  `@net-mesh/sdk`, this package never depends on `@net-mesh/core` — see
15
15
  the README on why it is a sibling package rather than a sub-path.
16
16
 
17
+ ## 0.41.0 — the whole module surface is exported
18
+
19
+ - **Every module-level export is reachable from an entry point.** Code
20
+ that builds its own transport or tooling on the primitives the
21
+ high-level verbs use no longer copies them out of the package:
22
+ - `@net-mesh/browser/netcode`: the wire helpers `eventPeer`,
23
+ `peerHex`, `encodeFrame`, `decodeFrame`, `chunkOf`,
24
+ `snapshotFrames` and the limits;
25
+ - `@net-mesh/browser/store`: the store internals (wire codec,
26
+ ledger, chunker, assembly, patch, owner and replica);
27
+ - the root: the peer driver, the org trampolines and refusal
28
+ constants, `StreamIdentityError` and the `LeafWasmOrg*` types;
29
+ - `leader`: `PromotionFailedEvent`.
30
+
31
+ Additive: nothing that was exported before changed.
32
+ - **A host whose hex node id has no letters is joinable.** `joinStore`
33
+ read its `host` the way it reads an event's peer, where a string of
34
+ digits is decimal, so for about one host id in 1,800 the joiner
35
+ addressed a different node and could never join. An id the caller
36
+ holds (a lobby's host, a descriptor's `peerIdHex`, `nodeIdHex()`) is
37
+ now read as hex. The same fix covers the host store's own authority,
38
+ the region directory's hosts and the handoff link. 0.39 fixed the
39
+ joiner's own id; this is the host's.
40
+
17
41
  ## 0.39.0 — connectPeer waits for an attempt under way
18
42
 
19
43
  - **`connectPeer` no longer cancels an attempt that is still under