7.8.0 • Published 3 months ago
@steveojs/scheduler-prisma v7.8.0
steveo-scheduler-prisma
A scheduler provider for steveo library.
- Computes next run of a schedule
- Computes n next run occurences of a schedule
What's new
Version 7.1.0
- Deprecated
computeNextRunAt
method replaced bycomputeNextRun
that uses the rrule-rust libraryUsage
computeNextRunAt(interval, 'UTC') ---> OLD computeNextRun(interval, { timezone: 'UTC', startDate: moment().toISOString() }) ---> NEW
computeNextRun
will check if the rule is valid, convert to a valid rule if not and return a single run date in ISO stringParameters
- interval: should be an iCal rrule string
- timezone: timezone to compute the next run, UTC by default
- startDate: start date to compute the next run, now() by default
Usage
computeNextRun(interval, { timezone: 'UTC', startDate: moment().toISOString() })
computeNextRuns
similar tocomputeNextRun
but will return n next run dates in ISO stringParameters
- interval: should be an iCal rrule string
- timezone: timezone to compute the next run, UTC by default
- startDate: start date to compute the next run, now() by default
- count: number of occurrences, 1 by default max of 30
Usage
computeNextRuns(interval, { timezone: 'Australia/Sydney', startDate: moment().toISOString(), count: 5 })
7.8.0
3 months ago
7.7.0
4 months ago
7.6.0
5 months ago
7.5.0
6 months ago
7.4.0
10 months ago
7.4.0-beta.0
10 months ago
7.3.0
12 months ago
7.2.1
1 year ago
7.2.0
1 year ago
7.1.0
1 year ago
7.0.0
1 year ago
6.1.1
1 year ago
6.1.0
2 years ago
6.0.0-beta2
2 years ago
6.0.2-beta
2 years ago
6.0.1
2 years ago
6.0.0-beta1
2 years ago