@fedify/fedify 1.4.0-dev.585 → 1.4.0-dev.587

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/CHANGES.md CHANGED
@@ -8,6 +8,17 @@ Version 1.4.0
8
8
 
9
9
  To be released.
10
10
 
11
+ - The `suppressError` option of Activity Vocabulary APIs,
12
+ `traverseCollection()` function, and `Context.traverseCollection()` method
13
+ now suppresses errors occurred JSON-LD processing.
14
+
15
+ - Added `-t`/`--traverse` option to the `fedify lookup` subcommand. [[#195]]
16
+
17
+ - Added `-S`/`--suppress-errors` option to the `fedify lookup` subcommand.
18
+ [[#195]]
19
+
20
+ [#195]: https://github.com/dahlia/fedify/issues/195
21
+
11
22
 
12
23
  Version 1.3.1
13
24
  -------------
package/esm/deno.js CHANGED
@@ -1,6 +1,6 @@
1
1
  export default {
2
2
  "name": "@fedify/fedify",
3
- "version": "1.4.0-dev.585+a2aa1086",
3
+ "version": "1.4.0-dev.587+dae4d168",
4
4
  "license": "MIT",
5
5
  "exports": {
6
6
  ".": "./mod.ts",
@@ -1038,14 +1038,17 @@ export class FederationImpl {
1038
1038
  for (const { privateKey } of keys) {
1039
1039
  validateCryptoKey(privateKey, "private");
1040
1040
  }
1041
- if (activity.actorId == null) {
1042
- logger.error("Activity {activityId} to send does not have an actor.", { activity, activityId: activity?.id?.href });
1043
- throw new TypeError("The activity to send must have at least one actor property.");
1044
- }
1045
1041
  if (activity.id == null) {
1046
1042
  const id = new URL(`urn:uuid:${dntShim.crypto.randomUUID()}`);
1047
1043
  activity = activity.clone({ id });
1048
- span?.setAttribute("activitypub.activity.id", id.href);
1044
+ logger.warn("As the activity to send does not have an id, a new id {id} has " +
1045
+ "been generated for it. However, it is recommended to explicitly " +
1046
+ "set the id for the activity.", { id: id.href });
1047
+ }
1048
+ span?.setAttribute("activitypub.activity.id", activity.id.href);
1049
+ if (activity.actorId == null) {
1050
+ logger.error("Activity {activityId} to send does not have an actor.", { activity, activityId: activity?.id?.href });
1051
+ throw new TypeError("The activity to send must have at least one actor property.");
1049
1052
  }
1050
1053
  const inboxes = extractInboxes({
1051
1054
  recipients: Array.isArray(recipients) ? recipients : [recipients],