MCPcopy Create free account
hub / github.com/Effect-TS/effect / renderChange

Function renderChange

packages/tools/api-diff/src/Report.ts:56–64  ·  view source on GitHub ↗
(change: ApiChange, level = 4)

Source from the content-addressed store, hash-verified

54 source === undefined ? [] : ["", `${label}:`, "", "```ts", source, "```"]
55
56const renderChange = (change: ApiChange, level = 4): ReadonlyArray<string> => [
57 `${"#".repeat(level)} ${change.classification}: \`${changeLabel(change)}\``,
58 "",
59 `Confidence: ${change.confidence.toFixed(3)} · ${change.authoritative ? "authoritative" : "review required"}`,
60 ...(change.reviewNotes === undefined ? [] : ["", change.reviewNotes]),
61 ...signature("Before", change.before),
62 ...signature("After", change.after),
63 ""
64]
65
66const orderedGroups = [
67 ["Renames and moves", new Set(["api-moved", "api-renamed"])],

Callers 1

renderMarkdownReportFunction · 0.85

Calls 2

changeLabelFunction · 0.85
signatureFunction · 0.70

Tested by

no test coverage detected