@fedify/fedify 2.5.0-dev.2816 → 2.5.0-dev.2825

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.
@@ -1,6 +1,6 @@
1
1
  const { URLPattern } = require("urlpattern-polyfill");
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const require_federation = require("../federation-qBfkwbc-.cjs");
3
+ const require_federation = require("../federation-DQTeYcIA.cjs");
4
4
  exports.CircuitBreaker = require_federation.CircuitBreaker;
5
5
  exports.InProcessMessageQueue = require_federation.InProcessMessageQueue;
6
6
  exports.MemoryKvStore = require_federation.MemoryKvStore;
@@ -1,6 +1,6 @@
1
1
  import { Temporal } from "temporal-polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
- import { a as respondWithObjectIfAcceptable, c as buildCollectionSynchronizationHeader, d as normalizeCircuitBreakerOptions, f as parseCircuitBreakerKvState, i as respondWithObject, l as digest, n as handleWebFinger, o as SendActivityError, p as createFederationBuilder, r as createExponentialBackoffPolicy, s as isActorAuthenticated, t as createFederation, u as CircuitBreaker } from "../middleware-CrlGyOLl.js";
3
+ import { a as respondWithObjectIfAcceptable, c as buildCollectionSynchronizationHeader, d as normalizeCircuitBreakerOptions, f as parseCircuitBreakerKvState, i as respondWithObject, l as digest, n as handleWebFinger, o as SendActivityError, p as createFederationBuilder, r as createExponentialBackoffPolicy, s as isActorAuthenticated, t as createFederation, u as CircuitBreaker } from "../middleware-3dWsKxVz.js";
4
4
  import { getLogger } from "@logtape/logtape";
5
5
  import { Router as Router$1, RouterError as RouterError$1, assertPath, isPath } from "@fedify/uri-template";
6
6
  import { isEqual } from "es-toolkit";
@@ -1,10 +1,10 @@
1
1
  const { URLPattern } = require("urlpattern-polyfill");
2
2
  const require_rolldown_runtime = require("./rolldown-runtime-Dmm3t92W.cjs");
3
3
  const require_transformers = require("./transformers-BalCrSsr.cjs");
4
- const require_http = require("./http-BWpPlAvo.cjs");
4
+ const require_http = require("./http-TOoBdvhT.cjs");
5
5
  const require_types = require("./types-hKCCjii0.cjs");
6
- const require_portable_collection = require("./portable-collection-FrTRucvQ.cjs");
7
- const require_kv_cache = require("./kv-cache-UsXgZAPb.cjs");
6
+ const require_portable_collection = require("./portable-collection-BOA6Tw6H.cjs");
7
+ const require_kv_cache = require("./kv-cache-BFQPYrZT.cjs");
8
8
  let _logtape_logtape = require("@logtape/logtape");
9
9
  let _fedify_vocab_runtime = require("@fedify/vocab-runtime");
10
10
  let _fedify_uri_template = require("@fedify/uri-template");
@@ -15,7 +15,7 @@ import serialize from "json-canon";
15
15
  import { ATTR_HTTP_REQUEST_HEADER, ATTR_HTTP_REQUEST_METHOD, ATTR_URL_FULL } from "@opentelemetry/semantic-conventions";
16
16
  //#region deno.json
17
17
  var name = "@fedify/fedify";
18
- var version = "2.5.0-dev.2816+e9894474";
18
+ var version = "2.5.0-dev.2825+f3f41ba3";
19
19
  //#endregion
20
20
  //#region src/sig/portable-key-id.ts
21
21
  const COMPATIBLE_KEY_ID_PATH_PATTERN = /^\/\.well-known\/apgateway\/did(?::|%3A)/i;
@@ -17,7 +17,7 @@ json_canon = require_rolldown_runtime.__toESM(json_canon, 1);
17
17
  let _opentelemetry_semantic_conventions = require("@opentelemetry/semantic-conventions");
