Skip to content

Expose recurrence option constants and centralize validation#111

Merged
ggaabe merged 1 commit intomainfrom
feat/expose-recurrence-option-constants
Mar 4, 2026
Merged

Expose recurrence option constants and centralize validation#111
ggaabe merged 1 commit intomainfrom
feat/expose-recurrence-option-constants

Conversation

@ggaabe
Copy link
Owner

@ggaabe ggaabe commented Mar 4, 2026

Summary

  • export reusable runtime option lists: allowedFreq, allowedWeekdays, plus Weekday and weekdayToIsoDay
  • centralize weekday parsing/mapping and FREQ/WKST validation in core rule parsing/sanitization
  • reuse shared weekday constants in totext
  • add tests for exported lists and new normalization/validation behavior
  • document reusable option lists in README

Verification

  • npm run build
  • npm test

@ggaabe ggaabe merged commit cf1b103 into main Mar 4, 2026
1 check passed
@ggaabe ggaabe deleted the feat/expose-recurrence-option-constants branch March 4, 2026 19:58
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