Skip to content

version 1.0.0 - Daria

Latest

Choose a tag to compare

@nyamsprod nyamsprod released this 15 Sep 16:05
· 3 commits to main since this release
Immutable release. Only release title and notes can be modified.

Added

  • Support for nanoseconds to Tokei\Duration
  • Support for PHP8.6 Time\Duration
  • Tokei\Duration and Time\Duration shares the same API (public properties and public methods)
  • Duration::toNumberString
  • DurationFormat::LargestUnit
  • DurationFormat::TotalUnit
  • DisplaySign enum
  • Interval::shift
  • IntervalSet::append, IntervalSet::totalDuration
  • TaskSet::shift, TaskSet::expand, TaskSet::roundTo, TaskSet::append, TaskSet::totalDuration
  • EventSet::shift, EventSet::append, EventSet::replace, EventSet::remove
  • Localize
  • ListWidth enum
  • UnitWidth enum
  • DurationStyle enum
  • the package now requires symfony/polyfill-php86 to use PHP8.6 SortDirection Enum

Fixed

  • BC Break: mathematical operation methods of Duration are renamed to match Time\Duration API
  • BC Break: Time::toDateTime is renamed Time::today
  • BC Break: Interval::fromLinearSpan* is marked as internal and removed from Public API.
  • BC Break: The LocaleVerbosity class is renamed TimeVerbosity.

Deprecated

  • None

Removed

  • BC Break: Duration public properties are removed use Duration::$seconds, Duration::$nanoseconds and Duration::$negative must be use instead
  • BC Break: Duration::toDateInterval removed with no replacement
  • BC Break: Interval::linear* public properties are removed with no replacement
  • BC Break: Removed manual autoload script
  • BC Break: Interval::add() and Interval::sub() replaced by Interval::shift()
  • BC Break: IntervalSet::unshift() used IntervalSet::append() instead
  • BC Break: IntervalSet::add() and IntervalSet::sub() used IntervalSet::shift() instead
  • BC Break: IntervalSet::roundDurationTo() with no replacement
  • BC Break: IntervalSet::push() use IntervalSet::append() instead
  • BC Break: IntervalSet::duration() use IntervalSet::totalDuration() instead
  • BC Break: IntervalSet::outsideOf() with no replacement
  • BC Break: TaskSet::add() and TaskSet::sub() used TaskSet::shift() instead
  • BC Break: TaskSet::push() use TaskSet::append() instead
  • BC Break: TaskSet::duration() use TaskSet::totalDuration() instead
  • BC Break: TaskSet::outsideOf() with no replacement
  • BC Break: EventSet::outside() with no replacement
  • BC Break: EventSet::add() and EventSet::sub() used EventSet::shift() instead
  • BC Break: EventSet::push() use EventSet::append() instead
  • BC Break: removed the package SortDirection polyfill, the symfony/polyfill-php86 package is use instead
  • BC Break: Time::toLocaleString use the Localize class directly instead.
  • BC Break: The LocaleTimeFormatter class is removed use Localize instead.