@onlyworlds/sdk 4.135.0 → 4.135.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/CHANGELOG.md CHANGED
@@ -5,6 +5,12 @@ earlier history lives in git log only.
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
+ ## [4.135.1] - 2026-11-09
9
+
10
+ ### Fixed
11
+
12
+ - `trailByPlace` no longer runs forever when a row of the frame has no free point left: more Pins on one row (one y and z) than the frame is wide plus one. It is refused with a TypeError naming the element, its row and the frame's width. A taken point tries every x on its row first, as before. The shared fixture gains the boundary pair (two on one point in a frame 1 wide fit; a third is refused) and a pin given as whole floats, whose words read as whole numbers.
13
+
8
14
  ## [4.135.0] - 2026-11-09
9
15
 
10
16
  ### Added
package/dist/index.d.ts CHANGED
@@ -5974,7 +5974,7 @@ declare function roundHalfEven(v: number): number;
5974
5974
  * `r0 + c * sqrt(n)` and `n * angle`), at its tier's height. Last, every point is rounded half to even, kept inside
5975
5975
  * the frame, and, by element id order, a point already taken moves along x from its own point (one pixel right, one
5976
5976
  * left, two right, two left, and on), so no two Pins share a point. Throws a TypeError, naming what, on an input it cannot place: an unknown key, a place with no one rule, a
5977
- * reference to a place it does not hold, a kind with no tier, an id twice.
5977
+ * reference to a place it does not hold, a kind with no tier, an id twice, a row of the frame with no free point left.
5978
5978
  */
5979
5979
  declare function trailByPlace(input: OwTrailInput): OwTrailLayout;
5980
5980
 
package/dist/index.js CHANGED
@@ -4209,6 +4209,7 @@ function trailByPlace(input) {
4209
4209
  }
4210
4210
  const x0 = p.x;
4211
4211
  for (let step = 1; taken.has(`${p.x},${p.y},${p.z}`); step++) {
4212
+ if (step > 2 * W + 2) fail(`no free point left for ${p.name} (${p.element_id}) on its row (y ${p.y}, z ${p.z}): the frame is ${W} wide`);
4212
4213
  p.x = Math.min(Math.max(x0 + (step % 2 ? 1 : -1) * Math.floor((step + 1) / 2), 0), W);
4213
4214
  nudged++;
4214
4215
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onlyworlds/sdk",
3
- "version": "4.135.0",
3
+ "version": "4.135.1",
4
4
  "description": "TypeScript SDK for the OnlyWorlds API - build world-building applications with type safety",
5
5
  "type": "module",
6
6
  "exports": {