Loading CHANGES.md +2 −2 Original line number Diff line number Diff line Loading @@ -36,8 +36,8 @@ To be released. - Added the optional second parameter to `lookupWebFinger()` function. - Added `LookupWebFingerOptions` interface. - Added `GetNodeInfoOptions.userAgent` option. - Added `-u`/--user-agent` option to `fedify lookup` subcommand. - Added `-u`/--user-agent` option to `fedify node` subcommand. - Added `-u`/`--user-agent` option to `fedify lookup` subcommand. - Added `-u`/`--user-agent` option to `fedify node` subcommand. - Fedify now caches unavailable keys of remote actors as well to avoid trying fetching the same unavailable key multiple times. Loading src/x/fresh.ts +4 −2 Original line number Diff line number Diff line Loading @@ -25,8 +25,9 @@ interface FreshContext { * * @example _middleware.ts * ``` typescript * import { integrateFetchOptions } from "@fedify/fedify/x/fresh"; * import { FreshContext } from "$fresh/server.ts"; * import { federation } from "federation.ts"; // Import the `Federation` object * import { federation } from "./federation.ts"; // Import the `Federation` object * * export async function handler(request: Request, context: FreshContext) { * return await federation.fetch(request, { Loading Loading @@ -77,7 +78,8 @@ export function integrateFetchOptions( * * @example _middleware.ts * ``` typescript * import { federation } from "federation.ts"; // Import the `Federation` object * import { integrateHandler } from "@fedify/fedify/x/fresh"; * import { federation } from "./federation.ts"; // Import the `Federation` object * * export const handler = integrateHandler(federation, () => undefined); * ``` Loading Loading
CHANGES.md +2 −2 Original line number Diff line number Diff line Loading @@ -36,8 +36,8 @@ To be released. - Added the optional second parameter to `lookupWebFinger()` function. - Added `LookupWebFingerOptions` interface. - Added `GetNodeInfoOptions.userAgent` option. - Added `-u`/--user-agent` option to `fedify lookup` subcommand. - Added `-u`/--user-agent` option to `fedify node` subcommand. - Added `-u`/`--user-agent` option to `fedify lookup` subcommand. - Added `-u`/`--user-agent` option to `fedify node` subcommand. - Fedify now caches unavailable keys of remote actors as well to avoid trying fetching the same unavailable key multiple times. Loading
src/x/fresh.ts +4 −2 Original line number Diff line number Diff line Loading @@ -25,8 +25,9 @@ interface FreshContext { * * @example _middleware.ts * ``` typescript * import { integrateFetchOptions } from "@fedify/fedify/x/fresh"; * import { FreshContext } from "$fresh/server.ts"; * import { federation } from "federation.ts"; // Import the `Federation` object * import { federation } from "./federation.ts"; // Import the `Federation` object * * export async function handler(request: Request, context: FreshContext) { * return await federation.fetch(request, { Loading Loading @@ -77,7 +78,8 @@ export function integrateFetchOptions( * * @example _middleware.ts * ``` typescript * import { federation } from "federation.ts"; // Import the `Federation` object * import { integrateHandler } from "@fedify/fedify/x/fresh"; * import { federation } from "./federation.ts"; // Import the `Federation` object * * export const handler = integrateHandler(federation, () => undefined); * ``` Loading