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

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 CHANGED
@@ -1,5 +1,3 @@
1
- <!-- deno-fmt-ignore-file -->
2
-
3
1
  ![](./logo.svg) Fedify: an ActivityPub server framework
4
2
  =======================================================
5
3
 
@@ -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-COgnjnjr.cjs");
3
+ const require_federation = require("../federation-qBfkwbc-.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-Dz8iJh0H.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-CrlGyOLl.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-BqrOCUOK.cjs");
4
+ const require_http = require("./http-BWpPlAvo.cjs");
5
5
  const require_types = require("./types-hKCCjii0.cjs");
6
- const require_portable_collection = require("./portable-collection-CJ6-QUgP.cjs");
7
- const require_kv_cache = require("./kv-cache-DFpIzPHz.cjs");
6
+ const require_portable_collection = require("./portable-collection-FrTRucvQ.cjs");
7
+ const require_kv_cache = require("./kv-cache-UsXgZAPb.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");
@@ -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.2766+dd42882b";
20
+ var version = "2.5.0-dev.2816+e9894474";
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;
@@ -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.2766+dd42882b";
18
+ var version = "2.5.0-dev.2816+e9894474";
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;
@@ -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-CZfnujnl.js";
3
+ import { X as validateCryptoKey, dt as recordDocumentCache, t as doubleKnockScoped } from "./http-BtAuOaF5.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";
@@ -1,5 +1,5 @@
1
1
  const { URLPattern } = require("urlpattern-polyfill");
2
- const require_http = require("./http-BqrOCUOK.cjs");
2
+ const require_http = require("./http-BWpPlAvo.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");
@@ -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-CZfnujnl.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";
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-BrBFw0DP.js";
8
- import { n as getAuthenticatedDocumentLoader, t as kvCache } from "./kv-cache-DT7zGfKY.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";
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-COgnjnjr.cjs");
7
- const require_http = require("./http-BqrOCUOK.cjs");
6
+ const require_federation = require("./federation-qBfkwbc-.cjs");
7
+ const require_http = require("./http-BWpPlAvo.cjs");
8
8
  const require_types = require("./types-hKCCjii0.cjs");
