ball2d 0.1.0 → 0.1.1
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/README.md +3 -4
- package/dist/browser.js +1 -1
- package/dist/node.js +1 -1
- package/package.json +5 -3
package/README.md
CHANGED
|
@@ -18,8 +18,7 @@ Importing it does not register a window global or allocate a room. Creating a
|
|
|
18
18
|
room explicitly starts the existing browser host and its network lifecycle.
|
|
19
19
|
|
|
20
20
|
`RoomConfig`, `Room`, `HostPlayer`, `HostScores` and `HostDiscProperties` are exported
|
|
21
|
-
types. `readReplay` reads Ball2D recordings.
|
|
22
|
-
compatibility shim.
|
|
21
|
+
types. `readReplay` reads Ball2D recordings.
|
|
23
22
|
|
|
24
23
|
State-changing SDK commands return Promises and run in call order. A synchronous
|
|
25
24
|
getter immediately after a command still observes the earlier state; await the
|
|
@@ -58,7 +57,7 @@ network requests or a WASM instance. It uses the same parser and limits as room
|
|
|
58
57
|
creation. Malformed/unsupported input throws; ignored field names become bounded
|
|
59
58
|
warnings. The returned `StadiumValidation` and warning array are readonly and
|
|
60
59
|
frozen. No geometry or internal engine objects are exposed. Passing validation
|
|
61
|
-
means Ball2D can parse the source
|
|
60
|
+
means Ball2D can parse the source; it does not guarantee every gameplay outcome.
|
|
62
61
|
Use the separate `ball2d/node` entry for native room hosting.
|
|
63
62
|
|
|
64
63
|
`room.signal` is a readonly `AbortSignal` that aborts once when host closure
|
|
@@ -149,7 +148,7 @@ continue admission after cancellation.
|
|
|
149
148
|
## Install
|
|
150
149
|
|
|
151
150
|
```sh
|
|
152
|
-
npm install ball2d@0.1.
|
|
151
|
+
npm install ball2d@0.1.1
|
|
153
152
|
```
|
|
154
153
|
|
|
155
154
|
The application source remains private. The package retains its existing
|
package/dist/browser.js
CHANGED
|
@@ -47,7 +47,7 @@ var u = /* @__PURE__ */ new Set([
|
|
|
47
47
|
function d(e) {
|
|
48
48
|
if (!e || typeof e != "object" || Array.isArray(e)) throw Error("Room configuration must be an object");
|
|
49
49
|
for (let t of Object.keys(e)) {
|
|
50
|
-
if (t === "token") throw Error("
|
|
50
|
+
if (t === "token") throw Error("External service tokens are not supported. Ball2D join verification is configured on the room.");
|
|
51
51
|
if (t === "geo") throw Error("Geolocation overrides are not supported. Room country comes from the host connection.");
|
|
52
52
|
if (!u.has(t)) throw Error(`Unknown room setting: ${t}`);
|
|
53
53
|
}
|
package/dist/node.js
CHANGED
|
@@ -104,7 +104,7 @@ var supported = /* @__PURE__ */ new Set([
|
|
|
104
104
|
function hostConfig(input) {
|
|
105
105
|
if (!input || typeof input !== "object" || Array.isArray(input)) throw Error("Room configuration must be an object");
|
|
106
106
|
for (const key of Object.keys(input)) {
|
|
107
|
-
if (key === "token") throw Error("
|
|
107
|
+
if (key === "token") throw Error("External service tokens are not supported. Ball2D join verification is configured on the room.");
|
|
108
108
|
if (key === "geo") throw Error("Geolocation overrides are not supported. Room country comes from the host connection.");
|
|
109
109
|
if (!supported.has(key)) throw Error(`Unknown room setting: ${key}`);
|
|
110
110
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ball2d",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Ball2D browser and experimental native Node room SDK",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -22,10 +22,12 @@
|
|
|
22
22
|
"homepage": "https://ball2d.com",
|
|
23
23
|
"repository": {
|
|
24
24
|
"type": "git",
|
|
25
|
-
"url": "git+https://github.com/fillbyte/ball2d.
|
|
26
|
-
"directory": "packages/ball2d"
|
|
25
|
+
"url": "git+https://github.com/fillbyte/ball2d.git"
|
|
27
26
|
},
|
|
28
27
|
"engines": {
|
|
29
28
|
"node": ">=24"
|
|
29
|
+
},
|
|
30
|
+
"bugs": {
|
|
31
|
+
"url": "https://github.com/fillbyte/ball2d/issues"
|
|
30
32
|
}
|
|
31
33
|
}
|