MCPcopy Create free account
hub / github.com/Effect-TS/effect / movementChange

Function movementChange

packages/tools/api-diff/src/Diff.ts:334–344  ·  view source on GitHub ↗
(match: Match)

Source from the content-addressed store, hash-verified

332}
333
334const movementChange = (match: Match): ApiChange | undefined => {
335 const beforeName = pathName(match.base)
336 const afterName = pathName(match.head)
337 if (beforeName !== afterName) {
338 return makeChange("api-renamed", match)
339 }
340 if (match.base.module !== match.head.module || match.base.path.join(".") !== match.head.path.join(".")) {
341 return makeChange("api-moved", match)
342 }
343 return undefined
344}
345
346const moduleChanges = (base: ApiSnapshot, head: ApiSnapshot): ReadonlyArray<ApiChange> => {
347 const changes: Array<ApiChange> = []

Callers 1

diffSnapshotsFunction · 0.85

Calls 3

pathNameFunction · 0.85
makeChangeFunction · 0.85
joinMethod · 0.80

Tested by

no test coverage detected