changelog() — astro Function Reference
Architecture documentation for the changelog() function in messages.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 97b1b523_6bc3_254c_e5c1_f7149f02fd03["changelog()"] d28938aa_d420_d4d1_6b36_01f3df03707d["messages.ts"] 97b1b523_6bc3_254c_e5c1_f7149f02fd03 -->|defined in| d28938aa_d420_d4d1_6b36_01f3df03707d ac3298d6_0c78_5a80_8fb7_ec8acfacd90c["log()"] 97b1b523_6bc3_254c_e5c1_f7149f02fd03 -->|calls| ac3298d6_0c78_5a80_8fb7_ec8acfacd90c style 97b1b523_6bc3_254c_e5c1_f7149f02fd03 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/upgrade/src/messages.ts lines 155–167
export const changelog = async (name: string, text: string, url: string) => {
const link = terminalLink(text, url, { fallback: () => url });
const linkLength = terminalLink.isSupported ? text.length : url.length;
const symbol = ' ';
const length = 12 + name.length + linkLength;
if (length > stdout.columns) {
log(`${' '.repeat(5)} ${symbol} ${name}`);
log(`${' '.repeat(9)}${color.cyan(color.underline(link))}`);
} else {
log(`${' '.repeat(5)} ${symbol} ${name} ${color.cyan(color.underline(link))}`);
}
};
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does changelog() do?
changelog() is a function in the astro codebase, defined in packages/upgrade/src/messages.ts.
Where is changelog() defined?
changelog() is defined in packages/upgrade/src/messages.ts at line 155.
What does changelog() call?
changelog() calls 1 function(s): log.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free