@onlyworlds/sdk 4.35.0 → 4.36.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 +12 -0
- package/dist/index.d.ts +9 -5
- package/dist/index.js +6 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,18 @@ earlier history lives in git log only.
|
|
|
5
5
|
|
|
6
6
|
## [Unreleased]
|
|
7
7
|
|
|
8
|
+
## [4.36.1] - 2026-10-20
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
|
|
12
|
+
- The reset rule in `isResyncRequired`'s and `changes`' doc comments: on a 409 `resync_required`, walk from zero and keep what the local copy holds that the new walk does not name; a reset never empties a copy. It said replace. Keel says keep since PR 104 (the Captain's ruling, 2026-10-20: sharing is forward-only). No code change.
|
|
13
|
+
|
|
14
|
+
## [4.36.0] - 2026-10-20
|
|
15
|
+
|
|
16
|
+
### Changed
|
|
17
|
+
|
|
18
|
+
- **`fieldLabel`** keeps a word written all in capitals as written (`STR` reads "STR", `plan_B` "Plan B"), so a custom stat block reads the same in every tool (Temper, h63 #8197; Lantern and Atlas both call it). Schema field names are all lowercase, so no schema label changes.
|
|
19
|
+
|
|
8
20
|
## [4.35.0] - 2026-10-20
|
|
9
21
|
|
|
10
22
|
### Added
|
package/dist/index.d.ts
CHANGED
|
@@ -2627,8 +2627,9 @@ declare class OwApiError extends Error {
|
|
|
2627
2627
|
/**
|
|
2628
2628
|
* `/changes` refused the cursor (409 `resync_required`): a guest's view of the world
|
|
2629
2629
|
* changed, or the key's role did (a guest's cursor has another shape). Drop the stored
|
|
2630
|
-
* cursor, walk again from the start, and
|
|
2631
|
-
*
|
|
2630
|
+
* cursor, walk again from the start, and keep what the local copy holds that the new walk
|
|
2631
|
+
* does not name: a reset never empties a copy (keel PR 104, the Captain's ruling: sharing
|
|
2632
|
+
* is forward-only).
|
|
2632
2633
|
*/
|
|
2633
2634
|
get isResyncRequired(): boolean;
|
|
2634
2635
|
/** keel's admission control turned the request away (503 `server_busy`); see retryAfter. */
|
|
@@ -2889,8 +2890,8 @@ declare class OwV2Client {
|
|
|
2889
2890
|
* another shape than everyone else's).
|
|
2890
2891
|
* Zero/absent cursor = full export (byte-aligned with the Folder Format).
|
|
2891
2892
|
* Reset rule: a 409 `resync_required` (err.isResyncRequired) means the key's
|
|
2892
|
-
* view changed (a guest's, or its role): drop the cursor, walk from zero, and
|
|
2893
|
-
*
|
|
2893
|
+
* view changed (a guest's, or its role): drop the cursor, walk from zero, and keep what the
|
|
2894
|
+
* local copy holds that the new walk does not name (keel's own words; sharing is forward-only).
|
|
2894
2895
|
* Citizenship: heaviest route on the platform; default page size is polite.
|
|
2895
2896
|
* keel sends the cursor of a page at the head as a number (an empty page, for anyone
|
|
2896
2897
|
* but a guest); it is handed back as a string, like every cursor here.
|
|
@@ -3348,7 +3349,10 @@ declare const FIELD_ACRONYMS: readonly string[];
|
|
|
3348
3349
|
/**
|
|
3349
3350
|
* A field name as a label: split on `_`, the first word capitalised, every other word
|
|
3350
3351
|
* lowercase, an acronym in capitals wherever it falls ("image_url" → "Image URL",
|
|
3351
|
-
* "url" → "URL", "time_range_current" → "Time range current").
|
|
3352
|
+
* "url" → "URL", "time_range_current" → "Time range current"). A word written all in
|
|
3353
|
+
* capitals stays as written: a custom field named `STR` reads "STR"
|
|
3354
|
+
* (Lantern's stat blocks; Temper, h63 #8197). Every schema field name is lowercase, so this
|
|
3355
|
+
* reaches only names a person or tool chose.
|
|
3352
3356
|
*
|
|
3353
3357
|
* The name is taken as given: a tool that hides an extension prefix (`atlas_`, `x_`,
|
|
3354
3358
|
* `shadow_`) drops it before calling this.
|
package/dist/index.js
CHANGED
|
@@ -105,8 +105,9 @@ var OwApiError = class extends Error {
|
|
|
105
105
|
/**
|
|
106
106
|
* `/changes` refused the cursor (409 `resync_required`): a guest's view of the world
|
|
107
107
|
* changed, or the key's role did (a guest's cursor has another shape). Drop the stored
|
|
108
|
-
* cursor, walk again from the start, and
|
|
109
|
-
*
|
|
108
|
+
* cursor, walk again from the start, and keep what the local copy holds that the new walk
|
|
109
|
+
* does not name: a reset never empties a copy (keel PR 104, the Captain's ruling: sharing
|
|
110
|
+
* is forward-only).
|
|
110
111
|
*/
|
|
111
112
|
get isResyncRequired() {
|
|
112
113
|
return this.status === 409 && this.code === "resync_required";
|
|
@@ -457,8 +458,8 @@ var OwV2Client = class {
|
|
|
457
458
|
* another shape than everyone else's).
|
|
458
459
|
* Zero/absent cursor = full export (byte-aligned with the Folder Format).
|
|
459
460
|
* Reset rule: a 409 `resync_required` (err.isResyncRequired) means the key's
|
|
460
|
-
* view changed (a guest's, or its role): drop the cursor, walk from zero, and
|
|
461
|
-
*
|
|
461
|
+
* view changed (a guest's, or its role): drop the cursor, walk from zero, and keep what the
|
|
462
|
+
* local copy holds that the new walk does not name (keel's own words; sharing is forward-only).
|
|
462
463
|
* Citizenship: heaviest route on the platform; default page size is polite.
|
|
463
464
|
* keel sends the cursor of a page at the head as a number (an empty page, for anyone
|
|
464
465
|
* but a guest); it is handed back as a string, like every cursor here.
|
|
@@ -2021,6 +2022,7 @@ function fieldLabel(name) {
|
|
|
2021
2022
|
return name.split("_").map((word, i) => {
|
|
2022
2023
|
const lower = word.toLowerCase();
|
|
2023
2024
|
if (ACRONYM_SET.has(lower)) return lower.toUpperCase();
|
|
2025
|
+
if (/[A-Z]/.test(word) && word === word.toUpperCase()) return word;
|
|
2024
2026
|
return i === 0 ? lower.charAt(0).toUpperCase() + lower.slice(1) : lower;
|
|
2025
2027
|
}).join(" ");
|
|
2026
2028
|
}
|