Releases: franzose/ClosureTable
Releases · franzose/ClosureTable
v6.2.2
v6.2.1
What's Changed
- feat: add parent_id column to fillable at construct by @penerbangkode in #257
New Contributors
- @penerbangkode made their first contribution in #257
Full Changelog: v6.2...v6.2.1
v6.2
What's Changed
- fix: handle root sibling ordering and add tests by @franzose in #259
- fix: child positioning by @franzose in #260
- fix: prevent moving node under its descendant by @franzose in #261
- fix: honor provided connection in newFromBuilder by @franzose in #262
- fix: enable soft deletes on base entity by @franzose in #263
- fix: reorder siblings when moving within same parent by @franzose in #264
- fix: implement a number of fixes by @franzose in #265
Full Changelog: v6.1.1...v6.2
Fixed hardcoded table column names in the ClosureTable model
Minor tweaks
- Laravel 8 support in tests, thanks to @avvertix
Entity::parent()many-to-one relationship to the direct ancestor node- Minor tweaks
Fixed regression in the Collection::toTree() method
This is a small release which brings a fix to the regression pointed out by @ritterg.
ClosureTable 6
Improvements
- Fixed a lot of bugs related to positioning and movements between ancestors
- Introduced a bunch of query scopes to ease querying. They allowed to simplify the internals too!
- Introduced some convenient methods to the custom collection in addition to the existing ones
- Fixed bugs in the model and migration generators
- Improved tests and automated Travis CI builds. Many many thanks to @avvertix for the latter!
Deprecations
- Franzose\ClosureTable\Contracts\EntityInteface has been deprecated and will be removed in the next major release
- Franzose\ClosureTable\Contracts\ClosureTableInteface has been deprecated and will be removed in the next major release
- Entity's
real_depthattribute & database column have been deprecated and are not included in the generated model and migration anymore - The following methods of the Entity model has been deprecated and will be removed in the next major release:
- Entity::getRealDepthColumn()
- Entity::getChildrenRelationIndex()
- Entity::getAncestorsTree()
- Entity::getAncestorsWhere()
- Entity::getDescendantsTree()
- Entity::getDescendantsWhere()
- Entity::hasChildrenRelation()
- Entity::getTree()
- Entity::getTreeByQuery()
- Entity::getTreeWhere()
Other notes
PHP 5.6 support has been dropped. Starting from this release, ClosureTable supports PHP 7.0 and higher.
Fixes and improvements
Compatibility with Laravel 5.5
Thanks to @dcanaud, the package now supports Laravel 5.5.