rrule-temporal 2.2.6 → 2.2.7

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 CHANGED
@@ -318,6 +318,38 @@ Notes
318
318
 
319
319
  ## Benchmarks
320
320
 
321
+ ### Queries without COUNT and sub-daily rules (v2.2.7)
322
+
323
+ Measured September 23, 2026 on an Apple M2 Max with Node 25.2.1 and the
324
+ bundled Temporal polyfill, comparing builds of `v2.2.6` and v2.2.7. Every
325
+ scenario returned identical results from both builds before timing. Query rows
326
+ are warm medians per call, generation rows are uncached `all()` calls with the
327
+ builds alternating each sample, and the last row is the first `all()` in a
328
+ fresh process (median of 15).
329
+
330
+ | Scenario | v2.2.6 | v2.2.7 | Speedup |
331
+ | --- | ---: | ---: | ---: |
332
+ | WEEKLY M/W/F `next()`, no end, UTC | 61.25 us | 0.69 us | 88.77x |
333
+ | WEEKLY M/W/F `next()`, 40 EXDATEs, no end, Chicago | 157.5 us | 1.33 us | 118x |
334
+ | WEEKLY M/W/F `between()` one month, no end, UTC | 36.22 us | 6.40 us | 5.66x |
335
+ | MONTHLY last Friday `next()`, no end, Chicago | 68.79 us | 1.39 us | 49.49x |
336
+ | YEARLY `previous()`, no end, Chicago | 79.11 us | 2.23 us | 35.48x |
337
+ | UTC WEEKLY M/W/F with RDATE/EXDATE, `all()`, COUNT 1,000 | 12.555 ms | 0.697 ms | 18.02x |
338
+ | HOURLY quarter hours, `all()`, COUNT 1,000, UTC | 3.967 ms | 1.073 ms | 3.70x |
339
+ | MINUTELY 9:00-16:45 quarter hours, `all()`, COUNT 1,000, Chicago | 4.516 ms | 2.034 ms | 2.22x |
340
+ | Chicago weekdays, first `all()` in a fresh process | 23.282 ms | 4.593 ms | 5.07x |
341
+
342
+ Queries on unbounded and UNTIL-bound rules, the usual calendar case, now visit
343
+ only the recurrence periods around the target instead of replaying the rule
344
+ through Temporal. Sub-daily rules with BYxxx parts run on a new integer engine,
345
+ which also fixes their INTERVAL cadence, and timezone tables are built from
346
+ Temporal's own transitions. In the same runs, the 13 COUNT-bound query
347
+ scenarios measured 0.93-2.81x and the 29 existing generation scenarios
348
+ 0.93-1.18x; isolated re-runs of the lowest cases were within 2% of v2.2.6.
349
+
350
+ See [`benchmarks/README.md`](benchmarks/README.md) for every scenario, raw
351
+ measurements, and the reproduction commands.
352
+
321
353
  ### UTC generation improvements (v2.2.4)
322
354
 
323
355
  Measured September 5, 2026 on an Apple M2 Max with Node 25.2.1 and the
@@ -355,68 +387,70 @@ measurements, and the reproduction command.
355
387
 
356
388
  ### COUNT-bound queries
357
389
 
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.
390
+ Measured September 24, 2026 on an Apple M2 Max with Node 25.2.1, comparing
391
+ the exact `v2.2.2` tag (`6be2251`) with v2.2.7. The table reports warmed median
392
+ time per call from seven 300 ms samples after a 250 ms warmup; lower is better.
393
+ Each build ran three times in alternating processes, and the table shows the
394
+ median run. Both builds returned identical results, and v2.2.7 uses the
395
+ production-minified bundle described below.
363
396
 
364
- | Scenario | v2.2.2 | v2.2.3 | Speedup |
397
+ | Scenario | v2.2.2 | v2.2.7 | Speedup |
365
398
  | --- | ---: | ---: | ---: |
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 |
399
+ | SECONDLY next, COUNT 128, rank 63 | 9.44 us | 0.49 us | 19.27x |
400
+ | SECONDLY next, COUNT 250k, rank 200k | 9.38 us | 0.52 us | 18.04x |
401
+ | DAILY next, COUNT 9k, rank 8.5k, UTC | 9.80 us | 1.11 us | 8.83x |
402
+ | DAILY previous, COUNT 9k, rank 8.5k, Chicago | 12.64 us | 2.39 us | 5.29x |
403
+ | DAILY weekdays next, COUNT 9k, distant, UTC | 10.00 us | 1.22 us | 8.20x |
404
+ | DAILY slots narrow between, COUNT 9k, UTC | 32.88 us | 5.86 us | 5.61x |
405
+ | WEEKLY M/W/F slots next, COUNT 9k, UTC | 10.58 us | 1.27 us | 8.33x |
406
+ | MONTHLY last weekday next, COUNT 9k, UTC | 31.55 us | 21.28 us | 1.48x |
407
+ | MONTHLY last weekday next, COUNT 128, rank 63 | 21.99 us | 11.70 us | 1.88x |
408
+ | SECONDLY `occursOn()`, COUNT 100k | 254.7 ms | 9.35 us | 27,241x |
409
+ | DAILY RDATE/EXDATE next, COUNT 9k, rank 8.5k | 53.0 ms | 1.61 us | 32,919x |
410
+ | YEARLY BYMONTH/BYMONTHDAY next, COUNT 9k, rank 8.5k | 388.9 ms | 7.41 us | 52,483x |
411
+ | SECONDLY `all()`, COUNT 3.6k, explicit Temporal output | 42.9 ms | 18.7 ms | 2.29x |
379
412
 
380
413
  The named-zone cold call still includes lazy transition-table construction;
381
414
  the query harness prints cold timings and each sample's warm range.
382
415
 
383
416
  ### Full recurrence generation
384
417
 
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
418
+ Uncached median ops/s for v2.2.7, measured September 23, 2026 on the same
419
+ Apple M2 Max with Node 25.2.1 using the polyfill backend and `rrule` 2.8.1.
420
+ Each result is the median of five 200 ms samples after a 200 ms warmup. The
421
+ production bundle is minified, which disables `temporal-polyfill`'s
422
+ development-only per-instance debug strings. The three-library comparison,
423
+ query methodology, and cached-mode summary live in
390
424
  [`benchmarks/README.md`](benchmarks/README.md).
391
425
 
392
426
  | Scenario | TZ | rrule-temporal median ops/s | rrule median ops/s | vs rrule |
393
427
  | --- | --- | ---: | ---: | ---: |
