@fedify/fedify 0.14.0-dev.333 → 0.14.0-dev.335

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.
Files changed (44) hide show
  1. package/CHANGES.md +11 -0
  2. package/esm/federation/middleware.js +2 -2
  3. package/esm/vocab/object.yaml +13 -0
  4. package/esm/vocab/source.yaml +26 -0
  5. package/esm/vocab/vocab.js +607 -198
  6. package/package.json +1 -1
  7. package/types/federation/collection.d.ts +0 -1
  8. package/types/federation/collection.d.ts.map +1 -1
  9. package/types/federation/context.d.ts +0 -2
  10. package/types/federation/context.d.ts.map +1 -1
  11. package/types/federation/handler.d.ts +0 -2
  12. package/types/federation/handler.d.ts.map +1 -1
  13. package/types/federation/middleware.d.ts +0 -2
  14. package/types/federation/middleware.d.ts.map +1 -1
  15. package/types/federation/send.d.ts +0 -2
  16. package/types/federation/send.d.ts.map +1 -1
  17. package/types/nodeinfo/handler.d.ts +0 -1
  18. package/types/nodeinfo/handler.d.ts.map +1 -1
  19. package/types/nodeinfo/types.d.ts +0 -1
  20. package/types/nodeinfo/types.d.ts.map +1 -1
  21. package/types/runtime/docloader.d.ts +0 -1
  22. package/types/runtime/docloader.d.ts.map +1 -1
  23. package/types/sig/http.d.ts +0 -2
  24. package/types/sig/http.d.ts.map +1 -1
  25. package/types/sig/key.d.ts +0 -1
  26. package/types/sig/key.d.ts.map +1 -1
  27. package/types/sig/owner.d.ts +0 -1
  28. package/types/sig/owner.d.ts.map +1 -1
  29. package/types/sig/proof.d.ts +0 -1
  30. package/types/sig/proof.d.ts.map +1 -1
  31. package/types/vocab/actor.d.ts +0 -1
  32. package/types/vocab/actor.d.ts.map +1 -1
  33. package/types/vocab/constants.d.ts +0 -1
  34. package/types/vocab/constants.d.ts.map +1 -1
  35. package/types/vocab/lookup.d.ts +0 -1
  36. package/types/vocab/lookup.d.ts.map +1 -1
  37. package/types/vocab/vocab.d.ts +191 -1
  38. package/types/vocab/vocab.d.ts.map +1 -1
  39. package/types/webfinger/handler.d.ts +0 -1
  40. package/types/webfinger/handler.d.ts.map +1 -1
  41. package/types/webfinger/lookup.d.ts +0 -1
  42. package/types/webfinger/lookup.d.ts.map +1 -1
  43. package/types/x/hono.d.ts +0 -1
  44. 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;
@@ -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"