| 1 | "effect/Array#filterMapWhile": |
| 2 | replacement: "Array.takeWhileFilter" |
| 3 | note: "Same map-until-first-miss behavior; change the callback from Option.some/none to Result.succeed/fail." |
| 4 | "effect/Array#flatMapNullable": |
| 5 | replacement: "Array.flatMapNullishOr" |
| 6 | note: "Direct nullish-terminology rename; null and undefined mapper results are still discarded." |
| 7 | "effect/Array#fromNullable": |
| 8 | replacement: "Array.fromNullishOr" |
| 9 | note: "Direct nullish-terminology rename; null and undefined become an empty array and other values become a singleton." |
| 10 | "effect/Array#getEquivalence": |
| 11 | replacement: "Array.makeEquivalence" |
| 12 | note: "Direct rename; pass the element Equivalence unchanged." |
| 13 | "effect/Array#getLefts": |
| 14 | replacement: "Array.getFailures" |
| 15 | note: "Either became Result; this extracts failure payloads in input order." |
| 16 | "effect/Array#getOrder": |
| 17 | replacement: "Array.makeOrder" |
| 18 | note: "Direct rename; pass the element Order unchanged." |
| 19 | "effect/Array#getRights": |
| 20 | replacement: "Array.getSuccesses" |
| 21 | note: "Either became Result; this extracts success payloads in input order." |
| 22 | "effect/Array#init": |
| 23 | replacement: "Array.init" |
| 24 | note: "The API and Option<Array<A>> behavior remain unchanged." |
| 25 | "effect/Array#isEmptyArray": |
| 26 | replacement: "Array.isArrayEmpty" |
| 27 | note: "Direct word-order rename; retains the mutable empty-array type guard." |
| 28 | "effect/Array#isEmptyReadonlyArray": |
| 29 | replacement: "Array.isReadonlyArrayEmpty" |
| 30 | note: "Direct word-order rename; retains the readonly empty-array type guard." |
| 31 | "effect/Array#isNonEmptyArray": |
| 32 | replacement: "Array.isArrayNonEmpty" |
| 33 | note: "Direct word-order rename; retains the mutable NonEmptyArray type guard." |
| 34 | "effect/Array#isNonEmptyReadonlyArray": |
| 35 | replacement: "Array.isReadonlyArrayNonEmpty" |
| 36 | note: "Direct word-order rename; retains the NonEmptyReadonlyArray type guard." |
| 37 | "effect/Array#liftEither": |
| 38 | replacement: "Array.liftResult" |
| 39 | note: "Either became Result; failures produce an empty array and successes produce a singleton." |
| 40 | "effect/Array#liftNullable": |
| 41 | replacement: "Array.liftNullishOr" |
| 42 | note: "Direct nullish-terminology rename; the lifted function still returns zero or one element." |
| 43 | "effect/Array#modifyNonEmptyHead": |
| 44 | replacement: "Array.modifyHeadNonEmpty" |
| 45 | note: "Direct word-order rename with the same non-empty-preserving result." |
| 46 | "effect/Array#modifyNonEmptyLast": |
| 47 | replacement: "Array.modifyLastNonEmpty" |
| 48 | note: "Direct word-order rename with the same non-empty-preserving result." |
| 49 | "effect/Array#modifyOption": |
| 50 | replacement: "Array.modify" |
| 51 | note: "The Option suffix was dropped; an out-of-bounds index still returns Option.none." |
| 52 | "effect/Array#partition": |
| 53 | include: true |
| 54 | replacement: "Array.partition" |
| 55 | note: "Return Result.succeed(value) for a match and Result.fail(value) otherwise; Filter.fromPredicate adapts predicates that only inspect the value. The tuple is now [passes, fails], the reverse of v3 [excluded, satisfying]." |
| 56 | "effect/Array#partitionMap": |
| 57 | replacement: "Array.partition" |
| 58 | note: "Pass a Result-returning mapper instead of Either. The tuple is [passes, fails], the reverse of v3 [lefts, rights]." |
| 59 | "effect/Array#ReadonlyArray": |
| 60 | replacement: "Array.ReadonlyArray" |
| 61 | note: "The namespace and its Infer, With, OrNonEmpty, AndNonEmpty, and Flatten utility types remain." |
| 62 | "effect/Array#removeOption": |
| 63 | replacement: "Array.remove" |
| 64 | note: "The closest API now returns an unchanged copy out of bounds; use Array.get before Array.remove to preserve the old Option result." |
| 65 | "effect/Array#replaceOption": |
| 66 | replacement: "Array.replace" |
| 67 | note: "The Option suffix was dropped; an out-of-bounds index still returns Option.none." |
| 68 | "effect/Array#separate": |
| 69 | include: true |
| 70 | replacement: "Array.separate" |
| 71 | note: "The tuple is now [successes, failures], the reverse of v3 [lefts, rights]." |
| 72 | "effect/Array#setNonEmptyHead": |
| 73 | replacement: "Array.setHeadNonEmpty" |
| 74 | note: "Direct word-order rename with the same non-empty-preserving result." |
| 75 | "effect/Array#setNonEmptyLast": |
| 76 | replacement: "Array.setLastNonEmpty" |
| 77 | note: "Direct word-order rename with the same non-empty-preserving result." |
| 78 | "effect/Array#splitNonEmptyAt": |
| 79 | replacement: "Array.splitAtNonEmpty" |
| 80 | note: "Direct word-order rename; the left output remains guaranteed non-empty." |
| 81 | "effect/Array#tail": |
| 82 | replacement: "Array.tail" |
| 83 | note: "The API and Option<Array<A>> behavior remain unchanged." |
| 84 | "effect/Array#unsafeGet": |
| 85 | replacement: "Array.getUnsafe" |
| 86 | note: "Direct word-order rename; it still throws for an out-of-bounds index." |