Skip to content

fix(di): 🐛 Keep legacy base64 service ids with node-dependency-injection 4 - #84

Merged
haskou merged 1 commit into
mainfrom
fix/autowire-legacy-service-ids
Oct 4, 2026
Merged

haskou merged 1 commit into
mainfrom
fix/autowire-legacy-service-ids

Conversation

@haskou

@haskou haskou commented Oct 4, 2026

Copy link
Copy Markdown
Owner

node-dependency-injection 4 generates human-readable service ids by default, but the kernel's class-based resolution (parent aliases, overrides, service lookup) decodes base64 ids. In containerBuild mode this left overrides unmatched, so override classes were registered without their constructor arguments (e.g. Cannot read properties of undefined in consumers) and abstract-parent aliasing broke.

Switch the autowire to the legacy base64 id strategy so generated services.yaml files keep the format the kernel expects. Adds a regression test that checks the generated ids.

@haskou
haskou merged commit 9650ae8 into main Oct 4, 2026
2 checks passed
@codecov

codecov Bot commented Oct 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

github-actions Bot added a commit that referenced this pull request Oct 4, 2026
@haskou
haskou deleted the fix/autowire-legacy-service-ids branch October 4, 2026 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant