Releases: cyrildewit/eloquent-viewable
Releases · cyrildewit/eloquent-viewable
v7.0.6
What's Changed
- Implicitly marking parameter $collection as nullable is deprecated, the explicit nullable type must be used instead. by @mstnorris in #314
New Contributors
- @mstnorris made their first contribution in #314
Full Changelog: v7.0.5...v7.0.6
v7.0.5
What's Changed
- refactor: fix deprecation warning. by @mikebronner in #312
- chore(ci-deps): bump codecov/codecov-action from 1 to 5 by @dependabot in #310
New Contributors
- @mikebronner made their first contribution in #312
Full Changelog: v7.0.4...v7.0.5
v7.0.4
v7.0.3
v7.0.2
What's Changed
- Laravel 11 support by @janyksteenbeek in #295
- Laravel 11 support - Allow phpunit ^10.0 as dev dependency by @cyrildewit in #297
New Contributors
- @janyksteenbeek made their first contribution in #295
Full Changelog: v7.0.1...v7.0.2
v7.0.1
What's Changed
- Fix CONTRIBUTING.md fix a typo in the phpunit run example by @kudashevs in #269
- Update run-tests.yml by @kudashevs in #270
- fixed deprecated variable in string by @Mahmoud217TR in #280
- [upgrade] Add Laravel 10 support by @cstriuli in #282
- Fix/failing tests Laravel 10 by @blackjak231 in #287
New Contributors
- @kudashevs made their first contribution in #269
- @Mahmoud217TR made their first contribution in #280
- @cstriuli made their first contribution in #282
- @blackjak231 made their first contribution in #287
Full Changelog: v6.1.0...v7.0.1
v6.1.0
v6.0.2
Fixed
- Revert breaking change of
remembermethod inViewscontract. The$lifetimevariable has now a default value ofnull.
v6.0.1
Fixed
- Revert breaking change of
remembermethod inViewsclass. The$lifetimevariable has now a default value ofnull.
v6.0.0
Added
- Added
boolreturn typehint torecordmethod inViewscontract. - Added
voidreturn typehint todestroymethod inViewscontract. - The
ViewRecordExceptionwill be thrown when trying to record a view for a viewable type. - The
ViewRecordedevent will be fired when a new view is recorded. - Added
Viewstypehint to globalviews()function. - Added
boolreturn typehint toisCrawlermethod inCrawlerDetectorcontract.
Changed
- Set required PHP versions in
composer.jsonto^7.4|^8.0. - The creating of the
Viewinstance has been moved into its own methodprotected function createView(): View. - The
$viewableargument of theforViewablemethod inViewscontract cannot be nullable anymore. - Changed the method arguments of
orderByViewsandorderByUniqueViewsquery scope inViewablecontract andInteractsWithViewstrait. - Changed the method arguments of
withViewsCountquery scope inInteractsWithViewstrait. - Added nullable
Periodclass typehint to$periodargument ofperiodmethod inViewscontract. - Made
$nameargument nullable inViewscontract. - Changed return typehint of
ipmethod inVisitorcontract to?string. - Change
DateTimetypehint toDateTimeInterfaceinInvalidPeriodexception.
Removed
- Removed
lifetime_in_minutesoption from config file.
Fixed
- Fixed
countmethod ofViewsclass to count all views, including the collections (#241).