@fedify/vocab-tools 2.4.0-pr.936.41 → 2.4.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/README.md +39 -0
- package/deno.json +1 -1
- package/dist/mod.cjs +570 -123
- package/dist/mod.d.cts +14 -0
- package/dist/mod.d.ts +14 -0
- package/dist/mod.js +570 -123
- package/dist/schema.yaml +15 -0
- package/package.json +2 -2
- package/src/__snapshots__/class.test.ts.deno.snap +54490 -12168
- package/src/__snapshots__/class.test.ts.node.snap +54490 -12168
- package/src/__snapshots__/class.test.ts.snap +54490 -12168
- package/src/class.ts +116 -0
- package/src/codec.ts +133 -34
- package/src/constructor.ts +16 -4
- package/src/inspector.ts +4 -4
- package/src/property.ts +343 -70
- package/src/schema.ts +16 -0
- package/src/schema.yaml +15 -0
- package/src/type.ts +20 -8
package/dist/schema.yaml
CHANGED
|
@@ -72,6 +72,14 @@ $defs:
|
|
|
72
72
|
property-base:
|
|
73
73
|
type: object
|
|
74
74
|
properties:
|
|
75
|
+
extraContext:
|
|
76
|
+
description: >-
|
|
77
|
+
A context URL added to default serialization when this property's
|
|
78
|
+
expanded IRI appears in the compacted document. Explicit caller
|
|
79
|
+
contexts are unchanged. Populated properties use the JSON-LD
|
|
80
|
+
processor instead of compact serialization heuristics.
|
|
81
|
+
type: string
|
|
82
|
+
format: uri
|
|
75
83
|
singularName:
|
|
76
84
|
description: >-
|
|
77
85
|
The singular form of the property name. It is used as the name of the
|
|
@@ -250,6 +258,13 @@ properties:
|
|
|
250
258
|
|
|
251
259
|
The extended subtypes must have the consistent value of this flag.
|
|
252
260
|
type: boolean
|
|
261
|
+
trustEmbeddedObjects:
|
|
262
|
+
description: >-
|
|
263
|
+
Whether this type's id establishes same-origin trust for its own
|
|
264
|
+
embedded entity-valued properties. Defaults to true. Set to false
|
|
265
|
+
for metadata ids that do not identify independently fetched resources.
|
|
266
|
+
Locally constructed and explicitly trusted values remain trusted.
|
|
267
|
+
type: boolean
|
|
253
268
|
typeless:
|
|
254
269
|
description: >-
|
|
255
270
|
Whether the type omits @type in JSON-LD serialization. When true,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fedify/vocab-tools",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.1",
|
|
4
4
|
"description": "Code generator for Activity Vocabulary APIs",
|
|
5
5
|
"homepage": "https://fedify.dev/",
|
|
6
6
|
"repository": {
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
},
|
|
47
47
|
"license": "MIT",
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@types/node": "^
|
|
49
|
+
"@types/node": "^24.12.2",
|
|
50
50
|
"tsdown": "^0.22.0",
|
|
51
51
|
"typescript": "^6.0.0"
|
|
52
52
|
},
|