Skip to content
Source
Sign inSign up

effect__Match.yaml

67 lines4.5 KB

1"effect/Match#either":
2 replacement: "Match.result"
3 note: "Renamed finalizer with a container change: matched Right and unmatched Left become Result.Success and Result.Failure."
4"effect/Match#MatcherTypeId":
5 replacement: "none"
6 note: "The public matcher brand was internalized. Obtain matchers from Match.type or Match.value and use their public _tag when discrimination is required."
7"effect/Match#Matcher":
8 replacement: "Match.Matcher"
9 note: "The type is retained, but its fifth argument is now a flavor marker (ValueFlavor for Match.value and never for Match.type or Match.fn) rather than the provided value; an optional seventh Args tuple tracks Match.fn selector arguments. Prefer inference from Match.type, Match.value, or Match.fn and update hand-written Matcher annotations."
10"effect/Match#Not":
11 replacement: "Match.Not"
12 note: "The case type is retained. Its evaluate method now receives any Match.fn selector arguments after the selected input; update custom case implementations that consume those arguments."
13"effect/Match#not":
14 include: true
15 replacement: "Match.not"
16 note: "Object patterns now reject top-level keys absent from every variant of the remaining input type. Correct stale property names or narrow the input before matching; function, refinement, and array patterns are not subject to this object-key check."
17"effect/Match#SafeRefinementId":
18 replacement: "none"
19 note: "The public safe-refinement brand was internalized. Use Predicate.Refinement, Predicate.Predicate, or a built-in Match refinement instead of constructing the brand."
20"effect/Match#TypeMatcher":
21 replacement: "Match.TypeMatcher"
22 note: "The public type is retained, but its brand is private; create values with Match.type rather than implementing the interface."
23"effect/Match#Types":
24 replacement: "Match.Types"
25 note: "The public type-level namespace is retained with no call-site migration."
26"effect/Match#Types.ExtractAndNarrow":
27 replacement: "Match.Types.ExtractAndNarrow"
28 note: "Array prefix patterns now narrow the required positions and preserve the unmatched tail of arrays and variadic tuples. Update explicit handler or helper result types that assumed a prefix pattern described the entire array; runtime prefix matching is unchanged."
29"effect/Match#Types.MaybeReplace":
30 replacement: "Match.Types.MaybeReplace"
31 note: "The type-only matching helper is retained unchanged."
32"effect/Match#Types.NonFailKeys":
33 replacement: "Match.Types.NonFailKeys"
34 note: "The type-only matching helper is retained unchanged."
35"effect/Match#Types.PForNotMatch":
36 replacement: "Match.Types.PForNotMatch"
37 note: "The type-only matching helper is retained unchanged."
38"effect/Match#Types.ResolvePred":
39 replacement: "Match.Types.ResolvePred"
40 note: "The type-only matching helper is retained unchanged."
41"effect/Match#Types.SafeRefinementR":
42 replacement: "Match.Types.SafeRefinementR"
43 note: "The type-only matching helper is retained unchanged."
44"effect/Match#Types.ToInvertedRefinement":
45 replacement: "Match.Types.ToInvertedRefinement"
46 note: "The type-only matching helper is retained unchanged."
47"effect/Match#Types.ToSafeRefinement":
48 replacement: "Match.Types.ToSafeRefinement"
49 note: "The type-only matching helper is retained unchanged."
50"effect/Match#ValueMatcher":
51 replacement: "Match.ValueMatcher"
52 note: "The type is retained, but value now uses Result instead of Either and the brand is private; create values with Match.value."
53"effect/Match#When":
54 replacement: "Match.When"
55 note: "The case type is retained. Its evaluate method now receives any Match.fn selector arguments after the selected input; update custom case implementations that consume those arguments."
56"effect/Match#when":
57 include: true
58 replacement: "Match.when"
59 note: "Object patterns now reject top-level keys absent from every variant of the remaining input type. Correct stale property names or narrow the input before matching. Array prefix patterns retain the unmatched tail in the handler type rather than treating the pattern as the entire array."
60"effect/Match#whenAnd":
61 include: true
62 replacement: "Match.whenAnd"
63 note: "Each object pattern now rejects top-level keys absent from every variant of the remaining input type, including patterns spread from an array. Correct stale property names or narrow the input before matching."
64"effect/Match#whenOr":
65 include: true
66 replacement: "Match.whenOr"
67 note: "Each object pattern now rejects top-level keys absent from every variant of the remaining input type, including patterns spread from an array. Correct stale property names or narrow the input before matching."