Skip to content

Releases: xalaida/laravel-position

0.9.0

03 Apr 19:32
a29702c
Compare
Choose a tag to compare

Added

0.8.1

26 Oct 11:51
1cd4c3c
Compare
Choose a tag to compare

Fixed

  • Fix bug with wrong positioning between groups

0.8.0

10 Sep 14:41
d972093
Compare
Choose a tag to compare

Added

  • Grouping feature
  • PositionObserver::lockFor() and PositionObserver::unlockFor() methods
  • PositionObserver::forceFor() method

Changed

  • Rework Lock feature
  • Refactor PositionObserver

Removed

  • isMoving() method
  • withoutShiftingPosition method

0.7.0

04 Jun 12:09
b4eaea7
Compare
Choose a tag to compare

Added

  • getStartPosition method to define from what number start counting models
  • shiftWithTimestamps method to update timestamps when shifting models
  • Experimental lockPositions method to disable database queries during insertions

Changed

  • Now timestamps will be preserved by default when shifting model positions
  • Method newPositionQuery now is public
  • Use SQL count method instead of max for calculating position at the end
  • Refactored using PositionObserver

0.6.0

17 Apr 19:36
5210793
Compare
Choose a tag to compare

Changed

  • Rename method orderByInversePosition to orderByReversePosition
  • Rename method nextPosition to getNextPosition
  • Method getNextPosition can return negative position
  • Method getMaxPosition returns -1 when no records

Removed

  • The startPosition method

0.5.2

18 Feb 19:20
87fdb15
Compare
Choose a tag to compare

Added

  • Support for Laravel 10

0.5.1

11 Feb 16:50
4475c6c
Compare
Choose a tag to compare

Added

  • Move using negative position values

0.5.0

09 Feb 17:31
bcf99b4
Compare
Choose a tag to compare

Added

  • Possibility to create model in the middle of the sequence
  • Possibility to create model in the beginning of the sequence
  • Possibility to update positions without shifting other models
  • Extra argument for shift amount in shiftToStart and shiftToEnd methods

Changed

  • Rename method getInitPosition to startPosition
  • Position of other models now are shifted after the model update

0.4.1

08 Feb 09:37
d93f93f
Compare
Choose a tag to compare

Added

  • Possibility to update position attribute along with other attributes

Add Laravel 9 support

08 May 16:03
Compare
Choose a tag to compare

[0.4.0] - 2022-05-08

Added

  • Laravel 9 support