rrule-temporal 2.2.6 → 2.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +29 -91
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +70 -0
- package/dist/index.d.ts +70 -0
- package/dist/index.js +1 -1
- package/dist/src-DcoDqR4A.cjs +2 -0
- package/dist/src-vjCiI_-u.js +2 -0
- package/dist/totext.cjs +1 -1
- package/dist/totext.js +1 -1
- package/package.json +1 -1
- package/dist/src-5ULu8Hra.cjs +0 -2
- package/dist/src-D9fIlUxz.js +0 -2
package/README.md
CHANGED
|
@@ -318,105 +318,43 @@ Notes
|
|
|
318
318
|
|
|
319
319
|
## Benchmarks
|
|
320
320
|
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
the timings. Every scenario's complete result was compared against the baseline
|
|
329
|
-
before timing. These are local medians; sample ranges are recorded with the raw
|
|
330
|
-
results, and timings vary with machine load.
|
|
331
|
-
|
|
332
|
-
| UTC scenario | v2.2.3 | v2.2.4 | Speedup |
|
|
333
|
-
| --- | ---: | ---: | ---: |
|
|
334
|
-
| YEARLY last weekday, COUNT 1,000 | 1,866.627 ms | 27.755 ms | 67.25x |
|
|
335
|
-
| YEARLY quarterly months / two month days, COUNT 1,000 | 22.255 ms | 2.046 ms | 10.88x |
|
|
336
|
-
| MONTHLY weekdays / four time slots, COUNT 1,000 | 6.402 ms | 1.192 ms | 5.37x |
|
|
337
|
-
| MONTHLY first/last weekday time slots, COUNT 240 | 20.788 ms | 0.825 ms | 25.20x |
|
|
338
|
-
| DAILY RDATE/EXDATE, COUNT 1,000 | 3.645 ms | 0.720 ms | 5.06x |
|
|
339
|
-
|
|
340
|
-
UTC monthly/yearly generation now selects calendar days and BYSETPOS ranks
|
|
341
|
-
using integers, then constructs only the Temporal candidates that the visitor
|
|
342
|
-
consumes. Simple UTC DAILY/HOURLY/MINUTELY/SECONDLY rules retain their fast
|
|
343
|
-
generators when RDATE/EXDATE are present; exceptions are applied afterward in
|
|
344
|
-
recurrence-set order. Unsupported shapes retain the general engine, including
|
|
345
|
-
expanded exception rules whose iteration limits differ.
|
|
346
|
-
|
|
347
|
-
The release passed all 1,167 tests on both Temporal backends, plus CI on
|
|
348
|
-
Node 20, 24, and 26. The timings above use the polyfill only. The general
|
|
349
|
-
calendar engine now restores DTSTART's time after DST gaps; this has a cost
|
|
350
|
-
in fallback cases. The Chicago DAILY exception control measured 3.960 ms
|
|
351
|
-
for v2.2.3 and 4.840 ms for v2.2.4, about 22% slower in this run.
|
|
352
|
-
|
|
353
|
-
See [`benchmarks/README.md`](benchmarks/README.md) for all scenarios, raw
|
|
354
|
-
measurements, and the reproduction command.
|
|
355
|
-
|
|
356
|
-
### COUNT-bound queries
|
|
357
|
-
|
|
358
|
-
Measured September 3, 2026 on a MacBook Pro M2 Max with Node 25.2.1,
|
|
359
|
-
comparing the exact `v2.2.2` tag (`6be2251`) with `v2.2.3`. The table reports
|
|
360
|
-
warmed median time per call from seven 300 ms samples after a 250 ms warmup;
|
|
361
|
-
lower is better. Version 2.2.3 uses the production-minified bundle described
|
|
362
|
-
below.
|
|
363
|
-
|
|
364
|
-
| Scenario | v2.2.2 | v2.2.3 | Speedup |
|
|
365
|
-
| --- | ---: | ---: | ---: |
|
|
366
|
-
| SECONDLY next, COUNT 128, rank 63 | 9.53 us | 1.10 us | 8.66x |
|
|
367
|
-
| SECONDLY next, COUNT 250k, rank 200k | 9.53 us | 1.15 us | 8.29x |
|
|
368
|
-
| DAILY next, COUNT 9k, rank 8.5k, UTC | 10.36 us | 1.68 us | 6.17x |
|
|
369
|
-
| DAILY previous, COUNT 9k, rank 8.5k, Chicago | 13.08 us | 2.25 us | 5.81x |
|
|
370
|
-
| DAILY weekdays next, COUNT 9k, distant, UTC | 11.01 us | 1.93 us | 5.70x |
|
|
371
|
-
| DAILY slots narrow between, COUNT 9k, UTC | 34.82 us | 9.70 us | 3.59x |
|
|
372
|
-
| WEEKLY M/W/F slots next, COUNT 9k, UTC | 10.58 us | 1.78 us | 5.94x |
|
|
373
|
-
| MONTHLY last weekday next, COUNT 9k, UTC | 31.34 us | 22.88 us | 1.37x |
|
|
374
|
-
| MONTHLY last weekday next, COUNT 128, rank 63 | 21.32 us | 12.14 us | 1.76x |
|
|
375
|
-
| SECONDLY `occursOn()`, COUNT 100k | 254.4 ms | 7.84 us | 32,449x |
|
|
376
|
-
| DAILY RDATE/EXDATE next, COUNT 9k, rank 8.5k | 52.4 ms | 2.20 us | 23,818x |
|
|
377
|
-
| YEARLY BYMONTH/BYMONTHDAY next, COUNT 9k, rank 8.5k | 382.2 ms | 7.94 us | 48,136x |
|
|
378
|
-
| SECONDLY `all()`, COUNT 3.6k, explicit Temporal output | 41.4 ms | 19.6 ms | 2.11x |
|
|
379
|
-
|
|
380
|
-
The named-zone cold call still includes lazy transition-table construction;
|
|
381
|
-
the query harness prints cold timings and each sample's warm range.
|
|
382
|
-
|
|
383
|
-
### Full recurrence generation
|
|
384
|
-
|
|
385
|
-
Uncached median ops/s from the same MacBook Pro M2 Max with Node 25.2.1 using
|
|
386
|
-
the polyfill backend and `rrule` 2.8.1. Each result is the median of five 200 ms
|
|
387
|
-
samples after a 200 ms warmup. The production bundle is minified, which
|
|
388
|
-
disables `temporal-polyfill`'s development-only per-instance debug strings. The
|
|
389
|
-
three-library comparison, query methodology, and cached-mode summary live in
|
|
321
|
+
Full recurrence generation with uncached `all()` calls, in median ops/s
|
|
322
|
+
(higher is better). Measured September 23, 2026 with v2.2.7 on an Apple M2 Max
|
|
323
|
+
with Node 25.2.1, using the polyfill backend and `rrule` 2.8.1. Each result is
|
|
324
|
+
the median of five 200 ms samples after a 200 ms warmup. The production bundle
|
|
325
|
+
is minified, which disables `temporal-polyfill`'s development-only
|
|
326
|
+
per-instance debug strings. The three-library comparison, query benchmarks,
|
|
327
|
+
release-to-release comparisons, and cached-mode summary live in
|
|
390
328
|
[`benchmarks/README.md`](benchmarks/README.md).
|
|
391
329
|
|
|
392
330
|
| Scenario | TZ | rrule-temporal median ops/s | rrule median ops/s | vs rrule |
|
|
393
331
|
| --- | --- | ---: | ---: | ---: |
|
|
394
|
-
| 30 daily occurrences | UTC |
|
|
395
|
-
| 30 daily occurrences | America/Chicago |
|
|
396
|
-
| Daily weekdays across many cycles | UTC |
|
|
397
|
-
| Daily weekdays across many cycles | America/Chicago |
|
|
398
|
-
| Daily time-slot expansion | UTC | 2,
|
|
399
|
-
| Daily time-slot expansion | America/Chicago |
|
|
400
|
-
| 720 hourly occurrences | UTC | 2,
|
|
401
|
-
| 720 hourly occurrences | America/Chicago | 1,
|
|
402
|
-
| 1,440 minutely occurrences | UTC | 1,
|
|
403
|
-
| 1,440 minutely occurrences | America/Chicago |
|
|
404
|
-
| 3,600 secondly occurrences | UTC |
|
|
405
|
-
| 3,600 secondly occurrences | America/Chicago |
|
|
406
|
-
| Weekly MO/WE/FR across many cycles | UTC | 2,
|
|
407
|
-
| Weekly MO/WE/FR across many cycles | America/Chicago |
|
|
408
|
-
| Weekly day and time-slot expansion | UTC | 1,
|
|
409
|
-
| Weekly day and time-slot expansion | America/Chicago |
|
|
410
|
-
| Monthly last weekday across 20 years | UTC | 2,
|
|
411
|
-
| Monthly last weekday across 20 years | America/Chicago | 1,
|
|
412
|
-
| Monthly first and last weekday across 20 years | UTC | 1,
|
|
413
|
-
| Monthly first and last weekday across 20 years | America/Chicago | 1,
|
|
332
|
+
| 30 daily occurrences | UTC | 80,644 | 15,625 | 5.16x |
|
|
333
|
+
| 30 daily occurrences | America/Chicago | 34,793 | 288 | 120.81x |
|
|
334
|
+
| Daily weekdays across many cycles | UTC | 4,015 | 747 | 5.37x |
|
|
335
|
+
| Daily weekdays across many cycles | America/Chicago | 2,021 | 19.4 | 104.18x |
|
|
336
|
+
| Daily time-slot expansion | UTC | 2,365 | 1,045 | 2.26x |
|
|
337
|
+
| Daily time-slot expansion | America/Chicago | 1,076 | 11.5 | 93.57x |
|
|
338
|
+
| 720 hourly occurrences | UTC | 2,744 | 705 | 3.89x |
|
|
339
|
+
| 720 hourly occurrences | America/Chicago | 1,382 | 13.4 | 103.13x |
|
|
340
|
+
| 1,440 minutely occurrences | UTC | 1,740 | 337 | 5.16x |
|
|
341
|
+
| 1,440 minutely occurrences | America/Chicago | 771 | 7.1 | 108.59x |
|
|
342
|
+
| 3,600 secondly occurrences | UTC | 532 | 129 | 4.12x |
|
|
343
|
+
| 3,600 secondly occurrences | America/Chicago | 296 | 2.9 | 102.07x |
|
|
344
|
+
| Weekly MO/WE/FR across many cycles | UTC | 2,842 | 1,116 | 2.55x |
|
|
345
|
+
| Weekly MO/WE/FR across many cycles | America/Chicago | 1,235 | 14.5 | 85.17x |
|
|
346
|
+
| Weekly day and time-slot expansion | UTC | 1,784 | 1,174 | 1.52x |
|
|
347
|
+
| Weekly day and time-slot expansion | America/Chicago | 987 | 11.2 | 88.12x |
|
|
348
|
+
| Monthly last weekday across 20 years | UTC | 2,252 | 1,027 | 2.19x |
|
|
349
|
+
| Monthly last weekday across 20 years | America/Chicago | 1,681 | 44.2 | 38.03x |
|
|
350
|
+
| Monthly first and last weekday across 20 years | UTC | 1,757 | 1,042 | 1.69x |
|
|
351
|
+
| Monthly first and last weekday across 20 years | America/Chicago | 1,068 | 23.1 | 46.23x |
|
|
414
352
|
|
|
415
353
|
Time-zone-aware rules iterate through an epoch-integer engine with a cached
|
|
416
|
-
per-zone offset table, so named-zone scenarios ran
|
|
354
|
+
per-zone offset table, so named-zone scenarios ran 38-121x faster than `rrule`
|
|
417
355
|
in this pass. Minifying the production bundle removes polyfill debug
|
|
418
356
|
instrumentation from occurrence materialization, making UTC generation
|
|
419
|
-
1.
|
|
357
|
+
1.52-5.37x faster than `rrule` across every scenario. Earlier native-Temporal
|
|
420
358
|
measurements are retained in the detailed benchmark README but were not rerun
|
|
421
359
|
in this Node 25/polyfill pass. Repeated `all()` calls on the same rule instance
|
|
422
360
|
are served from an internal cache (opt out per rule with `cache: false`).
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./src-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./src-DcoDqR4A.cjs`);exports.RRuleTemporal=e.t,exports.allowedFreq=e.n,exports.allowedWeekdays=e.r,exports.weekdayToIsoDay=e.i;
|
package/dist/index.d.cts
CHANGED
|
@@ -134,6 +134,8 @@ declare class RRuleTemporal<TOutput extends TemporalZonedDateTimeInput = Tempora
|
|
|
134
134
|
private zoneResolver?;
|
|
135
135
|
private emitAnchorZdt?;
|
|
136
136
|
private numericQueryPlanCache;
|
|
137
|
+
private periodQueryPlanCache;
|
|
138
|
+
private dtstartIsOccurrenceCache?;
|
|
137
139
|
private static readonly rscaleCalendarSupport;
|
|
138
140
|
/**
|
|
139
141
|
* Normalize a ZonedDateTime to the polyfill implementation.
|
|
@@ -217,6 +219,13 @@ declare class RRuleTemporal<TOutput extends TemporalZonedDateTimeInput = Tempora
|
|
|
217
219
|
private matchesBySecond;
|
|
218
220
|
private matchesAll;
|
|
219
221
|
private matchesByYearDay;
|
|
222
|
+
/**
|
|
223
|
+
* The day of the year that negative BYYEARDAY values count back from: the
|
|
224
|
+
* end of month 12. Calendars with a 13th month end later, so code that
|
|
225
|
+
* seeks year days must use this rather than daysInYear to agree with
|
|
226
|
+
* matchesByYearDay.
|
|
227
|
+
*/
|
|
228
|
+
private lastByYearDay;
|
|
220
229
|
private getIsoWeekInfo;
|
|
221
230
|
private matchesByWeekNo;
|
|
222
231
|
/**
|
|
@@ -237,6 +246,14 @@ declare class RRuleTemporal<TOutput extends TemporalZonedDateTimeInput = Tempora
|
|
|
237
246
|
* ```
|
|
238
247
|
*/
|
|
239
248
|
with(updates: Partial<ManualOptions<TOutput>>): RRuleTemporal<TOutput>;
|
|
249
|
+
/**
|
|
250
|
+
* Whether the rule itself generates DTSTART, so includeDtstart must not add
|
|
251
|
+
* it again. The BYxxx filters decide this unless BYSETPOS is present: it can
|
|
252
|
+
* skip a DTSTART that every filter accepts, as a last-Friday rule skips any
|
|
253
|
+
* other Friday. Then the rule, generated without includeDtstart, must start
|
|
254
|
+
* at DTSTART.
|
|
255
|
+
*/
|
|
256
|
+
private dtstartIsOccurrence;
|
|
240
257
|
private addDtstartIfNeeded;
|
|
241
258
|
private canUseUtcLinearFastPath;
|
|
242
259
|
private canUseUtcWeeklyFastPath;
|
|
@@ -264,6 +281,12 @@ declare class RRuleTemporal<TOutput extends TemporalZonedDateTimeInput = Tempora
|
|
|
264
281
|
private buildYearlyNumericQueryPlan;
|
|
265
282
|
private buildNumericQueryPlan;
|
|
266
283
|
private getNumericQueryPlan;
|
|
284
|
+
/**
|
|
285
|
+
* Build the period plan for a rule without COUNT. Eligibility mirrors the
|
|
286
|
+
* COUNT plans above, and periods reuse their calendar generators.
|
|
287
|
+
*/
|
|
288
|
+
private buildPeriodQueryPlan;
|
|
289
|
+
private getPeriodQueryPlan;
|
|
267
290
|
private findFirstMatchingDailyStep;
|
|
268
291
|
private allUtcFastPath;
|
|
269
292
|
private _allUtcFixedStepSimple;
|
|
@@ -293,6 +316,12 @@ declare class RRuleTemporal<TOutput extends TemporalZonedDateTimeInput = Tempora
|
|
|
293
316
|
* rules on the general engine, which omits invalid slots before BYSETPOS and COUNT.
|
|
294
317
|
*/
|
|
295
318
|
private tzFastPathGapHazard;
|
|
319
|
+
/**
|
|
320
|
+
* An upper bound on the wall-clock span from DTSTART to the last of the
|
|
321
|
+
* first `count` occurrences the DAILY and WEEKLY TZ fast paths emit, or
|
|
322
|
+
* undefined when none is known. Each allows a period of candidates before DTSTART.
|
|
323
|
+
*/
|
|
324
|
+
private tzFastPathCountSpanMs;
|
|
296
325
|
private allTzEpochFastPath;
|
|
297
326
|
private _allTzDailySimple;
|
|
298
327
|
private _allTzDailyExpanded;
|
|
@@ -316,6 +345,19 @@ declare class RRuleTemporal<TOutput extends TemporalZonedDateTimeInput = Tempora
|
|
|
316
345
|
private _allMonthlyByYearDay;
|
|
317
346
|
private _allDailyMinutelyHourlyWithBySetPos;
|
|
318
347
|
private _allFallback;
|
|
348
|
+
/**
|
|
349
|
+
* HOURLY, MINUTELY, and SECONDLY rules with BYxxx parts (RFC 5545 3.3.10).
|
|
350
|
+
* Periods begin at DTSTART + k * INTERVAL units in exact time, the set the
|
|
351
|
+
* rule has without BYxxx parts (HOURLY;INTERVAL=1 visits a repeated wall hour
|
|
352
|
+
* once, as rawAdvance() does). Parts at or above the frequency's own unit
|
|
353
|
+
* limit which periods occur; BYMINUTE/BYSECOND below it expand a period, and
|
|
354
|
+
* BYSETPOS selects within each period. A period outside the limits jumps to
|
|
355
|
+
* the first period of the next window that can satisfy them.
|
|
356
|
+
*/
|
|
357
|
+
private _allSubDailyPeriods;
|
|
358
|
+
private matchesSubDailyDate;
|
|
359
|
+
/** A later date that may satisfy the date-level parts; none before it can. */
|
|
360
|
+
private nextSubDailyDateCandidate;
|
|
319
361
|
/** Calendar periods advance independently of the dates and times they emit.
|
|
320
362
|
* Invalid inherited dates and nonexistent wall times do not consume COUNT
|
|
321
363
|
* or change DTSTART's fields for the following period (RFC 5545 3.3.10).
|
|
@@ -373,6 +415,34 @@ declare class RRuleTemporal<TOutput extends TemporalZonedDateTimeInput = Tempora
|
|
|
373
415
|
private tryNumericNext;
|
|
374
416
|
private tryNumericPrevious;
|
|
375
417
|
private tryNumericBetween;
|
|
418
|
+
/**
|
|
419
|
+
* Periods a plan may scan while the general engine it replaces stays within
|
|
420
|
+
* maxIterations and maxCandidateEvaluations. previous() backs its search off
|
|
421
|
+
* in powers of four, so its engine can visit four times the periods scanned.
|
|
422
|
+
*/
|
|
423
|
+
private periodScanBudget;
|
|
424
|
+
/** Resolve a period's wall times, or null when any needs the general engine (e.g. a DST gap). */
|
|
425
|
+
private resolvePeriodEpochs;
|
|
426
|
+
private isExcludedEpochMilliseconds;
|
|
427
|
+
/**
|
|
428
|
+
* First RRULE instant at or after `lowerMs` that EXDATE does not remove. An
|
|
429
|
+
* instant after `stopAfterMs` is returned unchecked: a caller holding an
|
|
430
|
+
* earlier RDATE needs no later rule instant. Returns null when UNTIL ends the
|
|
431
|
+
* rule first, and undefined when the general engine must answer.
|
|
432
|
+
*/
|
|
433
|
+
private periodScanForward;
|
|
434
|
+
/**
|
|
435
|
+
* Last RRULE instant at or before `upperMs` (and UNTIL) that EXDATE does not
|
|
436
|
+
* remove. An instant before `stopBeforeMs` is returned unchecked: a caller
|
|
437
|
+
* holding a later RDATE needs no earlier rule instant. Returns null before
|
|
438
|
+
* DTSTART, and undefined when the general engine must answer.
|
|
439
|
+
*/
|
|
440
|
+
private periodScanBackward;
|
|
441
|
+
/** RRULE instants in [lowerMs, upperMs] without EXDATEs, or null when the general engine must answer. */
|
|
442
|
+
private periodEpochsBetween;
|
|
443
|
+
private tryPeriodNext;
|
|
444
|
+
private tryPeriodPrevious;
|
|
445
|
+
private tryPeriodBetween;
|
|
376
446
|
/**
|
|
377
447
|
* Returns all occurrences of the rule within a specified time window.
|
|
378
448
|
* @param after - The start date or Temporal.ZonedDateTime object.
|
package/dist/index.d.ts
CHANGED
|
@@ -134,6 +134,8 @@ declare class RRuleTemporal<TOutput extends TemporalZonedDateTimeInput = Tempora
|
|
|
134
134
|
private zoneResolver?;
|
|
135
135
|
private emitAnchorZdt?;
|
|
136
136
|
private numericQueryPlanCache;
|
|
137
|
+
private periodQueryPlanCache;
|
|
138
|
+
private dtstartIsOccurrenceCache?;
|
|
137
139
|
private static readonly rscaleCalendarSupport;
|
|
138
140
|
/**
|
|
139
141
|
* Normalize a ZonedDateTime to the polyfill implementation.
|
|
@@ -217,6 +219,13 @@ declare class RRuleTemporal<TOutput extends TemporalZonedDateTimeInput = Tempora
|
|
|
217
219
|
private matchesBySecond;
|
|
218
220
|
private matchesAll;
|
|
219
221
|
private matchesByYearDay;
|
|
222
|
+
/**
|
|
223
|
+
* The day of the year that negative BYYEARDAY values count back from: the
|
|
224
|
+
* end of month 12. Calendars with a 13th month end later, so code that
|
|
225
|
+
* seeks year days must use this rather than daysInYear to agree with
|
|
226
|
+
* matchesByYearDay.
|
|
227
|
+
*/
|
|
228
|
+
private lastByYearDay;
|
|
220
229
|
private getIsoWeekInfo;
|
|
221
230
|
private matchesByWeekNo;
|
|
222
231
|
/**
|
|
@@ -237,6 +246,14 @@ declare class RRuleTemporal<TOutput extends TemporalZonedDateTimeInput = Tempora
|
|
|
237
246
|
* ```
|
|
238
247
|
*/
|
|
239
248
|
with(updates: Partial<ManualOptions<TOutput>>): RRuleTemporal<TOutput>;
|
|
249
|
+
/**
|
|
250
|
+
* Whether the rule itself generates DTSTART, so includeDtstart must not add
|
|
251
|
+
* it again. The BYxxx filters decide this unless BYSETPOS is present: it can
|
|
252
|
+
* skip a DTSTART that every filter accepts, as a last-Friday rule skips any
|
|
253
|
+
* other Friday. Then the rule, generated without includeDtstart, must start
|
|
254
|
+
* at DTSTART.
|
|
255
|
+
*/
|
|
256
|
+
private dtstartIsOccurrence;
|
|
240
257
|
private addDtstartIfNeeded;
|
|
241
258
|
private canUseUtcLinearFastPath;
|
|
242
259
|
private canUseUtcWeeklyFastPath;
|
|
@@ -264,6 +281,12 @@ declare class RRuleTemporal<TOutput extends TemporalZonedDateTimeInput = Tempora
|
|
|
264
281
|
private buildYearlyNumericQueryPlan;
|
|
265
282
|
private buildNumericQueryPlan;
|
|
266
283
|
private getNumericQueryPlan;
|
|
284
|
+
/**
|
|
285
|
+
* Build the period plan for a rule without COUNT. Eligibility mirrors the
|
|
286
|
+
* COUNT plans above, and periods reuse their calendar generators.
|
|
287
|
+
*/
|
|
288
|
+
private buildPeriodQueryPlan;
|
|
289
|
+
private getPeriodQueryPlan;
|
|
267
290
|
private findFirstMatchingDailyStep;
|
|
268
291
|
private allUtcFastPath;
|
|
269
292
|
private _allUtcFixedStepSimple;
|
|
@@ -293,6 +316,12 @@ declare class RRuleTemporal<TOutput extends TemporalZonedDateTimeInput = Tempora
|
|
|
293
316
|
* rules on the general engine, which omits invalid slots before BYSETPOS and COUNT.
|
|
294
317
|
*/
|
|
295
318
|
private tzFastPathGapHazard;
|
|
319
|
+
/**
|
|
320
|
+
* An upper bound on the wall-clock span from DTSTART to the last of the
|
|
321
|
+
* first `count` occurrences the DAILY and WEEKLY TZ fast paths emit, or
|
|
322
|
+
* undefined when none is known. Each allows a period of candidates before DTSTART.
|
|
323
|
+
*/
|
|
324
|
+
private tzFastPathCountSpanMs;
|
|
296
325
|
private allTzEpochFastPath;
|
|
297
326
|
private _allTzDailySimple;
|
|
298
327
|
private _allTzDailyExpanded;
|
|
@@ -316,6 +345,19 @@ declare class RRuleTemporal<TOutput extends TemporalZonedDateTimeInput = Tempora
|
|
|
316
345
|
private _allMonthlyByYearDay;
|
|
317
346
|
private _allDailyMinutelyHourlyWithBySetPos;
|
|
318
347
|
private _allFallback;
|
|
348
|
+
/**
|
|
349
|
+
* HOURLY, MINUTELY, and SECONDLY rules with BYxxx parts (RFC 5545 3.3.10).
|
|
350
|
+
* Periods begin at DTSTART + k * INTERVAL units in exact time, the set the
|
|
351
|
+
* rule has without BYxxx parts (HOURLY;INTERVAL=1 visits a repeated wall hour
|
|
352
|
+
* once, as rawAdvance() does). Parts at or above the frequency's own unit
|
|
353
|
+
* limit which periods occur; BYMINUTE/BYSECOND below it expand a period, and
|
|
354
|
+
* BYSETPOS selects within each period. A period outside the limits jumps to
|
|
355
|
+
* the first period of the next window that can satisfy them.
|
|
356
|
+
*/
|
|
357
|
+
private _allSubDailyPeriods;
|
|
358
|
+
private matchesSubDailyDate;
|
|
359
|
+
/** A later date that may satisfy the date-level parts; none before it can. */
|
|
360
|
+
private nextSubDailyDateCandidate;
|
|
319
361
|
/** Calendar periods advance independently of the dates and times they emit.
|
|
320
362
|
* Invalid inherited dates and nonexistent wall times do not consume COUNT
|
|
321
363
|
* or change DTSTART's fields for the following period (RFC 5545 3.3.10).
|
|
@@ -373,6 +415,34 @@ declare class RRuleTemporal<TOutput extends TemporalZonedDateTimeInput = Tempora
|
|
|
373
415
|
private tryNumericNext;
|
|
374
416
|
private tryNumericPrevious;
|
|
375
417
|
private tryNumericBetween;
|
|
418
|
+
/**
|
|
419
|
+
* Periods a plan may scan while the general engine it replaces stays within
|
|
420
|
+
* maxIterations and maxCandidateEvaluations. previous() backs its search off
|
|
421
|
+
* in powers of four, so its engine can visit four times the periods scanned.
|
|
422
|
+
*/
|
|
423
|
+
private periodScanBudget;
|
|
424
|
+
/** Resolve a period's wall times, or null when any needs the general engine (e.g. a DST gap). */
|
|
425
|
+
private resolvePeriodEpochs;
|
|
426
|
+
private isExcludedEpochMilliseconds;
|
|
427
|
+
/**
|
|
428
|
+
* First RRULE instant at or after `lowerMs` that EXDATE does not remove. An
|
|
429
|
+
* instant after `stopAfterMs` is returned unchecked: a caller holding an
|
|
430
|
+
* earlier RDATE needs no later rule instant. Returns null when UNTIL ends the
|
|
431
|
+
* rule first, and undefined when the general engine must answer.
|
|
432
|
+
*/
|
|
433
|
+
private periodScanForward;
|
|
434
|
+
/**
|
|
435
|
+
* Last RRULE instant at or before `upperMs` (and UNTIL) that EXDATE does not
|
|
436
|
+
* remove. An instant before `stopBeforeMs` is returned unchecked: a caller
|
|
437
|
+
* holding a later RDATE needs no earlier rule instant. Returns null before
|
|
438
|
+
* DTSTART, and undefined when the general engine must answer.
|
|
439
|
+
*/
|
|
440
|
+
private periodScanBackward;
|
|
441
|
+
/** RRULE instants in [lowerMs, upperMs] without EXDATEs, or null when the general engine must answer. */
|
|
442
|
+
private periodEpochsBetween;
|
|
443
|
+
private tryPeriodNext;
|
|
444
|
+
private tryPeriodPrevious;
|
|
445
|
+
private tryPeriodBetween;
|
|
376
446
|
/**
|
|
377
447
|
* Returns all occurrences of the rule within a specified time window.
|
|
378
448
|
* @param after - The start date or Temporal.ZonedDateTime object.
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as e,n as t,r as n,t as r}from"./src-
|
|
1
|
+
import{i as e,n as t,r as n,t as r}from"./src-vjCiI_-u.js";export{r as RRuleTemporal,t as allowedFreq,n as allowedWeekdays,e as weekdayToIsoDay};
|