Skip to content

Bump rails-erd from 2.0.2 to 2.2.0 - #97

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/bundler/rails-erd-2.2.0
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/bundler/rails-erd-2.2.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Aug 31, 2026

Copy link
Copy Markdown
Contributor

Bumps rails-erd from 2.0.2 to 2.2.0.

Release notes

Sourced from rails-erd's releases.

v2.2.0 - No Loops, No Phantoms 👻

What's New

Three changes this release, and they share a theme: taking things out of your diagram. Fewer attributes when you want a focused view, no more self-referential loops cluttering the picture, and no more phantom entities sneaking back in after you filtered them away. Less noise, more signal. 👻

🎯 only_attributes - show just the attributes you care about

exclude_attributes could hide attributes per model, but sometimes the list you want to keep is way shorter than the list you want to hide. Now you can say exactly which attributes to show, model by model:

# .erdconfig
only_attributes:
  Book:
    - title
    - isbn

Or from the command line:

bundle exec erd --only_attributes="Book.title,Book.isbn"

It is per-model like exclude_attributes (not global like only), so models you do not list keep all of their attributes. And it plays nicely with everything else: only_attributes runs first, then exclude_attributes, then the attributes type filter.

👻 recursive: false - banish self-referential loops

A parent_id, a manager_id, a next_version_id - a relationship from an entity back to itself gets drawn as a little loop on its own node. Great sometimes, noise other times. Now you can turn them off:

# .erdconfig
recursive: false
bundle exec erd --no-recursive

Defaults to true, so your existing diagrams are unchanged.

🐛 No more phantom entities in Mermaid

If you filtered a model out of your diagram with only/exclude (or via polymorphism), Mermaid could still draw it back in as a phantom node whenever some surviving relationship pointed at it. Graphviz never had this problem because it only draws an edge when both endpoints exist. Mermaid now enforces the same rule: an edge is emitted only when both of its entities were actually drawn.

If you have been carrying a local filtered_relationships monkey-patch to work around this - you can probably delete it now.


Contributors

... (truncated)

Changelog

Sourced from rails-erd's changelog.

2.2.0

New Features

  • Add only_attributes option to show only the listed attributes on a per-model basis, the counterpart to exclude_attributes (#486, #487)
  • Add recursive option (default true); set it to false to omit self-referential relationships, such as a parent_id pointing at the entity's own table (#483, #485)

Bug Fixes

  • Mermaid no longer draws entities that were filtered out of the diagram: an edge is only emitted when both of its entities were drawn, matching the Graphviz generator (#482, #484)

Internal

  • Remove unnecessary ostruct runtime dependency; replace stale pry-nav with pry-byebug (#481)

2.1.0

New Features

  • Add cluster: true support for Mermaid classDiagram output, grouping entities by Ruby namespace into Mermaid namespace { } blocks (#479, #480)
  • Add glob and regex pattern support for exclude and only options, allowing entire namespaces to be filtered with patterns like "SolidQueue::*" or "/^Active/" (#465, #478)
  • Add tbls JSON generator for integration with Liam ERD and other tbls-compatible tools (#471, #474)

Bug Fixes

  • Invalid generator option now falls back to mermaid (the documented default) instead of graphviz
  • Fix unparseable Mermaid output when polymorphism is enabled and an abstract parent has a tableless child (#459, #463)
  • Fix only/exclude not filtering relationships, so filtered-out models no longer leak back into Mermaid diagrams as phantom nodes (#472, #473)
  • Process models in a stable order so relationship order and source/destination direction are deterministic across runs, avoiding churn in generated diagrams committed to version control (#475, #476)

Internal

  • Restructure filtered_attributes for readability and add edge-case tests for exclude_attributes normalization (#458)
  • Fix README to show the correct command-line flag syntax for ERD generator options (#461)
  • Add a native Mermaid preview diagram to the README (#466)
  • Fix stale LICENSE/CHANGES.rdoc references in the YARD task and gemspec so the license and changelog are documented and packaged (#469)
  • Update LICENSE copyright year to 2026 (#468)
Commits
  • 8ce4dd1 Bump version to 2.2.0
  • 08a2709 Merge pull request #487 from vergenzt/only-attributes-option
  • 9f101ff Merge remote-tracking branch 'origin/master' into only-attributes-option
  • d8c4b84 Merge pull request #485 from stwr667/recursive-relationship-option
  • d413838 Merge remote-tracking branch 'origin/master' into recursive-relationship-option
  • 3ba9d0c Merge pull request #484 from stwr667/mermaid-draw-only-existing-entities
  • 39a6948 feat: Add only_attributes option to show attributes per model
  • 8c86d2a feat: Add recursive option to omit self-referential relationships
  • d542091 docs: Reference the PR in the changelog entry
  • 8180f93 fix: Draw Mermaid edges only between entities that exist
  • 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 [rails-erd](https://github.com/voormedia/rails-erd) from 2.0.2 to 2.2.0.
- [Release notes](https://github.com/voormedia/rails-erd/releases)
- [Changelog](https://github.com/voormedia/rails-erd/blob/master/CHANGES.md)
- [Commits](voormedia/rails-erd@v2.0.2...v2.2.0)

---
updated-dependencies:
- dependency-name: rails-erd
  dependency-version: 2.2.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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 Aug 31, 2026
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.

0 participants