18
18
  //#region deno.json
19
19
  var name = "@fedify/fedify";
20
- var version = "2.5.0-dev.2816+e9894474";
20
+ var version = "2.5.0-dev.2825+f3f41ba3";
21
21
  //#endregion
22
22
  //#region src/sig/portable-key-id.ts
23
23
  const COMPATIBLE_KEY_ID_PATH_PATTERN = /^\/\.well-known\/apgateway\/did(?::|%3A)/i;
@@ -1,5 +1,5 @@
1
1
  const { URLPattern } = require("urlpattern-polyfill");
2
- const require_http = require("./http-BWpPlAvo.cjs");
2
+ const require_http = require("./http-TOoBdvhT.cjs");
3
3
  let _logtape_logtape = require("@logtape/logtape");
4
4
  let _fedify_vocab_runtime = require("@fedify/vocab-runtime");
5
5
  let es_toolkit = require("es-toolkit");
@@ -1,6 +1,6 @@
1
1
  import { Temporal } from "temporal-polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
- import { X as validateCryptoKey, dt as recordDocumentCache, t as doubleKnockScoped } from "./http-BtAuOaF5.js";
3
+ import { X as validateCryptoKey, dt as recordDocumentCache, t as doubleKnockScoped } from "./http-CGNZxqA8.js";
4
4
  import { getLogger } from "@logtape/logtape";
5
5
  import { FetchError, UrlError, createActivityPubRequest, getRemoteDocument, logRequest, preloadedContexts, resolveDocumentLoaderTimeout, withDocumentLoaderTimeout } from "@fedify/vocab-runtime";
6
6
  import { curry } from "es-toolkit";
@@ -2,10 +2,10 @@ import { Temporal } from "temporal-polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
3
  import { t as __exportAll } from "./rolldown-runtime-BC-Eo5Mj.js";
4
4
  import { r as getDefaultActivityTransformers } from "./transformers-DAtXl_Kc.js";