394
- | 30 daily occurrences | UTC | 75,108 | 15,200 | 4.94x |
395
- | 30 daily occurrences | America/Chicago | 32,314 | 342 | 94.49x |
396
- | Daily weekdays across many cycles | UTC | 3,889 | 739 | 5.26x |
397
- | Daily weekdays across many cycles | America/Chicago | 1,784 | 18.5 | 96.43x |
398
- | Daily time-slot expansion | UTC | 2,159 | 1,152 | 1.87x |
399
- | Daily time-slot expansion | America/Chicago | 949 | 11.0 | 86.27x |
400
- | 720 hourly occurrences | UTC | 2,862 | 729 | 3.93x |
401
- | 720 hourly occurrences | America/Chicago | 1,207 | 14.1 | 85.60x |
402
- | 1,440 minutely occurrences | UTC | 1,351 | 337 | 4.01x |
403
- | 1,440 minutely occurrences | America/Chicago | 639 | 6.0 | 106.50x |
404
- | 3,600 secondly occurrences | UTC | 534 | 126 | 4.24x |
405
- | 3,600 secondly occurrences | America/Chicago | 245 | 2.6 | 94.23x |
406
- | Weekly MO/WE/FR across many cycles | UTC | 2,193 | 1,095 | 2.00x |
407
- | Weekly MO/WE/FR across many cycles | America/Chicago | 979 | 14.6 | 67.05x |
408
- | Weekly day and time-slot expansion | UTC | 1,698 | 1,201 | 1.41x |
409
- | Weekly day and time-slot expansion | America/Chicago | 834 | 11.0 | 75.82x |
410
- | Monthly last weekday across 20 years | UTC | 2,042 | 1,023 | 2.00x |
411
- | Monthly last weekday across 20 years | America/Chicago | 1,549 | 36.7 | 42.21x |
412
- | Monthly first and last weekday across 20 years | UTC | 1,499 | 1,179 | 1.27x |
413
- | Monthly first and last weekday across 20 years | America/Chicago | 1,015 | 22.0 | 46.14x |
428
+ | 30 daily occurrences | UTC | 80,644 | 15,625 | 5.16x |
429
+ | 30 daily occurrences | America/Chicago | 34,793 | 288 | 120.81x |
430
+ | Daily weekdays across many cycles | UTC | 4,015 | 747 | 5.37x |
431
+ | Daily weekdays across many cycles | America/Chicago | 2,021 | 19.4 | 104.18x |
432
+ | Daily time-slot expansion | UTC | 2,365 | 1,045 | 2.26x |
433
+ | Daily time-slot expansion | America/Chicago | 1,076 | 11.5 | 93.57x |
434
+ | 720 hourly occurrences | UTC | 2,744 | 705 | 3.89x |
435
+ | 720 hourly occurrences | America/Chicago | 1,382 | 13.4 | 103.13x |
436
+ | 1,440 minutely occurrences | UTC | 1,740 | 337 | 5.16x |
437
+ | 1,440 minutely occurrences | America/Chicago | 771 | 7.1 | 108.59x |
438
+ | 3,600 secondly occurrences | UTC | 532 | 129 | 4.12x |
439
+ | 3,600 secondly occurrences | America/Chicago | 296 | 2.9 | 102.07x |
440
+ | Weekly MO/WE/FR across many cycles | UTC | 2,842 | 1,116 | 2.55x |
441
+ | Weekly MO/WE/FR across many cycles | America/Chicago | 1,235 | 14.5 | 85.17x |
442
+ | Weekly day and time-slot expansion | UTC | 1,784 | 1,174 | 1.52x |
443
+ | Weekly day and time-slot expansion | America/Chicago | 987 | 11.2 | 88.12x |
444
+ | Monthly last weekday across 20 years | UTC | 2,252 | 1,027 | 2.19x |
445
+ | Monthly last weekday across 20 years | America/Chicago | 1,681 | 44.2 | 38.03x |
446
+ | Monthly first and last weekday across 20 years | UTC | 1,757 | 1,042 | 1.69x |
447
+ | Monthly first and last weekday across 20 years | America/Chicago | 1,068 | 23.1 | 46.23x |
414
448
 
415
449
  Time-zone-aware rules iterate through an epoch-integer engine with a cached
416
- per-zone offset table, so named-zone scenarios ran 42-107x faster than `rrule`
450
+ per-zone offset table, so named-zone scenarios ran 38-121x faster than `rrule`
417
451
  in this pass. Minifying the production bundle removes polyfill debug
418
452
  instrumentation from occurrence materialization, making UTC generation
419
- 1.27-5.26x faster than `rrule` across every scenario. Earlier native-Temporal
453
+ 1.52-5.37x faster than `rrule` across every scenario. Earlier native-Temporal
420
454
  measurements are retained in the detailed benchmark README but were not rerun
421
455
  in this Node 25/polyfill pass. Repeated `all()` calls on the same rule instance
