| 1 | effect/TMap#TMap: |
| 2 | replacement: "TxHashMap.TxHashMap" |
| 3 | 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." |
| 4 | effect/TMap#TMap.Variance: |
| 5 | replacement: "none" |
| 6 | note: "TxHashMap exposes no public variance marker." |
| 7 | effect/TMap#TMapTypeId: |
| 8 | replacement: "TxHashMap.isTxHashMap" |
| 9 | note: "The type id is internal in v4; use the public runtime guard." |
| 10 | effect/TMap#empty: |
| 11 | replacement: "TxHashMap.empty" |
| 12 | 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." |
| 13 | effect/TMap#findAllSTM: |
| 14 | replacement: "TxHashMap.entries + Effect traversal" |
| 15 | note: "No effectful mapped-find helper remains; traverse the entry snapshot explicitly inside Effect.tx." |
| 16 | effect/TMap#findSTM: |
| 17 | replacement: "TxHashMap.entries + Effect.findFirst" |
| 18 | note: "No effectful mapped-find helper remains; traverse entries explicitly inside Effect.tx." |
| 19 | effect/TMap#fromIterable: |
| 20 | replacement: "TxHashMap.fromIterable" |
| 21 | 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." |
| 22 | effect/TMap#get: |
| 23 | replacement: "TxHashMap.get" |
| 24 | 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." |
| 25 | effect/TMap#getOrElse: |
| 26 | replacement: "Effect.map(TxHashMap.get(self, key), Option.getOrElse(fallback))" |
| 27 | note: "Compose the retained optional get operation with Option.getOrElse." |
| 28 | effect/TMap#has: |
| 29 | replacement: "TxHashMap.has" |
| 30 | 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." |
| 31 | effect/TMap#isEmpty: |
| 32 | replacement: "TxHashMap.isEmpty" |
| 33 | 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." |
| 34 | effect/TMap#keys: |
| 35 | replacement: "TxHashMap.keys" |
| 36 | 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." |
| 37 | effect/TMap#make: |
| 38 | replacement: "TxHashMap.make" |
| 39 | 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." |
| 40 | effect/TMap#reduce: |
| 41 | replacement: "TxHashMap.reduce" |
| 42 | 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." |
| 43 | effect/TMap#reduceSTM: |
| 44 | replacement: "TxHashMap.entries + Effect.reduce" |
| 45 | note: "Snapshot entries and reduce them effectfully inside the surrounding Effect.tx transaction." |
| 46 | effect/TMap#remove: |
| 47 | replacement: "TxHashMap.remove" |
| 48 | 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." |
| 49 | effect/TMap#removeAll: |
| 50 | replacement: "TxHashMap.removeMany" |
| 51 | note: "The bulk removal operation was renamed." |
| 52 | effect/TMap#setIfAbsent: |
| 53 | replacement: "Effect.tx + TxHashMap.get/TxHashMap.set" |
| 54 | note: "No direct helper remains; check and conditionally set under one outer transaction." |
| 55 | effect/TMap#size: |
| 56 | replacement: "TxHashMap.size" |
| 57 | 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." |
| 58 | effect/TMap#takeFirst: |
| 59 | replacement: "none" |
| 60 | note: "No atomic take-and-match helper exists in TxHashMap; implement explicit selection and removal inside Effect.tx." |
| 61 | effect/TMap#takeFirstSTM: |
| 62 | replacement: "none" |
| 63 | note: "No effectful atomic take-and-match helper exists; implement explicit traversal and removal inside Effect.tx." |
| 64 | effect/TMap#takeSome: |
| 65 | replacement: "none" |
| 66 | note: "No atomic multi-take helper exists in TxHashMap; implement explicit selection and removals inside Effect.tx." |
| 67 | effect/TMap#takeSomeSTM: |
| 68 | replacement: "none" |
| 69 | note: "No effectful atomic multi-take helper exists; implement explicit traversal and removals inside Effect.tx." |
| 70 | effect/TMap#toArray: |
| 71 | replacement: "TxHashMap.entries" |
| 72 | note: "Use the entry snapshot; it replaces the old array conversion." |
| 73 | effect/TMap#toChunk: |
| 74 | replacement: "Effect.map(TxHashMap.entries(self), Chunk.fromIterable)" |
| 75 | note: "Convert the entry snapshot to Chunk explicitly." |
| 76 | effect/TMap#toHashMap: |
| 77 | replacement: "TxHashMap.snapshot" |
| 78 | note: "The immutable HashMap snapshot operation was renamed." |
| 79 | effect/TMap#toMap: |
| 80 | replacement: "Effect.map(TxHashMap.entries(self), (entries) => new Map(entries))" |
| 81 | note: "Build a JavaScript Map from the entry snapshot." |
| 82 | effect/TMap#transform: |
| 83 | replacement: "TxHashMap.map" |
| 84 | note: "V4 map returns a new map rather than mutating self; key-changing transforms require snapshot and rebuild logic." |
| 85 | effect/TMap#transformSTM: |
| 86 | replacement: "TxHashMap.entries + Effect traversal + TxHashMap.fromIterable" |
| 87 | note: "No in-place effectful transform remains; traverse a snapshot and rebuild inside Effect.tx." |
| 88 | effect/TMap#transformValues: |
| 89 | replacement: "TxHashMap.map" |
| 90 | note: "V4 map transforms values but returns a new map rather than mutating self." |
| 91 | effect/TMap#transformValuesSTM: |
| 92 | replacement: "TxHashMap.entries + Effect traversal + TxHashMap.fromIterable" |
| 93 | note: "No effectful map remains; traverse a snapshot and rebuild inside Effect.tx." |
| 94 | effect/TMap#updateWith: |
| 95 | replacement: "TxHashMap.modifyAt" |
| 96 | note: "modifyAt is the closest atomic keyed update, but returns void; preserve any old return value explicitly if needed." |
| 97 | effect/TMap#values: |
| 98 | replacement: "TxHashMap.values" |
| 99 | 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." |