5
- import { $ as getVerifiedKeyOwnerEvidence, A as compactJsonLd, At as getRawCanonicalPortableId, B as verifyCompactJsonLdDetailed, C as verifyPortableObjectProofWithRoot, Ct as observeAttempt, D as InvalidContextReferenceError, Dt as getCanonicalPortableId, E as normalizeOutgoingActivityJsonLd, Et as getAuthenticationOrigin, F as hasSignatureLike, Ft as isPortableUri, I as isClearlyMalformedContextReference, It as isSameObjectId, L as isInvalidUrlTypeError, M as detachSignature, Mt as isCompatibleKeyId, N as getNormalizationContextLoader, Nt as isPortableId, O as assertSafeJsonLd, Ot as getGatewayKeyBase, P as hasSignature, Pt as isPortableKeyId, Q as MAX_PORTABLE_KEY_TTL, R as markEffectiveContextLoader, Rt as name, S as verifyPortableObjectProofPolicy, Tt as verificationObservation, U as wrapContextLoaderForJsonLd, W as exportJwk, X as validateCryptoKey, Y as importJwk, _ as signObject, _t as registerQueueDepthGauge, at as isAbortError, b as verifyObjectDetailed, c as verifyRequestDetailed, ct as recordCollectionPageItems, d as InvalidPortableObjectIdError, f as classifyFep2277CoreType, ft as recordFanoutRecipients, g as preparePortableObjectProofPolicy, gt as recordWebFingerHandle, h as hasProofLike, ht as recordOutboxEnqueue, i as selectRequestSignature, it as instrumentDocumentLoader, jt as hasPortableActor, kt as getPortableDid, lt as recordCollectionRequest, m as getProofSigner, mt as recordOutboxActivity, n as listRequestSignatures, nt as getFederationMetrics, o as validateMaxSignatures, ot as recordCircuitBreakerStateChange, pt as recordInboxActivity, r as parseRfc9421SignatureInput, rt as getRemoteHost, s as verifyRequest, st as recordCollectionDispatchDuration, t as doubleKnockScoped, tt as getDurationMs, ut as recordCollectionTotalItems, v as verifyMapLocalProof, vt as preloadedOnlyDocumentLoader, w as verifyPreparedPortableObjectProofPolicy, wt as snapshotKey, x as verifyPortableObjectProof, y as verifyObject, yt as formatAcceptSignature, z as signJsonLd, zt as version } from "./http-BtAuOaF5.js";
5
+ import { $ as getVerifiedKeyOwnerEvidence, A as compactJsonLd, At as getRawCanonicalPortableId, B as verifyCompactJsonLdDetailed, C as verifyPortableObjectProofWithRoot, Ct as observeAttempt, D as InvalidContextReferenceError, Dt as getCanonicalPortableId, E as normalizeOutgoingActivityJsonLd, Et as getAuthenticationOrigin, F as hasSignatureLike, Ft as isPortableUri, I as isClearlyMalformedContextReference, It as isSameObjectId, L as isInvalidUrlTypeError, M as detachSignature, Mt as isCompatibleKeyId, N as getNormalizationContextLoader, Nt as isPortableId, O as assertSafeJsonLd, Ot as getGatewayKeyBase, P as hasSignature, Pt as isPortableKeyId, Q as MAX_PORTABLE_KEY_TTL, R as markEffectiveContextLoader, Rt as name, S as verifyPortableObjectProofPolicy, Tt as verificationObservation, U as wrapContextLoaderForJsonLd, W as exportJwk, X as validateCryptoKey, Y as importJwk, _ as signObject, _t as registerQueueDepthGauge, at as isAbortError, b as verifyObjectDetailed, c as verifyRequestDetailed, ct as recordCollectionPageItems, d as InvalidPortableObjectIdError, f as classifyFep2277CoreType, ft as recordFanoutRecipients, g as preparePortableObjectProofPolicy, gt as recordWebFingerHandle, h as hasProofLike, ht as recordOutboxEnqueue, i as selectRequestSignature, it as instrumentDocumentLoader, jt as hasPortableActor, kt as getPortableDid, lt as recordCollectionRequest, m as getProofSigner, mt as recordOutboxActivity, n as listRequestSignatures, nt as getFederationMetrics, o as validateMaxSignatures, ot as recordCircuitBreakerStateChange, pt as recordInboxActivity, r as parseRfc9421SignatureInput, rt as getRemoteHost, s as verifyRequest, st as recordCollectionDispatchDuration, t as doubleKnockScoped, tt as getDurationMs, ut as recordCollectionTotalItems, v as verifyMapLocalProof, vt as preloadedOnlyDocumentLoader, w as verifyPreparedPortableObjectProofPolicy, wt as snapshotKey, x as verifyPortableObjectProof, y as verifyObject, yt as formatAcceptSignature, z as signJsonLd, zt as version } from "./http-CGNZxqA8.js";
6
6
  import { a as MAX_BODY_SIZE, i as BodyTooLargeError, n as getNodeInfo, o as readBoundedText, t as nodeInfoToJson } from "./types-DUjZb4i6.js";
7
- import { n as doesActorOwnKey, r as getKeyOwner, t as verifyPortableObject } from "./portable-collection-9B8d4_aZ.js";
8
- import { n as getAuthenticatedDocumentLoader, t as kvCache } from "./kv-cache-D26MXx86.js";
7
+ import { n as doesActorOwnKey, r as getKeyOwner, t as verifyPortableObject } from "./portable-collection-bZiykCU1.js";
8
+ import { n as getAuthenticatedDocumentLoader, t as kvCache } from "./kv-cache-CAlEzvyN.js";
9
9
  import { getLogger, withContext } from "@logtape/logtape";
