@onlyworlds/sdk 4.109.0 → 4.110.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,12 @@ earlier history lives in git log only.
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
+ ## [4.110.0] - 2026-10-30
9
+
10
+ ### Changed
11
+
12
+ - **`openersFor` checks the whole address.** It handed the address writer only the world, type and id, in the site's form, so a malformed `lens` or `moment`, or a `form` that is neither `human` nor `text`, still gave rows. The whole address now goes to `elementAddress` in its own form (the site's when it has none), so it refuses with the writer's own `OwAddressError`, `bad_lens`, `bad_moment` or `bad_form`, as it already did for the world, type and id; an address without a world still refuses `no_world`, the text form inside a world included. The rows are unchanged: a lens and a moment still ride on no href. The shared fixture gains four cases (45; the same bytes as the Python package's): the three refusals, and a well-formed lens and moment giving exactly the rows of the same address without them.
13
+
8
14
  ## [4.109.0] - 2026-10-29
9
15
 
10
16
  ### Changed
package/dist/index.d.ts CHANGED
@@ -5631,8 +5631,10 @@ interface OwOpener {
5631
5631
  * only when the surface knows it is true), `device` on a phone "Needs the world on this phone"; then
5632
5632
  * "Opens the world" (a world door on an element: a sign-in the row needs is the more urgent word); else null.
5633
5633
  *
5634
- * Refuses with `OwAddressError` an address without a world (`no_world`) or with a slug or anything else
5635
- * for its id (`bad_world`), and a type, id or pairing `elementAddress` refuses. A TypeError names the
5634
+ * Refuses with `OwAddressError` whatever `elementAddress` refuses of the whole address, in its own form
5635
+ * (the site's when it has none): a form, type, id, pairing, moment or lens (`bad_moment`, `bad_lens`),
5636
+ * and a slug or anything else for the world's id (`bad_world`); and an address without a world
5637
+ * (`no_world`), the text form inside a world included, since every row needs one. A TypeError names the
5636
5638
  * rest: a `kind` that is neither, an element's openers asked of an address with no element, an unknown
5637
5639
  * key on the address or the surface, a missing or unknown `audience`, a surface value of the wrong type,
5638
5640
  * a tools row that is not one (a `needs` outside the list's format included).
package/dist/index.js CHANGED
@@ -5288,6 +5288,7 @@ function openersFor(tools, kind, address, surface) {
5288
5288
  }
5289
5289
  refuseUnknownOptions("openersFor", address, ADDRESS_KEYS);
5290
5290
  const a = address;
5291
+ elementAddress({ ...a, form: a.form ?? "human" });
5291
5292
  const page = elementAddress({ form: "human", world: a.world, type: a.type, id: a.id });
5292
5293
  const world = a.world.toLowerCase();
5293
5294
  const hasElement = a.type !== void 0 && a.type !== null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onlyworlds/sdk",
3
- "version": "4.109.0",
3
+ "version": "4.110.0",
4
4
  "description": "TypeScript SDK for the OnlyWorlds API - build world-building applications with type safety",
5
5
  "type": "module",
6
6
  "exports": {