All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
startOfWeek
andendOfWeek
functionsparse
function
- Latin alphabets (
A
toZ
anda
toz
) in the given format are now reserved for use as pattern characters informatWithoutLocale
. If you want to treat them as literal, escape them. (39f5f9d)
- Fix wrong type annotation in some functions (eb95c5a)
fromJulianDate
,fromModifiedJulianDate
,modifiedJulianDate
functionstoDateFromExactTime
function
toDateFromClockTime
returnsUTCDate
instead ofUTCDateMini
by default.UTCDate
is upward compatible toUTCDateMini
so this change will hardly introduce troubles. (5c7ad45)julianDay
function is renamed tojulianDate
since the word 'julian day' is ambiguous. (f393c25)areIntervalsOverlapping
,clamp
,compareAsc
,compareDesc
,earliest
,isAfter
,isBefore
,isWithinInterval
,latest
functions now rejectPlainYearMonth
with different calendar because it's semantically nonsense in most cases. (197c7c9)formatWithoutLocale
supportsVV
token (time zone ID) (3a651ce)
- Fix TypeScript error when using from CommonJS (7823d45)
startOfYear
,startOfMonth
,startOfDay
,startOfHour
,startOfMinute
,startOfSecond
,endOfYear
,endOfMonth
,endOfDay
,endOfHour
,endOfMinute
,endOfSecond
functionsfromRfc2822
,fromRfc7231
,formatRfc7231
,epochSeconds
,julianDay
functions
- Make
formatWithoutLocale
not accept a temporal objects with non-ISO calendar by default. If you want to do that, please useformatNonIsoDate
option.
- Stop exporting
Temporal
type from main module because it messed up docs. (1126424)
- Export custom types and
Temporal
itself in main module. (6765b8d)
- Move API docs to JSR.
- Stop exporting the namespace
duration
from main module. You can still import functions fromvremel/duration
. (ffc4687)
- Update the type definition for Temporal API to latest spec. (373c2ce)
areIntervalsOverlapping
,clamp
,isWithinInterval
functions
- Stop converting calendar automatically in
closestIndexTo
andclosestTo
for consistency with other functions. (dcd1f37)
toTemporalFromClockTime
,formatWithoutLocale
functions
- Change type signatures of functions, using generics instead of overload functions. (be7da06)
toDateFromClockTime
,closestTo
,closestIndexTo
functions
- Fix a broken type definition.
- Fix a bug that some functions are not exported from the package.
earliest
,latest
,isAfter
,isBefore
,compareAsc
,compareDesc
functionsisEqual
,longest
,shortest
functions invremel/duration