All Versions
35
Latest Version
Avg Release Cycle
102 days
Latest Release
639 days ago

Changelog History
Page 1

  • v5.1.0 Changes

    June 28, 2022

    โž• Added

    • DatePoint::fromFormat to instantiate from a date format and its related string.

    ๐Ÿ›  Fixed

    • ๐Ÿ‘ Period::fromIso8601 now supports truncated date and duration in the interval string.

    ๐Ÿ—„ Deprecated

    • None

    โœ‚ Removed

    • None
  • v5.0.0 Changes

    February 22, 2022

    โž• Added

    • IntervalError used as the error interface marker.
    • ๐Ÿ‘ป InvalidInterval exception for anything regarding creating an object.
    • Duration::fromSeconds uses a dedicated fraction parameter and the seconds are no longer expressed using a float value.
    • Period::fromTimestamp to instantiate a time range object from two timestamps.
    • Period::fromIso80000 to instantiate a time range object from a mathematical representation and a date format.
    • Period::fromBourbaki to instantiate a time range object from a mathematical representation and a date format.
    • Period duration comparison methods accepts also Duration and DateInterval in addition to Period objects.
    • Period::union
    • Period::snapTo* methods to ease period expansion.
    • Period::meets
    • Period::meetsOnStart
    • Period::meetsOnEnd
    • Period::toBourbaki
    • Period::toIso80000
    • Period::toBourbaki
    • Bounds Enumeration.
    • InitialDatePresence Enumeration.
    • Sequence::toList
    • Chart\LetterCase Enumeration.
    • Chart\Alignment Enumeration.
    • Chart\StreamOutput class to replace Chart\ConsoleOutput class.
    • Chart\Terminal Enumeration.
    • Chart\ChartError used as the chart error interface marker.
    • ๐Ÿ‘ป Chart\UnableToDrawChart exception for anything regarding drawing a chart out of Period and/or Sequence objects.

    ๐Ÿ›  Fixed

    • Switch from using Closure object instead of the callable pseudo type with the Sequence methods.
    • Period::diff returns a Sequence instance instead of an array.
    • Period::__construct is private.
    • Period named constructors, all parameters are required except for the boundaries.
    • Period::timeDuration now returns an int instead of a float value.
    • Period::intersect now can take multiple Period instances as parameters.
    • Period::subtract now can take multiple Period instances as parameters.
    • Duration no longer extends a DateInterval object.
    • ๐Ÿ‘ Duration::fromIsoString supports 3 versions of dealing with fractions with ISO valid string.
    • Datepoint class renamed DatePoint.
    • DatePoint no longer extends a DateTimeImmutable object.
    • ๐Ÿ“ฆ Argument names are normalized throughout the package. (PHP8 BC break)
    • Chart\LatinLetter in case of wrong value will fall back to A instead of 0 which is not a letter.
    • Chart\LatinLetter the starting label must be explicit on instantiation.
    • Chart\RomanNumber requires its two arguments to be explicitly set.

    ๐Ÿ—„ Deprecated

    • None

    โœ‚ Removed

    • ๐Ÿ‘Œ Support for PHP7 and PHP8.0
    • Period::fromDatepoint replaced by Period::fromDate
    • Period::getStartDate replaced by accessing readonly property Period::startDate
    • Period::getEndDate replaced by accessing readonly property Period::endDate
    • Period::getBoundaryType replaced by accessing readonly property Period::bounds
    • Period::getDateInterval replaced by Period::dateInterval
    • Period::getTimestampInterval replaced by Period::timeDuration
    • Period::withBoundaryType replaced by Period::boundedBy
    • Period::isStartIncluded with no replacement use Bounds::isStartIncluded
    • Period::isStartExcluded with no replacement use Bounds::isStartIncluded instead
    • Period::isEndIncluded with no replacement use Bounds::isEndIncluded
    • Period::isEndExcluded with no replacement use Bounds::isEndIncluded instead
    • Period::fromDatePeriod replaced by Period::fromDateRange
    • Period::getDatePeriod replaced by Period::dateRange
    • Period::getDatePeriodBackwards replaced by Period::dateRangeBackwards
    • Period::__string replaced by Period::toIso8601
    • Period::format replaced by Period::toIso80000
    • Period::split replaced by Period::splitForward
    • Period::substract use Period::subtract instead
    • Sequence::substract use Sequence::subtract instead
    • Sequence::getIntersections use Sequence::intersections instead
    • Sequence::getGaps use Sequence::gaps instead
    • Sequence::getBoundaries use Sequence::length instead
    • Sequence::getTotalTimestampInterval use Sequence::totalTimeDuration instead
    • Sequence::toArray use Sequence::toList instead
    • Duration::__toString and Duration::format with no replacement
    • ๐Ÿšš Duration::create is removed with no replacement
    • ๐Ÿšš Datepoint::create is removed with no replacement
    • ๐Ÿšš The create prefix is removed from the Duration and Datepoint named constructors.
    • ๐Ÿšš All charts related classes have their properties exposed as public readonly. All their getters are removed except if they are part of an interface.
    • Chart\ConsoleOutput replaced by Chart\StreamOutput class.
    • Chart\RomanNumber::isLower use Chart\LetterCase::isUpper instead.
    • Chart\RomanNumber::startingAt use Chart\DecimalNumber::startLabel public readonly property
    • ๐Ÿšš Chart\RomanNumber::startsWith is removed with no replacement
    • ๐Ÿšš Chart\RomanNumber::withLetterCase is removed with no replacement
    • ๐Ÿšš Chart\DecimalNumber::startsWith is removed with no replacement
    • ๐Ÿšš Chart\LatinNumber::startsWith is removed with no replacement
    • Chart\LatinNumber::startingAt use Chart\LatinNumber::startLabel public readonly property
    • ๐Ÿšš Chart\AffixLabel::withPrefix is removed with no replacement
    • ๐Ÿšš Chart\AffixLabel::withSuffix is removed with no replacement
    • Chart\AffixLabel::prefix method use Chart\AffixLabel::labelPrefix public readonly property
    • Chart\AffixLabel::suffix method use Chart\AffixLabel::labelSuffix public readonly property

    โœ‚ Removed all the following namespaced functions from the package:

    • League\Period\datepoint
    • League\Period\duration
    • League\Period\year
    • League\Period\semester
    • League\Period\quarter
    • League\Period\month
    • League\Period\day
    • League\Period\hour
    • League\Period\minute
    • League\Period\second
    • League\Period\instant
    • League\Period\iso_year
    • League\Period\iso_week
    • League\Period\interval_after
    • League\Period\interval_before
    • League\Period\interval_around
    • League\Period\interval_from_dateperiod
  • v4.12.0 Changes

    February 21, 2022

    โž• Added

    • Datepoint::second
    • Datepoint::minute
    • Datepoint::hour
    • Datepoint::isoWeek
    • Datepoint::month
    • Datepoint::quarter
    • Datepoint::semester
    • Datepoint::year
    • Datepoint::isoYear
    • Duration::fromDateInterval
    • Duration::fromSeconds
    • Duration::fromChronoString
    • Duration::fromTimeString
    • โœ… Duration::fromDateString
    • Period::timeDuration
    • Period::dateInterval
    • Period::dateRangeForward
    • Period::dateRangeBackwards
    • Period::toIso80000
    • Period::splitForward
    • Period::timeDurationDiff
    • Period::boundedBy
    • Sequence::length
    • Sequence::totalTimeDuration

    ๐Ÿ›  Fixed

    • None

    ๐Ÿ—„ Deprecated

    • ๐Ÿ—„ Datepoint::getSecond is deprecated in favor of Datepoint::second
    • ๐Ÿ—„ Datepoint::getMinute is deprecated in favor of Datepoint::minute
    • ๐Ÿ—„ Datepoint::getHour is deprecated in favor of Datepoint::hour
    • ๐Ÿ—„ Datepoint::getIsoWeek is deprecated in favor of Datepoint::isoWeek
    • ๐Ÿ—„ Datepoint::getMonth is deprecated in favor of Datepoint::month
    • ๐Ÿ—„ Datepoint::getQuarter is deprecated in favor of Datepoint::quarter
    • ๐Ÿ—„ Datepoint::getSemester is deprecated in favor of Datepoint::semester
    • ๐Ÿ—„ Datepoint::getYear is deprecated in favor of Datepoint::year
    • ๐Ÿ—„ Datepoint::getIsoYear is deprecated in favor of Datepoint::isoYear
    • ๐Ÿ—„ Duration::createfromDateInterval is deprecated in favor of Datepoint::fromDateInterval
    • ๐Ÿ—„ Duration::createfromSeconds is deprecated in favor of Datepoint::fromSeconds
    • ๐Ÿ—„ Duration::createfromChronoString is deprecated in favor of Datepoint::fromChronoString
    • ๐Ÿ—„ Duration::createfromTimeString is deprecated in favor of Datepoint::fromTimeString
    • โœ… Duration::createfromDateString is deprecated in favor of Datepoint::fromDateString
    • ๐Ÿ—„ Period::getTimestampInterval is deprecated in favor of Period::timeDuration
    • ๐Ÿ—„ Period::getDateInterval is deprecated in favor of Period::dateInterval
    • ๐Ÿ—„ Period::getDatePeriod is deprecated in favor of Period::dateRangeForward
    • ๐Ÿ—„ Period::getDatePeriodBackwards is deprecated in favor of Period::dateRangeBackwards
    • ๐Ÿ—„ Period::format is deprecated in favor of Period::toIso80000
    • ๐Ÿ—„ Period::split is deprecated in favor of Period::splitForward
    • ๐Ÿ—„ Period::withBoundaryType is deprecated in favor of Period::boundedBy
    • ๐Ÿ—„ Period::timestampIntervalDiff is deprecated in favor of Period::timeDurationDiff
    • ๐Ÿ—„ Sequence::boundaries is deprecated in favor of Sequence::length
    • ๐Ÿ—„ Sequence::getTotalTimestampInterval is deprecated in favor of Sequence::totalTimeDuration

    โœ‚ Removed

    • None
  • v4.11.0 Changes

    November 11, 2020

    โž• Added

    • Period::fromDatepoint
    • Duration::createFromDateInterval
    • Duration::createFromTimeString
    • Duration::createFromChronoString
    • Duration::createFromSeconds
    • ๐Ÿ‘ Duration::create supports DateInterval spec strings.
    • ๐Ÿ‘Œ Support for PHP8

    ๐Ÿ›  Fixed

    • Duration::create when using a float will now overflow the results up to the Hour unit.

    ๐Ÿ—„ Deprecated

    • None

    โœ‚ Removed

    • None
  • v4.10.0 Changes

    March 22, 2020

    โž• Added

    ๐Ÿ›  Fixed

    • ๐Ÿ›  Fix issue with Sequence::intersections method.

    ๐Ÿ—„ Deprecated

    • Period::__string replaced by Period::toIso8601

    โœ‚ Removed

    • ๐Ÿ‘Œ Support for PHP7.1
  • v4.9.0 Changes

    September 02, 2019

    โž• Added

    • $boundaryType argument added to the following named constructors:

      • Period::fromDay
      • Period::fromIsoWeek
      • Period::fromMonth
      • Period::fromQuarter
      • Period::fromSemester
      • Period::fromYear
      • Period::fromIsoYear
    • Period::subtract

    • Sequence::subtract

    ๐Ÿ›  Fixed

    • None

    ๐Ÿ—„ Deprecated

    • Period::substract use Period::subtract instead
    • Sequence::substract use Sequence::subtract instead

    โœ‚ Removed

    • None
  • v4.8.1 Changes

    July 16, 2019

    โž• Added

    • None

    ๐Ÿ›  Fixed

    • Sequence negative offsets for a object with only one Period instance issue #85

    ๐Ÿ—„ Deprecated

    • None

    โœ‚ Removed

    • None
  • v4.8.0 Changes

    June 20, 2019

    โž• Added

    • ๐Ÿ‘ Datepoint methods returning Period objects supports boundaryType
    • ๐Ÿ”€ Period::merge supports empty arguments.
    • ๐Ÿ‘ Sequence::contains supports empty arguments.
    • ๐Ÿ‘ Sequence::unshift supports empty arguments.
    • ๐Ÿ‘ Sequence::push supports empty arguments.
    • ๐Ÿ‘ Sequence class supports negative offsets.

    ๐Ÿ›  Fixed

    • Duration::adjustedTo no longer compares DateInterval objects to be compatible with PHP7.4+

    ๐Ÿ—„ Deprecated

    • None

    โœ‚ Removed

    • None
  • v4.7.1 Changes

    May 19, 2019

    โž• Added

    • None

    ๐Ÿ›  Fixed

    ๐Ÿ—„ Deprecated

    • None

    โœ‚ Removed

    • None
  • v4.7.0 Changes

    March 31, 2019

    โž• Added

    • ๐Ÿ‘€ Sequence::getTotalTimestampInterval see PR #79
    • ๐Ÿ‘€ Period::substract see PR #80
    • ๐Ÿ‘€ Sequence::substract see PR #81

    ๐Ÿ›  Fixed

    ๐Ÿ—„ Deprecated

    • None

    โœ‚ Removed

    • None