mirror of
https://github.com/Effect-TS/effect.git
synced 2026-11-21 02:01:57 +08:00
51 lines
2.6 KiB
YAML
51 lines
2.6 KiB
YAML
"effect/Duration#decode":
|
|
replacement: "Duration.fromInputUnsafe"
|
|
note: "The throwing DurationInput decoder was renamed."
|
|
"effect/Duration#decodeUnknown":
|
|
replacement: "Duration.fromInput"
|
|
note: "The safe decoder was renamed and accepts Duration.Input, returning Option<Duration>."
|
|
"effect/Duration#Duration":
|
|
replacement: "Duration.Duration"
|
|
note: "The model remains and now also supports negative infinity; its type-id value is private."
|
|
"effect/Duration#DurationInput":
|
|
replacement: "Duration.Input"
|
|
note: "The input type was renamed and expanded with negative values and Temporal.Duration-like objects."
|
|
"effect/Duration#DurationValue":
|
|
replacement: "Duration.DurationValue"
|
|
note: "The tagged value remains and adds NegativeInfinity; its object fields are no longer readonly."
|
|
"effect/Duration#formatIso":
|
|
include: true
|
|
replacement: "Duration.formatIso"
|
|
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()."
|
|
"effect/Duration#fromIso":
|
|
include: true
|
|
replacement: "Duration.fromIso"
|
|
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."
|
|
"effect/Duration#greaterThan":
|
|
replacement: "Duration.isGreaterThan"
|
|
note: "The comparison was renamed with the is prefix."
|
|
"effect/Duration#greaterThanOrEqualTo":
|
|
replacement: "Duration.isGreaterThanOrEqualTo"
|
|
note: "The comparison was renamed with the is prefix."
|
|
"effect/Duration#lessThan":
|
|
replacement: "Duration.isLessThan"
|
|
note: "The comparison was renamed with the is prefix."
|
|
"effect/Duration#lessThanOrEqualTo":
|
|
replacement: "Duration.isLessThanOrEqualTo"
|
|
note: "The comparison was renamed with the is prefix."
|
|
"effect/Duration#matchWith":
|
|
replacement: "Duration.matchPair"
|
|
note: "The two-duration matcher was renamed."
|
|
"effect/Duration#TypeId":
|
|
replacement: "none"
|
|
note: "The Duration type id is private in v4. Use Duration.isDuration to narrow unknown values."
|
|
"effect/Duration#unsafeDivide":
|
|
replacement: "Duration.divideUnsafe"
|
|
note: "The unsafe prefix moved to the end of the division function name."
|
|
"effect/Duration#unsafeFormatIso":
|
|
replacement: "none"
|
|
note: "There is no throwing variant. Use Duration.formatIso and handle Option.none() for infinite durations."
|
|
"effect/Duration#unsafeToNanos":
|
|
replacement: "Duration.toNanosUnsafe"
|
|
note: "The unsafe prefix moved to the end of the nanosecond conversion name."
|