Skip to content

Commit f0ff45c

Browse files
committed
Merge pull request #12 from lazychaser/develop
Version 2.0
2 parents 6748af4 + 44de773 commit f0ff45c

File tree

9 files changed

+1460
-732
lines changed

9 files changed

+1460
-732
lines changed

CHANGELOG.markdown

+21
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,24 @@
1+
### 2.0.0
2+
3+
* Added `insertAfter`, `insertBefore` methods.
4+
* `prepend` and `append` methods now save target model.
5+
* You can now call `refreshNode` to make sure that node has updated structural
6+
data (lft and rgt values).
7+
* The root node is not required now. You can use `saveAsRoot` or `makeRoot` method.
8+
New model is saved as root by default.
9+
* You can now create as many nodes and in any order as you want within single
10+
request.
11+
* Laravel 2 is supported but not required.
12+
* `ancestorsOf` now doesn't include target node into results.
13+
* New constraint methods `hasParent` and `hasChildren`.
14+
* New method `isDescendantOf` that checks if node is a descendant of other node.
15+
* Default order is not applied by default.
16+
* New method `descendantsOf` that allows to get descendants by id of the node.
17+
* Added `countErrors` and `isBroken` methods to check whether the tree is broken.
18+
* `NestedSet::createRoot` has been removed.
19+
* `NestedSet::column` doesn't create a foreign key anymore.
20+
121
### 1.1.0
22+
223
* `Collection::toDictionary` is now obsolete. Use `Collection::groupBy`.
324
* Laravel 4.2 is required

0 commit comments

Comments
 (0)