Skip to content

Latest commit

 

History

History
125 lines (67 loc) · 4.84 KB

CHANGELOG.md

File metadata and controls

125 lines (67 loc) · 4.84 KB

Changelog

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.

[unreleased]

Added

0.5.0 (2025-02-27)

Added

  • startOfWeek and endOfWeek functions
  • parse function

Changed

  • Latin alphabets (A to Z and a to z) in the given format are now reserved for use as pattern characters in formatWithoutLocale. If you want to treat them as literal, escape them. (39f5f9d)

Fixed

  • Fix wrong type annotation in some functions (eb95c5a)

0.4.0 (2025-02-02)

Added

  • fromJulianDate, fromModifiedJulianDate, modifiedJulianDate functions
  • toDateFromExactTime function

Changed

  • toDateFromClockTime returns UTCDate instead of UTCDateMini by default. UTCDate is upward compatible to UTCDateMini so this change will hardly introduce troubles. (5c7ad45)
  • julianDay function is renamed to julianDate since the word 'julian day' is ambiguous. (f393c25)
  • areIntervalsOverlapping, clamp, compareAsc, compareDesc, earliest, isAfter, isBefore, isWithinInterval, latest functions now reject PlainYearMonth with different calendar because it's semantically nonsense in most cases. (197c7c9)
  • formatWithoutLocale supports VV token (time zone ID) (3a651ce)

Fixed

  • Fix TypeScript error when using from CommonJS (7823d45)

0.3.4 (2024-09-12)

Added

  • startOfYear, startOfMonth, startOfDay, startOfHour, startOfMinute, startOfSecond, endOfYear, endOfMonth, endOfDay, endOfHour, endOfMinute, endOfSecond functions
  • fromRfc2822, fromRfc7231, formatRfc7231, epochSeconds, julianDay functions

Changed

  • Make formatWithoutLocale not accept a temporal objects with non-ISO calendar by default. If you want to do that, please use formatNonIsoDate option.

0.3.3 (2024-05-09)

Removed

  • Stop exporting Temporal type from main module because it messed up docs. (1126424)

0.3.2 (2024-05-09)

Added

  • Export custom types and Temporal itself in main module. (6765b8d)

Changed

  • Move API docs to JSR.

Removed

  • Stop exporting the namespace duration from main module. You can still import functions from vremel/duration. (ffc4687)

0.3.1 (2024-05-08)

Changed

  • Update the type definition for Temporal API to latest spec. (373c2ce)

0.3.0 (2024-03-11)

Added

  • areIntervalsOverlapping, clamp, isWithinInterval functions

Changed

  • Stop converting calendar automatically in closestIndexTo and closestTo for consistency with other functions. (dcd1f37)

0.2.0 (2024-03-03)

Added

  • toTemporalFromClockTime, formatWithoutLocale functions

Changed

  • Change type signatures of functions, using generics instead of overload functions. (be7da06)

0.1.2 (2024-02-13)

Added

  • toDateFromClockTime, closestTo, closestIndexTo functions

Fixed

  • Fix a broken type definition.

0.1.1 (2024-02-12)

Fixed

  • Fix a bug that some functions are not exported from the package.

0.1.0 (2024-02-12)

Added

  • earliest, latest, isAfter, isBefore, compareAsc, compareDesc functions
  • isEqual, longest, shortest functions in vremel/duration