MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / checkForReleaseNotesSync

Function checkForReleaseNotesSync

source code/utils/releaseNotes.ts:337–362  ·  view source on GitHub ↗
(
  lastSeenVersion: string | null | undefined,
  currentVersion: string = MACRO.VERSION,
)

Source from the content-addressed store, hash-verified

335 * returns accurate results in component render bodies.
336 */
337export function checkForReleaseNotesSync(
338 lastSeenVersion: string | null | undefined,
339 currentVersion: string = MACRO.VERSION,
340): { hasReleaseNotes: boolean; releaseNotes: string[] } {
341 // For Ant builds, use VERSION_CHANGELOG bundled at build time
342 if (process.env.USER_TYPE === 'ant') {
343 const changelog = MACRO.VERSION_CHANGELOG
344 if (changelog) {
345 const commits = changelog.trim().split('\n').filter(Boolean)
346 return {
347 hasReleaseNotes: commits.length > 0,
348 releaseNotes: commits,
349 }
350 }
351 return {
352 hasReleaseNotes: false,
353 releaseNotes: [],
354 }
355 }
356
357 const releaseNotes = getRecentReleaseNotes(currentVersion, lastSeenVersion)
358 return {
359 hasReleaseNotes: releaseNotes.length > 0,
360 releaseNotes,
361 }
362}

Callers 1

LogoV2Function · 0.85

Calls 1

getRecentReleaseNotesFunction · 0.85

Tested by

no test coverage detected