Skip to content

Latest commit

 

History

History
124 lines (74 loc) · 2.59 KB

CHANGELOG.md

File metadata and controls

124 lines (74 loc) · 2.59 KB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

0.8.1 - 2023-10-26

Fixed

  • Fix bug with wrong positioning between groups

0.8.0 - 2023-09-10

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 - 2023-06-04

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 - 2023-04-17

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 - 2023-02-18

Added

  • Support for Laravel 10

0.5.1 - 2023-02-11

Added

  • Move using negative position values

[0.5.0] - 2023-02-09

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] - 2023-02-08

Added

  • Possibility to update position attribute along with other attributes

[0.4.0] - 2022-05-08

Added

  • Laravel 9 support

[0.3.0] - 2021-06-24

Fixed

  • Fix position query scoping for relations

[0.2.0] - 2021-06-19

Added

  • Documentation
  • OrderByPosition global scope
  • Support for models delete
  • swap method
  • Add PHP 8 support

Changed

  • Rename arrangeByIds into arrangeByKeys
  • Extract arrangeByKeys method into query builder
  • Extract shift methods into query builder

[0.1.0] - 2021-06-13

Added

  • Base ordering features