@fedify/fedify 1.5.0-dev.730 → 1.5.0-dev.731
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 +3 -0
- package/esm/deno.js +1 -1
- package/esm/federation/middleware.js +5 -0
- package/esm/vocab/vocab.js +176 -176
- package/package.json +1 -1
- package/types/federation/context.d.ts +2 -2
- package/types/federation/context.d.ts.map +1 -1
- package/types/federation/middleware.d.ts.map +1 -1
package/CHANGES.md
CHANGED
@@ -19,6 +19,9 @@ To be released.
|
|
19
19
|
undefined`).
|
20
20
|
- Added `SendActivityOptions.fanout` option.
|
21
21
|
- Added OpenTelemetry instrumented span `activitypub.fanout`.
|
22
|
+
- The `ForwardActivityOptions` interface became a type alias of
|
23
|
+
`Omit<SendActivityOptions, "fanout"> & { skipIfUnsigned: boolean }`,
|
24
|
+
which is still compatible with the previous version.
|
22
25
|
|
23
26
|
- A `Federation` object now can have a canonical origin for web URLs and
|
24
27
|
a canonical host for fediverse handles. This affects the URLs constructed
|
package/esm/deno.js
CHANGED
@@ -322,6 +322,11 @@ export class FederationImpl {
|
|
322
322
|
});
|
323
323
|
}
|
324
324
|
async #listenFanoutMessage(data, message) {
|
325
|
+
const logger = getLogger(["fedify", "federation", "fanout"]);
|
326
|
+
logger.debug("Fanning out activity {activityId} to {inboxes} inbox(es)...", {
|
327
|
+
activityId: message.activityId,
|
328
|
+
inboxes: globalThis.Object.keys(message.inboxes).length,
|
329
|
+
});
|
325
330
|
const keys = await Promise.all(message.keys.map(async ({ keyId, privateKey }) => ({
|
326
331
|
keyId: new URL(keyId),
|
327
332
|
privateKey: await importJwk(privateKey, "private"),
|