@onlyworlds/sdk 4.30.0 → 4.30.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 CHANGED
@@ -5,6 +5,15 @@ earlier history lives in git log only.
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
+ ## [4.30.1] — 2026-10-16
9
+
10
+ ### Fixed
11
+ - **`changes()` and `changesAll()` hand back every cursor as a string**, as `OwChangesPage.cursor` has
12
+ always said. keel sends the cursor of a page at the head of the feed (an empty page, for any key but
13
+ a guest's) as a number, and it passed through as one: a walk of an up-to-date world returned
14
+ `{ cursor: 818 }`, so a cursor stored and compared as a string could miss. `changesHead()` already
15
+ did this. Found on production with a demo key.
16
+
8
17
  ## [4.30.0] — 2026-10-16
9
18
 
10
19
  ### Added
package/dist/index.d.ts CHANGED
@@ -2735,6 +2735,8 @@ declare class OwV2Client {
2735
2735
  * view changed (a guest's, or its role): drop the cursor, walk from zero, and
2736
2736
  * replace the local copy rather than merging into it.
2737
2737
  * Citizenship: heaviest route on the platform; default page size is polite.
2738
+ * keel sends the cursor of a page at the head as a number (an empty page, for anyone
2739
+ * but a guest); it is handed back as a string, like every cursor here.
2738
2740
  */
2739
2741
  changes(opts?: {
2740
2742
  since?: string;
package/dist/index.js CHANGED
@@ -431,10 +431,13 @@ var OwV2Client = class {
431
431
  * view changed (a guest's, or its role): drop the cursor, walk from zero, and
432
432
  * replace the local copy rather than merging into it.
433
433
  * Citizenship: heaviest route on the platform; default page size is polite.
434
+ * keel sends the cursor of a page at the head as a number (an empty page, for anyone
435
+ * but a guest); it is handed back as a string, like every cursor here.
434
436
  */
435
437
  async changes(opts = {}) {
436
438
  const query = buildQuery({ since: opts.since, limit: opts.limit ?? this.changesPageSize });
437
- return this.request("GET", "/changes/", { query });
439
+ const page = await this.request("GET", "/changes/", { query });
440
+ return { ...page, cursor: String(page.cursor) };
438
441
  }
439
442
  /**
440
443
  * GET /changes?head=true -- where the feed is now, without a page: no element is read.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onlyworlds/sdk",
3
- "version": "4.30.0",
3
+ "version": "4.30.1",
4
4
  "description": "TypeScript SDK for the OnlyWorlds API - build world-building applications with type safety",
5
5
  "type": "module",
6
6
  "exports": {