| 1 | "effect/SortedMap#empty": |
| 2 | replacement: "HashMap.empty" |
| 3 | note: "SortedMap was removed; use an immutable HashMap and retain the key Order separately." |
| 4 | "effect/SortedMap#entries": |
| 5 | replacement: "HashMap.entries + Array.sortWith" |
| 6 | note: "Materialize HashMap.entries and sort by key with the retained Order when ordered traversal is required." |
| 7 | "effect/SortedMap#fromIterable": |
| 8 | replacement: "HashMap.fromIterable" |
| 9 | note: "Use HashMap.fromIterable and retain the key Order separately; duplicate keys collapse." |
| 10 | "effect/SortedMap#get": |
| 11 | replacement: "HashMap.get" |
| 12 | note: "Direct optional lookup on the replacement immutable map." |
| 13 | "effect/SortedMap#getOrder": |
| 14 | replacement: "none" |
| 15 | note: "HashMap does not store an Order; retain and pass the key Order explicitly." |
| 16 | "effect/SortedMap#headOption": |
| 17 | replacement: "HashMap.entries + Array.sortWith + Array.head" |
| 18 | note: "Sort entries by key with the retained Order, then take the optional first entry." |
| 19 | "effect/SortedMap#isEmpty": |
| 20 | replacement: "HashMap.isEmpty" |
| 21 | note: "Direct emptiness check on the replacement immutable map." |
| 22 | "effect/SortedMap#isNonEmpty": |
| 23 | replacement: "HashMap.isEmpty" |
| 24 | note: "Use !HashMap.isEmpty(self); no dedicated HashMap.isNonEmpty helper exists." |
| 25 | "effect/SortedMap#isSortedMap": |
| 26 | replacement: "HashMap.isHashMap" |
| 27 | note: "Use the replacement model guard; it does not prove that observations were sorted." |
| 28 | "effect/SortedMap#keys": |
| 29 | replacement: "HashMap.entries + Array.sortWith + Array.map" |
| 30 | note: "Sort entries by key, map to keys, and iterate the resulting array." |
| 31 | "effect/SortedMap#lastOption": |
| 32 | replacement: "HashMap.entries + Array.sortWith + Array.last" |
| 33 | note: "Sort entries by key with the retained Order, then take the optional last entry." |
| 34 | "effect/SortedMap#make": |
| 35 | replacement: "HashMap.make" |
| 36 | note: "Remove the outer order-curried constructor and pass entries directly to HashMap.make." |
| 37 | "effect/SortedMap#map": |
| 38 | replacement: "HashMap.map" |
| 39 | note: "The value-and-key callback remains, but result iteration is unordered until explicitly sorted." |
| 40 | "effect/SortedMap#partition": |
| 41 | replacement: "HashMap.filter" |
| 42 | note: "Build [excluded, satisfying] with complementary HashMap.filter calls; adapt the callback to the old key predicate." |
| 43 | "effect/SortedMap#remove": |
| 44 | replacement: "HashMap.remove" |
| 45 | note: "Direct persistent removal; explicitly sort only when observing entries." |
| 46 | "effect/SortedMap#set": |
| 47 | replacement: "HashMap.set" |
| 48 | note: "Direct persistent insert or update; explicitly sort only when observing entries." |
| 49 | "effect/SortedMap#size": |
| 50 | replacement: "HashMap.size" |
| 51 | note: "Direct size query on the replacement immutable map." |
| 52 | "effect/SortedMap#SortedMap": |
| 53 | replacement: "HashMap.HashMap" |
| 54 | note: "Use HashMap as the immutable core model and retain Order externally; ordered iteration and range seeks require sorting on observation." |
| 55 | "effect/SortedMap#TypeId": |
| 56 | replacement: "none" |
| 57 | note: "The SortedMap brand was removed and HashMap.TypeId is private; use HashMap.isHashMap when a guard is needed." |
| 58 | "effect/SortedMap#values": |
| 59 | replacement: "HashMap.entries + Array.sortWith + Array.map" |
| 60 | note: "Sort entries by key, map to values, and iterate the resulting array." |
| 61 | "effect/SortedMap#has": |
| 62 | replacement: "HashMap.has" |
| 63 | note: "Use direct membership testing on the replacement HashMap; retain the key Order separately for sorted observations." |
| 64 | "effect/SortedMap#reduce": |
| 65 | replacement: "HashMap.reduce" |
| 66 | note: "Reduce the replacement HashMap, but explicitly sort entries first if the old key-order traversal affected the result." |