You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix documentation errors and type soundness issues across packages
- cron: README claimed AND semantics for dom+dow, code uses POSIX OR.
Fixed README. Added domRestricted/dowRestricted to documented interface.
- limiter: README showed adapter as optional, it's required. Fixed all
examples to pass memoryAdapter() explicitly.
- key: README showed wrong output for objects (missing quotes around keys).
- cache/queue: Added NonUndefined constraint ({} | null) to value/item
type parameters so undefined can't be used as a value type, which would
conflict with the undefined-means-miss/end-of-stream sentinel.
- retry: Fixed event listener leak in delay() — abort listener was never
removed on normal timer completion.
- router: Throw on conflicting param names at the same trie position
instead of silently ignoring the second registration.
- memo: Added missing License section to README.
- example: Reformatted to match project style (oxfmt).
Copy file name to clipboardExpand all lines: packages/cron/README.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,9 +54,9 @@ Named values: `JAN`-`DEC` for months, `SUN`-`SAT` for days of week.
54
54
55
55
Day-of-week `7` is normalized to `0` (both mean Sunday). Expressions like `6-7`, `6,0`, `0,6`, and `7,6` are all equivalent (Saturday and Sunday).
56
56
57
-
### Day-of-month and day-of-week (AND semantics)
57
+
### Day-of-month and day-of-week (OR semantics)
58
58
59
-
When both day-of-month and day-of-week are specified, a date must match **both**constraints. For example, `0 0 15 * 3` matches only when the 15th falls on a Wednesday.
59
+
When both day-of-month and day-of-week are restricted (neither is `*`), a date matches if it satisfies **either**condition (POSIX OR semantics). For example, `0 0 15 * 3` matches any 15th of the month **or** any Wednesday.
0 commit comments