@onlyworlds/sdk 4.16.0 → 4.17.0

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,15 @@ earlier history lives in git log only.
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
+ ## [4.17.0] — 2026-10-12
9
+
10
+ ### Added
11
+ - **`changesAll` returns `epoch`** beside `cursor` and `head`: the last page's, so a full walk
12
+ says which view epoch it ran under (a guest's integer; `null` for other keys or a keel
13
+ without the field) and the first poll after it needs no extra walk to learn it. Live on
14
+ Moppetopia: a full walk of 465 changes returns `{ cursor, head: 818, epoch: null }`. The first
15
+ tests of `changesAll`'s return value (Temper, h29 #3534).
16
+
8
17
  ## [4.16.0] — 2026-10-12
9
18
 
10
19
  ### Added
@@ -16,6 +25,8 @@ earlier history lives in git log only.
16
25
  page both carry `epoch: null`). The wire gate now holds `OwChangesPage` and `OwBulkResponse`
17
26
  to keel's `ChangesPage` and `BulkResult` (keel #108), and failed on 4.15.0 for the missing
18
27
  `epoch` before this release.
28
+ Published from tag `v4.16.0`; the workflow's read-back gave up before npm showed the
29
+ version, so the tarball (shasum `d08de22b`) was read back by hand against a build of the tag.
19
30
 
20
31
  ## [4.15.0] — 2026-10-12
21
32
 
package/dist/index.d.ts CHANGED
@@ -2388,11 +2388,13 @@ declare class OwV2Client {
2388
2388
  /**
2389
2389
  * Walk the feed from `since` (or from zero = full export) to the current
2390
2390
  * tail, yielding ops in order. Returns the final cursor via the generator's
2391
- * return value; persist it for the next incremental pull.
2391
+ * return value; persist it for the next incremental pull (with the last page's
2392
+ * `head` and `epoch`: the view epoch the walk ran under, for a guest).
2392
2393
  */
2393
2394
  changesAll(since?: string): AsyncGenerator<OwChange, {
2394
2395
  cursor: string;
2395
2396
  head: number;
2397
+ epoch: number | null;
2396
2398
  }>;
2397
2399
  /**
2398
2400
  * POST /media/ticket -- permission to upload ONE image into this world (a write
package/dist/index.js CHANGED
@@ -347,7 +347,8 @@ var OwV2Client = class {
347
347
  /**
348
348
  * Walk the feed from `since` (or from zero = full export) to the current
349
349
  * tail, yielding ops in order. Returns the final cursor via the generator's
350
- * return value; persist it for the next incremental pull.
350
+ * return value; persist it for the next incremental pull (with the last page's
351
+ * `head` and `epoch`: the view epoch the walk ran under, for a guest).
351
352
  */
352
353
  async *changesAll(since) {
353
354
  let cursor = since;
@@ -357,7 +358,7 @@ var OwV2Client = class {
357
358
  for (const op of page.changes) yield op;
358
359
  cursor = page.cursor;
359
360
  } while (page.has_more);
360
- return { cursor: page.cursor, head: page.head };
361
+ return { cursor: page.cursor, head: page.head, epoch: page.epoch ?? null };
361
362
  }
362
363
  // -- Images ---------------------------------------------------------------
363
364
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onlyworlds/sdk",
3
- "version": "4.16.0",
3
+ "version": "4.17.0",
4
4
  "description": "TypeScript SDK for the OnlyWorlds API - build world-building applications with type safety",
5
5
  "type": "module",
6
6
  "exports": {