@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 +24 -0
- package/dist/index.bundle.js +2 -2
- package/dist/index.d.ts +9 -0
- package/dist/index.js +9 -0
- package/dist/leader/index.d.ts +1 -1
- package/dist/net_leaf.d.ts +27 -27
- package/dist/net_leaf.js +88 -88
- package/dist/net_leaf_bg.wasm +0 -0
- package/dist/net_leaf_bg.wasm.d.ts +2 -2
- package/dist/netcode/index.d.ts +3 -0
- package/dist/netcode/index.js +4 -0
- package/dist/store/host.d.ts +19 -3
- package/dist/store/host.js +21 -7
- package/dist/store/index.d.ts +23 -0
- package/dist/store/index.js +16 -0
- package/dist/store/join.d.ts +6 -1
- package/dist/store/join.js +14 -8
- package/dist/world/link.js +3 -3
- package/dist/world/regions.js +3 -3
- package/package.json +1 -1
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
|