Skip to content
Source
Sign inSign up

effect__Duration.yaml

50 lines2.6 KB

1"effect/Duration#decode":
2 replacement: "Duration.fromInputUnsafe"
3 note: "The throwing DurationInput decoder was renamed."
4"effect/Duration#decodeUnknown":
5 replacement: "Duration.fromInput"
6 note: "The safe decoder was renamed and accepts Duration.Input, returning Option<Duration>."
7"effect/Duration#Duration":
8 replacement: "Duration.Duration"
9 note: "The model remains and now also supports negative infinity; its type-id value is private."
10"effect/Duration#DurationInput":
11 replacement: "Duration.Input"
12 note: "The input type was renamed and expanded with negative values and Temporal.Duration-like objects."
13"effect/Duration#DurationValue":
14 replacement: "Duration.DurationValue"
15 note: "The tagged value remains and adds NegativeInfinity; its object fields are no longer readonly."
16"effect/Duration#formatIso":
17 include: true
18 replacement: "Duration.formatIso"
19 note: "Available again from 4.1. The output is balanced into days, hours, minutes and seconds and never contains weeks, months or years; infinite durations return Option.none()."
20"effect/Duration#fromIso":
21 include: true
22 replacement: "Duration.fromIso"
23 note: "Available again from 4.1 for exact units only (weeks, days, hours, minutes and seconds). Years and months are rejected instead of approximated. Use Schema.DurationFromIsoString for a Schema codec."
24"effect/Duration#greaterThan":
25 replacement: "Duration.isGreaterThan"
26 note: "The comparison was renamed with the is prefix."
27"effect/Duration#greaterThanOrEqualTo":
28 replacement: "Duration.isGreaterThanOrEqualTo"
29 note: "The comparison was renamed with the is prefix."
30"effect/Duration#lessThan":
31 replacement: "Duration.isLessThan"
32 note: "The comparison was renamed with the is prefix."
33"effect/Duration#lessThanOrEqualTo":
34 replacement: "Duration.isLessThanOrEqualTo"
35 note: "The comparison was renamed with the is prefix."
36"effect/Duration#matchWith":
37 replacement: "Duration.matchPair"
38 note: "The two-duration matcher was renamed."
39"effect/Duration#TypeId":
40 replacement: "none"
41 note: "The Duration type id is private in v4. Use Duration.isDuration to narrow unknown values."
42"effect/Duration#unsafeDivide":
43 replacement: "Duration.divideUnsafe"
44 note: "The unsafe prefix moved to the end of the division function name."
45"effect/Duration#unsafeFormatIso":
46 replacement: "none"
47 note: "There is no throwing variant. Use Duration.formatIso and handle Option.none() for infinite durations."
48"effect/Duration#unsafeToNanos":
49 replacement: "Duration.toNanosUnsafe"
50 note: "The unsafe prefix moved to the end of the nanosecond conversion name."