@fedify/fedify 1.0.0 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGES.md CHANGED
@@ -3,6 +3,32 @@
3
3
  Fedify changelog
4
4
  ================
5
5
 
6
+ Version 1.0.2
7
+ -------------
8
+
9
+ Released on September 27, 2024.
10
+
11
+ - Fixed a bug of `Object.toJsonLd()` method where it had incorrectly compacted
12
+ the `name` property when it was not a language map.
13
+
14
+ - The `Delete(Application)` activities sent by the `fedify inbox` command now
15
+ embed the entire actor object instead of just the actor's URI so that
16
+ the peers can verify the actor's signature without fetching the actor
17
+ object.
18
+
19
+
20
+ Version 1.0.1
21
+ -------------
22
+
23
+ Released on September 26, 2024.
24
+
25
+ - Fixed deprecation messages related to the `{handle}` variable in URL
26
+ templates; they had had wrong placeholders in the message templates.
27
+
28
+ - Fixed a bug of `Object.toJsonLd()` method where it had not fall back to
29
+ the proper compact form when the heuristic compact form was not available.
30
+
31
+
6
32
  Version 1.0.0
7
33
  --------------
8
34
 
@@ -174,6 +200,15 @@ Released on September 26, 2024.
174
200
  [#137]: https://github.com/dahlia/fedify/issues/137
175
201
 
176
202
 
203
+ Version 0.15.2
204
+ --------------
205
+
206
+ Released on September 26, 2024.
207
+
208
+ - Fixed a bug of `Object.toJsonLd()` method where it had not fall back to
209
+ the proper compact form when the heuristic compact form was not available.
210
+
211
+
177
212
  Version 0.15.1
178
213
  --------------
179
214
 
@@ -247,6 +282,15 @@ Released on September 11, 2024.
247
282
  object.
248
283
 
249
284
 
285
+ Version 0.14.5
286
+ --------------
287
+
288
+ Released on September 26, 2024.
289
+
290
+ - Fixed a bug of `Object.toJsonLd()` method where it had not fall back to
291
+ the proper compact form when the heuristic compact form was not available.
292
+
293
+
250
294
  Version 0.14.4
251
295
  --------------
252
296
 
@@ -337,8 +337,8 @@ export class FederationImpl {
337
337
  throw new RouterError("Path for actor dispatcher must have one variable: {identifier}");
338
338
  }
339
339
  if (variables.has("handle")) {
340
- getLogger(["fedify", "federation", "actor"]).warn("The {handle} variable in the actor dispatcher path is deprecated. " +
341
- "Use {identifier} instead.");
340
+ getLogger(["fedify", "federation", "actor"]).warn("The {{handle}} variable in the actor dispatcher path is deprecated. " +
341
+ "Use {{identifier}} instead.");
342
342
  }
343
343
  const callbacks = {
344
344
  dispatcher: async (context, identifier) => {
@@ -532,8 +532,8 @@ export class FederationImpl {
532
532
  throw new RouterError("Path for inbox dispatcher must have one variable: {identifier}");
533
533
  }
534
534
  if (variables.has("handle")) {
535
- getLogger(["fedify", "federation", "inbox"]).warn("The {handle} variable in the inbox dispatcher path is deprecated. " +
536
- "Use {identifier} instead.");
535
+ getLogger(["fedify", "federation", "inbox"]).warn("The {{handle}} variable in the inbox dispatcher path is deprecated. " +
536
+ "Use {{identifier}} instead.");
537
537
  }
538
538
  this.inboxPath = path;
539
539
  }
@@ -569,8 +569,8 @@ export class FederationImpl {
569
569
  throw new RouterError("Path for outbox dispatcher must have one variable: {identifier}");
570
570
  }
571
571
  if (variables.has("handle")) {
572
- getLogger(["fedify", "federation", "outbox"]).warn("The {handle} variable in the outbox dispatcher path is deprecated. " +
573
- "Use {identifier} instead.");
572
+ getLogger(["fedify", "federation", "outbox"]).warn("The {{handle}} variable in the outbox dispatcher path is deprecated. " +
573
+ "Use {{identifier}} instead.");
574
574
  }
575
575
  const callbacks = { dispatcher };
576
576
  this.outboxCallbacks = callbacks;
@@ -605,8 +605,8 @@ export class FederationImpl {
605
605
  "{identifier}");
606
606
  }
607
607
  if (variables.has("handle")) {
608
- getLogger(["fedify", "federation", "collection"]).warn("The {handle} variable in the following collection dispatcher path " +
609
- "is deprecated. Use {identifier} instead.");
608
+ getLogger(["fedify", "federation", "collection"]).warn("The {{handle}} variable in the following collection dispatcher path " +
609
+ "is deprecated. Use {{identifier}} instead.");
610
610
  }
611
611
  const callbacks = { dispatcher };
612
612
  this.followingCallbacks = callbacks;
@@ -641,8 +641,8 @@ export class FederationImpl {
641
641
  "{identifier}");
642
642
  }
