Releases: cybercog/laravel-love
Releases · cybercog/laravel-love
8.5.0
8.4.0
8.3.1
8.3.0
Added
- (#146) Extracted logic from
Cog\Laravel\Love\Reactant\Listeners\IncrementAggregates
listener toCog\Laravel\Love\Reactant\Jobs\IncrementReactionAggregatesJob
- (#146) Extracted logic from
Cog\Laravel\Love\Reactant\Listeners\DecrementAggregates
listener toCog\Laravel\Love\Reactant\Jobs\DecrementReactionAggregatesJob
- (#147) Extracted event listeners registering from
Cog\Laravel\Love\LoveServiceProvider
toCog\Laravel\Love\LoveEventServiceProvider
- (#148) Extracted rebuild of reactant reactions counters from
Cog\Laravel\Love\Console\Commands\Recount
command toCog\Laravel\Love\Reactant\Jobs\RebuildReactionAggregatesJob
- (#148) Added
--queue-connection=
option tolove:recount
Artisan command
Fixed
8.2.0
Added
- (#127) Artisan commands for registering existing models as reactants/reacters
8.1.2
8.1.1
8.1.0
Added
- (#113) Laravel 6 support
Changed
- (#110) Removed dependency of
RateOutOfRange
exception in contracts namespace on concreteReaction
model implementation - (#110) Renamed
withValue
method towithValueBetween
inRateOutOfRange
exception - (#110) Added
$minimumRate
parameter towithValueBetween
method inRateOutOfRange
exception - (#110) Added
$maximumRate
parameter towithValueBetween
method inRateOutOfRange
exception - (#111) Changed
$rate
parameter type fromfloat
to?float
ofhasReactedTo
method inReacter
model contract - (#111) Changed
$rate
parameter type fromfloat
to?float
ofhasNotReactedTo
method inReacter
model contract
5.3.0
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-v8
Artisan command - (#90) Added
ReactionCounter::COUNT_DEFAULT
public constant - (#90) Added
ReactionCounter::WEIGHT_DEFAULT
public constant - (#90) Added
ReactionTotal::COUNT_DEFAULT
public constant - (#90) Added
ReactionTotal::WEIGHT_DEFAULT
public constant - (#91) Added
Reaction::RATE_DEFAULT
public constant - (#91) Added
Reaction::RATE_MIN
public constant - (#91) Added
Reaction::RATE_MAX
public constant - (#91) Added
ReactionType::MASS_DEFAULT
public constant - (#91) Added
rate
attribute toReacter
model - (#91) Added
rate DECIMIAL(4, 2)
column tolove_reactions
db table - (#91) Added ability to call
Reacter::reactTo
with already reacted reactant, same reaction type, but onlyrate
differs - (#91) Added
Cog\Contracts\Love\Reaction\Exceptions\RateOutOfRange
exception - (#100) Added
Cog\Contracts\Love\Reaction\Exceptions\RateInvalid
exception - (#96) Added progress bar to
love:recount
Artisan command - (#97) Added ability to call
Reactable::joinReactionCounterOfType
more than once - (#102) Added
scopeWhereNotReactedBy
scope toReactable
model trait
Changed
- (#79) Renamed
isReactedTo
method tohasReactedTo
inReacter
model contract - (#79) Added
$reactionType
parameter tohasReactedTo
inReacter
model contract - (#91) Added
$rate
parameter tohasReactedTo
method inReacter
model contract - (#91) Added
$rate
parameter tohasReactedTo
method inReacter
facade contract - (#79) Renamed
isNotReactedTo
method tohasNotReactedTo
inReacter
model contract - (#79) Added
$reactionType
parameter tohasNotReactedTo
inReacter
model contract - (#91) Added
$rate
parameter tohasNotReactedTo
method inReacter
model contract - (#91) Added
$rate
parameter tohasNotReactedTo
method inReacter
facade contract - (#79) Added
$reactionType
parameter toisReactedBy
inReactant
model contract - (#91) Added
$rate
parameter toisReactedBy
method inReactant
model contract - (#91) Added
$rate
parameter toisReactedBy
method inReactant
facade contract - (#79) Added
$reactionType
parameter toisNotReactedBy
inReactant
model contract - (#91) Added
$rate
parameter toisNotReactedBy
method inReactant
model contract - (#91) Added
$rate
parameter toisNotReactedBy
method inReactant
facade contract - (#83) Artisan command
love:reaction-type-add
awaits options instead of arguments - (#87) Resolving models default attributes values moved from accessors to Eloquent methods
- (#88) Renamed
weight
attribute tomass
inReactionType
model - (#88) Renamed
getWeight
method togetMass
inReactionType
model contract - (#89) Added
$reactionType
parameter toscopeWhereReactedBy
method inReactable
model trait - (#90) Moved
count
&weight
attributes default values ofReactionCounter
to application level - (#90) Moved
count
&weight
attributes default values ofReactionTotal
to application level - (#91) Changed
getWeight
method return type fromint
tofloat
in reactant'sReactionCounter
model contract - (#91) Changed
$amount
parameter type fromint
tofloat
ofincrementWeight
method in reactant'sReactionCounter
model contract - (#91) Changed
$amount
parameter type fromint
tofloat
ofdecrementWeight
method in reactant'sReactionCounter
model contract - (#91) Changed
getWeight
method return type fromint
tofloat
in reactant'sReactionTotal
model contract - (#91) Changed
$amount
parameter type fromint
tofloat
ofincrementWeight
method in reactant'sReactionTotal
model contract - (#91) Changed
$amount
parameter type fromint
tofloat
ofdecrementWeight
method in reactant'sReactionTotal
model contract - (#91) Added
?float $rate
parameter toreactTo
method inReacter
facade contract - (#91) Added
?float $rate
parameter toreactTo
method inReacter
model contract - (#91) Added
getRate
method toReaction
model contract - (#91) Changed
getWeight
method return type fromint
tofloat
inReaction
model contract - (#91) Changed
weight
column type toDECIMIAL(13, 2)
inlove_reactant_reaction_counters
db table - (#91) Changed
weight
column type toDECIMIAL(13, 2)
inlove_reactant_reaction_totals
db table - (#96) Changed signature of
love:recount
Artisan command tolove:recount {--model=} {--type=}
- (#99) Make
Reacterable
parameter nullable inisReactedBy
method ofReactant
facade contract - (#99) Make
Reacterable
parameter nullable inisNotReactedBy
method ofReactant
facade contract - (#102) Changed second parameter type from
Reactant
toReacterable
inscopeWhereReactedBy
method ofReactable
model trait - (#102) Changed third parameter type from
?ReactionType
to?string
inscopeWhereReactedBy
method ofReactable
model trait - (#97) Added third
?string $alias
parameter toscopeJoinReactionCounterOfType
method ofReactable
model trait - (#102) Added second
?string $alias
parameter toscopeJoinReactionTotal
method ofReactable
model trait - (#102) Renamed virtual column
reactions_count
toreaction_{$type}_count
inscopeJoinReactionCounterOfType
method ofReactable
model trait - (#102) Renamed virtual column
reactions_weight
toreaction_{$type}_weight
inscopeJoinReactionCounterOfType
method ofReactable
model trait - (#102) Renamed virtual column
reactions_total_count
toreaction_total_count
inscopeJoinReactionTotal
method ofReactable
model trait - (#102) Renamed virtual column
reactions_total_weight
toreaction_total_weight
inscopeJoinReactionTotal
method ofReactable
model trait
Removed
- (#86) Laravel 5.6 support obsolete
- (#79) Removed
isReactedToWithType
method fromReacter
model contract - (#79) Removed
isNotReactedToWithType
method fromReacter
model contract - (#79) Removed
isReactedByWithType
method fromReactant
model contract - (#79) Removed
isNotReactedByWithType
methodReactant
model contract - (#89) Removed
scopeWhereReactedByWithType
method fromReactable
model trait