10
10
  import { FetchError, UrlError, canonicalizePortableUri, decodeMultibase, formatIri, fromCompatibleEf61Id, getDocumentLoader, getFe34Origin, isGatewayUrl, parseDigestMultibase, parseHashlink, parseIri, preloadedContexts, resolveDocumentLoaderTimeout, toCompatibleEf61Id } from "@fedify/vocab-runtime";
11
11
  import { Router, RouterError, assertPath } from "@fedify/uri-template";
package/dist/mod.cjs CHANGED
@@ -3,11 +3,11 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  require("./rolldown-runtime-Dmm3t92W.cjs");
4
4
  const require_transformers = require("./transformers-BalCrSsr.cjs");
5
5
  require("./compat/mod.cjs");
6
- const require_federation = require("./federation-qBfkwbc-.cjs");
7
- const require_http = require("./http-BWpPlAvo.cjs");
6
+ const require_federation = require("./federation-DQTeYcIA.cjs");
7
+ const require_http = require("./http-TOoBdvhT.cjs");
8
8
  const require_types = require("./types-hKCCjii0.cjs");
9
- const require_portable_collection = require("./portable-collection-FrTRucvQ.cjs");
10
- const require_kv_cache = require("./kv-cache-UsXgZAPb.cjs");
9
+ const require_portable_collection = require("./portable-collection-BOA6Tw6H.cjs");
10
+ const require_kv_cache = require("./kv-cache-BFQPYrZT.cjs");
11
11
  require("./nodeinfo/mod.cjs");
12
12
  require("./runtime/mod.cjs");
13
13
  require("./sig/mod.cjs");
package/dist/mod.js CHANGED
@@ -3,11 +3,11 @@ import { URLPattern } from "urlpattern-polyfill";
3
3
  import "./rolldown-runtime-BC-Eo5Mj.js";
4
4
  import { n as autoIdAssigner, r as getDefaultActivityTransformers, t as actorDehydrator } from "./transformers-DAtXl_Kc.js";
5
5
  import "./compat/mod.js";
6
- import { a as respondWithObjectIfAcceptable, c as buildCollectionSynchronizationHeader, d as normalizeCircuitBreakerOptions, f as parseCircuitBreakerKvState, i as respondWithObject, l as digest, n as handleWebFinger, o as SendActivityError, p as createFederationBuilder, r as createExponentialBackoffPolicy, s as isActorAuthenticated, t as createFederation, u as CircuitBreaker } from "./middleware-CrlGyOLl.js";
7
- import { F as hasSignatureLike, H as verifySignature, J as generateCryptoKeyPair, K as fetchKey, M as detachSignature, St as validateAcceptSignature, T as verifyProof, V as verifyJsonLd, W as exportJwk, Y as importJwk, _ as signObject, a as signRequest, bt as fulfillAcceptSignature, c as verifyRequestDetailed, h as hasProofLike, j as createSignature, k as attachSignature, p as createProof, q as fetchKeyDetailed, s as verifyRequest, x as verifyPortableObjectProof, xt as parseAcceptSignature, y as verifyObject, yt as formatAcceptSignature, z as signJsonLd } from "./http-BtAuOaF5.js";
6
+ import { a as respondWithObjectIfAcceptable, c as buildCollectionSynchronizationHeader, d as normalizeCircuitBreakerOptions, f as parseCircuitBreakerKvState, i as respondWithObject, l as digest, n as handleWebFinger, o as SendActivityError, p as createFederationBuilder, r as createExponentialBackoffPolicy, s as isActorAuthenticated, t as createFederation, u as CircuitBreaker } from "./middleware-3dWsKxVz.js";
7
+ import { F as hasSignatureLike, H as verifySignature, J as generateCryptoKeyPair, K as fetchKey, M as detachSignature, St as validateAcceptSignature, T as verifyProof, V as verifyJsonLd, W as exportJwk, Y as importJwk, _ as signObject, a as signRequest, bt as fulfillAcceptSignature, c as verifyRequestDetailed, h as hasProofLike, j as createSignature, k as attachSignature, p as createProof, q as fetchKeyDetailed, s as verifyRequest, x as verifyPortableObjectProof, xt as parseAcceptSignature, y as verifyObject, yt as formatAcceptSignature, z as signJsonLd } from "./http-CGNZxqA8.js";
8
8
  import { n as getNodeInfo, r as parseNodeInfo, t as nodeInfoToJson } from "./types-DUjZb4i6.js";
