Loading packages/cfworkers/src/mod.ts +4 −4 Original line number Diff line number Diff line Loading @@ -2,11 +2,11 @@ * `KvStore` & `MessageQueue` adapters for Cloudflare Workers * ========================================================== * * This module provides `KvStore` and `MessageQueue` implementations that use * This package provides `KvStore` and `MessageQueue` implementations that use * Cloudflare Workers' KV and Queues bindings, respectively. * * @module * @since 1.6.0 * @since 1.9.0 */ import type { KVNamespace, Loading Loading @@ -35,7 +35,7 @@ interface KvMetadata { * operation, as Cloudflare Workers KV does not support atomic compare-and-swap * operations. If you need this functionality, consider using a different * key–value store that supports atomic operations. * @since 1.6.0 * @since 1.9.0 */ export class WorkersKvStore implements KvStore { #namespace: KVNamespace<string>; Loading Loading @@ -95,7 +95,7 @@ export class WorkersKvStore implements KvStore { * way as other message queue systems. Instead, you should use * the {@link Federation.processQueuedTask} method to process messages * passed to the queue. * @since 1.6.0 * @since 1.9.0 */ export class WorkersMessageQueue implements MessageQueue { #queue: Queue; Loading packages/denokv/src/mod.ts +6 −2 Original line number Diff line number Diff line Loading @@ -2,13 +2,13 @@ * `KvStore` & `MessageQueue` adapters for Deno's KV store * ======================================================= * * This module provides `KvStore` and `MessageQueue` implementations that use * This package provides `KvStore` and `MessageQueue` implementations that use * Deno's KV store. The `DenoKvStore` class implements the `KvStore` interface * using Deno's KV store, and the `DenoKvMessageQueue` class implements the * `MessageQueue` interface using Deno's KV store. * * @module * @since 0.5.0 * @since 1.9.0 */ import type { KvKey, Loading @@ -22,6 +22,8 @@ import { isEqual } from "es-toolkit"; /** * Represents a key–value store implementation using Deno's KV store. * * @since 1.9.0 */ export class DenoKvStore implements KvStore { #kv: Deno.Kv; Loading Loading @@ -95,6 +97,8 @@ export class DenoKvStore implements KvStore { /** * Represents a message queue adapter that uses Deno KV store. * * @since 1.9.0 */ export class DenoKvMessageQueue implements MessageQueue, Disposable { #kv: Deno.Kv; Loading packages/hono/src/mod.ts +4 −2 Original line number Diff line number Diff line Loading @@ -2,12 +2,12 @@ * Fedify with Hono * ================ * * This module provides a [Hono] middleware to integrate with the Fedify. * This package provides a [Hono] middleware to integrate with the Fedify. * * [Hono]: https://hono.dev/ * * @module * @since 0.6.0 * @since 1.9.0 */ import type { Federation, Loading Loading @@ -37,6 +37,7 @@ type HonoMiddleware<THonoContext extends HonoContext> = ( * @template THonoContext A type of the Hono context. * @param context A Hono context object. * @returns A context data for the {@link Federation} object. * @since 1.9.0 */ export type ContextDataFactory<TContextData, THonoContext> = ( context: THonoContext, Loading @@ -52,6 +53,7 @@ export type ContextDataFactory<TContextData, THonoContext> = ( * @param contextDataFactory A function to create a context data for the * {@link Federation} object. * @returns A Hono middleware. * @since 1.9.0 */ export function federation<TContextData, THonoContext extends HonoContext>( federation: Federation<TContextData>, Loading packages/sveltekit/src/mod.ts +3 −3 Original line number Diff line number Diff line Loading @@ -2,12 +2,12 @@ * Fedify with SvelteKit * ===================== * * This module provides a [SvelteKit] hook to integrate with the Fedify. * This package provides a [SvelteKit] hook to integrate with the Fedify. * * [SvelteKit]: https://kit.svelte.dev/ * * @module * @since 1.3.0 * @since 1.9.0 */ import type { Loading Loading @@ -41,7 +41,7 @@ type HookParams = { * @param createContextData A function to create a context data for the * {@link Federation} object. * @returns A SvelteKit hook handler. * @since 1.3.0 * @since 1.9.0 */ export function fedifyHook<TContextData>( federation: Federation<TContextData>, Loading Loading
packages/cfworkers/src/mod.ts +4 −4 Original line number Diff line number Diff line Loading @@ -2,11 +2,11 @@ * `KvStore` & `MessageQueue` adapters for Cloudflare Workers * ========================================================== * * This module provides `KvStore` and `MessageQueue` implementations that use * This package provides `KvStore` and `MessageQueue` implementations that use * Cloudflare Workers' KV and Queues bindings, respectively. * * @module * @since 1.6.0 * @since 1.9.0 */ import type { KVNamespace, Loading Loading @@ -35,7 +35,7 @@ interface KvMetadata { * operation, as Cloudflare Workers KV does not support atomic compare-and-swap * operations. If you need this functionality, consider using a different * key–value store that supports atomic operations. * @since 1.6.0 * @since 1.9.0 */ export class WorkersKvStore implements KvStore { #namespace: KVNamespace<string>; Loading Loading @@ -95,7 +95,7 @@ export class WorkersKvStore implements KvStore { * way as other message queue systems. Instead, you should use * the {@link Federation.processQueuedTask} method to process messages * passed to the queue. * @since 1.6.0 * @since 1.9.0 */ export class WorkersMessageQueue implements MessageQueue { #queue: Queue; Loading
packages/denokv/src/mod.ts +6 −2 Original line number Diff line number Diff line Loading @@ -2,13 +2,13 @@ * `KvStore` & `MessageQueue` adapters for Deno's KV store * ======================================================= * * This module provides `KvStore` and `MessageQueue` implementations that use * This package provides `KvStore` and `MessageQueue` implementations that use * Deno's KV store. The `DenoKvStore` class implements the `KvStore` interface * using Deno's KV store, and the `DenoKvMessageQueue` class implements the * `MessageQueue` interface using Deno's KV store. * * @module * @since 0.5.0 * @since 1.9.0 */ import type { KvKey, Loading @@ -22,6 +22,8 @@ import { isEqual } from "es-toolkit"; /** * Represents a key–value store implementation using Deno's KV store. * * @since 1.9.0 */ export class DenoKvStore implements KvStore { #kv: Deno.Kv; Loading Loading @@ -95,6 +97,8 @@ export class DenoKvStore implements KvStore { /** * Represents a message queue adapter that uses Deno KV store. * * @since 1.9.0 */ export class DenoKvMessageQueue implements MessageQueue, Disposable { #kv: Deno.Kv; Loading
packages/hono/src/mod.ts +4 −2 Original line number Diff line number Diff line Loading @@ -2,12 +2,12 @@ * Fedify with Hono * ================ * * This module provides a [Hono] middleware to integrate with the Fedify. * This package provides a [Hono] middleware to integrate with the Fedify. * * [Hono]: https://hono.dev/ * * @module * @since 0.6.0 * @since 1.9.0 */ import type { Federation, Loading Loading @@ -37,6 +37,7 @@ type HonoMiddleware<THonoContext extends HonoContext> = ( * @template THonoContext A type of the Hono context. * @param context A Hono context object. * @returns A context data for the {@link Federation} object. * @since 1.9.0 */ export type ContextDataFactory<TContextData, THonoContext> = ( context: THonoContext, Loading @@ -52,6 +53,7 @@ export type ContextDataFactory<TContextData, THonoContext> = ( * @param contextDataFactory A function to create a context data for the * {@link Federation} object. * @returns A Hono middleware. * @since 1.9.0 */ export function federation<TContextData, THonoContext extends HonoContext>( federation: Federation<TContextData>, Loading
packages/sveltekit/src/mod.ts +3 −3 Original line number Diff line number Diff line Loading @@ -2,12 +2,12 @@ * Fedify with SvelteKit * ===================== * * This module provides a [SvelteKit] hook to integrate with the Fedify. * This package provides a [SvelteKit] hook to integrate with the Fedify. * * [SvelteKit]: https://kit.svelte.dev/ * * @module * @since 1.3.0 * @since 1.9.0 */ import type { Loading Loading @@ -41,7 +41,7 @@ type HookParams = { * @param createContextData A function to create a context data for the * {@link Federation} object. * @returns A SvelteKit hook handler. * @since 1.3.0 * @since 1.9.0 */ export function fedifyHook<TContextData>( federation: Federation<TContextData>, Loading