643
643
  if (variables.has("handle")) {
644
- getLogger(["fedify", "federation", "collection"]).warn("The {handle} variable in the followers collection dispatcher path " +
645
- "is deprecated. Use {identifier} instead.");
644
+ getLogger(["fedify", "federation", "collection"]).warn("The {{handle}} variable in the followers collection dispatcher path " +
645
+ "is deprecated. Use {{identifier}} instead.");
646
646
  }
647
647
  const callbacks = { dispatcher };
648
648
  this.followersCallbacks = callbacks;
@@ -677,8 +677,8 @@ export class FederationImpl {
677
677
  "{identifier}");
678
678
  }
679
679
  if (variables.has("handle")) {
680
- getLogger(["fedify", "federation", "collection"]).warn("The {handle} variable in the liked collection dispatcher path " +
681
- "is deprecated. Use {identifier} instead.");
680
+ getLogger(["fedify", "federation", "collection"]).warn("The {{handle}} variable in the liked collection dispatcher path " +
681
+ "is deprecated. Use {{identifier}} instead.");
682
682
  }
683
683
  const callbacks = { dispatcher };
684
684
  this.likedCallbacks = callbacks;
@@ -713,8 +713,8 @@ export class FederationImpl {
713
713
  "{identifier}");
714
714
  }
715
715
  if (variables.has("handle")) {
716
- getLogger(["fedify", "federation", "collection"]).warn("The {handle} variable in the featured collection dispatcher path " +
717
- "is deprecated. Use {identifier} instead.");
716
+ getLogger(["fedify", "federation", "collection"]).warn("The {{handle}} variable in the featured collection dispatcher path " +
717
+ "is deprecated. Use {{identifier}} instead.");
718
718
  }
719
719
  const callbacks = { dispatcher };
720
720
  this.featuredCallbacks = callbacks;
@@ -749,8 +749,8 @@ export class FederationImpl {
749
749
  "variable: {identifier}");
750
750
  }
751
751
  if (variables.has("handle")) {
752
- getLogger(["fedify", "federation", "collection"]).warn("The {handle} variable in the featured tags collection dispatcher " +
753
- "path is deprecated. Use {identifier} instead.");
752
+ getLogger(["fedify", "federation", "collection"]).warn("The {{handle}} variable in the featured tags collection dispatcher " +
753
+ "path is deprecated. Use {{identifier}} instead.");
754
754
  }
755
755
  const callbacks = { dispatcher };
756
756
  this.featuredTagsCallbacks = callbacks;
@@ -791,8 +791,8 @@ export class FederationImpl {
791
791
  }
792
792
  this.inboxPath = inboxPath;
793
793
  if (variables.has("handle")) {
794
- getLogger(["fedify", "federation", "inbox"]).warn("The {handle} variable in the inbox path is deprecated. " +
795
- "Use {identifier} instead.");
794
+ getLogger(["fedify", "federation", "inbox"]).warn("The {{handle}} variable in the inbox path is deprecated. " +
795
+ "Use {{identifier}} instead.");
796
796
  }
797
797
  }
