Skip to content

Bump ancestry from 4.3.3 to 5.0.0#4239

Merged
nomadicoder merged 1 commit intomainfrom
dependabot/bundler/ancestry-5.0.0
Feb 10, 2026
Merged

Bump ancestry from 4.3.3 to 5.0.0#4239
nomadicoder merged 1 commit intomainfrom
dependabot/bundler/ancestry-5.0.0

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Feb 10, 2026

Bumps ancestry from 4.3.3 to 5.0.0.

Changelog

Sourced from ancestry's changelog.

Version [5.0.0] 2026-02-08

  • Fix: siblings now excludes self #710 (thx @​chikamichi)
  • Introduce orphan_strategy: :none #658
  • Introduce rebuild_counter_cache! to reset counter caches. #663 #668 (thx @​RongRongTeng)
  • Introduce in_subtree_of? instance method #680 (thx @​instrumentl)
  • Optimize has_siblings? to use exists? #693 (thx @​a5-stable)
  • Fix: humanise model name in error messages #700 (thx @​labeebklatif)
  • Fix: touch with sql update strategy
  • Introduce update_strategy: :sql hooks for extension developers
  • Added support for virtual depth column
  • Documentation fixes #664 #667 (thx @​motokikando, @​onerinas)
  • Introduce build_cache_depth_sql!, a sql alternative to build_cache_depth #654
  • Drop ancestry_primary_key_format #649
  • When destroying orphans, going from leafs up to node #635 (thx @​brendon)
  • Changed config setters to class readers #633 (thx @​kshurov)
  • Split apply_orphan_strategy into multiple methods #632 #633
  • Ruby 3.4 support
  • Rails 8.0 support

Notable features

Depth scopes now work without cache_depth. But please only use this in background jobs. If you need to do this in the ui, please use cache_depth.

build_cache_depth_sql! is quicker than build_cache_depth! (1 query instead of N+1 queries).

Deprecations

  • Option :depth_cache_column is going away. Please use a single key instead: cache_depth: :depth_cach_column_name. cache_depth: true still defaults to ancestry_depth.

Breaking Changes

  • siblings no longer returns self. This is a bug fix, but does change behavior.
  • Dropped support for Rails < 6.1
  • Renamed internal methods to follow Rails conventions: *_before_save methods renamed to *_before_last_save (e.g., child_ancestry_before_save => child_ancestry_before_last_save)
  • Options are no longer set via class methods. Using has_ancestry is now the only way to enable these features. These are all not part of the public API.
    • These are now class level read only accessors
      • ancestry_base_class (introduced 1.1, removed by #633)
      • ancestry_column (introduced 1.2, removed by #633)
      • ancestry_delimiter (introduced 4.3.0, removed by #633)
      • depth_cache_column (introduced 4.3.0, removed by #654)
    • These no longer have any accessors
      • ancestry_format (introduced 4.3.0, removed by #654)
      • orphan_strategy (introduced 1.1, removed by #617)
      • ancestry_primary_key_format (introduced 4.3.0, removed by #649)

... (truncated)

Commits
  • 17ea463 document sublings and other changes
  • f3c77e3 Merge pull request #661 from kbrock/drop_orphans
  • 51dc03a Add tests for arrange_nodes orphan_strategy option
  • bf9776c Add option on how to handle orphans when arranging nodes
  • 46a9a9d Merge pull request #710 from kbrock/siblings_not_me
  • ea8573e Siblings excludes self
  • 3374b17 Merge pull request #709 from fkmy/ci/add-ruby-4-0
  • eec3796 Add Ruby 4.0 to the CI matrix
  • 694ebf6 Merge pull request #707 from willnet/add-rails81-to-ci-matrix
  • 5aa14d1 Merge pull request #705 from stefankroes/dependabot/github_actions/actions/ch...
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [ancestry](https://github.com/stefankroes/ancestry) from 4.3.3 to 5.0.0.
- [Changelog](https://github.com/stefankroes/ancestry/blob/master/CHANGELOG.md)
- [Commits](stefankroes/ancestry@v4.3.3...v5.0.0)

---
updated-dependencies:
- dependency-name: ancestry
  dependency-version: 5.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file ruby Pull requests that update Ruby code labels Feb 10, 2026
@nomadicoder nomadicoder merged commit 06640db into main Feb 10, 2026
4 checks passed
@nomadicoder nomadicoder deleted the dependabot/bundler/ancestry-5.0.0 branch February 10, 2026 22:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file ruby Pull requests that update Ruby code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant