@bloopjs/web 0.0.81 → 0.0.82

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.
@@ -1 +1 @@
1
- {"version":3,"file":"scaffold.d.ts","sourceRoot":"","sources":["../../src/netcode/scaffold.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAIrC,MAAM,MAAM,uBAAuB,GAAG;IACpC,yCAAyC;IACzC,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,+BAA+B;IAC/B,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;CAC3B,CAAC;AAEF;;;GAGG;AACH,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,MAAM,EACd,GAAG,EAAE,GAAG,EACR,IAAI,CAAC,EAAE,uBAAuB,GAC7B,IAAI,CAuJN"}
1
+ {"version":3,"file":"scaffold.d.ts","sourceRoot":"","sources":["../../src/netcode/scaffold.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAIrC,MAAM,MAAM,uBAAuB,GAAG;IACpC,yCAAyC;IACzC,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,+BAA+B;IAC/B,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;CAC3B,CAAC;AAEF;;;GAGG;AACH,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,MAAM,EACd,GAAG,EAAE,GAAG,EACR,IAAI,CAAC,EAAE,uBAAuB,GAC7B,IAAI,CAmJN"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bloopjs/web",
3
- "version": "0.0.81",
3
+ "version": "0.0.82",
4
4
  "author": "Neil Sarkar",
5
5
  "type": "module",
6
6
  "repository": {
@@ -33,8 +33,8 @@
33
33
  "typescript": "^5"
34
34
  },
35
35
  "dependencies": {
36
- "@bloopjs/bloop": "0.0.81",
37
- "@bloopjs/engine": "0.0.81",
36
+ "@bloopjs/bloop": "0.0.82",
37
+ "@bloopjs/engine": "0.0.82",
38
38
  "@preact/signals": "^1.3.1",
39
39
  "partysocket": "^1.1.6",
40
40
  "preact": "^10.25.4"
@@ -91,7 +91,6 @@ export function joinRollbackRoom(
91
91
 
92
92
  app.joinRoom(roomId, {
93
93
  onPeerIdAssign: (peerId) => {
94
- console.log(`Assigned peer ID: ${peerId}`);
95
94
  localStringPeerId = peerId;
96
95
  },
97
96
  onBrokerMessage: (_message) => {},
@@ -99,7 +98,6 @@ export function joinRollbackRoom(
99
98
  incomingPackets.push(new Uint8Array(data));
100
99
  },
101
100
  onDataChannelClose(peerId, reliable) {
102
- console.log(`Data channel closed: ${peerId} (reliable: ${reliable})`);
103
101
  if (!reliable && remotePeerId !== null) {
104
102
  app.sim.emit.network("peer:leave", { peerId: remotePeerId });
105
103
  sessionActive = false;
@@ -107,7 +105,6 @@ export function joinRollbackRoom(
107
105
  }
108
106
  },
109
107
  onDataChannelOpen(peerId, reliable, channel) {
110
- console.log(`Data channel opened: ${peerId} (reliable: ${reliable})`);
111
108
  if (!reliable) {
112
109
  udp = channel;
113
110
 
@@ -130,7 +127,6 @@ export function joinRollbackRoom(
130
127
  app.sim.emit.network("session:start", {});
131
128
 
132
129
  sessionActive = true;
133
- console.log(`[netcode] Session started at frame ${app.sim.time.frame}`);
134
130
  opts?.onSessionStart?.();
135
131
  }
136
132
  },