Skip to content

Commit 4850afa

Browse files
tmoostingclaude
andcommitted
The layout answers' version key is noted as on its way out
layout_by_kind's and layout_around's answers carry a version key that was always 1. The layout profile's mark carries no version key, and the npm SDK now marks its twin deprecated, to leave at its 5.0. The comment on the key says so here; the key itself stays until then. Comments and the changelog only; the full suite, ruff, the format check and mypy pass. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
1 parent 6ff4ab7 commit 4850afa

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ The package version runs on its own semver; the schema it is generated from is `
44

55
## Unreleased
66

7+
- **The `version` key on `layout_by_kind`'s and `layout_around`'s answers is on its way out.** It was always 1, and the layout profile's mark carries no version key: read `method`. The key stays until the npm SDK drops its twin at 5.0. The README names the address fixture without a case count.
8+
79
- **The OKF exporter names what it leaves at the folder's root.** A folder's `records/` (world data that is not elements, folder format §4.5) stays out of the bundle, which is a translation and not an archive in the folder's format, and the export now says so in a note. So does `media/` or any other entry beside `world.json`, `elements/` and `spatial/`; a dot-prefixed one is a tool's private store (§4.3) and is passed over. Before, all of them were left out with no note, against the module's "nothing is dropped in silence". `RECORDS_DIR` joins the folder module's layout constants.
810

911
## 0.132.1 (2026-11-16)

‎src/onlyworlds/layout_kind.py‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ class KindLayout(TypedDict):
4343
"""What ``layout_by_kind`` answers: one point per node, in the graph's node order, and the method that made them."""
4444

4545
method: Literal["by-kind"]
46-
version: int # always 1: a method's word is its version, so read ``method``, never this number
46+
# Always 1: a method's word is its version, so read ``method``, never this number. The layout profile's
47+
# mark carries no version key; this one leaves when the npm SDK's does, at its 5.0.
48+
version: int
4749
points: list[KindPoint]
4850

4951

@@ -61,7 +63,9 @@ class AroundLayout(TypedDict):
6163
"""What ``layout_around`` answers: the focus and every element within the steps, in the graph's node order."""
6264

6365
method: Literal["around"]
64-
version: int # always 1: a method's word is its version, so read ``method``, never this number
66+
# Always 1: a method's word is its version, so read ``method``, never this number. The layout profile's
67+
# mark carries no version key; this one leaves when the npm SDK's does, at its 5.0.
68+
version: int
6569
points: list[AroundPoint]
6670

6771

0 commit comments

Comments
 (0)