@onlyworlds/sdk 4.82.0 → 4.82.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 +6 -0
- package/dist/index.d.ts +6 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,12 @@ earlier history lives in git log only.
|
|
|
5
5
|
|
|
6
6
|
## [Unreleased]
|
|
7
7
|
|
|
8
|
+
## [4.82.1] - 2026-10-26
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
|
|
12
|
+
- **The draught's words follow keel's 2026-10-26 change.** Under `compact: true` every element body in the packet now leaves out each field whose value is `null`, `""`, `[]` or `{}` (`id`, `type` and `name` always stay; `0` and `false` are values and stay), so a compact body is the list route's body less its empty fields, not byte for byte the same. And a Message without the room mark is placed as any Narrative unless `messages` is named, when it is in `messages` and no other section; a room-marked Message is in `messages` or nowhere. The doc comments on `draught()`, `OwDraughtItem.element` and `OwDraughtCompact` said the body was the list route's exactly; they now say both rules. Types only in words: `OwElement` already lets every field but `id`, `type` and `name` be absent, so no type changed.
|
|
13
|
+
|
|
8
14
|
## [4.82.0] - 2026-10-26
|
|
9
15
|
|
|
10
16
|
### Added
|
package/dist/index.d.ts
CHANGED
|
@@ -2822,11 +2822,11 @@ interface OwDraughtItem {
|
|
|
2822
2822
|
grade: 'whole' | 'known_of';
|
|
2823
2823
|
/** In `events` and `knowledge`: false when it carries no date (ranked after the dated). */
|
|
2824
2824
|
dated?: boolean;
|
|
2825
|
-
/** The element's body
|
|
2825
|
+
/** The element's body as the list route serves it to the same reader; under `compact`, less each field that is null, "", [] or {} (`id`, `type` and `name` always stay): read a missing field as empty. */
|
|
2826
2826
|
element: OwElement;
|
|
2827
2827
|
}
|
|
2828
2828
|
/** One Character's context in one read, GET /character/{id}/context (the draught). */
|
|
2829
|
-
/** The draught under `compact`: every section may be absent, and so may `cut` (nothing was cut). */
|
|
2829
|
+
/** The draught under `compact`: every section may be absent, and so may `cut` (nothing was cut); each element body leaves out its empty fields, `id`, `type` and `name` kept. */
|
|
2830
2830
|
type OwDraughtCompact = Omit<OwDraught, 'cut'> & {
|
|
2831
2831
|
cut?: Record<string, number>;
|
|
2832
2832
|
};
|
|
@@ -3706,7 +3706,10 @@ declare class OwV2Client {
|
|
|
3706
3706
|
* 404). `asOf` is a filter on the elements' own dates, not time travel. A `cut` that is not
|
|
3707
3707
|
* empty means the serving is partial (`cut.proposed` also counts proposed elements left out because
|
|
3708
3708
|
* the component was not named). `compact: true` leaves out every empty section and an empty `cut`,
|
|
3709
|
-
* the frame and every null kept,
|
|
3709
|
+
* the frame and every null kept, and leaves out each element body's empty fields (`null`, `""`,
|
|
3710
|
+
* `[]`, `{}`; `id`, `type` and `name` always stay), answered as `OwDraughtCompact`. A Message
|
|
3711
|
+
* without the room mark is placed as any Narrative unless `messages` is named, when it is there
|
|
3712
|
+
* and in no other section; a room-marked Message is in `messages` or nowhere. Served
|
|
3710
3713
|
* `Cache-Control: private, no-store`.
|
|
3711
3714
|
*/
|
|
3712
3715
|
draught(characterId: string, policy?: OwDraughtPolicy & {
|