@fedify/fedify 1.5.0-dev.751 → 1.5.0

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
@@ -6,7 +6,7 @@ Fedify changelog
6
6
  Version 1.5.0
7
7
  -------------
8
8
 
9
- To be released.
9
+ Released on March 28, 2025.
10
10
 
11
11
  - Improved activity delivery performance with large audiences through
12
12
  a two-stage queuing system. Sending activities to many recipients
@@ -31,6 +31,15 @@ To be released.
31
31
  - Added `FederationOrigin` interface.
32
32
  - Added `Context.canonicalOrigin` property.
33
33
 
34
+ - Followers collection synchronization ([FEP-8fcf]) is now turned off by
35
+ default.
36
+
37
+ - Added `SendActivityOptionsForCollection` interface.
38
+ - The type of `Context.sendActivity({ identifier: string } | { username:
39
+ string } | { handle: string }, "followers", Activity)` overload's
40
+ fourth parameter became `SendActivityOptionsForCollection | undefined`
41
+ (was `SendActivityOptions | undefined`).
42
+
34
43
  - Fedify now accepts PEM-PKCS#1 besides PEM-SPKI for RSA public keys.
35
44
  [[#209]]
36
45
 
@@ -102,6 +111,7 @@ To be released.
102
111
  [#220]: https://github.com/fedify-dev/fedify/issues/220
103
112
  [#221]: https://github.com/fedify-dev/fedify/issues/221
104
113
  [#223]: https://github.com/fedify-dev/fedify/pull/223
114
+ [FEP-8fcf]: https://w3id.org/fep/8fcf
105
115
  [multibase]: https://github.com/multiformats/js-multibase
106
116
 
107
117
 
package/esm/deno.js CHANGED
@@ -1,6 +1,6 @@
1
1
  export default {
2
2
  "name": "@fedify/fedify",
3
- "version": "1.5.0-dev.751+8b01be35",
3
+ "version": "1.5.0",
4
4
  "license": "MIT",
5
5
  "exports": {
6
6
  ".": "./mod.ts",
@@ -2043,7 +2043,7 @@ export class ContextImpl {
2043
2043
  }
2044
2044
  });
2045
2045
  }
2046
- async sendActivityInternal(sender, recipients, activity, options = {}, span) {
2046
+ async sendActivityInternal(sender, recipients, activity, options, span) {
2047
2047
  const logger = getLogger(["fedify", "federation", "outbox"]);
2048
2048
  let keys;
2049
2049
  let identifier = null;
@@ -2107,10 +2107,12 @@ export class ContextImpl {
2107
2107
  for await (const recipient of this.getFollowers(identifier)) {
2108
2108
  expandedRecipients.push(recipient);
2109
2109
  }
2110
- const collectionId = this.federation.router.build("followers", { identifier, handle: identifier });
2111
- opts.collectionSync = collectionId == null
2112
- ? undefined
2113
- : new URL(collectionId, this.canonicalOrigin).href;
2110
+ if (options.syncCollection) {
2111
+ const collectionId = this.federation.router.build("followers", { identifier, handle: identifier });
2112
+ opts.collectionSync = collectionId == null
2113
+ ? undefined
2114
+ : new URL(collectionId, this.canonicalOrigin).href;
2115
+ }
2114
2116
  }
2115
2117
  else {
2116
2118
  expandedRecipients = [recipients];