Skip to content

Decouples unit resolution logic from RelativeTime into a new reusable RelativeTimeResolver class - #19

Merged
rxaviers merged 3 commits into
mainfrom
feat/resolver
Oct 1, 2025
Merged

Decouples unit resolution logic from RelativeTime into a new reusable RelativeTimeResolver class#19
rxaviers merged 3 commits into
mainfrom
feat/resolver

Conversation

@rxaviers

@rxaviers rxaviers commented Oct 1, 2025

Copy link
Copy Markdown
Owner

Compute relative { value, unit } without formatting via RelativeTimeResolver.

Introduced RelativeTimeResolver to handle unit resolution and difference calculation, while RelativeTime manages formatting. This improves code modularity and allows explicit unit control in relative time computations. Added tests for the resolver class.
@rxaviers
rxaviers merged commit b8f7ec9 into main Oct 1, 2025
1 check passed
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