9
- import { n as doesActorOwnKey, r as getKeyOwner, t as verifyPortableObject } from "./portable-collection-9B8d4_aZ.js";
10
- import { n as getAuthenticatedDocumentLoader, t as kvCache } from "./kv-cache-D26MXx86.js";
9
+ import { n as doesActorOwnKey, r as getKeyOwner, t as verifyPortableObject } from "./portable-collection-bZiykCU1.js";
10
+ import { n as getAuthenticatedDocumentLoader, t as kvCache } from "./kv-cache-CAlEzvyN.js";
11
11
  import { InProcessMessageQueue, MemoryKvStore, ParallelMessageQueue, Router, RouterError, isAtomicKvStore } from "./federation/mod.js";
12
12
  import "./nodeinfo/mod.js";
13
13
  import "./runtime/mod.js";
@@ -1,5 +1,5 @@
1
1
  const { URLPattern } = require("urlpattern-polyfill");
2
- const require_http = require("./http-BWpPlAvo.cjs");
2
+ const require_http = require("./http-TOoBdvhT.cjs");
3
3
  let _logtape_logtape = require("@logtape/logtape");
4
4
  let _fedify_vocab_runtime = require("@fedify/vocab-runtime");
5
5
  let _fedify_vocab = require("@fedify/vocab");
@@ -1,6 +1,6 @@
1
1
  import { Temporal } from "temporal-polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
- import { $ as getVerifiedKeyOwnerEvidence, C as verifyPortableObjectProofWithRoot, Dt as getCanonicalPortableId, Ft as isPortableUri, G as fetchActorDocument, Lt as isSamePublicKey$1, Mt as isCompatibleKeyId, Nt as isPortableId, Rt as name, W as exportJwk, Z as verifyKeyOwnership, et as parseKeyOwnerEvidence, l as fetchPortableGatewayKey, u as resolvePortableActorKey, x as verifyPortableObjectProof, zt as version } from "./http-BtAuOaF5.js";
3
+ import { $ as getVerifiedKeyOwnerEvidence, C as verifyPortableObjectProofWithRoot, Dt as getCanonicalPortableId, Ft as isPortableUri, G as fetchActorDocument, Lt as isSamePublicKey$1, Mt as isCompatibleKeyId, Nt as isPortableId, Rt as name, W as exportJwk, Z as verifyKeyOwnership, et as parseKeyOwnerEvidence, l as fetchPortableGatewayKey, u as resolvePortableActorKey, x as verifyPortableObjectProof, zt as version } from "./http-CGNZxqA8.js";
4
4
  import { getLogger } from "@logtape/logtape";
5
5
  import { canonicalizePortableUri, formatIri, fromCompatibleEf61Id, getDocumentLoader, getFe34Origin, parseIri } from "@fedify/vocab-runtime";
6
6
  import { CollectionPage, CryptographicKey, Object as Object$1, isActor } from "@fedify/vocab";
package/dist/sig/mod.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  const { URLPattern } = require("urlpattern-polyfill");
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const require_http = require("../http-BWpPlAvo.cjs");
4
- const require_portable_collection = require("../portable-collection-FrTRucvQ.cjs");
3
+ const require_http = require("../http-TOoBdvhT.cjs");
4
+ const require_portable_collection = require("../portable-collection-BOA6Tw6H.cjs");
5
5
  exports.attachSignature = require_http.attachSignature;
