Skip to content
Source
Sign inSign up
Open History to see the last commit

effect__DateTime.yaml

88 lines4.9 KB

1"effect/DateTime#DateTime":
2 replacement: "DateTime.DateTime"
3 note: "The Utc | Zoned model remains; epochMillis fields are now epochMilliseconds and unit/part names use millisecond terminology."
4"effect/DateTime#DateTime.Input":
5 replacement: "DateTime.DateTime.Input"
6 note: "The input type remains and additionally accepts Instant and InstantWithZone objects."
7"effect/DateTime#DateTime.Parts":
8 replacement: "DateTime.DateTime.Parts"
9 note: "Rename millis, seconds, minutes, and hours fields to millisecond, second, minute, and hour."
10"effect/DateTime#DateTime.PartsForMath":
11 replacement: "DateTime.DateTime.PartsForMath"
12 note: "Rename the millis field to milliseconds; the other plural arithmetic fields remain."
13"effect/DateTime#DateTime.PartsWithWeekday":
14 replacement: "DateTime.DateTime.PartsWithWeekday"
15 note: "Rename millis, seconds, minutes, and hours fields to millisecond, second, minute, and hour."
16"effect/DateTime#DateTime.Proto":
17 replacement: "DateTime.DateTime.Proto"
18 note: "The protocol remains, but its marker uses the private v4 TypeId value."
19"effect/DateTime#DateTime.UnitPlural":
20 replacement: "DateTime.DateTime.UnitPlural"
21 note: "Use milliseconds instead of millis; the other plural unit strings remain."
22"effect/DateTime#DateTime.UnitSingular":
23 replacement: "DateTime.DateTime.UnitSingular"
24 note: "Use millisecond instead of milli; the other singular unit strings remain."
25"effect/DateTime#distance":
26 include: true
27 replacement: "Duration.toMillis(DateTime.distance(self, other))"
28 note: "V3 returns signed milliseconds; v4 returns a signed Duration (other minus self). Convert it with Duration.toMillis when a numeric millisecond result is required."
29"effect/DateTime#distanceDuration":
30 replacement: "Duration.abs(DateTime.distance(self, other))"
31 note: "V4 DateTime.distance already returns a signed Duration. Use Duration.abs to preserve the non-negative distance returned by v3; Math.abs and Duration.millis expect numbers, not Durations."
32"effect/DateTime#distanceDurationEither":
33 replacement: "DateTime.distance + Result"
34 note: "Let diff = DateTime.distance(self, other), a signed Duration. Use Duration.isPositive(diff) ? Result.succeed(Duration.abs(diff)) : Result.fail(Duration.abs(diff)) to preserve v3 behavior, including equal dates producing a failure with Duration.zero. V4 uses Result instead of Either."
35"effect/DateTime#greaterThan":
36 replacement: "DateTime.isGreaterThan"
37 note: "The comparison was renamed with the is prefix."
38"effect/DateTime#greaterThanOrEqualTo":
39 replacement: "DateTime.isGreaterThanOrEqualTo"
40 note: "The comparison was renamed with the is prefix."
41"effect/DateTime#lessThan":
42 replacement: "DateTime.isLessThan"
43 note: "The comparison was renamed with the is prefix."
44"effect/DateTime#lessThanOrEqualTo":
45 replacement: "DateTime.isLessThanOrEqualTo"
46 note: "The comparison was renamed with the is prefix."
47"effect/DateTime#TimeZone":
48 replacement: "DateTime.TimeZone"
49 note: "The Offset | Named model remains; its public type-id marker type was removed."
50"effect/DateTime#TimeZone.Proto":
51 replacement: "DateTime.TimeZone.Proto"
52 note: "The protocol remains, but its marker uses the private v4 TimeZoneTypeId value."
53"effect/DateTime#TimeZoneTypeId":
54 replacement: "none"
55 note: "The time-zone type id is private in v4. Use DateTime.isTimeZone, isTimeZoneOffset, or isTimeZoneNamed."
56"effect/DateTime#TypeId":
57 replacement: "none"
58 note: "The DateTime type id is private in v4. Use DateTime.isDateTime, isUtc, or isZoned."
59"effect/DateTime#unsafeFromDate":
60 replacement: "DateTime.fromDateUnsafe"
61 note: "The unsafe suffix moved to the end of the constructor name."
62"effect/DateTime#unsafeIsFuture":
63 replacement: "DateTime.isFutureUnsafe"
64 note: "The unsafe suffix moved to the end of the predicate name."
65"effect/DateTime#unsafeIsPast":
66 replacement: "DateTime.isPastUnsafe"
67 note: "The unsafe suffix moved to the end of the predicate name."
68"effect/DateTime#unsafeMake":
69 replacement: "DateTime.makeUnsafe"
70 note: "The unsafe suffix moved to the end of the constructor name."
71"effect/DateTime#unsafeMakeZoned":
72 replacement: "DateTime.makeZonedUnsafe"
73 note: "The unsafe suffix moved to the end of the constructor name."
74"effect/DateTime#unsafeNow":
75 replacement: "DateTime.nowUnsafe"
76 note: "The unsafe suffix moved to the end of the accessor name."
77"effect/DateTime#unsafeSetZoneNamed":
78 replacement: "DateTime.setZoneNamedUnsafe"
79 note: "The unsafe suffix moved to the end of the zone setter name."
80"effect/DateTime#Utc":
81 replacement: "DateTime.Utc"
82 note: "The model remains; rename epochMillis to epochMilliseconds."
83"effect/DateTime#Zoned":
84 replacement: "DateTime.Zoned"
85 note: "The model remains; rename epochMillis and adjustedEpochMillis to epochMilliseconds and adjustedEpochMilliseconds."
86"effect/DateTime#zoneUnsafeMakeNamed":
87 replacement: "DateTime.zoneMakeNamedUnsafe"
88 note: "The unsafe suffix moved to the end of the named-zone constructor."