Skip to content

feat(schedules): add the until option to preview() to walk a schedule to an instant in @observerly/orderly - #78

Merged
michealroberts merged 1 commit into
mainfrom
feature/schedules/preview-until
Oct 24, 2026
Merged

michealroberts merged 1 commit into
mainfrom
feature/schedules/preview-until

Conversation

@michealroberts

Copy link
Copy Markdown
Member

What This Changes

  • Adds until to preview(): walk a schedule up to an instant, inclusive.
  • take is now optional. Given both, whichever ends the walk first wins.

Notes For Reviewers

  • Given neither take nor until, preview() throws a RangeError, since a never-ending schedule would walk forever.
  • Existing calls with take behave as before.

Checklist

  • Tests cover the change, and run inside workerd
  • A changeset is included, or the change is not one a consumer would notice
  • No Node built-ins were introduced

… to an instant in @observerly/orderly

feat(schedules): add the until option to preview() to walk a schedule to an instant in @observerly/orderly
@michealroberts michealroberts self-assigned this Oct 24, 2026
@michealroberts michealroberts added the enhancement New feature or request label Oct 24, 2026
@michealroberts
michealroberts merged commit 277baa8 into main Oct 24, 2026
6 checks passed
@michealroberts michealroberts mentioned this pull request Oct 24, 2026
3 tasks done
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