Loading CHANGES.md +12 −0 Original line number Diff line number Diff line Loading @@ -120,9 +120,19 @@ the versioning. - Added utility types `ConstructorWithTypeId` and `ParamsKeyPath` for custom collection dispatchers. - The `fedify inbox` command now displays the type of the object contained in each activity, in addition to the activity's own type. [[#191], [#342] by Jang Hanarae] - The `fedify` CLI now correctly disables color output when standard output isn't a TTY (for example, when redirecting to a file) or when the `NO_COLOR` environment variable is set. [[#257], [#341] by Cho Hasang] [#168]: https://github.com/fedify-dev/fedify/issues/168 [#191]: https://github.com/fedify-dev/fedify/issues/191 [#197]: https://github.com/fedify-dev/fedify/issues/197 [#248]: https://github.com/fedify-dev/fedify/issues/248 [#257]: https://github.com/fedify-dev/fedify/issues/257 [#260]: https://github.com/fedify-dev/fedify/issues/260 [#261]: https://github.com/fedify-dev/fedify/issues/261 [#262]: https://github.com/fedify-dev/fedify/issues/262 Loading @@ -145,6 +155,8 @@ the versioning. [#328]: https://github.com/fedify-dev/fedify/pull/328 [#331]: https://github.com/fedify-dev/fedify/pull/331 [#332]: https://github.com/fedify-dev/fedify/pull/332 [#342]: https://github.com/fedify-dev/fedify/pull/342 [#341]: https://github.com/fedify-dev/fedify/pull/341 Version 1.7.7 Loading SPONSORS.md +1 −1 Original line number Diff line number Diff line Loading @@ -26,7 +26,7 @@ Supporters Backers ------- Robin Riley, yamanoku, Encyclia, taye, okin, Andy Piper, box464, Evan Prodromou, Rafael Goulart, malte Robin Riley, yamanoku, taye, Encyclia, okin, box464, Evan Prodromou, Rafael Goulart, malte, Andy Piper One-time donations ------------------ Loading amqp/deno.json +0 −4 Original line number Diff line number Diff line Loading @@ -9,10 +9,6 @@ "imports": { "@alinea/suite": "jsr:@alinea/suite@^0.6.3" }, "nodeModulesDir": "none", "unstable": [ "temporal" ], "exclude": [ ".github", "node_modules", Loading cli/deno.json +1 −0 Original line number Diff line number Diff line Loading @@ -15,6 +15,7 @@ "@jimp/wasm-webp": "npm:@jimp/wasm-webp@^1.6.0", "@poppanator/http-constants": "npm:@poppanator/http-constants@^1.1.1", "@std/assert": "jsr:@std/assert@^1.0.13", "@std/fmt/colors": "jsr:@std/fmt@^0.224.0/colors", "@std/dotenv": "jsr:@std/dotenv@^0.225.2", "@std/assert": "jsr:@std/assert@^1.0.0", "@std/semver": "jsr:@std/semver@^1.0.5", Loading cli/inbox.tsx +10 −6 Original line number Diff line number Diff line /** @jsx react-jsx */ /** @jsxImportSource hono/jsx */ import { colors } from "@cliffy/ansi"; import { Command } from "@cliffy/command"; import { Cell, Table } from "@cliffy/table"; import { Loading @@ -23,6 +22,7 @@ import { type Recipient, } from "@fedify/fedify"; import { getLogger } from "@logtape/logtape"; import * as colors from "@std/fmt/colors"; import { parse } from "@std/semver"; import { type Context as HonoContext, Hono } from "hono"; import type { BlankEnv, BlankInput } from "hono/types"; Loading Loading @@ -399,18 +399,22 @@ function printServerInfo(fedCtx: Context<ContextData>): void { .render(); } function printActivityEntry(idx: number, entry: ActivityEntry): void { async function printActivityEntry( idx: number, entry: ActivityEntry, ): Promise<void> { const request = entry.request.clone(); const response = entry.response?.clone(); const url = new URL(request.url); const activity = entry.activity; const object = await activity?.getObject(); new Table( [new Cell("Request #:").align("right"), colors.bold(idx.toString())], [ new Cell("Activity type:").align("right"), activity == null ? colors.red("failed to parse") : colors.green(activity.constructor.name), activity == null ? colors.red("failed to parse") : colors.green( `${activity.constructor.name}(${object?.constructor.name})`, ), ], [ new Cell("HTTP request:").align("right"), Loading Loading @@ -508,7 +512,7 @@ function createFetchHandler( recordingSink.stopRecording(); activities[idx].response = response.clone(); activities[idx].logs = recordingSink.getRecords(); printActivityEntry(idx, activities[idx]); await printActivityEntry(idx, activities[idx]); } return response; }; Loading Loading
CHANGES.md +12 −0 Original line number Diff line number Diff line Loading @@ -120,9 +120,19 @@ the versioning. - Added utility types `ConstructorWithTypeId` and `ParamsKeyPath` for custom collection dispatchers. - The `fedify inbox` command now displays the type of the object contained in each activity, in addition to the activity's own type. [[#191], [#342] by Jang Hanarae] - The `fedify` CLI now correctly disables color output when standard output isn't a TTY (for example, when redirecting to a file) or when the `NO_COLOR` environment variable is set. [[#257], [#341] by Cho Hasang] [#168]: https://github.com/fedify-dev/fedify/issues/168 [#191]: https://github.com/fedify-dev/fedify/issues/191 [#197]: https://github.com/fedify-dev/fedify/issues/197 [#248]: https://github.com/fedify-dev/fedify/issues/248 [#257]: https://github.com/fedify-dev/fedify/issues/257 [#260]: https://github.com/fedify-dev/fedify/issues/260 [#261]: https://github.com/fedify-dev/fedify/issues/261 [#262]: https://github.com/fedify-dev/fedify/issues/262 Loading @@ -145,6 +155,8 @@ the versioning. [#328]: https://github.com/fedify-dev/fedify/pull/328 [#331]: https://github.com/fedify-dev/fedify/pull/331 [#332]: https://github.com/fedify-dev/fedify/pull/332 [#342]: https://github.com/fedify-dev/fedify/pull/342 [#341]: https://github.com/fedify-dev/fedify/pull/341 Version 1.7.7 Loading
SPONSORS.md +1 −1 Original line number Diff line number Diff line Loading @@ -26,7 +26,7 @@ Supporters Backers ------- Robin Riley, yamanoku, Encyclia, taye, okin, Andy Piper, box464, Evan Prodromou, Rafael Goulart, malte Robin Riley, yamanoku, taye, Encyclia, okin, box464, Evan Prodromou, Rafael Goulart, malte, Andy Piper One-time donations ------------------ Loading
amqp/deno.json +0 −4 Original line number Diff line number Diff line Loading @@ -9,10 +9,6 @@ "imports": { "@alinea/suite": "jsr:@alinea/suite@^0.6.3" }, "nodeModulesDir": "none", "unstable": [ "temporal" ], "exclude": [ ".github", "node_modules", Loading
cli/deno.json +1 −0 Original line number Diff line number Diff line Loading @@ -15,6 +15,7 @@ "@jimp/wasm-webp": "npm:@jimp/wasm-webp@^1.6.0", "@poppanator/http-constants": "npm:@poppanator/http-constants@^1.1.1", "@std/assert": "jsr:@std/assert@^1.0.13", "@std/fmt/colors": "jsr:@std/fmt@^0.224.0/colors", "@std/dotenv": "jsr:@std/dotenv@^0.225.2", "@std/assert": "jsr:@std/assert@^1.0.0", "@std/semver": "jsr:@std/semver@^1.0.5", Loading
cli/inbox.tsx +10 −6 Original line number Diff line number Diff line /** @jsx react-jsx */ /** @jsxImportSource hono/jsx */ import { colors } from "@cliffy/ansi"; import { Command } from "@cliffy/command"; import { Cell, Table } from "@cliffy/table"; import { Loading @@ -23,6 +22,7 @@ import { type Recipient, } from "@fedify/fedify"; import { getLogger } from "@logtape/logtape"; import * as colors from "@std/fmt/colors"; import { parse } from "@std/semver"; import { type Context as HonoContext, Hono } from "hono"; import type { BlankEnv, BlankInput } from "hono/types"; Loading Loading @@ -399,18 +399,22 @@ function printServerInfo(fedCtx: Context<ContextData>): void { .render(); } function printActivityEntry(idx: number, entry: ActivityEntry): void { async function printActivityEntry( idx: number, entry: ActivityEntry, ): Promise<void> { const request = entry.request.clone(); const response = entry.response?.clone(); const url = new URL(request.url); const activity = entry.activity; const object = await activity?.getObject(); new Table( [new Cell("Request #:").align("right"), colors.bold(idx.toString())], [ new Cell("Activity type:").align("right"), activity == null ? colors.red("failed to parse") : colors.green(activity.constructor.name), activity == null ? colors.red("failed to parse") : colors.green( `${activity.constructor.name}(${object?.constructor.name})`, ), ], [ new Cell("HTTP request:").align("right"), Loading Loading @@ -508,7 +512,7 @@ function createFetchHandler( recordingSink.stopRecording(); activities[idx].response = response.clone(); activities[idx].logs = recordingSink.getRecords(); printActivityEntry(idx, activities[idx]); await printActivityEntry(idx, activities[idx]); } return response; }; Loading