@fedify/fedify 0.14.0-dev.333 → 0.14.0-dev.335
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGES.md +11 -0
- package/esm/federation/middleware.js +2 -2
- package/esm/vocab/object.yaml +13 -0
- package/esm/vocab/source.yaml +26 -0
- package/esm/vocab/vocab.js +607 -198
- package/package.json +1 -1
- package/types/federation/collection.d.ts +0 -1
- package/types/federation/collection.d.ts.map +1 -1
- package/types/federation/context.d.ts +0 -2
- package/types/federation/context.d.ts.map +1 -1
- package/types/federation/handler.d.ts +0 -2
- package/types/federation/handler.d.ts.map +1 -1
- package/types/federation/middleware.d.ts +0 -2
- package/types/federation/middleware.d.ts.map +1 -1
- package/types/federation/send.d.ts +0 -2
- package/types/federation/send.d.ts.map +1 -1
- package/types/nodeinfo/handler.d.ts +0 -1
- package/types/nodeinfo/handler.d.ts.map +1 -1
- package/types/nodeinfo/types.d.ts +0 -1
- package/types/nodeinfo/types.d.ts.map +1 -1
- package/types/runtime/docloader.d.ts +0 -1
- package/types/runtime/docloader.d.ts.map +1 -1
- package/types/sig/http.d.ts +0 -2
- package/types/sig/http.d.ts.map +1 -1
- package/types/sig/key.d.ts +0 -1
- package/types/sig/key.d.ts.map +1 -1
- package/types/sig/owner.d.ts +0 -1
- package/types/sig/owner.d.ts.map +1 -1
- package/types/sig/proof.d.ts +0 -1
- package/types/sig/proof.d.ts.map +1 -1
- package/types/vocab/actor.d.ts +0 -1
- package/types/vocab/actor.d.ts.map +1 -1
- package/types/vocab/constants.d.ts +0 -1
- package/types/vocab/constants.d.ts.map +1 -1
- package/types/vocab/lookup.d.ts +0 -1
- package/types/vocab/lookup.d.ts.map +1 -1
- package/types/vocab/vocab.d.ts +191 -1
- package/types/vocab/vocab.d.ts.map +1 -1
- package/types/webfinger/handler.d.ts +0 -1
- package/types/webfinger/handler.d.ts.map +1 -1
- package/types/webfinger/lookup.d.ts +0 -1
- package/types/webfinger/lookup.d.ts.map +1 -1
- package/types/x/hono.d.ts +0 -1
- package/types/x/hono.d.ts.map +1 -1
package/CHANGES.md
CHANGED
@@ -8,6 +8,15 @@ Version 0.14.0
|
|
8
8
|
|
9
9
|
To be released.
|
10
10
|
|
11
|
+
- Added `source` property to `Object` class in Activity Vocabulary API.
|
12
|
+
[[#114]]
|
13
|
+
|
14
|
+
- Added `Object.source` property.
|
15
|
+
- `new Object()` constructor now accepts `source` option.
|
16
|
+
- `Object.clone()` method now accepts `source` option.
|
17
|
+
|
18
|
+
- Added `Source` class to Activity Vocabulary API. [[#114]]
|
19
|
+
|
11
20
|
- Improved the performance of `Object.toJsonLd()` method.
|
12
21
|
|
13
22
|
- `Object.toJsonLd()` method no longer guarantees that the returned
|
@@ -24,6 +33,8 @@ To be released.
|
|
24
33
|
Bun, and fills the *deno.json* file with the default `compilerOptions` on
|
25
34
|
Deno.
|
26
35
|
|
36
|
+
[#114]: https://github.com/dahlia/fedify/issues/114
|
37
|
+
|
27
38
|
|
28
39
|
Version 0.13.0
|
29
40
|
--------------
|
@@ -56,11 +56,11 @@ class FederationImpl {
|
|
56
56
|
constructor(options) {
|
57
57
|
this.kv = options.kv;
|
58
58
|
this.kvPrefixes = {
|
59
|
-
...
|
59
|
+
...{
|
60
60
|
activityIdempotence: ["_fedify", "activityIdempotence"],
|
61
61
|
remoteDocument: ["_fedify", "remoteDocument"],
|
62
62
|
publicKey: ["_fedify", "publicKey"],
|
63
|
-
}
|
63
|
+
},
|
64
64
|
...(options.kvPrefixes ?? {}),
|
65
65
|
};
|
66
66
|
this.queue = options.queue;
|
package/esm/vocab/object.yaml
CHANGED
@@ -330,6 +330,19 @@ properties:
|
|
330
330
|
range:
|
331
331
|
- "http://www.w3.org/2001/XMLSchema#boolean"
|
332
332
|
|
333
|
+
- singularName: source
|
334
|
+
functional: true
|
335
|
+
compactName: source
|
336
|
+
uri: "https://www.w3.org/ns/activitystreams#source"
|
337
|
+
description: |
|
338
|
+
The `source` property is intended to convey some sort of source from which
|
339
|
+
the `content` markup was derived, as a form of provenance, or to support
|
340
|
+
future editing by clients. In general, clients do the conversion from
|
341
|
+
`source` to `content`, not the other way around.
|
342
|
+
untyped: true
|
343
|
+
range:
|
344
|
+
- "https://www.w3.org/ns/activitystreams#Source"
|
345
|
+
|
333
346
|
- singularName: proof
|
334
347
|
pluralName: proofs
|
335
348
|
singularAccessor: true
|
@@ -0,0 +1,26 @@
|
|
1
|
+
$schema: ../codegen/schema.yaml
|
2
|
+
name: Source
|
3
|
+
compactName: as:Source
|
4
|
+
uri: "https://www.w3.org/ns/activitystreams#Source"
|
5
|
+
entity: false
|
6
|
+
description: Contents of {@link Object}'s `source`.
|
7
|
+
defaultContext: "https://www.w3.org/ns/activitystreams"
|
8
|
+
|
9
|
+
properties:
|
10
|
+
- pluralName: contents
|
11
|
+
singularName: content
|
12
|
+
singularAccessor: true
|
13
|
+
compactName: content
|
14
|
+
uri: "https://www.w3.org/ns/activitystreams#content"
|
15
|
+
description: The source content.
|
16
|
+
range:
|
17
|
+
- "http://www.w3.org/2001/XMLSchema#string"
|
18
|
+
- "http://www.w3.org/1999/02/22-rdf-syntax-ns#langString"
|
19
|
+
|
20
|
+
- singularName: mediaType
|
21
|
+
functional: true
|
22
|
+
compactName: mediaType
|
23
|
+
uri: "https://www.w3.org/ns/activitystreams#mediaType"
|
24
|
+
description: The MIME media type of the source content.
|
25
|
+
range:
|
26
|
+
- "http://www.w3.org/2001/XMLSchema#string"
|