Releases: cybercog/laravel-love
Releases · cybercog/laravel-love
8.0.0: ∞ Endless Love
Code has a lot of breaking changes because of new Weighted Reaction System.
Follow upgrade instructions to migrate code & database to new structure.
Added
- Added
love:upgrade-v7-to-v8Artisan command - (#90) Added
ReactionCounter::COUNT_DEFAULTpublic constant - (#90) Added
ReactionCounter::WEIGHT_DEFAULTpublic constant - (#90) Added
ReactionTotal::COUNT_DEFAULTpublic constant - (#90) Added
ReactionTotal::WEIGHT_DEFAULTpublic constant - (#91) Added
Reaction::RATE_DEFAULTpublic constant - (#91) Added
Reaction::RATE_MINpublic constant - (#91) Added
Reaction::RATE_MAXpublic constant - (#91) Added
ReactionType::MASS_DEFAULTpublic constant - (#91) Added
rateattribute toReactermodel - (#91) Added
rate DECIMIAL(4, 2)column tolove_reactionsdb table - (#91) Added ability to call
Reacter::reactTowith already reacted reactant, same reaction type, but onlyratediffers - (#91) Added
Cog\Contracts\Love\Reaction\Exceptions\RateOutOfRangeexception - (#100) Added
Cog\Contracts\Love\Reaction\Exceptions\RateInvalidexception - (#96) Added progress bar to
love:recountArtisan command - (#97) Added ability to call
Reactable::joinReactionCounterOfTypemore than once - (#102) Added
scopeWhereNotReactedByscope toReactablemodel trait
Changed
- (#79) Renamed
isReactedTomethod tohasReactedToinReactermodel contract - (#79) Added
$reactionTypeparameter tohasReactedToinReactermodel contract - (#91) Added
$rateparameter tohasReactedTomethod inReactermodel contract - (#91) Added
$rateparameter tohasReactedTomethod inReacterfacade contract - (#79) Renamed
isNotReactedTomethod tohasNotReactedToinReactermodel contract - (#79) Added
$reactionTypeparameter tohasNotReactedToinReactermodel contract - (#91) Added
$rateparameter tohasNotReactedTomethod inReactermodel contract - (#91) Added
$rateparameter tohasNotReactedTomethod inReacterfacade contract - (#79) Added
$reactionTypeparameter toisReactedByinReactantmodel contract - (#91) Added
$rateparameter toisReactedBymethod inReactantmodel contract - (#91) Added
$rateparameter toisReactedBymethod inReactantfacade contract - (#79) Added
$reactionTypeparameter toisNotReactedByinReactantmodel contract - (#91) Added
$rateparameter toisNotReactedBymethod inReactantmodel contract - (#91) Added
$rateparameter toisNotReactedBymethod inReactantfacade contract - (#83) Artisan command
love:reaction-type-addawaits options instead of arguments - (#87) Resolving models default attributes values moved from accessors to Eloquent methods
- (#88) Renamed
weightattribute tomassinReactionTypemodel - (#88) Renamed
getWeightmethod togetMassinReactionTypemodel contract - (#89) Added
$reactionTypeparameter toscopeWhereReactedBymethod inReactablemodel trait - (#90) Moved
count&weightattributes default values ofReactionCounterto application level - (#90) Moved
count&weightattributes default values ofReactionTotalto application level - (#91) Changed
getWeightmethod return type frominttofloatin reactant'sReactionCountermodel contract - (#91) Changed
$amountparameter type frominttofloatofincrementWeightmethod in reactant'sReactionCountermodel contract - (#91) Changed
$amountparameter type frominttofloatofdecrementWeightmethod in reactant'sReactionCountermodel contract - (#91) Changed
getWeightmethod return type frominttofloatin reactant'sReactionTotalmodel contract - (#91) Changed
$amountparameter type frominttofloatofincrementWeightmethod in reactant'sReactionTotalmodel contract - (#91) Changed
$amountparameter type frominttofloatofdecrementWeightmethod in reactant'sReactionTotalmodel contract - (#91) Added
?float $rateparameter toreactTomethod inReacterfacade contract - (#91) Added
?float $rateparameter toreactTomethod inReactermodel contract - (#91) Added
getRatemethod toReactionmodel contract - (#91) Changed
getWeightmethod return type frominttofloatinReactionmodel contract - (#91) Changed
weightcolumn type toDECIMIAL(13, 2)inlove_reactant_reaction_countersdb table - (#91) Changed
weightcolumn type toDECIMIAL(13, 2)inlove_reactant_reaction_totalsdb table - (#96) Changed signature of
love:recountArtisan command tolove:recount {--model=} {--type=} - (#99) Make
Reacterableparameter nullable inisReactedBymethod ofReactantfacade contract - (#99) Make
Reacterableparameter nullable inisNotReactedBymethod ofReactantfacade contract - (#102) Changed second parameter type from
ReactanttoReacterableinscopeWhereReactedBymethod ofReactablemodel trait - (#102) Changed third parameter type from
?ReactionTypeto?stringinscopeWhereReactedBymethod ofReactablemodel trait - (#97) Added third
?string $aliasparameter toscopeJoinReactionCounterOfTypemethod ofReactablemodel trait - (#102) Added second
?string $aliasparameter toscopeJoinReactionTotalmethod ofReactablemodel trait - (#102) Renamed virtual column
reactions_counttoreaction_{$type}_countinscopeJoinReactionCounterOfTypemethod ofReactablemodel trait - (#102) Renamed virtual column
reactions_weighttoreaction_{$type}_weightinscopeJoinReactionCounterOfTypemethod ofReactablemodel trait - (#102) Renamed virtual column
reactions_total_counttoreaction_total_countinscopeJoinReactionTotalmethod ofReactablemodel trait - (#102) Renamed virtual column
reactions_total_weighttoreaction_total_weightinscopeJoinReactionTotalmethod ofReactablemodel trait
Removed
- (#86) Laravel 5.6 support obsolete
- (#79) Removed
isReactedToWithTypemethod fromReactermodel contract - (#79) Removed
isNotReactedToWithTypemethod fromReactermodel contract - (#79) Removed
isReactedByWithTypemethod fromReactantmodel contract - (#79) Removed
isNotReactedByWithTypemethodReactantmodel contract - (#89) Removed
scopeWhereReactedByWithTypemethod fromReactablemodel trait
7.2.1
Fixed
- (#77) Fixed Null Objects iterable return type inconsistency
7.2.0
7.1.0
7.0.1
Changed
- (#70)
isReactedTo&isNotReactedTomethods names ofReacterfacade were changed tohasReactedTo&hasNotReactedTo
7.0.0
6.2.1
Fixed
- (#58) Fix
--modeloption oflove:setup-reacterable&love:setup-reactableArtisan commands
6.2.0
Added
- (#56)
love:setup-reacterable&love:setup-reactableArtisan commands were added