9
- const require_portable_collection = require("./portable-collection-CJ6-QUgP.cjs");
10
- const require_kv_cache = require("./kv-cache-DFpIzPHz.cjs");
9
+ const require_portable_collection = require("./portable-collection-FrTRucvQ.cjs");
10
+ const require_kv_cache = require("./kv-cache-UsXgZAPb.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-Dz8iJh0H.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-CZfnujnl.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";
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-BrBFw0DP.js";
10
- import { n as getAuthenticatedDocumentLoader, t as kvCache } from "./kv-cache-DT7zGfKY.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";
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,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-CZfnujnl.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-BtAuOaF5.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";
@@ -1,5 +1,5 @@
1
1
  const { URLPattern } = require("urlpattern-polyfill");
2
- const require_http = require("./http-BqrOCUOK.cjs");
2
+ const require_http = require("./http-BWpPlAvo.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");
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-BqrOCUOK.cjs");
4
- const require_portable_collection = require("../portable-collection-CJ6-QUgP.cjs");
3
+ const require_http = require("../http-BWpPlAvo.cjs");
4
+ const require_portable_collection = require("../portable-collection-FrTRucvQ.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-CZfnujnl.js";
4
- import { n as doesActorOwnKey, r as getKeyOwner, t as verifyPortableObject } from "../portable-collection-BrBFw0DP.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-BtAuOaF5.js";
4
+ import { n as doesActorOwnKey, r as getKeyOwner, t as verifyPortableObject } from "../portable-collection-9B8d4_aZ.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-DFpIzPHz.cjs");
3
+ const require_kv_cache = require("../kv-cache-UsXgZAPb.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-DT7zGfKY.js";
3
+ import { n as getAuthenticatedDocumentLoader, t as kvCache } from "../kv-cache-D26MXx86.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.2766+dd42882b",
3
+ "version": "2.5.0-dev.2816+e9894474",
4
4
  "description": "An ActivityPub server framework",
5
5
  "keywords": [
6
6
  "ActivityPub",
@@ -164,10 +164,10 @@
164
164
  "structured-field-values": "^2.0.4",
165
165
  "temporal-polyfill": "^1.0.1",
166
166
  "urlpattern-polyfill": "^10.1.0",
167
- "@fedify/uri-template": "2.5.0-dev.2766+dd42882b",
168
- "@fedify/vocab": "2.5.0-dev.2766+dd42882b",
169
- "@fedify/webfinger": "2.5.0-dev.2766+dd42882b",
170
- "@fedify/vocab-runtime": "2.5.0-dev.2766+dd42882b"
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"
171
171
  },
172
172
  "devDependencies": {
173
173
  "@std/assert": "npm:@jsr/std__assert@^0.226.0",
@@ -179,7 +179,7 @@
179
179
  "typescript": "^6.0.3",
180
180
  "wrangler": "^4.17.0",
181
181
  "@fedify/fixture": "2.0.0",
182
- "@fedify/vocab-tools": "^2.5.0-dev.2766+dd42882b"
182
+ "@fedify/vocab-tools": "^2.5.0-dev.2816+e9894474"
183
183
  },
184
184
  "scripts": {
185
185
  "build:self": "tsdown",
@@ -197,6 +197,11 @@ content negotiation, signature verification, and response streaming.
197
197
  | SolidStart | *@fedify/solidstart* |
198
198
  | SvelteKit | *@fedify/sveltekit* |
199
199
 
200
+ Do not choose *@fedify/fresh* for new projects: Fresh is not recommended for
201
+ new projects, and the integration is tentatively planned for removal in
202
+ Fedify 3.0.0. It remains supported for existing Fresh applications throughout
203
+ the 2.x series.
204
+
200
205
  Two more packages are frequently useful: *@fedify/debugger* for a local
201
206
  ActivityPub dashboard, and *@fedify/relay* for relay implementations.
202
207
 
@@ -439,6 +444,7 @@ in development or tests.
439
444
  | Package | `KvStore` | `MessageQueue` |
440
445
  | ------------------- | --------- | -------------- |
441
446
  | *@fedify/sqlite* | yes | yes |
447
+ | *@fedify/pglite* | yes | no |
442
448
  | *@fedify/postgres* | yes | yes |
443
449
  | *@fedify/mysql* | yes | yes |
444
450
  | *@fedify/redis* | yes | yes |
@@ -465,6 +471,19 @@ atomicity or durability. `getMany()` returns an input-ordered snapshot;
465
471
  `casMany()` checks every expectation before committing all changes. On
466
472
  `false`, reread and re-evaluate application eligibility before retrying.
467
473
 
474
+ `MysqlKvStore` implements `AtomicKvStore` on an InnoDB table in one primary
475
+ database. It supports up to 1,000 entries per call and serialized keys up to
476
+ 768 Unicode code points. Use a normal mysql2 pool with `autocommit` enabled,
477
+ default object/type decoding, and one fixed-offset or UTC session time zone
478
+ across clients. Initialization validates the schema even with
479
+ `initialized: true`; do not use caller-owned pool transactions, replica reads,
480
+ or change the schema during operations. Values round-trip through JSON and
481
+ CAS compares decoded structures; `set(undefined)` rejects and omitted TTLs
482
+ clear expiry. TTLs are truncated to safe integer microseconds. Deadlocks and
483
+ MariaDB snapshot conflicts retry with fresh comparisons up to five attempts;
484
+ backend errors reject, and lost commit responses can have unknown outcomes.
485
+ See *packages/mysql/README.md* for the full schema, codec and server limits.
486
+
468
487
  `expectedValue: undefined` means absence; `newValue: undefined` means deletion
469
488
  in CAS. Atomic stores reject `set(key, undefined)` and `setMany()` entries
470
489
  whose value is `undefined`. They also reject TTLs on deletions and duplicate
@@ -476,13 +495,33 @@ for a shared backend. Separate calls do not form a transaction; uncertain
476
495
  commit results need receipts or version checks, and ABA detection needs a
477
496
  non-reused version.
478
497
 
479
- Only `MemoryKvStore` currently implements the full atomic interface. The
480
- persistent PostgreSQL, Redis, PGlite, SQLite, and MySQL extensions are tracked
481
- separately in issues #1364–#1368; Deno KV and Netlify Blobs have no atomic
482
- adapter child issue. `WorkersKvStore` lacks CAS. `WorkersD1KvStore` supports
483
- single-key CAS; its atomic extension is tracked in #1379. Check the
484
- [atomic support matrix] and installed declarations before selecting a
485
- production adapter.
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.
509
+
510
+ For PGlite, share one normal owner and table across wrappers, require standard
511
+ JSONB/text-array codecs, and keep raw/manual transaction control and
512
+ caller-owned transaction callbacks outside store calls. CAS ignores object
513
+ member order and preserves array order. Keys reject malformed Unicode and
514
+ NUL; negative/overflowing TTLs and deletion TTLs reject. Calendar expiry uses
515
+ the session time zone and one cutoff per call. Large batches block the owner;
516
+ engine insertion failures roll back, while mismatch does not prove proposed
517
+ writes would fit. Do not infer crash durability, browser persistence, or
518
+ worker-proxy support. Read the PGlite package README's synchronization policy.
519
+
520
+ The Redis atomic extension is tracked separately in issue #1365; Deno KV and
521
+ 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.
486
525
 
487
526
  `MemoryKvStore` is development-only and retains references, including
488
527
  references to the same object stored under several keys. Keep stored and
@@ -492,6 +531,30 @@ the store. Production codecs can support different values and comparison
492
531
  rules. Cache cleanup examples apply only to cache prefixes; authoritative state
493
532
  such as budgets and replay cutoffs needs its own retention policy.
494
533
 
534
+ Mutating single-key PostgreSQL `cas()` takes a table write lock and rolls back
535
+ trigger-skipped matching mutations instead of returning `false`. It supports
536
+ reserved clients using a per-call transaction or a savepoint in an existing
537
+ manual transaction. Caller-owned connections require exclusive sequential use;
538
+ CAS locks remain until outer commit even on mismatch.
539
+
540
+ For PostgreSQL atomic operations, use one ordinary table or declarative
541
+ partition and the default JSON codec (`jsonb` equality ignores object member
542
+ order). Nonempty `casMany()` and multi-key `deleteMany()` require a pool or
543
+ READ COMMITTED transaction-scoped Postgres.js client; reserved clients reject
544
+ those scopes. Caller transactions require exclusive sequential use during
545
+ each atomic call, across other wrappers and raw SQL too. Nested savepoints
546
+ do not isolate concurrent calls on one outer transaction. Successful caller
547
+ batches are provisional and retain locks until outer commit. Table-wide write
548
+ locks protect absent keys but serialize writers and can interrupt autovacuum;
549
+ lock errors reject without automatic retry. After lock-upgrade deadlock,
550
+ roll back the outer transaction before retrying. Active row-level security,
551
+ ordinary inheritance and irreversible JSON/value transforms are unsupported for
552
+ batches. TTLs use server time and PostgreSQL calendar intervals at microsecond
553
+ precision. Backend storage constraints may fail an attempted write; a mismatch
554
+ performs no insertion. Atomicity does not override unlogged/WAL/replica
555
+ durability. Consult the [PostgreSQL atomic scope] before choosing a client or
556
+ codec.
557
+
495
558
  For `PostgresKvStore`, existing populated tables and externally managed DDL
496
559
  (`initialized: true`) need the [expiry expression index] to accelerate cleanup.
497
560
  Run concurrent index creation outside a transaction, followed by `ANALYZE`.
@@ -512,6 +575,7 @@ index too. Keep the original TTL columns and calendar semantics.
512
575
  See <https://fedify.dev/manual/kv.md> and <https://fedify.dev/manual/mq.md>.
513
576
 
514
577
  [atomic support matrix]: https://fedify.dev/manual/kv.md#current-support
578
+ [PostgreSQL atomic scope]: https://fedify.dev/manual/kv#postgresql-atomic-operations
515
579
  [expiry expression index]: https://fedify.dev/manual/kv.md#postgresql-expiry-index
516
580
 
517
581