Releases: paranoiq/dogma
Releases · paranoiq/dogma
v0.2.2
v0.2.1
v0.2
Buttload of BC Breaks 🎉
New things:
Enum
andSet
inheritance (you can remove values in descendant classes; LSP is ok with that)- Add set operators (intersect, subtract...) on
Set
s - All interval sets are now iterable
- Added
getStartEnd()
to all interval types - Added faster
modifyDataByStream()
method forDate/NightIntervalDataSets
Call::with()
andwithArgs()
for group calls (moved fromArr
)IntersectComparable
interface for comparing how intervals intersectArr::sortComparable()
for sorting arrays of objects implementingComparable
interface- More options on encoding conversion
- Many classes implement
Dumpable
interface for more readable debug dumps
Fixes:
- Fixed comparison of
FloatInterval
- Fixed intersections in
TimeInterval
andDayOfYearInterval
- Fix uneven mode for
RoundRobinIterator
BC Breaks:
- Minimum PHP version is now 7.2
Enums
andSets
are no longer singleton values (no longer comparable with===
)TimeInterval
andDayOfYearInterval
no longer implementInterval
interface, but rather newModuloInterval
interfaceTimeInterval
andDateTimeInterval
no longer implementsOpenClosedInterval
. Time intervals are always closed start and open end- Sequences refactored; methods from
Sequence
moved toIntCalc
- Removed
doForEach()
fromArr
andImmutableArray
; useCall::with()
Environment
deprecated; useOs
PowersOfTwo
moved toMath
namespaceHttpResponseStatus
now does not include Curl error codes; AddedHttpOrCurlResponseStatus
- All constructors called as
new static()
now are final - Experimantal
SimplePdo
is now deprecated and will be removed later
Removed old things and stuffs:
- Removed
NonIterable
interface (use PHPStan checks) - Removed
Mail/*
- Removed
Collection
- Removed
Regexp
- Removed
Inflector
(methodunderscore
moved toStr
)
v0.1.26
- Add Arr::transposeSafe() for uneven arrays
- Add Arr::contains...() methods
- Add Arr::copy() and copyValues() for removing references from arrays
- Add Time/DateTime::isMidnight()
- Add Check::ascii() and Check::utf8()
- Add class hierarchy helper Cls
- Uneven mode for RoundRobinIterator
- Allow custom selectors in HtmlTableIterator
- Some new constants including AsciiChars groups (parser food)
- Maybe some fixes or some bugs