6
6
  exports.createProof = require_http.createProof;
7
7
  exports.createSignature = require_http.createSignature;
package/dist/sig/mod.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Temporal } from "temporal-polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
- import { F as hasSignatureLike, H as verifySignature, J as generateCryptoKeyPair, K as fetchKey, M as detachSignature, St as validateAcceptSignature, T as verifyProof, V as verifyJsonLd, W as exportJwk, Y as importJwk, _ as signObject, a as signRequest, bt as fulfillAcceptSignature, c as verifyRequestDetailed, h as hasProofLike, j as createSignature, k as attachSignature, p as createProof, q as fetchKeyDetailed, s as verifyRequest, x as verifyPortableObjectProof, xt as parseAcceptSignature, y as verifyObject, yt as formatAcceptSignature, z as signJsonLd } from "../http-BtAuOaF5.js";
4
- import { n as doesActorOwnKey, r as getKeyOwner, t as verifyPortableObject } from "../portable-collection-9B8d4_aZ.js";
3
+ import { F as hasSignatureLike, H as verifySignature, J as generateCryptoKeyPair, K as fetchKey, M as detachSignature, St as validateAcceptSignature, T as verifyProof, V as verifyJsonLd, W as exportJwk, Y as importJwk, _ as signObject, a as signRequest, bt as fulfillAcceptSignature, c as verifyRequestDetailed, h as hasProofLike, j as createSignature, k as attachSignature, p as createProof, q as fetchKeyDetailed, s as verifyRequest, x as verifyPortableObjectProof, xt as parseAcceptSignature, y as verifyObject, yt as formatAcceptSignature, z as signJsonLd } from "../http-CGNZxqA8.js";
4
+ import { n as doesActorOwnKey, r as getKeyOwner, t as verifyPortableObject } from "../portable-collection-bZiykCU1.js";
5
5
  export { attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, exportJwk, fetchKey, fetchKeyDetailed, formatAcceptSignature, fulfillAcceptSignature, generateCryptoKeyPair, getKeyOwner, hasProofLike, hasSignatureLike, importJwk, parseAcceptSignature, signJsonLd, signObject, signRequest, validateAcceptSignature, verifyJsonLd, verifyObject, verifyPortableObject, verifyPortableObjectProof, verifyProof, verifyRequest, verifyRequestDetailed, verifySignature };
@@ -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-UsXgZAPb.cjs");
3
+ const require_kv_cache = require("../kv-cache-BFQPYrZT.cjs");
4
4
  exports.getAuthenticatedDocumentLoader = require_kv_cache.getAuthenticatedDocumentLoader;
5
5
  exports.kvCache = require_kv_cache.kvCache;
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-D26MXx86.js";
3
+ import { n as getAuthenticatedDocumentLoader, t as kvCache } from "../kv-cache-CAlEzvyN.js";
4
4
  export { getAuthenticatedDocumentLoader, kvCache };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fedify/fedify",
3
- "version": "2.5.0-dev.2816+e9894474",
3
+ "version": "2.5.0-dev.2825+f3f41ba3",
4
4
  "description": "An ActivityPub server framework",
5
5
  "keywords": [
6
6
  "ActivityPub",
@@ -77,6 +77,16 @@
77
77
  "require": "./dist/compat/mod.cjs",
78
78
  "default": "./dist/compat/mod.js"
79
79
  },
