@fedify/fedify 2.4.0-dev.1664 → 2.4.0-dev.1666
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/README.md +3 -0
- package/dist/{builder-DEtIoOCd.mjs → builder-BGpBs-US.mjs} +2 -2
- package/dist/compat/mod.d.cts +1 -1
- package/dist/compat/mod.d.ts +1 -1
- package/dist/compat/transformers.test.mjs +1 -1
- package/dist/{context-lxX6I7as.d.cts → context-C05Rgxmu.d.cts} +1 -1
- package/dist/{context-Zii1f5xS.d.ts → context-Cjnr0ig1.d.ts} +1 -1
- package/dist/{deno-D-7G1Gr_.mjs → deno-CaQlEENR.mjs} +1 -1
- package/dist/{docloader-D9A6EEqU.mjs → docloader-CTm2Lcpn.mjs} +2 -2
- package/dist/federation/builder.test.mjs +1 -1
- package/dist/federation/handler.test.mjs +3 -3
- package/dist/federation/idempotency.test.mjs +2 -2
- package/dist/federation/metrics.test.mjs +1 -1
- package/dist/federation/middleware.test.mjs +7 -7
- package/dist/federation/mod.cjs +288 -9
- package/dist/federation/mod.d.cts +3 -3
- package/dist/federation/mod.d.ts +3 -3
- package/dist/federation/mod.js +279 -1
- package/dist/federation/mq.test.mjs +20 -1
- package/dist/federation/send.test.mjs +3 -3
- package/dist/federation/tasks/enqueue.test.mjs +39 -2
- package/dist/federation/tasks/tasks.test.mjs +3 -3
- package/dist/federation/temporal.test.mjs +1 -1
- package/dist/federation/webfinger.test.mjs +1 -1
- package/dist/{http-D8vNRU1c.cjs → http-BIJdA1mF.cjs} +1 -1
- package/dist/{http-CwUR2p9O.js → http-BX5xiNUh.js} +1 -1
- package/dist/{http-C9YqGENE.mjs → http-BaSuRiWJ.mjs} +3 -3
- package/dist/{key-k-gXasaq.mjs → key-BvJYxJoY.mjs} +2 -2
- package/dist/{kv-cache-wU63ceog.mjs → kv-cache-B9fTkVpc.mjs} +1 -1
- package/dist/{kv-cache-S8ktj9Is.cjs → kv-cache-BPapnm-V.cjs} +1 -1
- package/dist/{kv-cache-D3qGuzMp.js → kv-cache-C04NtL2n.js} +1 -1
- package/dist/{ld-CTrXQ_4L.mjs → ld-DU12IAt8.mjs} +3 -3
- package/dist/{metrics-C0sK8KVF.mjs → metrics-BYUxSscw.mjs} +1 -1
- package/dist/{metrics-CoUJLQhZ.d.cts → metrics-DN13mCAw.d.cts} +19 -1
- package/dist/{metrics-Dc4jR-IC.d.ts → metrics-v_e0n5GQ.d.ts} +19 -1
- package/dist/{middleware-D-tV30CO.mjs → middleware-BEd40QBF.mjs} +14 -15
- package/dist/{middleware-B0jtRhcz.mjs → middleware-C4oS_tdq.mjs} +1 -1
- package/dist/{middleware-B208QNHo.cjs → middleware-Dnzqy4sk.cjs} +40 -325
- package/dist/{middleware-n2M4gN8R.js → middleware-_VQWtF1B.js} +6 -278
- package/dist/{mod-BtEaIEcD.d.cts → mod-BrpVsSfY.d.cts} +1 -1
- package/dist/{mod-DLc2Ot6f.d.ts → mod-BsCE5Ihq.d.ts} +1 -1
- package/dist/{mod-UMmveiO0.d.ts → mod-CNef4in0.d.ts} +1 -1
- package/dist/{mod-gOlPDuT8.d.cts → mod-DdONo-ep.d.cts} +1 -1
- package/dist/mod.cjs +6 -6
- package/dist/mod.d.cts +4 -4
- package/dist/mod.d.ts +4 -4
- package/dist/mod.js +5 -5
- package/dist/{mq-llHKivST.mjs → mq-Bo7Etgh6.mjs} +6 -0
- package/dist/nodeinfo/handler.test.mjs +1 -1
- package/dist/{owner-z1xvgrcr.mjs → owner-DFF9ltAs.mjs} +2 -2
- package/dist/{proof-CkTnuZWO.mjs → proof-DEV-fO9I.mjs} +3 -3
- package/dist/{proof-Bxw6BAup.cjs → proof-DcbeTQMG.cjs} +1 -1
- package/dist/{proof-B-mhO7aE.js → proof-rOoEb_P4.js} +1 -1
- package/dist/{send-5auO80cc.mjs → send-BVkabUz0.mjs} +3 -3
- package/dist/sig/http.test.mjs +2 -2
- package/dist/sig/key.test.mjs +1 -1
- package/dist/sig/ld.test.mjs +2 -2
- package/dist/sig/mod.cjs +2 -2
- package/dist/sig/mod.js +2 -2
- package/dist/sig/owner.test.mjs +1 -1
- package/dist/sig/proof.test.mjs +1 -1
- package/dist/{temporal-S74T65ap.mjs → temporal-X0BllGgC.mjs} +1 -1
- package/dist/testing/mod.d.mts +14 -1
- package/dist/utils/docloader.test.mjs +2 -2
- package/dist/utils/kv-cache.test.mjs +1 -1
- package/dist/utils/mod.cjs +1 -1
- package/dist/utils/mod.d.cts +1 -1
- package/dist/utils/mod.d.ts +1 -1
- package/dist/utils/mod.js +1 -1
- package/package.json +7 -7
package/dist/sig/proof.test.mjs
CHANGED
|
@@ -8,7 +8,7 @@ import { t as assertInstanceOf } from "../assert_instance_of-Q9KTBnrf.mjs";
|
|
|
8
8
|
import { t as assert } from "../assert-CJ1KXcvv.mjs";
|
|
9
9
|
import { i as rsaPrivateKey2, n as ed25519PrivateKey, r as ed25519PublicKey, s as rsaPublicKey2, t as ed25519Multikey } from "../keys-Dbyd7bhl.mjs";
|
|
10
10
|
import { r as normalizeOutgoingActivityJsonLd } from "../outgoing-jsonld-URuqsICz.mjs";
|
|
11
|
-
import { a as verifyProof, i as verifyObject, n as hasProofLike, r as signObject, t as createProof } from "../proof-
|
|
11
|
+
import { a as verifyProof, i as verifyObject, n as hasProofLike, r as signObject, t as createProof } from "../proof-DEV-fO9I.mjs";
|
|
12
12
|
import { Create, DataIntegrityProof, Document, Multikey, Note, PUBLIC_COLLECTION, Place } from "@fedify/vocab";
|
|
13
13
|
import { createTestMeterProvider, mockDocumentLoader, test } from "@fedify/fixture";
|
|
14
14
|
import { decodeMultibase, exportDidKey, exportMultibaseKey, importMultibaseKey, parseIri } from "@fedify/vocab-runtime";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Temporal } from "temporal-polyfill";
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
|
-
import { c as getNormalizationContextLoader } from "./ld-
|
|
4
|
+
import { c as getNormalizationContextLoader } from "./ld-DU12IAt8.mjs";
|
|
5
5
|
import jsonld from "@fedify/vocab-runtime/jsonld";
|
|
6
6
|
//#region src/federation/temporal.ts
|
|
7
7
|
function isPlainObject(value) {
|
package/dist/testing/mod.d.mts
CHANGED
|
@@ -897,6 +897,17 @@ interface MessageQueue {
|
|
|
897
897
|
* @since 2.4.0
|
|
898
898
|
*/
|
|
899
899
|
readonly nativeDeduplication?: boolean;
|
|
900
|
+
/**
|
|
901
|
+
* Whether {@link enqueueMany} accepts either every message or no messages.
|
|
902
|
+
* Backends that implement `enqueueMany()` by sending messages individually
|
|
903
|
+
* must set this to `false`, so Fedify does not use that method for a batch
|
|
904
|
+
* governed by one `deduplicationKey`. `true` by default when `enqueueMany`
|
|
905
|
+
* is implemented.
|
|
906
|
+
*
|
|
907
|
+
* @default `true`
|
|
908
|
+
* @since 2.4.0
|
|
909
|
+
*/
|
|
910
|
+
readonly atomicEnqueueMany?: boolean;
|
|
900
911
|
/**
|
|
901
912
|
* Enqueues a message in the queue.
|
|
902
913
|
* @param message The message to enqueue.
|
|
@@ -906,7 +917,9 @@ interface MessageQueue {
|
|
|
906
917
|
/**
|
|
907
918
|
* Enqueues multiple messages in the queue. This operation is optional,
|
|
908
919
|
* and may not be supported by all implementations. If not supported,
|
|
909
|
-
* Fedify will invoke {@link enqueue} for each message.
|
|
920
|
+
* Fedify will invoke {@link enqueue} for each message. An implementation
|
|
921
|
+
* that may accept only part of a batch before rejecting must declare
|
|
922
|
+
* {@link atomicEnqueueMany} `false`.
|
|
910
923
|
*
|
|
911
924
|
* @param messages The messages to enqueue.
|
|
912
925
|
* @param options Additional options for enqueuing the messages.
|
|
@@ -5,9 +5,9 @@ import { t as esm_default } from "../esm-yYQfPhIY.mjs";
|
|
|
5
5
|
import { t as assertEquals } from "../assert_equals-BV7oLMxm.mjs";
|
|
6
6
|
import "../std__assert-B2NnY9bq.mjs";
|
|
7
7
|
import { t as assertRejects } from "../assert_rejects-EgstcQy5.mjs";
|
|
8
|
-
import { l as verifyRequest } from "../http-
|
|
8
|
+
import { l as verifyRequest } from "../http-BaSuRiWJ.mjs";
|
|
9
9
|
import { i as rsaPrivateKey2 } from "../keys-Dbyd7bhl.mjs";
|
|
10
|
-
import { t as getAuthenticatedDocumentLoader } from "../docloader-
|
|
10
|
+
import { t as getAuthenticatedDocumentLoader } from "../docloader-CTm2Lcpn.mjs";
|
|
11
11
|
import { mockDocumentLoader, test } from "@fedify/fixture";
|
|
12
12
|
import { UrlError } from "@fedify/vocab-runtime";
|
|
13
13
|
//#region src/utils/docloader.test.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Temporal } from "temporal-polyfill";
|
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
|
-
import { n as kvCache, t as MockKvStore } from "../kv-cache-
|
|
4
|
+
import { n as kvCache, t as MockKvStore } from "../kv-cache-B9fTkVpc.mjs";
|
|
5
5
|
import { deepStrictEqual, throws } from "node:assert";
|
|
6
6
|
import { createTestMeterProvider, mockDocumentLoader, test } from "@fedify/fixture";
|
|
7
7
|
import { preloadedContexts } from "@fedify/vocab-runtime";
|
package/dist/utils/mod.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const { URLPattern } = require("urlpattern-polyfill");
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const require_kv_cache = require("../kv-cache-
|
|
3
|
+
const require_kv_cache = require("../kv-cache-BPapnm-V.cjs");
|
|
4
4
|
exports.getAuthenticatedDocumentLoader = require_kv_cache.getAuthenticatedDocumentLoader;
|
|
5
5
|
exports.kvCache = require_kv_cache.kvCache;
|
package/dist/utils/mod.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
|
-
import { n as getAuthenticatedDocumentLoader, t as kvCache } from "../mod-
|
|
2
|
+
import { n as getAuthenticatedDocumentLoader, t as kvCache } from "../mod-BrpVsSfY.cjs";
|
|
3
3
|
export { getAuthenticatedDocumentLoader, kvCache };
|
package/dist/utils/mod.d.ts
CHANGED
package/dist/utils/mod.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Temporal } from "temporal-polyfill";
|
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
|
3
|
-
import { n as getAuthenticatedDocumentLoader, t as kvCache } from "../kv-cache-
|
|
3
|
+
import { n as getAuthenticatedDocumentLoader, t as kvCache } from "../kv-cache-C04NtL2n.js";
|
|
4
4
|
export { getAuthenticatedDocumentLoader, kvCache };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fedify/fedify",
|
|
3
|
-
"version": "2.4.0-dev.
|
|
3
|
+
"version": "2.4.0-dev.1666+690d9b28",
|
|
4
4
|
"description": "An ActivityPub server framework",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ActivityPub",
|
|
@@ -151,10 +151,10 @@
|
|
|
151
151
|
"structured-field-values": "^2.0.4",
|
|
152
152
|
"temporal-polyfill": "^1.0.1",
|
|
153
153
|
"urlpattern-polyfill": "^10.1.0",
|
|
154
|
-
"@fedify/
|
|
155
|
-
"@fedify/
|
|
156
|
-
"@fedify/
|
|
157
|
-
"@fedify/
|
|
154
|
+
"@fedify/uri-template": "2.4.0-dev.1666+690d9b28",
|
|
155
|
+
"@fedify/vocab": "2.4.0-dev.1666+690d9b28",
|
|
156
|
+
"@fedify/webfinger": "2.4.0-dev.1666+690d9b28",
|
|
157
|
+
"@fedify/vocab-runtime": "2.4.0-dev.1666+690d9b28"
|
|
158
158
|
},
|
|
159
159
|
"devDependencies": {
|
|
160
160
|
"@std/assert": "npm:@jsr/std__assert@^0.226.0",
|
|
@@ -166,8 +166,8 @@
|
|
|
166
166
|
"tsx": "^4.21.0",
|
|
167
167
|
"typescript": "^6.0.0",
|
|
168
168
|
"wrangler": "^4.17.0",
|
|
169
|
-
"@fedify/
|
|
170
|
-
"@fedify/
|
|
169
|
+
"@fedify/vocab-tools": "^2.4.0-dev.1666+690d9b28",
|
|
170
|
+
"@fedify/fixture": "2.0.0"
|
|
171
171
|
},
|
|
172
172
|
"scripts": {
|
|
173
173
|
"build:self": "tsdown",
|