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

Function addedApiSignatures

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

Source from the content-addressed store, hash-verified

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

Callers 1

migrationEntriesFunction · 0.85

Calls 4

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

Tested by

no test coverage detected