@onlyworlds/sdk 4.102.3 → 4.102.5

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,18 @@ earlier history lives in git log only.
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
+ ## [4.102.5] - 2026-10-29
9
+
10
+ ### Fixed
11
+
12
+ - **`readCalendarConfig` refuses an empty `grain`.** The calendar profile requires `grain` as a string, and an empty string is no grain: the reader took `grain: ""` as a calendar while `validateCalendarConfig` already refused it. It now returns `null` (show bare numbers), as the Python package's reader does from 0.84.3; schema-dist's next serial carries the case.
13
+
14
+ ## [4.102.4] - 2026-10-29
15
+
16
+ ### Fixed
17
+
18
+ - **`OwMember.name` and `OwMe.name` say what the server serves.** A roster row's `name` is an agent's or a player's name to every reader, and on a person's row the person's username, served only to the owner's keys and co-builders and absent for everyone else. On `me()` it is your agent's or player's name. Only the doc comments changed; the types are the same.
19
+
8
20
  ## [4.102.3] - 2026-10-29
9
21
 
10
22
  ### Changed
package/dist/index.d.ts CHANGED
@@ -2604,7 +2604,7 @@ interface OwMe {
2604
2604
  * key cannot see; then it names `lenses`. Saving the list you were shown keeps that lens where it stands.
2605
2605
  */
2606
2606
  x_served_trimmed?: 'lenses'[];
2607
- /** Agent seats only: the agent's name. */
2607
+ /** Agent and player seats only: your agent's or your player's name. */
2608
2608
  name?: string;
2609
2609
  /** Who you are here, who answers for you, and the house rules. */
2610
2610
  front_door: OwFrontDoor;
@@ -2708,7 +2708,11 @@ interface OwMember {
2708
2708
  character: string | null;
2709
2709
  /** `removed` rows stay, so their elements keep `created_by`. */
2710
2710
  status: 'active' | 'removed';
2711
- /** Agent rows only: the agent's name. */
2711
+ /**
2712
+ * Agent and player rows: the agent's or the player's name, to every reader. Person rows: the
2713
+ * person's username, served only to the owner's keys and co-builders (a co-builder's AI seat
2714
+ * included); absent for every other reader, and on a row whose account was deleted.
2715
+ */
2712
2716
  name?: string;
2713
2717
  /**
2714
2718
  * The lenses this row starts with, lens ids in order: the ones it chose, or, for a live seat that
package/dist/index.js CHANGED
@@ -6094,7 +6094,7 @@ function validateCalendarConfig(cfg) {
6094
6094
  function readCalendarConfig(value) {
6095
6095
  if (typeof value !== "object" || value === null) return null;
6096
6096
  const cfg = value;
6097
- if (cfg.version !== 1 && cfg.version !== 2 || typeof cfg.grain !== "string") return null;
6097
+ if (cfg.version !== 1 && cfg.version !== 2 || typeof cfg.grain !== "string" || cfg.grain === "") return null;
6098
6098
  const months = cfg.bundles?.months;
6099
6099
  if (months && (!Array.isArray(months.names) || !Array.isArray(months.lengths) || months.names.length !== months.lengths.length || months.names.length === 0 || !months.names.every(isString))) return null;
6100
6100
  if (cfg.eras != null && !Array.isArray(cfg.eras)) return null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onlyworlds/sdk",
3
- "version": "4.102.3",
3
+ "version": "4.102.5",
4
4
  "description": "TypeScript SDK for the OnlyWorlds API - build world-building applications with type safety",
5
5
  "type": "module",
6
6
  "exports": {