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

Function changeId

packages/tools/api-diff/src/Diff.ts:157–162  ·  view source on GitHub ↗
(
  classification: ChangeClassification,
  base?: ApiEntity,
  head?: ApiEntity,
  suffix = ""
)

Source from the content-addressed store, hash-verified

155}
156
157const changeId = (
158 classification: ChangeClassification,
159 base?: ApiEntity,
160 head?: ApiEntity,
161 suffix = ""
162): string => `change-${fingerprint([classification, base?.id ?? null, head?.id ?? null, suffix]).slice(0, 16)}`
163
164const makeChange = (
165 classification: ChangeClassification,

Callers 1

makeChangeFunction · 0.85

Calls 1

fingerprintFunction · 0.90

Tested by

no test coverage detected