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

Function addedApiSignatures

packages/tools/api-diff/src/MigrationDoc.ts:119–137  ·  view source on GitHub ↗
(diff: ApiDiff)

Source from the content-addressed store, hash-verified

117 left.length === right.length && left.every((value, index) => value === right[index])
118
119const addedApiSignatures = (diff: ApiDiff): ReadonlyMap<string, ReadonlyArray<string>> => {
120 const signatures = new Map<string, Array<string>>()
121 for (const change of diff.changes) {
122 if (change.classification !== "api-added" || change.headApiId === undefined || change.after === undefined) {
123 continue
124 }
125 const id = stableApiId(change.headApiId)
126 const group = signatures.get(id)
127 if (group === undefined) {
128 signatures.set(id, [change.after])
129 } else {
130 group.push(change.after)
131 }
132 }
133 for (const group of signatures.values()) {
134 group.sort(compareStrings)
135 }
136 return signatures
137}
138
139const isUnchangedModuleMove = (
140 id: string,

Callers 1

migrationEntriesFunction · 0.85

Calls 4

stableApiIdFunction · 0.85
pushMethod · 0.80
getMethod · 0.65
setMethod · 0.65

Tested by

no test coverage detected