Skip to content

Releases: paranoiq/dogma

v0.2.2

19 Nov 15:45
Compare
Choose a tag to compare
  • Faster and less safe Str regex functions (use Nette\Utils\Strings for safer variants)
  • Add Str::splitByLast() and Str::trimLinesRight()
  • Small things
  • Some bugs

v0.2.1

08 Jun 13:57
Compare
Choose a tag to compare
  • Inflector is back

v0.2

24 May 17:57
Compare
Choose a tag to compare

Buttload of BC Breaks 🎉

New things:

  • Enum and Set inheritance (you can remove values in descendant classes; LSP is ok with that)
  • Add set operators (intersect, subtract...) on Sets
  • All interval sets are now iterable
  • Added getStartEnd() to all interval types
  • Added faster modifyDataByStream() method for Date/NightIntervalDataSets
  • Call::with() and withArgs() for group calls (moved from Arr)
  • IntersectComparable interface for comparing how intervals intersect
  • Arr::sortComparable() for sorting arrays of objects implementing Comparable 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 and DayOfYearInterval
  • Fix uneven mode for RoundRobinIterator

BC Breaks:

  • Minimum PHP version is now 7.2
  • Enums and Sets are no longer singleton values (no longer comparable with ===)
  • TimeInterval and DayOfYearInterval no longer implement Interval interface, but rather new ModuloInterval interface
  • TimeInterval and DateTimeInterval no longer implements OpenClosedInterval. Time intervals are always closed start and open end
  • Sequences refactored; methods from Sequence moved to IntCalc
  • Removed doForEach() from Arr and ImmutableArray; use Call::with()
  • Environment deprecated; use Os
  • PowersOfTwo moved to Math namespace
  • HttpResponseStatus now does not include Curl error codes; Added HttpOrCurlResponseStatus
  • 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 (method underscore moved to Str)

v0.1.26

29 Apr 21:09
Compare
Choose a tag to compare
  • 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

v0.1.25

14 Feb 10:07
Compare
Choose a tag to compare
  • Add splitData() to data interval sets
  • Fixes

v0.1.24

12 Feb 09:54
Compare
Choose a tag to compare
  • Added NightIntervalData and NightIntervalDataSet
  • Added YearMonth::add() and subtract()
  • YearMonth from current date
  • Fixed YearMonth constructor for years < 100

v0.1.23

28 Jan 14:14
Compare
Choose a tag to compare
  • Removed unused dependency on nette/reflection

v0.1.22

16 Dec 14:35
Compare
Choose a tag to compare
  • Added containsInterval() method on all interval sets

v0.1.21

06 Dec 10:03
Compare
Choose a tag to compare
  • Non-iterable interface deprecated and removed from all classes. Use PHPStan instead to check this

v0.1.20

03 Dec 18:21
Compare
Choose a tag to compare
  • Fixed Silvester bug on DayOfYear
  • YearMonth isBefore() and isAfter()
  • WeekDayHoursSet constructable from DaysOfWeek and TimeInterval
  • Moar DaysOfWeek constructors