All notable changes to sla-timer will be documented in this file
- Fixed SLA durations dropping the final day's time when the subject ended before the start time-of-day (closes #4 and #6)
- Fixed overnight (midnight-crossing) schedules silently returning zero —
from('22:00:00')->to('02:00:00')now counts correctly across midnight, and equal from/to times (09:00:00->09:00:00) now mean 24/7 coverage
- Fixed quadratic runtime for durations over a month with pauses/holidays: a year-long SLA with a holiday on every day previously exhausted 128MB of memory and now calculates in ~30ms; 10-year calculations run in ~90ms
- The hot path no longer constructs
CarbonPeriodobjects per period —AgendaInterface::toPeriods()now returns start/end Carbon pairs instead ofCarbonPeriod[](breaking change for direct consumers)
- PHP floor raised to
^8.3(8.1/8.2 are EOL) nesbot/carbon^2→^3,illuminate/collections→^11|^12|^13- Dev tooling: Pest
^4, PHPStan^2, Pint^1.30, spatie/invade^2, spatie/pest-plugin-test-time^2.2 - npm: vitepress 1.6.4, tailwindcss 4.3.3, vue 3.5.41
- Added
phpstan.neon.distand fixed all level-8 findings (50 errors, incl. a latentWeekly::addTimePeriodsflattening bug and dead code) - CI modernised to first-party actions; test matrix now covers PHP 8.3–8.5
- 28 new tests covering schedules, boundaries, overnight windows, pauses/holidays and breaches (98.4% coverage)
- Bump vite from 2.9.14 to 2.9.16 by @dependabot[bot] in #3
- Bump postcss from 8.4.14 to 8.4.31 by @dependabot[bot] in #5
- Bump vite from 2.9.16 to 2.9.17 by @dependabot[bot] in #7
- Bump vite from 2.9.17 to 2.9.18 by @dependabot[bot] in #8
- Bump braces from 3.0.2 to 3.0.3 by @dependabot[bot] in #9
- Bump micromatch from 4.0.5 to 4.0.8 by @dependabot[bot] in #10
- Bump nanoid from 3.3.6 to 3.3.8 by @dependabot[bot] in #13
- @dependabot[bot] made their first contribution in #3
Full Changelog: https://github.com/sifex/sla-timer/compare/v0.1.6.5...v0.1.7
- Imported
spatie/periodto help with time overlap problems - Published documentation to GH Pages
- Initial dev release