@livestore/webmesh 0.4.0-dev.7 → 0.4.0-dev.9

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/dist/common.d.ts CHANGED
@@ -20,82 +20,82 @@ export declare class EdgeAlreadyExistsError extends EdgeAlreadyExistsError_base
20
20
  }
21
21
  export declare const packetAsOtelAttributes: (packet: typeof Packet.Type) => {
22
22
  packet: {
23
- readonly target: string;
24
- readonly _tag: "DirectChannelRequest";
25
23
  readonly remainingHops?: readonly string[] | undefined;
26
24
  readonly channelVersion: number;
27
25
  readonly reqId: string | undefined;
28
26
  readonly sourceId: string;
29
27
  readonly id: string;
28
+ readonly target: string;
30
29
  readonly source: string;
31
30
  readonly channelName: string;
32
31
  readonly hops: readonly string[];
32
+ readonly _tag: "DirectChannelRequest";
33
33
  } | {
34
- readonly target: string;
35
- readonly _tag: "DirectChannelResponseNoTransferables";
36
34
  readonly remainingHops: readonly string[];
37
35
  readonly reqId: string;
38
36
  readonly id: string;
37
+ readonly target: string;
39
38
  readonly source: string;
40
39
  readonly channelName: string;
41
40
  readonly hops: readonly string[];
41
+ readonly _tag: "DirectChannelResponseNoTransferables";
42
42
  } | {
43
- readonly target: string;
44
- readonly _tag: "ProxyChannelRequest";
45
43
  readonly remainingHops?: undefined;
46
44
  readonly id: string;
45
+ readonly target: string;
47
46
  readonly source: string;
48
47
  readonly channelName: string;
49
48
  readonly hops: readonly string[];
49
+ readonly _tag: "ProxyChannelRequest";
50
50
  readonly channelIdCandidate: string;
51
51
  } | {
52
- readonly target: string;
53
- readonly _tag: "ProxyChannelResponseSuccess";
54
52
  readonly remainingHops: readonly string[];
55
53
  readonly reqId: string;
56
54
  readonly id: string;
55
+ readonly target: string;
57
56
  readonly source: string;
58
57
  readonly channelName: string;
59
58
  readonly hops: readonly string[];
59
+ readonly _tag: "ProxyChannelResponseSuccess";
60
60
  readonly channelIdCandidate: string;
61
61
  readonly combinedChannelId: string;
62
62
  } | {
63
- readonly target: string;
64
- readonly _tag: "ProxyChannelPayloadAck";
65
63
  readonly remainingHops: readonly string[];
66
64
  readonly reqId: string;
67
65
  readonly id: string;
66
+ readonly target: string;
68
67
  readonly source: string;
69
68
  readonly channelName: string;
70
69
  readonly hops: readonly string[];
70
+ readonly _tag: "ProxyChannelPayloadAck";
71
71
  readonly combinedChannelId: string;
72
72
  } | {
73
- readonly target: string;
74
- readonly _tag: "NetworkEdgeAdded";
75
73
  readonly id: string;
74
+ readonly target: string;
76
75
  readonly source: string;
76
+ readonly _tag: "NetworkEdgeAdded";
77
77
  } | {
78
- readonly target: "-";
79
- readonly _tag: "NetworkTopologyRequest";
80
78
  readonly id: string;
79
+ readonly target: "-";
81
80
  readonly source: string;
82
81
  readonly hops: readonly string[];
82
+ readonly _tag: "NetworkTopologyRequest";
83
83
  } | {
84
- readonly target: "-";
85
- readonly _tag: "NetworkTopologyResponse";
86
84
  readonly remainingHops: readonly string[];
87
85
  readonly reqId: string;
88
86
  readonly id: string;
87
+ readonly target: "-";
89
88
  readonly source: string;
89
+ readonly _tag: "NetworkTopologyResponse";
90
90
  readonly nodeName: string;
91
91
  readonly edges: readonly string[];
92
92
  } | {
93
- readonly target: "-";
94
- readonly _tag: "BroadcastChannelPacket";
95
93
  readonly id: string;
94
+ readonly target: "-";
96
95
  readonly source: string;
97
96
  readonly channelName: string;
98
97
  readonly hops: readonly string[];
98
+ readonly _tag: "BroadcastChannelPacket";
99
99
  readonly payload: any;
100
100
  };
101
101
  packetId: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livestore/webmesh",
3
- "version": "0.4.0-dev.7",
3
+ "version": "0.4.0-dev.9",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "exports": {
@@ -8,11 +8,11 @@
8
8
  "./websocket-server": "./dist/websocket-server.js"
9
9
  },
10
10
  "dependencies": {
11
- "@livestore/utils": "0.4.0-dev.7"
11
+ "@livestore/utils": "0.4.0-dev.9"
12
12
  },
13
13
  "devDependencies": {
14
14
  "vitest": "3.2.4",
15
- "@livestore/utils-dev": "0.4.0-dev.7"
15
+ "@livestore/utils-dev": "0.4.0-dev.9"
16
16
  },
17
17
  "files": [
18
18
  "package.json",