MCPcopy Index your code
hub / github.com/remix-run/react-router / getChangelogEntry

Function getChangelogEntry

scripts/changes/changes.ts:655–673  ·  view source on GitHub ↗
({
  packageName,
  version,
}: {
  packageName: string;
  version: string;
})

Source from the content-addressed store, hash-verified

653 * Accepts an npm package name (e.g., "@react-router/node" or "react-router").
654 */
655export function getChangelogEntry({
656 packageName,
657 version,
658}: {
659 packageName: string;
660 version: string;
661}): ChangelogEntry | null {
662 let dirName = packageNameToDirectoryName(packageName);
663 if (dirName === null) {
664 return null;
665 }
666
667 let allEntries = parseChangelog(dirName);
668 if (allEntries !== null) {
669 return allEntries[version] ?? null;
670 }
671
672 return null;
673}

Callers

nothing calls this directly

Calls 2

parseChangelogFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…