@fedify/fedify 1.5.0-dev.751 → 1.5.0-dev.752
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 +10 -0
- package/esm/deno.js +1 -1
- package/esm/federation/middleware.js +7 -5
- package/esm/vocab/vocab.js +176 -176
- package/package.json +1 -1
- package/types/federation/context.d.ts +14 -1
- package/types/federation/context.d.ts.map +1 -1
- package/types/federation/middleware.d.ts +3 -3
- package/types/federation/middleware.d.ts.map +1 -1
package/CHANGES.md
CHANGED
@@ -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
@@ -2043,7 +2043,7 @@ export class ContextImpl {
|
|
2043
2043
|
}
|
2044
2044
|
});
|
2045
2045
|
}
|
2046
|
-
async sendActivityInternal(sender, recipients, activity, options
|
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
|
-
|
2111
|
-
|
2112
|
-
|
2113
|
-
|
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];
|