Skip to content

Releases: cybercog/laravel-love

8.4.0

22 May 07:21
Compare
Choose a tag to compare

Added

  • (#165) Added table names configuration

Fixed

  • (#161) Removed redundant queues from Reactant listeners

View the changes from 8.3.1 to 8.4.0

8.3.1

06 Mar 20:49
a032e92
Compare
Choose a tag to compare

Added

  • (#158) Add Laravel 7.x support

View the changes from 8.3.0 to 8.3.1

8.3.0

16 Feb 19:51
Compare
Choose a tag to compare

Added

  • (#146) Extracted logic from Cog\Laravel\Love\Reactant\Listeners\IncrementAggregates listener to Cog\Laravel\Love\Reactant\Jobs\IncrementReactionAggregatesJob
  • (#146) Extracted logic from Cog\Laravel\Love\Reactant\Listeners\DecrementAggregates listener to Cog\Laravel\Love\Reactant\Jobs\DecrementReactionAggregatesJob
  • (#147) Extracted event listeners registering from Cog\Laravel\Love\LoveServiceProvider to Cog\Laravel\Love\LoveEventServiceProvider
  • (#148) Extracted rebuild of reactant reactions counters from Cog\Laravel\Love\Console\Commands\Recount command to Cog\Laravel\Love\Reactant\Jobs\RebuildReactionAggregatesJob
  • (#148) Added --queue-connection= option to love:recount Artisan command

Fixed

  • (#148) Fixed love:recount Artisan command execution when love_reactant_reaction_totals database table is empty
  • (#151) Fixed love:recount Artisan command return type

View the changes from 8.2.0 to 8.3.0

8.2.0

30 Jan 06:21
44aa6e8
Compare
Choose a tag to compare

Added

  • (#127) Artisan commands for registering existing models as reactants/reacters

View the changes from 8.1.2 to 8.2.0

8.1.2

22 Sep 01:00
Compare
Choose a tag to compare

Fixed

  • (#121) Drop foreign key before database column delete

View the changes from 8.1.1 to 8.1.2

8.1.1

13 Sep 18:59
6aec097
Compare
Choose a tag to compare

Fixed

  • (#118) Fix custom connection in database migrations

View the changes from 8.1.0 to 8.1.1

8.1.0

03 Sep 16:57
Compare
Choose a tag to compare

Added

  • (#113) Laravel 6 support

Changed

  • (#110) Removed dependency of RateOutOfRange exception in contracts namespace on concrete Reaction model implementation
  • (#110) Renamed withValue method to withValueBetween in RateOutOfRange exception
  • (#110) Added $minimumRate parameter to withValueBetween method in RateOutOfRange exception
  • (#110) Added $maximumRate parameter to withValueBetween method in RateOutOfRange exception
  • (#111) Changed $rate parameter type from float to ?float of hasReactedTo method in Reacter model contract
  • (#111) Changed $rate parameter type from float to ?float of hasNotReactedTo method in Reacter model contract

View the changes from 8.0.0 to 8.1.0

5.3.0

03 Sep 16:51
Compare
Choose a tag to compare

Added

  • (#114) Laravel 6 support

View the changes from 5.2.1 to 5.3.0

8.0.0: ∞ Endless Love

08 Aug 09:52
Compare
Choose a tag to compare

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 to Reacter model
  • (#91) Added rate DECIMIAL(4, 2) column to love_reactions db table
  • (#91) Added ability to call Reacter::reactTo with already reacted reactant, same reaction type, but only rate 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 to Reactable model trait

Changed

  • (#79) Renamed isReactedTo method to hasReactedTo in Reacter model contract
  • (#79) Added $reactionType parameter to hasReactedTo in Reacter model contract
  • (#91) Added $rate parameter to hasReactedTo method in Reacter model contract
  • (#91) Added $rate parameter to hasReactedTo method in Reacter facade contract
  • (#79) Renamed isNotReactedTo method to hasNotReactedTo in Reacter model contract
  • (#79) Added $reactionType parameter to hasNotReactedTo in Reacter model contract
  • (#91) Added $rate parameter to hasNotReactedTo method in Reacter model contract
  • (#91) Added $rate parameter to hasNotReactedTo method in Reacter facade contract
  • (#79) Added $reactionType parameter to isReactedBy in Reactant model contract
  • (#91) Added $rate parameter to isReactedBy method in Reactant model contract
  • (#91) Added $rate parameter to isReactedBy method in Reactant facade contract
  • (#79) Added $reactionType parameter to isNotReactedBy in Reactant model contract
  • (#91) Added $rate parameter to isNotReactedBy method in Reactant model contract
  • (#91) Added $rate parameter to isNotReactedBy method in Reactant 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 to mass in ReactionType model
  • (#88) Renamed getWeight method to getMass in ReactionType model contract
  • (#89) Added $reactionType parameter to scopeWhereReactedBy method in Reactable model trait
  • (#90) Moved count & weight attributes default values of ReactionCounter to application level
  • (#90) Moved count & weight attributes default values of ReactionTotal to application level
  • (#91) Changed getWeight method return type from int to float in reactant's ReactionCounter model contract
  • (#91) Changed $amount parameter type from int to float of incrementWeight method in reactant's ReactionCounter model contract
  • (#91) Changed $amount parameter type from int to float of decrementWeight method in reactant's ReactionCounter model contract
  • (#91) Changed getWeight method return type from int to float in reactant's ReactionTotal model contract
  • (#91) Changed $amount parameter type from int to float of incrementWeight method in reactant's ReactionTotal model contract
  • (#91) Changed $amount parameter type from int to float of decrementWeight method in reactant's ReactionTotal model contract
  • (#91) Added ?float $rate parameter to reactTo method in Reacter facade contract
  • (#91) Added ?float $rate parameter to reactTo method in Reacter model contract
  • (#91) Added getRate method to Reaction model contract
  • (#91) Changed getWeight method return type from int to float in Reaction model contract
  • (#91) Changed weight column type to DECIMIAL(13, 2) in love_reactant_reaction_counters db table
  • (#91) Changed weight column type to DECIMIAL(13, 2) in love_reactant_reaction_totals db table
  • (#96) Changed signature of love:recount Artisan command to love:recount {--model=} {--type=}
  • (#99) Make Reacterable parameter nullable in isReactedBy method of Reactant facade contract
  • (#99) Make Reacterable parameter nullable in isNotReactedBy method of Reactant facade contract
  • (#102) Changed second parameter type from Reactant to Reacterable in scopeWhereReactedBy method of Reactable model trait
  • (#102) Changed third parameter type from ?ReactionType to ?string in scopeWhereReactedBy method of Reactable model trait
  • (#97) Added third ?string $alias parameter to scopeJoinReactionCounterOfType method of Reactable model trait
  • (#102) Added second ?string $alias parameter to scopeJoinReactionTotal method of Reactable model trait
  • (#102) Renamed virtual column reactions_count to reaction_{$type}_count in scopeJoinReactionCounterOfType method of Reactable model trait
  • (#102) Renamed virtual column reactions_weight to reaction_{$type}_weight in scopeJoinReactionCounterOfType method of Reactable model trait
  • (#102) Renamed virtual column reactions_total_count to reaction_total_count in scopeJoinReactionTotal method of Reactable model trait
  • (#102) Renamed virtual column reactions_total_weight to reaction_total_weight in scopeJoinReactionTotal method of Reactable model trait

Removed

  • (#86) Laravel 5.6 support obsolete
  • (#79) Removed isReactedToWithType method from Reacter model contract
  • (#79) Removed isNotReactedToWithType method from Reacter model contract
  • (#79) Removed isReactedByWithType method from Reactant model contract
  • (#79) Removed isNotReactedByWithType method Reactant model contract
  • (#89) Removed scopeWhereReactedByWithType method from Reactable model trait

View the changes from 7.2.1 to 8.0.0

7.2.1

11 Jul 12:48
Compare
Choose a tag to compare

Fixed

  • (#77) Fixed Null Objects iterable return type inconsistency

View the changes from 7.2.0 to 7.2.1