@fedify/vocab-tools 2.4.1 → 2.4.2-dev.2347

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.4.1",
3
+ "version": "2.4.2-dev.2347+09a41add",
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.4.1";
11
+ var version = "2.4.2-dev.2347+09a41add";
12
12
  //#endregion
13
13
  //#region src/type.ts
14
14
  const HEURISTICS_CONTEXTS = [
@@ -1409,6 +1409,19 @@ async function* generateCloner(typeUri, types) {
1409
1409
  /**
1410
1410
  * Clones this instance, optionally updating it with the given values.
1411
1411
  *
1412
+ * This is a shallow copy: property arrays are copied, but nested objects
1413
+ * and URLs are shared with this instance. Dereferencing accessors can cache
1414
+ * fetched objects in the instance whose accessor is called. Hydrating a
1415
+ * shared nested object through the clone can affect the original as well,
1416
+ * and can change JSON-LD output when either is embedded in another
1417
+ * object. Hydrating a top-level property of the clone does not update this
1418
+ * instance's property.
1419
+ *
1420
+ * To resolve properties without sharing nested objects, serialize and
1421
+ * re-parse the instance before hydration rather than using this method.
1422
+ * See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
1423
+ * for details, including how cached JSON-LD affects serialization.
1424
+ *
1412
1425
  * A clone never inherits a signed JSON-LD representation retained by
1413
1426
  * \`signObject()\`: the clone may differ from the document that the proof
1414
1427
  * 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.4.1";
10
+ var version = "2.4.2-dev.2347+09a41add";
11
11
  //#endregion
12
12
  //#region src/type.ts
13
13
  const HEURISTICS_CONTEXTS = [
@@ -1408,6 +1408,19 @@ async function* generateCloner(typeUri, types) {
1408
1408
  /**
1409
1409
  * Clones this instance, optionally updating it with the given values.
1410
1410
  *
1411
+ * This is a shallow copy: property arrays are copied, but nested objects
1412
+ * and URLs are shared with this instance. Dereferencing accessors can cache
1413
+ * fetched objects in the instance whose accessor is called. Hydrating a
1414
+ * shared nested object through the clone can affect the original as well,
1415
+ * and can change JSON-LD output when either is embedded in another
1416
+ * object. Hydrating a top-level property of the clone does not update this
1417
+ * instance's property.
1418
+ *
1419
+ * To resolve properties without sharing nested objects, serialize and
1420
+ * re-parse the instance before hydration rather than using this method.
1421
+ * See the [vocabulary manual](https://fedify.dev/manual/vocab#immutability)
1422
+ * for details, including how cached JSON-LD affects serialization.
1423
+ *
1411
1424
  * A clone never inherits a signed JSON-LD representation retained by
1412
1425
  * \`signObject()\`: the clone may differ from the document that the proof
1413
1426
  * 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.4.1",
3
+ "version": "2.4.2-dev.2347+09a41add",
4
4
  "description": "Code generator for Activity Vocabulary APIs",
5
5
  "homepage": "https://fedify.dev/",
6
6
  "repository": {