422
456
  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-5ULu8Hra.cjs`);exports.RRuleTemporal=e.t,exports.allowedFreq=e.n,exports.allowedWeekdays=e.r,exports.weekdayToIsoDay=e.i;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./src-Dm68fCwO.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,7 @@ declare class RRuleTemporal<TOutput extends TemporalZonedDateTimeInput = Tempora
134
134
  private zoneResolver?;
135
135
  private emitAnchorZdt?;
136
136
  private numericQueryPlanCache;
137
+ private periodQueryPlanCache;
137
138
  private static readonly rscaleCalendarSupport;
138
139
  /**
139
140
  * Normalize a ZonedDateTime to the polyfill implementation.
@@ -217,6 +218,13 @@ declare class RRuleTemporal<TOutput extends TemporalZonedDateTimeInput = Tempora
217
218
  private matchesBySecond;
218
219
  private matchesAll;
219
220
  private matchesByYearDay;
221
+ /**
222
+ * The day of the year that negative BYYEARDAY values count back from: the
223
+ * end of month 12. Calendars with a 13th month end later, so code that
224
+ * seeks year days must use this rather than daysInYear to agree with
225
+ * matchesByYearDay.
226
+ */
227
+ private lastByYearDay;
220
228
  private getIsoWeekInfo;
221
229
  private matchesByWeekNo;
222
230
  /**
@@ -264,6 +272,12 @@ declare class RRuleTemporal<TOutput extends TemporalZonedDateTimeInput = Tempora
264
272
  private buildYearlyNumericQueryPlan;
265
273
  private buildNumericQueryPlan;
266
274
  private getNumericQueryPlan;
275
+ /**
276
+ * Build the period plan for a rule without COUNT. Eligibility mirrors the
277
+ * COUNT plans above, and periods reuse their calendar generators.
278
+ */
279
+ private buildPeriodQueryPlan;
280
+ private getPeriodQueryPlan;
267
281
  private findFirstMatchingDailyStep;
268
282
  private allUtcFastPath;
269
283
  private _allUtcFixedStepSimple;
@@ -293,6 +307,12 @@ declare class RRuleTemporal<TOutput extends TemporalZonedDateTimeInput = Tempora
293
307
  * rules on the general engine, which omits invalid slots before BYSETPOS and COUNT.
294
308
  */
295
309
  private tzFastPathGapHazard;
310
+ /**
311
+ * An upper bound on the wall-clock span from DTSTART to the last of the
312
+ * first `count` occurrences the DAILY and WEEKLY TZ fast paths emit, or
313
+ * undefined when none is known. Each allows a period of candidates before DTSTART.
314
+ */
315
+ private tzFastPathCountSpanMs;
296
316
  private allTzEpochFastPath;
297
317
  private _allTzDailySimple;
298
318
  private _allTzDailyExpanded;
@@ -316,6 +336,19 @@ declare class RRuleTemporal<TOutput extends TemporalZonedDateTimeInput = Tempora
316
336
  private _allMonthlyByYearDay;
317
337
  private _allDailyMinutelyHourlyWithBySetPos;
318
338
  private _allFallback;
339
+ /**
340
+ * HOURLY, MINUTELY, and SECONDLY rules with BYxxx parts (RFC 5545 3.3.10).
341
+ * Periods begin at DTSTART + k * INTERVAL units in exact time, the set the
342
+ * rule has without BYxxx parts (HOURLY;INTERVAL=1 visits a repeated wall hour
343
+ * once, as rawAdvance() does). Parts at or above the frequency's own unit
344
+ * limit which periods occur; BYMINUTE/BYSECOND below it expand a period, and
345
+ * BYSETPOS selects within each period. A period outside the limits jumps to
346
+ * the first period of the next window that can satisfy them.
347
+ */
348
+ private _allSubDailyPeriods;
349
+ private matchesSubDailyDate;
350
+ /** A later date that may satisfy the date-level parts; none before it can. */
351
+ private nextSubDailyDateCandidate;
319
352
  /** Calendar periods advance independently of the dates and times they emit.
320
353
  * Invalid inherited dates and nonexistent wall times do not consume COUNT
321
354
  * or change DTSTART's fields for the following period (RFC 5545 3.3.10).
@@ -373,6 +406,34 @@ declare class RRuleTemporal<TOutput extends TemporalZonedDateTimeInput = Tempora
373
406
  private tryNumericNext;
374
407
  private tryNumericPrevious;
375
408
  private tryNumericBetween;
409
+ /**
410
+ * Periods a plan may scan while the general engine it replaces stays within
411
+ * maxIterations and maxCandidateEvaluations. previous() backs its search off
412
+ * in powers of four, so its engine can visit four times the periods scanned.
413
+ */
414
+ private periodScanBudget;
415
+ /** Resolve a period's wall times, or null when any needs the general engine (e.g. a DST gap). */
416
+ private resolvePeriodEpochs;
417
+ private isExcludedEpochMilliseconds;
418
+ /**
419
+ * First RRULE instant at or after `lowerMs` that EXDATE does not remove. An
420
+ * instant after `stopAfterMs` is returned unchecked: a caller holding an
421
+ * earlier RDATE needs no later rule instant. Returns null when UNTIL ends the
422
+ * rule first, and undefined when the general engine must answer.
423
+ */
424
+ private periodScanForward;
425
+ /**
426
+ * Last RRULE instant at or before `upperMs` (and UNTIL) that EXDATE does not
427
+ * remove. An instant before `stopBeforeMs` is returned unchecked: a caller
428
+ * holding a later RDATE needs no earlier rule instant. Returns null before
429
+ * DTSTART, and undefined when the general engine must answer.
430
+ */
431
+ private periodScanBackward;
432
+ /** RRULE instants in [lowerMs, upperMs] without EXDATEs, or null when the general engine must answer. */
433
+ private periodEpochsBetween;
434
+ private tryPeriodNext;
435
+ private tryPeriodPrevious;
436
+ private tryPeriodBetween;
376
437
  /**
377
438
  * Returns all occurrences of the rule within a specified time window.
378
439
  * @param after - The start date or Temporal.ZonedDateTime object.
package/dist/index.d.ts CHANGED
@@ -134,6 +134,7 @@ declare class RRuleTemporal<TOutput extends TemporalZonedDateTimeInput = Tempora
134
134
  private zoneResolver?;
135
135
  private emitAnchorZdt?;
136
136
  private numericQueryPlanCache;
137
+ private periodQueryPlanCache;
137
138
  private static readonly rscaleCalendarSupport;
138
139
  /**
139
140
  * Normalize a ZonedDateTime to the polyfill implementation.
@@ -217,6 +218,13 @@ declare class RRuleTemporal<TOutput extends TemporalZonedDateTimeInput = Tempora
217
218
  private matchesBySecond;
218
219
  private matchesAll;
219
220
  private matchesByYearDay;
221
+ /**
222
+ * The day of the year that negative BYYEARDAY values count back from: the
223
+ * end of month 12. Calendars with a 13th month end later, so code that
224
+ * seeks year days must use this rather than daysInYear to agree with
225
+ * matchesByYearDay.
226
+ */
227
+ private lastByYearDay;
220
228
  private getIsoWeekInfo;
221
229
  private matchesByWeekNo;
222
230
  /**
@@ -264,6 +272,12 @@ declare class RRuleTemporal<TOutput extends TemporalZonedDateTimeInput = Tempora
264
272
  private buildYearlyNumericQueryPlan;
265
273
  private buildNumericQueryPlan;
266
274
  private getNumericQueryPlan;
275
+ /**
276
+ * Build the period plan for a rule without COUNT. Eligibility mirrors the
277
+ * COUNT plans above, and periods reuse their calendar generators.
278
+ */
279
+ private buildPeriodQueryPlan;
280
+ private getPeriodQueryPlan;
267
281
  private findFirstMatchingDailyStep;
268
282
  private allUtcFastPath;
269
283
  private _allUtcFixedStepSimple;
@@ -293,6 +307,12 @@ declare class RRuleTemporal<TOutput extends TemporalZonedDateTimeInput = Tempora
293
307
  * rules on the general engine, which omits invalid slots before BYSETPOS and COUNT.
294
308
  */
295
309
  private tzFastPathGapHazard;
310
+ /**
311
+ * An upper bound on the wall-clock span from DTSTART to the last of the
312
+ * first `count` occurrences the DAILY and WEEKLY TZ fast paths emit, or
313
+ * undefined when none is known. Each allows a period of candidates before DTSTART.
314
+ */
315
+ private tzFastPathCountSpanMs;
296
316
  private allTzEpochFastPath;
297
317
  private _allTzDailySimple;
298
318
  private _allTzDailyExpanded;
@@ -316,6 +336,19 @@ declare class RRuleTemporal<TOutput extends TemporalZonedDateTimeInput = Tempora
316
336
  private _allMonthlyByYearDay;
317
337
  private _allDailyMinutelyHourlyWithBySetPos;
318
338
  private _allFallback;
339
+ /**
340
+ * HOURLY, MINUTELY, and SECONDLY rules with BYxxx parts (RFC 5545 3.3.10).
341
+ * Periods begin at DTSTART + k * INTERVAL units in exact time, the set the
342
+ * rule has without BYxxx parts (HOURLY;INTERVAL=1 visits a repeated wall hour
343
+ * once, as rawAdvance() does). Parts at or above the frequency's own unit
344
+ * limit which periods occur; BYMINUTE/BYSECOND below it expand a period, and
345
+ * BYSETPOS selects within each period. A period outside the limits jumps to
346
+ * the first period of the next window that can satisfy them.
347
+ */
348
+ private _allSubDailyPeriods;
349
+ private matchesSubDailyDate;
350
+ /** A later date that may satisfy the date-level parts; none before it can. */
351
+ private nextSubDailyDateCandidate;
319
352
  /** Calendar periods advance independently of the dates and times they emit.
320
353
  * Invalid inherited dates and nonexistent wall times do not consume COUNT
321
354
  * or change DTSTART's fields for the following period (RFC 5545 3.3.10).
@@ -373,6 +406,34 @@ declare class RRuleTemporal<TOutput extends TemporalZonedDateTimeInput = Tempora
373
406
  private tryNumericNext;
374
407
  private tryNumericPrevious;
375
408
  private tryNumericBetween;
409
+ /**
410
+ * Periods a plan may scan while the general engine it replaces stays within
411
+ * maxIterations and maxCandidateEvaluations. previous() backs its search off
412
+ * in powers of four, so its engine can visit four times the periods scanned.
413
+ */
414
+ private periodScanBudget;
415
+ /** Resolve a period's wall times, or null when any needs the general engine (e.g. a DST gap). */
416
+ private resolvePeriodEpochs;
417
+ private isExcludedEpochMilliseconds;
418
+ /**
419
+ * First RRULE instant at or after `lowerMs` that EXDATE does not remove. An
420
+ * instant after `stopAfterMs` is returned unchecked: a caller holding an
421
+ * earlier RDATE needs no later rule instant. Returns null when UNTIL ends the
422
+ * rule first, and undefined when the general engine must answer.
423
+ */
424
+ private periodScanForward;
425
+ /**
426
+ * Last RRULE instant at or before `upperMs` (and UNTIL) that EXDATE does not
427
+ * remove. An instant before `stopBeforeMs` is returned unchecked: a caller
428
+ * holding a later RDATE needs no earlier rule instant. Returns null before
429
+ * DTSTART, and undefined when the general engine must answer.
430
+ */
431
+ private periodScanBackward;
432
+ /** RRULE instants in [lowerMs, upperMs] without EXDATEs, or null when the general engine must answer. */
433
+ private periodEpochsBetween;
434
+ private tryPeriodNext;
435
+ private tryPeriodPrevious;
436
+ private tryPeriodBetween;
376
437
  /**
377
438
  * Returns all occurrences of the rule within a specified time window.
378
439
  * @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-D9fIlUxz.js";export{r as RRuleTemporal,t as allowedFreq,n as allowedWeekdays,e as weekdayToIsoDay};
1
+ import{i as e,n as t,r as n,t as r}from"./src-C8UqcHkR.js";export{r as RRuleTemporal,t as allowedFreq,n as allowedWeekdays,e as weekdayToIsoDay};