Repository navigation
v2.0.15
Changes
- fix(di): 🐛 Keep legacy base64 service ids with node-dependency-injection 4
Release details
- npm: https://www.npmjs.com/package/@haskou/ddd-kernel/v/2.0.15
- Pull request: #84
- Source branch:
fix/autowire-legacy-service-ids - Version bump:
patch
Pull request notes
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.