Skip to content

feat(runtime): Add enum overload for named qualifier#208

Merged
harrytmthy merged 1 commit into
mainfrom
feature/add-enum-qualifier
Apr 25, 2026
Merged

feat(runtime): Add enum overload for named qualifier#208
harrytmthy merged 1 commit into
mainfrom
feature/add-enum-qualifier

Conversation

@harrytmthy

Copy link
Copy Markdown
Owner

Summary

This PR adds named(Enum<*>) support to Stitch's runtime registration path, allowing enum-based named qualifiers to behave the same as their string equivalents.

Implementation Details

A new overload for named(...) now accepts enum values and reuses the existing pooled Named qualifier implementation by normalizing to value.name. This closes a small migration gap with Koin without introducing a new qualifier model. Tests were added to verify parity with string-based named qualifiers and to confirm enum-based named qualifiers do not clash with default, typed, or other named qualifiers.

Closes #207

@harrytmthy harrytmthy added this to the 1.0.0 milestone Apr 25, 2026
@harrytmthy harrytmthy self-assigned this Apr 25, 2026
@harrytmthy harrytmthy added the enhancement New feature or request label Apr 25, 2026
@harrytmthy
harrytmthy enabled auto-merge (squash) April 25, 2026 17:22
@harrytmthy
harrytmthy merged commit 6dbf8df into main Apr 25, 2026
1 check passed
@harrytmthy
harrytmthy deleted the feature/add-enum-qualifier branch April 25, 2026 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add enum overload for named(...) in the runtime registration path

1 participant