Skip to content

Fix manual branching - #14

Merged
aedart merged 18 commits into
clean-slatefrom
fix-manual-branching
May 28, 2026
Merged

Fix manual branching#14
aedart merged 18 commits into
clean-slatefrom
fix-manual-branching

Conversation

@aedart

@aedart aedart commented May 28, 2026

Copy link
Copy Markdown
Owner

PR fixes the "manual branching" logic in the @meta() decorator. The logic has been simplified such that the "flush" and "discover" parts have been entirely removed. They are no longer needed - they caused to many issues.
In addition, context.metadata is no longer used, because it has proven to be unreliable. A WeakMap is now used instead.

aedart added 18 commits May 18, 2026 11:25
There is something off here, it appears that all metadata is defined on the parent (expect class level meta).
There is no need to walk through the target's inheritance - simply return existing repository or undefined if none exists.
This should ensure consistent behaviour, rather than relying on  previous implementation.
Also added several tests for this alone.
That didn't work as expected.
Now supports the inherit argument
We no longer care about the Key / path - only if the target is or isn't a constructor.
This simplifies the decorator a lot. The flush logic didn't work as intended and made the logic very complex.
@aedart aedart self-assigned this May 28, 2026
@aedart aedart added the enhancement New feature or request label May 28, 2026
@aedart
aedart merged commit 25d0428 into clean-slate May 28, 2026
1 check passed
@aedart
aedart deleted the fix-manual-branching branch May 28, 2026 08:29
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.

1 participant