Skip to content

8.0.0: ∞ Endless Love

Compare
Choose a tag to compare
@antonkomarev antonkomarev released this 08 Aug 09:52
· 116 commits to master since this release

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