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

Function removedModules

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

Source from the content-addressed store, hash-verified

103}
104
105const removedModules = (diff: ApiDiff): ReadonlyArray<string> =>
106 [
107 ...new Set(diff.changes.flatMap((change) => {
108 if (change.classification !== "module-removed") {
109 return []
110 }
111 const from = (change.delta as { readonly from?: unknown } | undefined)?.from
112 return typeof from === "string" ? [from] : []
113 }))
114 ].sort(compareStrings)
115
116const sameStrings = (left: ReadonlyArray<string>, right: ReadonlyArray<string>): boolean =>
117 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