sailfork / t3code-github / .repos/ effect/ migration/ annotations/ effect__TMap.yaml

effect/TMap#TMap:
  replacement: "TxHashMap.TxHashMap"
  note: "Rename the type and import from \"effect/TxHashMap\". V4 Tx operations return ordinary Effects; compose multiple operations under one outer Effect.tx to keep them atomic."
effect/TMap#TMap.Variance:
  replacement: "none"
  note: "TxHashMap exposes no public variance marker."
effect/TMap#TMapTypeId:
  replacement: "TxHashMap.isTxHashMap"
  note: "The type id is internal in v4; use the public runtime guard."
effect/TMap#empty:
  replacement: "TxHashMap.empty"
  note: "Import TxHashMap from \"effect/TxHashMap\"; the operation keeps its name. V4 Tx operations return ordinary Effects; compose multiple operations under one outer Effect.tx to keep them atomic."
effect/TMap#findAllSTM:
  replacement: "TxHashMap.entries + Effect traversal"
  note: "No effectful mapped-find helper remains; traverse the entry snapshot explicitly inside Effect.tx."
effect/TMap#findSTM:
  replacement: "TxHashMap.entries + Effect.findFirst"
  note: "No effectful mapped-find helper remains; traverse entries explicitly inside Effect.tx."
effect/TMap#fromIterable:
  replacement: "TxHashMap.fromIterable"
  note: "Import TxHashMap from \"effect/TxHashMap\"; the operation keeps its name. V4 Tx operations return ordinary Effects; compose multiple operations under one outer Effect.tx to keep them atomic."
effect/TMap#get:
  replacement: "TxHashMap.get"
  note: "Import TxHashMap from \"effect/TxHashMap\"; the operation keeps its name. V4 Tx operations return ordinary Effects; compose multiple operations under one outer Effect.tx to keep them atomic."
effect/TMap#getOrElse:
  replacement: "Effect.map(TxHashMap.get(self, key), Option.getOrElse(fallback))"
  note: "Compose the retained optional get operation with Option.getOrElse."
effect/TMap#has:
  replacement: "TxHashMap.has"
  note: "Import TxHashMap from \"effect/TxHashMap\"; the operation keeps its name. V4 Tx operations return ordinary Effects; compose multiple operations under one outer Effect.tx to keep them atomic."
effect/TMap#isEmpty:
  replacement: "TxHashMap.isEmpty"
  note: "Import TxHashMap from \"effect/TxHashMap\"; the operation keeps its name. V4 Tx operations return ordinary Effects; compose multiple operations under one outer Effect.tx to keep them atomic."
effect/TMap#keys:
  replacement: "TxHashMap.keys"
  note: "Import TxHashMap from \"effect/TxHashMap\"; the operation keeps its name. V4 Tx operations return ordinary Effects; compose multiple operations under one outer Effect.tx to keep them atomic."
effect/TMap#make:
  replacement: "TxHashMap.make"
  note: "Import TxHashMap from \"effect/TxHashMap\"; the operation keeps its name. V4 Tx operations return ordinary Effects; compose multiple operations under one outer Effect.tx to keep them atomic."
effect/TMap#reduce:
  replacement: "TxHashMap.reduce"
  note: "Import TxHashMap from \"effect/TxHashMap\"; the operation keeps its name. V4 Tx operations return ordinary Effects; compose multiple operations under one outer Effect.tx to keep them atomic."
effect/TMap#reduceSTM:
  replacement: "TxHashMap.entries + Effect.reduce"
  note: "Snapshot entries and reduce them effectfully inside the surrounding Effect.tx transaction."
effect/TMap#remove:
  replacement: "TxHashMap.remove"
  note: "Import TxHashMap from \"effect/TxHashMap\"; the operation keeps its name. V4 Tx operations return ordinary Effects; compose multiple operations under one outer Effect.tx to keep them atomic."
effect/TMap#removeAll:
  replacement: "TxHashMap.removeMany"
  note: "The bulk removal operation was renamed."
effect/TMap#setIfAbsent:
  replacement: "Effect.tx + TxHashMap.get/TxHashMap.set"
  note: "No direct helper remains; check and conditionally set under one outer transaction."
effect/TMap#size:
  replacement: "TxHashMap.size"
  note: "Import TxHashMap from \"effect/TxHashMap\"; the operation keeps its name. V4 Tx operations return ordinary Effects; compose multiple operations under one outer Effect.tx to keep them atomic."
effect/TMap#takeFirst:
  replacement: "none"
  note: "No atomic take-and-match helper exists in TxHashMap; implement explicit selection and removal inside Effect.tx."
effect/TMap#takeFirstSTM:
  replacement: "none"
  note: "No effectful atomic take-and-match helper exists; implement explicit traversal and removal inside Effect.tx."
effect/TMap#takeSome:
  replacement: "none"
  note: "No atomic multi-take helper exists in TxHashMap; implement explicit selection and removals inside Effect.tx."
effect/TMap#takeSomeSTM:
  replacement: "none"
  note: "No effectful atomic multi-take helper exists; implement explicit traversal and removals inside Effect.tx."
effect/TMap#toArray:
  replacement: "TxHashMap.entries"
  note: "Use the entry snapshot; it replaces the old array conversion."
effect/TMap#toChunk:
  replacement: "Effect.map(TxHashMap.entries(self), Chunk.fromIterable)"
  note: "Convert the entry snapshot to Chunk explicitly."
effect/TMap#toHashMap:
  replacement: "TxHashMap.snapshot"
  note: "The immutable HashMap snapshot operation was renamed."
effect/TMap#toMap:
  replacement: "Effect.map(TxHashMap.entries(self), (entries) => new Map(entries))"
  note: "Build a JavaScript Map from the entry snapshot."
effect/TMap#transform:
  replacement: "TxHashMap.map"
  note: "V4 map returns a new map rather than mutating self; key-changing transforms require snapshot and rebuild logic."
effect/TMap#transformSTM:
  replacement: "TxHashMap.entries + Effect traversal + TxHashMap.fromIterable"
  note: "No in-place effectful transform remains; traverse a snapshot and rebuild inside Effect.tx."
effect/TMap#transformValues:
  replacement: "TxHashMap.map"
  note: "V4 map transforms values but returns a new map rather than mutating self."
effect/TMap#transformValuesSTM:
  replacement: "TxHashMap.entries + Effect traversal + TxHashMap.fromIterable"
  note: "No effectful map remains; traverse a snapshot and rebuild inside Effect.tx."
effect/TMap#updateWith:
  replacement: "TxHashMap.modifyAt"
  note: "modifyAt is the closest atomic keyed update, but returns void; preserve any old return value explicitly if needed."
effect/TMap#values:
  replacement: "TxHashMap.values"
  note: "Import TxHashMap from \"effect/TxHashMap\"; the operation keeps its name. V4 Tx operations return ordinary Effects; compose multiple operations under one outer Effect.tx to keep them atomic."