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

Function removedModules

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

Source from the content-addressed store, hash-verified

111}
112
113const removedModules = (diff: ApiDiff): ReadonlyArray<string> =>
114 [
115 ...new Set(diff.changes.flatMap((change) => {
116 if (change.classification !== "module-removed") {
117 return []
118 }
119 const from = (change.delta as { readonly from?: unknown } | undefined)?.from
120 return typeof from === "string" ? [from] : []
121 }))
122 ].sort(compareStrings)
123
124const sameStrings = (left: ReadonlyArray<string>, right: ReadonlyArray<string>): boolean =>
125 left.length === right.length && left.every((value, index) => value === right[index])

Callers 3

migrationEntriesFunction · 0.85
renderMigrationDocumentFunction · 0.85
unannotatedModuleIdsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected