MCPcopy
hub / github.com/react-native-community/upgrade-helper / getChangelogURL

Function getChangelogURL

src/utils.ts:136–148  ·  view source on GitHub ↗
({
  version,
  packageName,
}: {
  version: string
  packageName: string
})

Source from the content-addressed store, hash-verified

134}
135
136export const getChangelogURL = ({
137 version,
138 packageName,
139}: {
140 version: string
141 packageName: string
142}) => {
143 if (packageName === PACKAGE_NAMES.RNW || packageName === PACKAGE_NAMES.RNM) {
144 return `${RN_CHANGELOG_URLS[packageName]}v${version}`
145 }
146
147 return `${RN_CHANGELOG_URLS[packageName]}#v${version.replaceAll('.', '')}`
148}
149
150// If the browser is headless (running puppeteer) then it doesn't have any duration
151export const getTransitionDuration = (duration: number) =>

Callers 4

getChangelogFunction · 0.90
DiffViewerFunction · 0.90
utils.spec.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected