getLatestRelease() — supabase Function Reference
Architecture documentation for the getLatestRelease() function in page.tsx from the supabase codebase.
Entity Profile
Dependency Diagram
graph TD ed633091_0e4b_ed01_baa2_fe2bbb0be3f4["getLatestRelease()"] ab4f49e3_ca6f_6ee7_e6ce_c61c06858edc["getContent()"] ab4f49e3_ca6f_6ee7_e6ce_c61c06858edc -->|calls| ed633091_0e4b_ed01_baa2_fe2bbb0be3f4 849f251d_84e6_f75c_65e8_837d964c4544["octokit()"] ed633091_0e4b_ed01_baa2_fe2bbb0be3f4 -->|calls| 849f251d_84e6_f75c_65e8_837d964c4544 style ed633091_0e4b_ed01_baa2_fe2bbb0be3f4 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/docs/app/guides/database/extensions/wrappers/[[...slug]]/page.tsx lines 75–105
async function getLatestRelease(after: string | null = null) {
try {
const {
repository: {
refs: {
nodes,
pageInfo: { hasNextPage, endCursor },
},
},
} = await octokit().graphql<TagQueryResponse>(tagQuery, {
owner: org,
name: repo,
after,
request: {
fetch: (url: RequestInfo | URL, options?: RequestInit) =>
fetch(url, {
...options,
next: { tags: [REVALIDATION_TAGS.WRAPPERS] },
}),
},
})
return (
nodes?.find((node) => node?.name?.match(/^docs_v\d+\.\d+\.\d+/))?.name ??
(hasNextPage && endCursor ? await getLatestRelease(endCursor) : null)
)
} catch (error) {
console.error(`Error fetching release tags for wrappers federated pages: ${error}`)
return null
}
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does getLatestRelease() do?
getLatestRelease() is a function in the supabase codebase.
What does getLatestRelease() call?
getLatestRelease() calls 1 function(s): octokit.
What calls getLatestRelease()?
getLatestRelease() is called by 1 function(s): getContent.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free