@fedify/vocab-tools 2.5.0-dev.2370 → 2.5.0-dev.2378

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/deno.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fedify/vocab-tools",
3
- "version": "2.5.0-dev.2370+e0cfd033",
3
+ "version": "2.5.0-dev.2378+fea9c751",
4
4
  "license": "MIT",
5
5
  "exports": {
6
6
  ".": "./src/mod.ts"
package/dist/mod.cjs CHANGED
@@ -8,7 +8,7 @@ let yaml = require("yaml");
8
8
  let es_toolkit = require("es-toolkit");
9
9
  //#region deno.json
10
10
  var name = "@fedify/vocab-tools";
11
- var version = "2.5.0-dev.2370+e0cfd033";
11
+ var version = "2.5.0-dev.2378+fea9c751";
12
12
  //#endregion
13
13
  //#region src/type.ts
14
14
  const HEURISTICS_CONTEXTS = [
@@ -1445,6 +1445,19 @@ async function* generateCloner(typeUri, types) {
1445
1445
  /**
1446
1446
  * Clones this instance, optionally updating it with the given values.
1447
1447
  *
1448
+ * This is a shallow copy: property arrays are copied, but nested objects
1449
+ * and URLs are shared with this instance. Dereferencing accessors can cache
1450
+ * fetched objects in the instance whose accessor is called. Hydrating a
1451
+ * shared nested object through the clone can affect the original as well,
1452
+ * and can change JSON-LD output when either is embedded in another
1453
+ * object. Hydrating a top-level property of the clone does not update this
1454
+ * instance's property.
1455
+ *
1456
+ * To resolve properties without sharing nested objects, serialize and
1457
+ * re-parse the instance before hydration rather than using this method.
1458
+ * See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
1459
+ * for details, including how cached JSON-LD affects serialization.
1460
+ *
1448
1461
  * A clone never inherits a signed JSON-LD representation retained by
1449
1462
  * \`signObject()\`: the clone may differ from the document that the proof
1450
1463
  * covers, so embedding the original secured JSON in a parent document
package/dist/mod.js CHANGED
@@ -7,7 +7,7 @@ import { parse } from "yaml";
7
7
  import { pascalCase } from "es-toolkit";
8
8
  //#region deno.json
9
9
  var name = "@fedify/vocab-tools";
10
- var version = "2.5.0-dev.2370+e0cfd033";
10
+ var version = "2.5.0-dev.2378+fea9c751";
11
11
  //#endregion
12
12
  //#region src/type.ts
13
13
  const HEURISTICS_CONTEXTS = [
@@ -1444,6 +1444,19 @@ async function* generateCloner(typeUri, types) {
1444
1444
  /**
1445
1445
  * Clones this instance, optionally updating it with the given values.
1446
1446
  *
1447
+ * This is a shallow copy: property arrays are copied, but nested objects
1448
+ * and URLs are shared with this instance. Dereferencing accessors can cache
1449
+ * fetched objects in the instance whose accessor is called. Hydrating a
1450
+ * shared nested object through the clone can affect the original as well,
1451
+ * and can change JSON-LD output when either is embedded in another
1452
+ * object. Hydrating a top-level property of the clone does not update this
1453
+ * instance's property.
1454
+ *
1455
+ * To resolve properties without sharing nested objects, serialize and
1456
+ * re-parse the instance before hydration rather than using this method.
1457
+ * See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
1458
+ * for details, including how cached JSON-LD affects serialization.
1459
+ *
1447
1460
  * A clone never inherits a signed JSON-LD representation retained by
1448
1461
  * \`signObject()\`: the clone may differ from the document that the proof
1449
1462
  * covers, so embedding the original secured JSON in a parent document
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fedify/vocab-tools",
3
- "version": "2.5.0-dev.2370+e0cfd033",
3
+ "version": "2.5.0-dev.2378+fea9c751",
4
4
  "description": "Code generator for Activity Vocabulary APIs",
5
5
  "homepage": "https://fedify.dev/",
6
6
  "repository": {
@@ -51,7 +51,7 @@
51
51
  "@types/node": "^24.12.2",
52
52
  "tsdown": "^0.22.0",
53
53
  "typescript": "^6.0.0",
54
- "@fedify/vocab-runtime": "^2.5.0-dev.2370+e0cfd033"
54
+ "@fedify/vocab-runtime": "^2.5.0-dev.2378+fea9c751"
55
55
  },
56
56
  "dependencies": {
57
57
  "@cfworker/json-schema": "^4.1.1",