Skip to content

Commit 17ea463

Browse files
committed
document sublings and other changes
1 parent f3c77e3 commit 17ea463

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

CHANGELOG.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,25 @@
33
Doing our best at supporting [SemVer](http://semver.org/) with
44
a nice looking [Changelog](http://keepachangelog.com).
55

6-
## Version [HEAD] <sub><sup>Unreleased</sub></sup>
6+
## Version [5.0.0] <sub><sup>2026-02-08</sub></sup>
77

8+
* Fix: `siblings` now excludes self [#710](https://github.com/stefankroes/ancestry/pull/710) (thx @chikamichi)
89
* Introduce `orphan_strategy: :none` [#658](https://github.com/stefankroes/ancestry/pull/658)
910
* Introduce `rebuild_counter_cache!` to reset counter caches. [#663](https://github.com/stefankroes/ancestry/pull/663) [#668](https://github.com/stefankroes/ancestry/pull/668) (thx @RongRongTeng)
11+
* Introduce `in_subtree_of?` instance method [#680](https://github.com/stefankroes/ancestry/pull/680) (thx @instrumentl)
12+
* Optimize `has_siblings?` to use `exists?` [#693](https://github.com/stefankroes/ancestry/pull/693) (thx @a5-stable)
13+
* Fix: humanise model name in error messages [#700](https://github.com/stefankroes/ancestry/pull/700) (thx @labeebklatif)
14+
* Fix: touch with sql update strategy
15+
* Introduce `update_strategy: :sql` hooks for extension developers
16+
* Added support for virtual depth column
1017
* Documentation fixes [#664](https://github.com/stefankroes/ancestry/pull/664) [#667](https://github.com/stefankroes/ancestry/pull/667) (thx @motokikando, @onerinas)
1118
* Introduce `build_cache_depth_sql!`, a sql alternative to `build_cache_depth` [#654](https://github.com/stefankroes/ancestry/pull/654)
1219
* Drop `ancestry_primary_key_format` [#649](https://github.com/stefankroes/ancestry/pull/649)
1320
* When destroying orphans, going from leafs up to node [#635](https://github.com/stefankroes/ancestry/pull/635) (thx @brendon)
1421
* Changed config setters to class readers [#633](https://github.com/stefankroes/ancestry/pull/633) (thx @kshurov)
1522
* Split apply_orphan_strategy into multiple methods [#632](https://github.com/stefankroes/ancestry/pull/633) [#633](https://github.com/stefankroes/ancestry/pull/617)
23+
* Ruby 3.4 support
24+
* Rails 8.0 support
1625

1726
#### Notable features
1827

@@ -29,6 +38,10 @@ jobs. If you need to do this in the ui, please use `cache_depth`.
2938

3039
#### Breaking Changes
3140

41+
* `siblings` no longer returns self. This is a bug fix, but does change behavior.
42+
* Dropped support for Rails < 6.1
43+
* Renamed internal methods to follow Rails conventions: `*_before_save` methods renamed to `*_before_last_save`
44+
(e.g., `child_ancestry_before_save` => `child_ancestry_before_last_save`)
3245
* Options are no longer set via class methods. Using `has_ancestry` is now the only way to enable these features.
3346
These are all not part of the public API.
3447
* These are now class level read only accessors
@@ -353,7 +366,8 @@ Missed 2 commits (which are feature adds)
353366
* Validations
354367

355368

356-
[HEAD]: https://github.com/stefankroes/ancestry/compare/v4.3.0...HEAD
369+
[HEAD]: https://github.com/stefankroes/ancestry/compare/v5.0.0...HEAD
370+
[5.0.0]: https://github.com/stefankroes/ancestry/compare/v4.3.3...v5.0.0
357371
[4.3.3]: https://github.com/stefankroes/ancestry/compare/v4.3.2...v4.3.3
358372
[4.3.2]: https://github.com/stefankroes/ancestry/compare/v4.3.1...v4.3.2
359373
[4.3.1]: https://github.com/stefankroes/ancestry/compare/v4.3.0...v4.3.1

0 commit comments

Comments
 (0)