All Versions
35
Latest Version
Avg Release Cycle
102 days
Latest Release
813 days ago
Changelog History
Page 1
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 afloat
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 alsoDuration
andDateInterval
in addition toPeriod
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 replaceChart\ConsoleOutput
class.Chart\Terminal
Enumeration.Chart\ChartError
used as the chart error interface marker.- ๐ป
Chart\UnableToDrawChart
exception for anything regarding drawing a chart out ofPeriod
and/orSequence
objects.
๐ Fixed
- Switch from using
Closure
object instead of thecallable
pseudo type with theSequence
methods. Period::diff
returns aSequence
instance instead of an array.Period::__construct
is private.Period
named constructors, all parameters are required except for the boundaries.Period::timeDuration
now returns anint
instead of afloat
value.Period::intersect
now can take multiplePeriod
instances as parameters.Period::subtract
now can take multiplePeriod
instances as parameters.Duration
no longer extends aDateInterval
object.- ๐
Duration::fromIsoString
supports 3 versions of dealing with fractions with ISO valid string. Datepoint
class renamedDatePoint
.DatePoint
no longer extends aDateTimeImmutable
object.- ๐ฆ Argument names are normalized throughout the package. (PHP8 BC break)
Chart\LatinLetter
in case of wrong value will fall back toA
instead of0
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 byPeriod::fromDate
Period::getStartDate
replaced by accessing readonly propertyPeriod::startDate
Period::getEndDate
replaced by accessing readonly propertyPeriod::endDate
Period::getBoundaryType
replaced by accessing readonly propertyPeriod::bounds
Period::getDateInterval
replaced byPeriod::dateInterval
Period::getTimestampInterval
replaced byPeriod::timeDuration
Period::withBoundaryType
replaced byPeriod::boundedBy
Period::isStartIncluded
with no replacement useBounds::isStartIncluded
Period::isStartExcluded
with no replacement useBounds::isStartIncluded
insteadPeriod::isEndIncluded
with no replacement useBounds::isEndIncluded
Period::isEndExcluded
with no replacement useBounds::isEndIncluded
insteadPeriod::fromDatePeriod
replaced byPeriod::fromDateRange
Period::getDatePeriod
replaced byPeriod::dateRange
Period::getDatePeriodBackwards
replaced byPeriod::dateRangeBackwards
Period::__string
replaced byPeriod::toIso8601
Period::format
replaced byPeriod::toIso80000
Period::split
replaced byPeriod::splitForward
Period::substract
usePeriod::subtract
insteadSequence::substract
useSequence::subtract
insteadSequence::getIntersections
useSequence::intersections
insteadSequence::getGaps
useSequence::gaps
insteadSequence::getBoundaries
useSequence::length
insteadSequence::getTotalTimestampInterval
useSequence::totalTimeDuration
insteadSequence::toArray
useSequence::toList
insteadDuration::__toString
andDuration::format
with no replacement- ๐
Duration::create
is removed with no replacement - ๐
Datepoint::create
is removed with no replacement - ๐ The
create
prefix is removed from theDuration
andDatepoint
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 byChart\StreamOutput
class.Chart\RomanNumber::isLower
useChart\LetterCase::isUpper
instead.Chart\RomanNumber::startingAt
useChart\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
useChart\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 useChart\AffixLabel::labelPrefix
public readonly propertyChart\AffixLabel::suffix
method useChart\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 ofDatepoint::second
- ๐
Datepoint::getMinute
is deprecated in favor ofDatepoint::minute
- ๐
Datepoint::getHour
is deprecated in favor ofDatepoint::hour
- ๐
Datepoint::getIsoWeek
is deprecated in favor ofDatepoint::isoWeek
- ๐
Datepoint::getMonth
is deprecated in favor ofDatepoint::month
- ๐
Datepoint::getQuarter
is deprecated in favor ofDatepoint::quarter
- ๐
Datepoint::getSemester
is deprecated in favor ofDatepoint::semester
- ๐
Datepoint::getYear
is deprecated in favor ofDatepoint::year
- ๐
Datepoint::getIsoYear
is deprecated in favor ofDatepoint::isoYear
- ๐
Duration::createfromDateInterval
is deprecated in favor ofDatepoint::fromDateInterval
- ๐
Duration::createfromSeconds
is deprecated in favor ofDatepoint::fromSeconds
- ๐
Duration::createfromChronoString
is deprecated in favor ofDatepoint::fromChronoString
- ๐
Duration::createfromTimeString
is deprecated in favor ofDatepoint::fromTimeString
- โ
Duration::createfromDateString
is deprecated in favor ofDatepoint::fromDateString
- ๐
Period::getTimestampInterval
is deprecated in favor ofPeriod::timeDuration
- ๐
Period::getDateInterval
is deprecated in favor ofPeriod::dateInterval
- ๐
Period::getDatePeriod
is deprecated in favor ofPeriod::dateRangeForward
- ๐
Period::getDatePeriodBackwards
is deprecated in favor ofPeriod::dateRangeBackwards
- ๐
Period::format
is deprecated in favor ofPeriod::toIso80000
- ๐
Period::split
is deprecated in favor ofPeriod::splitForward
- ๐
Period::withBoundaryType
is deprecated in favor ofPeriod::boundedBy
- ๐
Period::timestampIntervalDiff
is deprecated in favor ofPeriod::timeDurationDiff
- ๐
Sequence::boundaries
is deprecated in favor ofSequence::length
- ๐
Sequence::getTotalTimestampInterval
is deprecated in favor ofSequence::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
Period::toIso8601
- Charts featuring ported from Bakame\Period\Vizualizer
๐ Fixed
- ๐ Fix issue with
Sequence::intersections
method.
๐ Deprecated
Period::__string
replaced byPeriod::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
usePeriod::subtract
insteadSequence::substract
useSequence::subtract
instead
โ Removed
- None
-
v4.8.1 Changes
July 16, 2019โ Added
- None
๐ Fixed
Sequence
negative offsets for a object with only onePeriod
instance issue #85
๐ Deprecated
- None
โ Removed
- None
-
v4.8.0 Changes
June 20, 2019โ Added
- ๐
Datepoint
methods returningPeriod
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 comparesDateInterval
objects to be compatible with PHP7.4+
๐ Deprecated
- None
โ Removed
- None
- ๐
-
v4.7.1 Changes
May 19, 2019โ Added
- None
๐ Fixed
- ๐ Improve
Duration::createFromDateString
bug fix to take into account DateInterval::createFromDateString ๐ bug fix - โก๏ธ Update the development tools to Infection 0.13
๐ 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
- โก๏ธ Update
Duration::createFromDateString
to take into account DateInterval::createFromDateString ๐ bug fix - โก๏ธ Update the development tools to PHPUnit8.0 and PHPstan 0.11
๐ Deprecated
- None
โ Removed
- None
- ๐