80
+ "./delivery-suspension": {
81
+ "types": {
82
+ "import": "./dist/delivery-suspension/mod.d.ts",
83
+ "require": "./dist/delivery-suspension/mod.d.cts",
84
+ "default": "./dist/delivery-suspension/mod.d.ts"
85
+ },
86
+ "import": "./dist/delivery-suspension/mod.js",
87
+ "require": "./dist/delivery-suspension/mod.cjs",
88
+ "default": "./dist/delivery-suspension/mod.js"
89
+ },
80
90
  "./federation": {
81
91
  "types": {
82
92
  "import": "./dist/federation/mod.d.ts",
@@ -164,10 +174,10 @@
164
174
  "structured-field-values": "^2.0.4",
165
175
  "temporal-polyfill": "^1.0.1",
166
176
  "urlpattern-polyfill": "^10.1.0",
167
- "@fedify/uri-template": "2.5.0-dev.2816+e9894474",
168
- "@fedify/vocab-runtime": "2.5.0-dev.2816+e9894474",
169
- "@fedify/webfinger": "2.5.0-dev.2816+e9894474",
170
- "@fedify/vocab": "2.5.0-dev.2816+e9894474"
177
+ "@fedify/uri-template": "2.5.0-dev.2825+f3f41ba3",
178
+ "@fedify/vocab": "2.5.0-dev.2825+f3f41ba3",
179
+ "@fedify/vocab-runtime": "2.5.0-dev.2825+f3f41ba3",
180
+ "@fedify/webfinger": "2.5.0-dev.2825+f3f41ba3"
171
181
  },
172
182
  "devDependencies": {
173
183
  "@std/assert": "npm:@jsr/std__assert@^0.226.0",
@@ -179,7 +189,7 @@
179
189
  "typescript": "^6.0.3",
180
190
  "wrangler": "^4.17.0",
181
191
  "@fedify/fixture": "2.0.0",
182
- "@fedify/vocab-tools": "^2.5.0-dev.2816+e9894474"
192
+ "@fedify/vocab-tools": "^2.5.0-dev.2825+f3f41ba3"
183
193
  },
184
194
  "scripts": {
185
195
  "build:self": "tsdown",
@@ -458,9 +458,17 @@ existing Deno applications throughout the 2.x series.
458
458
  On Cloudflare Workers, use `WorkersD1KvStore` (backed by D1) rather than
459
459
  `WorkersKvStore` (backed by Workers KV). Fedify's key–value workload is
460
460
  balanced between reads and writes and needs strong consistency, and only
461
- `WorkersD1KvStore` supports `cas()`. Pass the `D1Database` binding itself,
462
- not a D1 session, and create its table with a D1 migration and
463
- `initialized: true`, since the store is constructed per request.
461
+ `WorkersD1KvStore` implements `AtomicKvStore`. Pass the `D1Database` binding
462
+ for fresh primary reads; caller-owned sessions can serve stale `getMany()`
463
+ snapshots even after their first `first-primary` query. CAS always uses a
464
+ write transaction with a guard row, including absence-only CAS. Create both
465
+ the entry table and `<tableName>_atomic` guard table plus the expiry index
466
+ with a D1 migration before using `initialized: true`. The entry table needs
467
+ a single-column `key` primary index with `BINARY` collation. Follow the
468
+ complete schema and codec/TTL/batch limits in the
469
+ [KV manual][atomic support matrix]; a table name ending in `_atomic` is
470
+ reserved. Single and multi-key writes share the same protocol; oversized calls
471
+ reject instead of splitting.
464
472
 
465
473
  For application transitions across several keys, require `AtomicKvStore`
466
474
  from `@fedify/fedify` and narrow an existing `KvStore` with
@@ -495,17 +503,18 @@ for a shared backend. Separate calls do not form a transaction; uncertain
495
503
  commit results need receipts or version checks, and ABA detection needs a
496
504
  non-reused version.
497
505
 
498
- `MemoryKvStore`, `PostgresKvStore`, `SqliteKvStore`, `PgliteKvStore`, and
499
- `MysqlKvStore` implement the atomic interface in their documented scopes.
500
- SQLite covers one configured table/database on a writable, normally locking
501
- connection. Nonempty batches and ordinary mutations reject caller-owned
502
- transactions and use one transaction; snapshots and mismatching CAS can reject
503
- busy, including under rollback-journal reader contention. Configure busy
504
- timeout on the connection; the KV store has no retry policy. Use decoded JSON
505
- expectations, structural comparison, and the documented millisecond TTL
506
- precision and resource limits. `SqliteMessageQueue` defaults to WAL on shared
507
- files; concurrent WAL use needs a patched SQLite engine (Bun 1.2.22 SQLite
508
- 3.50.4 is affected by the WAL-reset bug). See the adapter documentation.
506
+ `MemoryKvStore`, `PostgresKvStore`, `RedisKvStore`, `SqliteKvStore`,
507
+ `PgliteKvStore`, `MysqlKvStore`, and `WorkersD1KvStore` implement the atomic
508
+ interface in their documented scopes. SQLite covers one configured
509
+ table/database on a writable, normally locking connection. Nonempty batches
510
+ and ordinary mutations reject caller-owned transactions and use one
511
+ transaction; snapshots and mismatching CAS can reject busy, including under
512
+ rollback-journal reader contention. Configure busy timeout on the connection;
513
+ the KV store has no retry policy. Use decoded JSON expectations, structural
514
+ comparison, and the documented millisecond TTL precision and resource limits.
515
+ `SqliteMessageQueue` defaults to WAL on shared files; concurrent WAL use needs
516
+ a patched SQLite engine (Bun 1.2.22 SQLite 3.50.4 is affected by the WAL-reset
517
+ bug). See the adapter documentation.
509
518
 
510
519
  For PGlite, share one normal owner and table across wrappers, require standard
511
520
  JSONB/text-array codecs, and keep raw/manual transaction control and
@@ -517,11 +526,27 @@ engine insertion failures roll back, while mismatch does not prove proposed
517
526
  writes would fit. Do not infer crash durability, browser persistence, or
518
527
  worker-proxy support. Read the PGlite package README's synchronization policy.
519
528
 
520
- The Redis atomic extension is tracked separately in issue #1365; Deno KV and
529
+ Redis batches currently require official Redis 7.2.17,
530
+ 7.4.12, or 8.10.3, with no debugger or module command hooks; other releases
531
+ reject nonempty batches until audited and added in a Fedify update. The version
532
+ guard does not authenticate forks or modified engines. On Cluster, all final
533
+ physical keys must share one slot in database zero, including ioredis's client
534
+ prefix. Choose an explicit hash tag for a new namespace; existing keys are not
535
+ automatically moved. Each batch request is limited to 128 entries and 1 MiB of
536
+ key, encoded value/expectation, and argument data. TTLs round up to seconds
537
+ with a minimum of one second and batch maximum of 2,147,483,647 seconds. With
538
+ `JsonCodec`, CAS compares encoded bytes, so object property order matters.
539
+ Grant read/write key access for `EVAL`, including snapshots. Snapshots also
540
+ require `GET`; mutations require `GET` for CAS or `EXISTS` for unconditional
541
+ batches, plus the applicable `DEL`, `SET`, or `SETEX` permissions. Snapshot
542
+ reads route to primaries, but Redis Cluster `list()` retains its existing `SCAN`
543
+ coverage limitation. Redis persistence/failover and ioredis replays remain
544
+ separate from per-call atomicity; a later CAS mismatch does not prove a prior
545
+ attempt never committed. Deno KV and
521
546
  Netlify Blobs have no atomic adapter child issue. `WorkersKvStore` lacks CAS.
522
- `WorkersD1KvStore` supports single-key CAS; its atomic extension is tracked in
523
- #1379. Check the [atomic support matrix] and installed declarations before
524
- selecting a production adapter.
547
+ D1 operations cover one configured table in one database, with JSON
548
+ serialization and millisecond TTLs. Check the [atomic support matrix] and
549
+ installed declarations before selecting a production adapter.
525
550
 
526
551
  `MemoryKvStore` is development-only and retains references, including
527
552
  references to the same object stored under several keys. Keep stored and