798
798
  if (sharedInboxPath != null) {
@@ -9,7 +9,7 @@ description: |
9
9
  used in certain circumstances to indicate the context into which the `object`
10
10
  has been accepted.
11
11
  defaultContext:
12
+ - "https://w3id.org/identity/v1"
12
13
  - "https://www.w3.org/ns/activitystreams"
13
14
  - "https://w3id.org/security/data-integrity/v1"
14
- - "https://w3id.org/identity/v1"
15
15
  properties: []
@@ -11,10 +11,10 @@ description: |
11
11
  of activities. It is important to note that the {@link Activity} type itself
12
12
  does not carry any specific semantics about the kind of action being taken.
13
13
  defaultContext:
14
+ - "https://w3id.org/identity/v1"
14
15
  - "https://www.w3.org/ns/activitystreams"
15
16
  - "https://w3id.org/security/v1"
16
17
  - "https://w3id.org/security/data-integrity/v1"
17
- - "https://w3id.org/identity/v1"
18
18
 
19
19
  properties:
20
20
  - pluralName: actors
@@ -10,7 +10,7 @@ description: |
10
10
  to be determined implicitly by context. The `origin` can be used to identify
11
11
  the context from which the `object` originated.
12
12
  defaultContext:
13
+ - "https://w3id.org/identity/v1"
13
14
  - "https://www.w3.org/ns/activitystreams"
14
15
  - "https://w3id.org/security/data-integrity/v1"
15
- - "https://w3id.org/identity/v1"
16
16
  properties: []
@@ -9,9 +9,9 @@ description: |
9
9
 
10
10
  The `origin` typically has no defined meaning.
11
11
  defaultContext:
12
+ - "https://w3id.org/identity/v1"
12
13
  - "https://www.w3.org/ns/activitystreams"
13
14
  - "https://w3id.org/security/data-integrity/v1"
14
- - "https://w3id.org/identity/v1"
15
15
  - toot: "http://joinmastodon.org/ns#"
16
16
  misskey: "https://misskey-hub.net/ns#"
17
17
  fedibird: "http://fedibird.com/ns#"
@@ -9,7 +9,7 @@ description: |
9
9
  The `origin` can be used to identify the context from which the `actor` originated.
10
10
  The `target` typically has no defined meaning.
11
11
  defaultContext:
12
+ - "https://w3id.org/identity/v1"
12
13
  - "https://www.w3.org/ns/activitystreams"
13
14
  - "https://w3id.org/security/data-integrity/v1"
14
- - "https://w3id.org/identity/v1"
15
15
  properties: []
@@ -10,7 +10,7 @@ description: |
10
10
  allow one user to block activities or content of other users. The `target`
11
11
  and `origin` typically have no defined meaning.
12
12
  defaultContext:
13
+ - "https://w3id.org/identity/v1"
13
14
  - "https://www.w3.org/ns/activitystreams"
14
15
  - "https://w3id.org/security/data-integrity/v1"
15
- - "https://w3id.org/identity/v1"
16
16
  properties: []
@@ -6,9 +6,9 @@ extends: "https://www.w3.org/ns/activitystreams#Activity"
6
6
  entity: true
7
7
  description: Indicates that the `actor` has created the `object`.
8
8
  defaultContext:
9
+ - "https://w3id.org/identity/v1"
9
10
  - "https://www.w3.org/ns/activitystreams"
10
11
  - "https://w3id.org/security/data-integrity/v1"
11
- - "https://w3id.org/identity/v1"
12
12
  - toot: "http://joinmastodon.org/ns#"
13
13
  misskey: "https://misskey-hub.net/ns#"
14
14
  fedibird: "http://fedibird.com/ns#"
@@ -8,9 +8,9 @@ description: |
8
8
  Indicates that the `actor` has deleted the `object`. If specified,
9
9
  the `origin` indicates the context from which the `object` was deleted.
10
10
  defaultContext:
11
+ - "https://w3id.org/identity/v1"
11
12
  - "https://www.w3.org/ns/activitystreams"
12
13
  - "https://w3id.org/security/data-integrity/v1"
13
- - "https://w3id.org/identity/v1"
14
14
  - toot: "http://joinmastodon.org/ns#"
15
15
  misskey: "https://misskey-hub.net/ns#"
16
16
  fedibird: "http://fedibird.com/ns#"
@@ -6,7 +6,7 @@ extends: "https://www.w3.org/ns/activitystreams#Activity"
6
6
  entity: true
7
7
  description: Indicates that the `actor` dislikes the `object`.
8
8
  defaultContext:
9
+ - "https://w3id.org/identity/v1"
9
10
  - "https://www.w3.org/ns/activitystreams"
10
11
  - "https://w3id.org/security/data-integrity/v1"
11
- - "https://w3id.org/identity/v1"
12
12
  properties: []
@@ -9,7 +9,7 @@ description: |
9
9
  in the sense common to many social platforms as reporting content as being
10
10
  inappropriate for any number of reasons.
11
11
  defaultContext:
12
+ - "https://w3id.org/identity/v1"
12
13
  - "https://www.w3.org/ns/activitystreams"
13
14
  - "https://w3id.org/security/data-integrity/v1"
14
- - "https://w3id.org/identity/v1"
15
15
  properties: []
@@ -10,7 +10,7 @@ description: |
10
10
  interested in any activity performed by or on the object. The `target` and
11
11
  `origin` typically have no defined meaning.
12
12
  defaultContext:
13
+ - "https://w3id.org/identity/v1"
13
14
  - "https://www.w3.org/ns/activitystreams"
14
15
  - "https://w3id.org/security/data-integrity/v1"
15
- - "https://w3id.org/identity/v1"
16
16
  properties: []
@@ -8,7 +8,7 @@ description: |
8
8
  Indicates that the `actor` is ignoring the `object`. The `target` and
9
9
  `origin` typically have no defined meaning.
10
10
  defaultContext:
11
+ - "https://w3id.org/identity/v1"
11
12
  - "https://www.w3.org/ns/activitystreams"
12
13
  - "https://w3id.org/security/data-integrity/v1"
13
- - "https://w3id.org/identity/v1"
14
14
  properties: []
@@ -9,7 +9,7 @@ description: |
9
9
  representing intransitive actions. The `object` property is therefore
10
10
  inappropriate for these activities.
11
11
  defaultContext:
12
+ - "https://w3id.org/identity/v1"
12
13
  - "https://www.w3.org/ns/activitystreams"
13
14
  - "https://w3id.org/security/data-integrity/v1"
14
- - "https://w3id.org/identity/v1"
15
15
  properties: []
@@ -8,7 +8,7 @@ description: |
8
8
  A specialization of `Offer` in which the `actor` is extending an invitation
9
9
  for the `object` to the `target`.
10
10
  defaultContext:
11
+ - "https://w3id.org/identity/v1"
11
12
  - "https://www.w3.org/ns/activitystreams"
12
13
  - "https://w3id.org/security/data-integrity/v1"
13
- - "https://w3id.org/identity/v1"
14
14
  properties: []
@@ -8,7 +8,7 @@ description: |
8
8
  Indicates that the `actor` has joined the `object`.
9
9
  The `target` and `origin` typically have no defined meaning.
10
10
  defaultContext:
11
+ - "https://w3id.org/identity/v1"
11
12
  - "https://www.w3.org/ns/activitystreams"
12
13
  - "https://w3id.org/security/data-integrity/v1"
13
- - "https://w3id.org/identity/v1"
14
14
  properties: []
@@ -8,7 +8,7 @@ description: |
8
8
  Indicates that the `actor` has left the `object`.
9
9
  The `target` and `origin` typically have no meaning.
10
10
  defaultContext:
11
+ - "https://w3id.org/identity/v1"
11
12
  - "https://www.w3.org/ns/activitystreams"
12
13
  - "https://w3id.org/security/data-integrity/v1"
13
- - "https://w3id.org/identity/v1"
14
14
  properties: []
@@ -8,7 +8,7 @@ description: |
8
8
  Indicates that the `actor` likes, recommends or endorses the `object`.
9
9
  The `target` and `origin` typically have no defined meaning.
10
10
  defaultContext:
11
+ - "https://w3id.org/identity/v1"
11
12
  - "https://www.w3.org/ns/activitystreams"
12
13
  - "https://w3id.org/security/data-integrity/v1"
13
- - "https://w3id.org/identity/v1"
14
14
  properties: []
@@ -6,7 +6,7 @@ extends: "https://www.w3.org/ns/activitystreams#Activity"
6
6
  entity: true
7
7
  description: Indicates that the `actor` has listened to the `object`.
8
8
  defaultContext:
9
+ - "https://w3id.org/identity/v1"
9
10
  - "https://www.w3.org/ns/activitystreams"
10
11
  - "https://w3id.org/security/data-integrity/v1"
11
- - "https://w3id.org/identity/v1"
12
12
  properties: []
@@ -9,7 +9,7 @@ description: |
9
9
  If the `origin` or `target` are not specified,
10
10
  either can be determined by context.
11
11
  defaultContext:
12
+ - "https://w3id.org/identity/v1"
12
13
  - "https://www.w3.org/ns/activitystreams"
13
14
  - "https://w3id.org/security/data-integrity/v1"
14
- - "https://w3id.org/identity/v1"
15
15
  properties: []
@@ -9,7 +9,7 @@ description: |
9
9
  If specified, the target indicates the entity to which
10
10
  the object is being offered.
11
11
  defaultContext:
12
+ - "https://w3id.org/identity/v1"
12
13
  - "https://www.w3.org/ns/activitystreams"
13
14
  - "https://w3id.org/security/data-integrity/v1"
14
- - "https://w3id.org/identity/v1"
15
15
  properties: []
@@ -14,9 +14,9 @@ description: |
14
14
  used to express possible answers, but a Question object *must not* have both
15
15
  properties.
16
16
  defaultContext:
17
+ - "https://w3id.org/identity/v1"
17
18
  - "https://www.w3.org/ns/activitystreams"
18
19
  - "https://w3id.org/security/data-integrity/v1"
19
- - "https://w3id.org/identity/v1"
20
20
  - toot: "http://joinmastodon.org/ns#"
21
21
  misskey: "https://misskey-hub.net/ns#"
22
22
  fedibird: "http://fedibird.com/ns#"
@@ -7,7 +7,7 @@ entity: true
7
7
  description: |
8
8
  Indicates that the `actor` has read the `object`.
9
9
  defaultContext:
10
+ - "https://w3id.org/identity/v1"
10
11
  - "https://www.w3.org/ns/activitystreams"
11
12
  - "https://w3id.org/security/data-integrity/v1"
12
- - "https://w3id.org/identity/v1"
13
13
  properties: []
@@ -8,7 +8,7 @@ description: |
8
8
  Indicates that the `actor` is rejecting the `object`. The `target` and
9
9
  `origin` typically have no defined meaning.
10
10
  defaultContext:
11
+ - "https://w3id.org/identity/v1"
11
12
  - "https://www.w3.org/ns/activitystreams"
12
13
  - "https://w3id.org/security/data-integrity/v1"
13
- - "https://w3id.org/identity/v1"
14
14
  properties: []
@@ -8,7 +8,7 @@ description: |
8
8
  Indicates that the `actor` is removing the `object`. If specified,
9
9
  the `origin` indicates the context from which the `object` is being removed.
10
10
  defaultContext:
11
+ - "https://w3id.org/identity/v1"
11
12
  - "https://www.w3.org/ns/activitystreams"
12
13
  - "https://w3id.org/security/data-integrity/v1"
13
- - "https://w3id.org/identity/v1"
14
14
  properties: []
@@ -8,7 +8,7 @@ description: |
8
8
  A specialization of {@link Accept} indicating that
9
9
  the acceptance is tentative.
10
10
  defaultContext:
11
+ - "https://w3id.org/identity/v1"
11
12
  - "https://www.w3.org/ns/activitystreams"
12
13
  - "https://w3id.org/security/data-integrity/v1"
13
- - "https://w3id.org/identity/v1"
14
14
  properties: []
@@ -8,7 +8,7 @@ description: |
8
8
  A specialization of {@link Reject} in which
9
9
  the rejection is considered tentative.
10
10
  defaultContext:
11
+ - "https://w3id.org/identity/v1"
11
12
  - "https://www.w3.org/ns/activitystreams"
12
13
  - "https://w3id.org/security/data-integrity/v1"
13
- - "https://w3id.org/identity/v1"
14
14
  properties: []
@@ -10,7 +10,7 @@ description: |
10
10
  If the `target` or `origin` are not specified,
11
11
  either can be determined by context.
12
12
  defaultContext:
13
+ - "https://w3id.org/identity/v1"
13
14
  - "https://www.w3.org/ns/activitystreams"
14
15
  - "https://w3id.org/security/data-integrity/v1"
15
- - "https://w3id.org/identity/v1"
16
16
  properties: []
@@ -13,7 +13,7 @@ description: |
13
13
 
14
14
  The `target` and `origin` typically have no defined meaning.
15
15
  defaultContext:
16
+ - "https://w3id.org/identity/v1"
16
17
  - "https://www.w3.org/ns/activitystreams"
17
18
  - "https://w3id.org/security/data-integrity/v1"
18
- - "https://w3id.org/identity/v1"
19
19
  properties: []
@@ -11,9 +11,9 @@ description: |
11
11
 
12
12
  The `target` and `origin` typically have no defined meaning.
13
13
  defaultContext:
14
+ - "https://w3id.org/identity/v1"
14
15
  - "https://www.w3.org/ns/activitystreams"
15
16
  - "https://w3id.org/security/data-integrity/v1"
16
- - "https://w3id.org/identity/v1"
17
17
  - toot: "http://joinmastodon.org/ns#"
18
18
  schema: "http://schema.org#"
19
19
  misskey: "https://misskey-hub.net/ns#"
@@ -7,7 +7,7 @@ entity: true
7
7
  description: |
8
8
  Indicates that the `actor` has viewed the object.
9
9
  defaultContext:
10
+ - "https://w3id.org/identity/v1"
10
11
  - "https://www.w3.org/ns/activitystreams"
11
12
  - "https://w3id.org/security/data-integrity/v1"
12
- - "https://w3id.org/identity/v1"
13
13
  properties: []