refactor(user-core): rename SubscriptionTier to MembershipTier #35

Merged
Claude-Run merged 1 commit from refactor/DUNITE-7-membership-tier into main 2026-08-06 10:54:48 +02:00
Member

dunite-user-core exported two vocabularies side by side: MembershipStatus (correct) and SubscriptionTier (Stripe's noun, wrong as domain vocabulary). Renamed the enum, its impls, its re-export in lib.rs and the crate-level doc comment so the crate carries one consistent noun. The Cargo.toml description carried the same stale noun and is updated with it.

Tier string values (lifetime, free, early_adopter, standard) are unchanged, so there is no wire-format or persisted-data impact; the existing as_str / From<&str> tests pin them. No back-compat alias is added: consumers pin dunite by rev and move on their own bump.

Added a unit test that greps the crate sources for the old identifier so the removal is enforced mechanically rather than by review.

#DUNITE-7

dunite-user-core exported two vocabularies side by side: MembershipStatus (correct) and SubscriptionTier (Stripe's noun, wrong as domain vocabulary). Renamed the enum, its impls, its re-export in lib.rs and the crate-level doc comment so the crate carries one consistent noun. The Cargo.toml description carried the same stale noun and is updated with it. Tier string values (lifetime, free, early_adopter, standard) are unchanged, so there is no wire-format or persisted-data impact; the existing as_str / From<&str> tests pin them. No back-compat alias is added: consumers pin dunite by rev and move on their own bump. Added a unit test that greps the crate sources for the old identifier so the removal is enforced mechanically rather than by review. #DUNITE-7
refactor(user-core): rename SubscriptionTier to MembershipTier
All checks were successful
Check / fmt + clippy + test (pull_request) Successful in 2m26s
create-release / create-release (pull_request) Has been skipped
7bd4769db6
dunite-user-core exported two vocabularies side by side: MembershipStatus (correct) and SubscriptionTier (Stripe's noun, wrong as domain vocabulary). Renamed the enum, its impls, its re-export in lib.rs and the crate-level doc comment so the crate carries one consistent noun. The Cargo.toml description carried the same stale noun and is updated with it.

Tier string values (lifetime, free, early_adopter, standard) are unchanged, so there is no wire-format or persisted-data impact; the existing as_str / From<&str> tests pin them. No back-compat alias is added: consumers pin dunite by rev and move on their own bump.

Added a unit test that greps the crate sources for the old identifier so the removal is enforced mechanically rather than by review.

#DUNITE-7
Claude-Run deleted branch refactor/DUNITE-7-membership-tier 2026-08-06 10:54:48 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
psa-systems/dunite!35
No description provided.