rrule-temporal 2.2.2 → 2.2.4
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 +94 -51
- package/dist/index.cjs +1 -6
- package/dist/index.d.cts +41 -4
- package/dist/index.d.ts +41 -4
- package/dist/index.js +1 -2
- package/dist/src-B5AtsWj2.js +2 -0
- package/dist/src-DpGQ_5iS.cjs +2 -0
- package/dist/totext.cjs +1 -951
- package/dist/totext.js +1 -950
- package/package.json +1 -1
- package/dist/src-B2AIB5jJ.cjs +0 -8389
- package/dist/src-B2XO5sNr.js +0 -8366
package/README.md
CHANGED
|
@@ -305,65 +305,108 @@ Notes
|
|
|
305
305
|
|
|
306
306
|
## Benchmarks
|
|
307
307
|
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
|
320
|
-
|
|
|
321
|
-
|
|
|
322
|
-
|
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
308
|
+
### UTC generation improvements (v2.2.4)
|
|
309
|
+
|
|
310
|
+
Measured September 5, 2026 on an Apple M2 Max with Node 25.2.1 and the
|
|
311
|
+
bundled Temporal polyfill, comparing a build of `v2.2.3` (`474c88c`) with the
|
|
312
|
+
v2.2.4 implementation after the DST fix (`0274381`). These are uncached
|
|
313
|
+
`all()` calls: seven samples of at least 300 ms after a 200 ms warmup,
|
|
314
|
+
alternating baseline/candidate order each sample. Rule construction is outside
|
|
315
|
+
the timings. Every scenario's complete result was compared against the baseline
|
|
316
|
+
before timing. These are local medians; sample ranges are recorded with the raw
|
|
317
|
+
results, and timings vary with machine load.
|
|
318
|
+
|
|
319
|
+
| UTC scenario | v2.2.3 | v2.2.4 | Speedup |
|
|
320
|
+
| --- | ---: | ---: | ---: |
|
|
321
|
+
| YEARLY last weekday, COUNT 1,000 | 1,866.627 ms | 27.755 ms | 67.25x |
|
|
322
|
+
| YEARLY quarterly months / two month days, COUNT 1,000 | 22.255 ms | 2.046 ms | 10.88x |
|
|
323
|
+
| MONTHLY weekdays / four time slots, COUNT 1,000 | 6.402 ms | 1.192 ms | 5.37x |
|
|
324
|
+
| MONTHLY first/last weekday time slots, COUNT 240 | 20.788 ms | 0.825 ms | 25.20x |
|
|
325
|
+
| DAILY RDATE/EXDATE, COUNT 1,000 | 3.645 ms | 0.720 ms | 5.06x |
|
|
326
|
+
|
|
327
|
+
UTC monthly/yearly generation now selects calendar days and BYSETPOS ranks
|
|
328
|
+
using integers, then constructs only the Temporal candidates that the visitor
|
|
329
|
+
consumes. Simple UTC DAILY/HOURLY/MINUTELY/SECONDLY rules retain their fast
|
|
330
|
+
generators when RDATE/EXDATE are present; exceptions are applied afterward in
|
|
331
|
+
recurrence-set order. Unsupported shapes retain the general engine, including
|
|
332
|
+
expanded exception rules whose iteration limits differ.
|
|
333
|
+
|
|
334
|
+
The release passed all 1,167 tests on both Temporal backends, plus CI on
|
|
335
|
+
Node 20, 24, and 26. The timings above use the polyfill only. The general
|
|
336
|
+
calendar engine now restores DTSTART's time after DST gaps; this has a cost
|
|
337
|
+
in fallback cases. The Chicago DAILY exception control measured 3.960 ms
|
|
338
|
+
for v2.2.3 and 4.840 ms for v2.2.4, about 22% slower in this run.
|
|
339
|
+
|
|
340
|
+
See [`benchmarks/README.md`](benchmarks/README.md) for all scenarios, raw
|
|
341
|
+
measurements, and the reproduction command.
|
|
342
|
+
|
|
343
|
+
### COUNT-bound queries
|
|
344
|
+
|
|
345
|
+
Measured September 3, 2026 on a MacBook Pro M2 Max with Node 25.2.1,
|
|
346
|
+
comparing the exact `v2.2.2` tag (`6be2251`) with `v2.2.3`. The table reports
|
|
347
|
+
warmed median time per call from seven 300 ms samples after a 250 ms warmup;
|
|
348
|
+
lower is better. Version 2.2.3 uses the production-minified bundle described
|
|
349
|
+
below.
|
|
350
|
+
|
|
351
|
+
| Scenario | v2.2.2 | v2.2.3 | Speedup |
|
|
352
|
+
| --- | ---: | ---: | ---: |
|
|
353
|
+
| SECONDLY next, COUNT 128, rank 63 | 9.53 us | 1.10 us | 8.66x |
|
|
354
|
+
| SECONDLY next, COUNT 250k, rank 200k | 9.53 us | 1.15 us | 8.29x |
|
|
355
|
+
| DAILY next, COUNT 9k, rank 8.5k, UTC | 10.36 us | 1.68 us | 6.17x |
|
|
356
|
+
| DAILY previous, COUNT 9k, rank 8.5k, Chicago | 13.08 us | 2.25 us | 5.81x |
|
|
357
|
+
| DAILY weekdays next, COUNT 9k, distant, UTC | 11.01 us | 1.93 us | 5.70x |
|
|
358
|
+
| DAILY slots narrow between, COUNT 9k, UTC | 34.82 us | 9.70 us | 3.59x |
|
|
359
|
+
| WEEKLY M/W/F slots next, COUNT 9k, UTC | 10.58 us | 1.78 us | 5.94x |
|
|
360
|
+
| MONTHLY last weekday next, COUNT 9k, UTC | 31.34 us | 22.88 us | 1.37x |
|
|
361
|
+
| MONTHLY last weekday next, COUNT 128, rank 63 | 21.32 us | 12.14 us | 1.76x |
|
|
362
|
+
| SECONDLY `occursOn()`, COUNT 100k | 254.4 ms | 7.84 us | 32,449x |
|
|
363
|
+
| DAILY RDATE/EXDATE next, COUNT 9k, rank 8.5k | 52.4 ms | 2.20 us | 23,818x |
|
|
364
|
+
| YEARLY BYMONTH/BYMONTHDAY next, COUNT 9k, rank 8.5k | 382.2 ms | 7.94 us | 48,136x |
|
|
365
|
+
| SECONDLY `all()`, COUNT 3.6k, explicit Temporal output | 41.4 ms | 19.6 ms | 2.11x |
|
|
366
|
+
|
|
367
|
+
The named-zone cold call still includes lazy transition-table construction;
|
|
368
|
+
the query harness prints cold timings and each sample's warm range.
|
|
326
369
|
|
|
327
370
|
### Full recurrence generation
|
|
328
371
|
|
|
329
|
-
Uncached median ops/s
|
|
330
|
-
|
|
331
|
-
after a 200 ms warmup. The
|
|
332
|
-
|
|
372
|
+
Uncached median ops/s from the same MacBook Pro M2 Max with Node 25.2.1 using
|
|
373
|
+
the polyfill backend and `rrule` 2.8.1. Each result is the median of five 200 ms
|
|
374
|
+
samples after a 200 ms warmup. The production bundle is minified, which
|
|
375
|
+
disables `temporal-polyfill`'s development-only per-instance debug strings. The
|
|
376
|
+
three-library comparison, query methodology, and cached-mode summary live in
|
|
377
|
+
[`benchmarks/README.md`](benchmarks/README.md).
|
|
333
378
|
|
|
334
379
|
| Scenario | TZ | rrule-temporal median ops/s | rrule median ops/s | vs rrule |
|
|
335
380
|
| --- | --- | ---: | ---: | ---: |
|
|
336
|
-
| 30 daily occurrences | UTC |
|
|
337
|
-
| 30 daily occurrences | America/Chicago |
|
|
338
|
-
| Daily weekdays across many cycles | UTC |
|
|
339
|
-
| Daily weekdays across many cycles | America/Chicago |
|
|
340
|
-
| Daily time-slot expansion | UTC |
|
|
341
|
-
| Daily time-slot expansion | America/Chicago |
|
|
342
|
-
| 720 hourly occurrences | UTC |
|
|
343
|
-
| 720 hourly occurrences | America/Chicago |
|
|
344
|
-
| 1,440 minutely occurrences | UTC |
|
|
345
|
-
| 1,440 minutely occurrences | America/Chicago |
|
|
346
|
-
| 3,600 secondly occurrences | UTC |
|
|
347
|
-
| 3,600 secondly occurrences | America/Chicago |
|
|
348
|
-
| Weekly MO/WE/FR across many cycles | UTC |
|
|
349
|
-
| Weekly MO/WE/FR across many cycles | America/Chicago |
|
|
350
|
-
| Weekly day and time-slot expansion | UTC |
|
|
351
|
-
| Weekly day and time-slot expansion | America/Chicago |
|
|
352
|
-
| Monthly last weekday across 20 years | UTC |
|
|
353
|
-
| Monthly last weekday across 20 years | America/Chicago |
|
|
354
|
-
| Monthly first and last weekday across 20 years | UTC |
|
|
355
|
-
| Monthly first and last weekday across 20 years | America/Chicago |
|
|
381
|
+
| 30 daily occurrences | UTC | 75,108 | 15,200 | 4.94x |
|
|
382
|
+
| 30 daily occurrences | America/Chicago | 32,314 | 342 | 94.49x |
|
|
383
|
+
| Daily weekdays across many cycles | UTC | 3,889 | 739 | 5.26x |
|
|
384
|
+
| Daily weekdays across many cycles | America/Chicago | 1,784 | 18.5 | 96.43x |
|
|
385
|
+
| Daily time-slot expansion | UTC | 2,159 | 1,152 | 1.87x |
|
|
386
|
+
| Daily time-slot expansion | America/Chicago | 949 | 11.0 | 86.27x |
|
|
387
|
+
| 720 hourly occurrences | UTC | 2,862 | 729 | 3.93x |
|
|
388
|
+
| 720 hourly occurrences | America/Chicago | 1,207 | 14.1 | 85.60x |
|
|
389
|
+
| 1,440 minutely occurrences | UTC | 1,351 | 337 | 4.01x |
|
|
390
|
+
| 1,440 minutely occurrences | America/Chicago | 639 | 6.0 | 106.50x |
|
|
391
|
+
| 3,600 secondly occurrences | UTC | 534 | 126 | 4.24x |
|
|
392
|
+
| 3,600 secondly occurrences | America/Chicago | 245 | 2.6 | 94.23x |
|
|
393
|
+
| Weekly MO/WE/FR across many cycles | UTC | 2,193 | 1,095 | 2.00x |
|
|
394
|
+
| Weekly MO/WE/FR across many cycles | America/Chicago | 979 | 14.6 | 67.05x |
|
|
395
|
+
| Weekly day and time-slot expansion | UTC | 1,698 | 1,201 | 1.41x |
|
|
396
|
+
| Weekly day and time-slot expansion | America/Chicago | 834 | 11.0 | 75.82x |
|
|
397
|
+
| Monthly last weekday across 20 years | UTC | 2,042 | 1,023 | 2.00x |
|
|
398
|
+
| Monthly last weekday across 20 years | America/Chicago | 1,549 | 36.7 | 42.21x |
|
|
399
|
+
| Monthly first and last weekday across 20 years | UTC | 1,499 | 1,179 | 1.27x |
|
|
400
|
+
| Monthly first and last weekday across 20 years | America/Chicago | 1,015 | 22.0 | 46.14x |
|
|
356
401
|
|
|
357
402
|
Time-zone-aware rules iterate through an epoch-integer engine with a cached
|
|
358
|
-
per-zone offset table, so named-zone scenarios
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
weekdays ~2,800 ops/s. Repeated `all()` calls on the same rule are served from
|
|
366
|
-
an internal cache (opt out per rule with `cache: false`).
|
|
403
|
+
per-zone offset table, so named-zone scenarios ran 42-107x faster than `rrule`
|
|
404
|
+
in this pass. Minifying the production bundle removes polyfill debug
|
|
405
|
+
instrumentation from occurrence materialization, making UTC generation
|
|
406
|
+
1.27-5.26x faster than `rrule` across every scenario. Earlier native-Temporal
|
|
407
|
+
measurements are retained in the detailed benchmark README but were not rerun
|
|
408
|
+
in this Node 25/polyfill pass. Repeated `all()` calls on the same rule instance
|
|
409
|
+
are served from an internal cache (opt out per rule with `cache: false`).
|
|
367
410
|
|
|
368
411
|
## Further examples
|
|
369
412
|
|
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,
|
|
2
|
-
const require_src = require("./src-B2AIB5jJ.cjs");
|
|
3
|
-
exports.RRuleTemporal = require_src.RRuleTemporal;
|
|
4
|
-
exports.allowedFreq = require_src.allowedFreq;
|
|
5
|
-
exports.allowedWeekdays = require_src.allowedWeekdays;
|
|
6
|
-
exports.weekdayToIsoDay = require_src.weekdayToIsoDay;
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./src-DpGQ_5iS.cjs`);exports.RRuleTemporal=e.t,exports.allowedFreq=e.n,exports.allowedWeekdays=e.r,exports.weekdayToIsoDay=e.i;
|
package/dist/index.d.cts
CHANGED
|
@@ -126,7 +126,10 @@ declare class RRuleTemporal<TOutput extends TemporalZonedDateTimeInput = Tempora
|
|
|
126
126
|
private readonly hasUniqueTimeSlotOffsets;
|
|
127
127
|
private readonly numericByMonths?;
|
|
128
128
|
private exDateEpochNs?;
|
|
129
|
+
private numericRDatesCache?;
|
|
129
130
|
private allResultCache?;
|
|
131
|
+
private publicAllResultCache?;
|
|
132
|
+
private outputConstructorFastPathAvailable?;
|
|
130
133
|
private zoneResolver?;
|
|
131
134
|
private emitAnchorZdt?;
|
|
132
135
|
private numericQueryPlanCache;
|
|
@@ -136,7 +139,6 @@ declare class RRuleTemporal<TOutput extends TemporalZonedDateTimeInput = Tempora
|
|
|
136
139
|
* This prevents type mismatches when mixing native and polyfill Temporal objects.
|
|
137
140
|
*/
|
|
138
141
|
private static normalizeToPolyfill;
|
|
139
|
-
private toInternalIterator;
|
|
140
142
|
private toPublicDate;
|
|
141
143
|
private toPublicDates;
|
|
142
144
|
constructor(params: RRuleOptions<TOutput>);
|
|
@@ -175,7 +177,29 @@ declare class RRuleTemporal<TOutput extends TemporalZonedDateTimeInput = Tempora
|
|
|
175
177
|
private visitDateTimeCandidates;
|
|
176
178
|
/** Apply BYSETPOS with bounded forward/reverse passes over one period. */
|
|
177
179
|
private visitPeriodCandidates;
|
|
180
|
+
/**
|
|
181
|
+
* In UTC, calendar days and sorted time slots form an ordered Cartesian
|
|
182
|
+
* product. Select positions and clip query bounds on integers, constructing
|
|
183
|
+
* Temporal values only for the candidates the visitor actually consumes.
|
|
184
|
+
* Keep the general visitor's work accounting, including both BYSETPOS passes.
|
|
185
|
+
*/
|
|
186
|
+
private visitUtcPeriodCandidates;
|
|
178
187
|
private nextCandidateSameDate;
|
|
188
|
+
/**
|
|
189
|
+
* Re-asserts the time of day an occurrence is supposed to have.
|
|
190
|
+
*
|
|
191
|
+
* A BYxxx part wins where one is given. Where none is, RFC 5545 3.3.10 takes the value from
|
|
192
|
+
* DTSTART, so that is what gets restored here -- the same fallback the candidate generators
|
|
193
|
+
* already apply (`this.opts.byHour ?? [this.originalDtstart.hour]`).
|
|
194
|
+
*
|
|
195
|
+
* Restoring it matters because advancing a cursor across a spring-forward gap moves the wall
|
|
196
|
+
* time: 02:30 + 1 day lands on a time that does not exist and `compatible` disambiguation
|
|
197
|
+
* resolves it to 03:30. Without re-asserting DTSTART's time, that shifted time is what the next
|
|
198
|
+
* advance builds on, so every later occurrence in the series keeps it.
|
|
199
|
+
*
|
|
200
|
+
* Only fields the frequency does not own are pinned: HOURLY advances the hour, MINUTELY the
|
|
201
|
+
* minute, SECONDLY the second, so those are left alone.
|
|
202
|
+
*/
|
|
179
203
|
private applyTimeOverride;
|
|
180
204
|
private computeFirst;
|
|
181
205
|
private matchesByDay;
|
|
@@ -222,6 +246,15 @@ declare class RRuleTemporal<TOutput extends TemporalZonedDateTimeInput = Tempora
|
|
|
222
246
|
private buildDailyNumericQueryPlan;
|
|
223
247
|
private buildWeeklyNumericQueryPlan;
|
|
224
248
|
private buildMonthlyNumericQueryPlan;
|
|
249
|
+
/**
|
|
250
|
+
* Build one Gregorian recurrence year's matching epoch days, without time
|
|
251
|
+
* expansion. This deliberately covers the common YEARLY shapes
|
|
252
|
+
* whose calendar membership repeats on the 400-year Gregorian cycle.
|
|
253
|
+
*/
|
|
254
|
+
private generateYearlyOccurrenceDaysUtc;
|
|
255
|
+
private generateYearlyOccurrenceEpochsUtc;
|
|
256
|
+
private yearlyCandidateEvaluationCountUtc;
|
|
257
|
+
private buildYearlyNumericQueryPlan;
|
|
225
258
|
private buildNumericQueryPlan;
|
|
226
259
|
private getNumericQueryPlan;
|
|
227
260
|
private findFirstMatchingDailyStep;
|
|
@@ -249,9 +282,8 @@ declare class RRuleTemporal<TOutput extends TemporalZonedDateTimeInput = Tempora
|
|
|
249
282
|
private canUseTzEpochFastPaths;
|
|
250
283
|
/**
|
|
251
284
|
* True if the rule's nominal time of day can be skipped by a DST gap
|
|
252
|
-
* anywhere in the (estimated) iteration range.
|
|
253
|
-
*
|
|
254
|
-
* shifting the time of day, so affected rules must use it for parity.
|
|
285
|
+
* anywhere in the (estimated) iteration range. Conservatively keep these
|
|
286
|
+
* rules on the general engine for Temporal's compatible gap resolution.
|
|
255
287
|
*/
|
|
256
288
|
private tzFastPathGapHazard;
|
|
257
289
|
private allTzEpochFastPath;
|
|
@@ -304,6 +336,10 @@ declare class RRuleTemporal<TOutput extends TemporalZonedDateTimeInput = Tempora
|
|
|
304
336
|
* @returns True if the date is excluded
|
|
305
337
|
*/
|
|
306
338
|
private isExcluded;
|
|
339
|
+
private isExcludedEpoch;
|
|
340
|
+
/** Sorted, de-duplicated, and EXDATE-filtered explicit recurrence dates. */
|
|
341
|
+
private getNumericRDates;
|
|
342
|
+
private numericRDateLowerBound;
|
|
307
343
|
/**
|
|
308
344
|
* Excludes exDate entries from the given array of dates.
|
|
309
345
|
* @param dates - Array of dates to filter
|
|
@@ -359,6 +395,7 @@ declare class RRuleTemporal<TOutput extends TemporalZonedDateTimeInput = Tempora
|
|
|
359
395
|
* in the rule's time zone. This ignores time-of-day granularity.
|
|
360
396
|
*/
|
|
361
397
|
occursOn(date: TemporalPlainDateInput): boolean;
|
|
398
|
+
private nextInternal;
|
|
362
399
|
/**
|
|
363
400
|
* Returns the next occurrence of the rule after a specified date.
|
|
364
401
|
* @param after - The start date or Temporal.ZonedDateTime object.
|
package/dist/index.d.ts
CHANGED
|
@@ -126,7 +126,10 @@ declare class RRuleTemporal<TOutput extends TemporalZonedDateTimeInput = Tempora
|
|
|
126
126
|
private readonly hasUniqueTimeSlotOffsets;
|
|
127
127
|
private readonly numericByMonths?;
|
|
128
128
|
private exDateEpochNs?;
|
|
129
|
+
private numericRDatesCache?;
|
|
129
130
|
private allResultCache?;
|
|
131
|
+
private publicAllResultCache?;
|
|
132
|
+
private outputConstructorFastPathAvailable?;
|
|
130
133
|
private zoneResolver?;
|
|
131
134
|
private emitAnchorZdt?;
|
|
132
135
|
private numericQueryPlanCache;
|
|
@@ -136,7 +139,6 @@ declare class RRuleTemporal<TOutput extends TemporalZonedDateTimeInput = Tempora
|
|
|
136
139
|
* This prevents type mismatches when mixing native and polyfill Temporal objects.
|
|
137
140
|
*/
|
|
138
141
|
private static normalizeToPolyfill;
|
|
139
|
-
private toInternalIterator;
|
|
140
142
|
private toPublicDate;
|
|
141
143
|
private toPublicDates;
|
|
142
144
|
constructor(params: RRuleOptions<TOutput>);
|
|
@@ -175,7 +177,29 @@ declare class RRuleTemporal<TOutput extends TemporalZonedDateTimeInput = Tempora
|
|
|
175
177
|
private visitDateTimeCandidates;
|
|
176
178
|
/** Apply BYSETPOS with bounded forward/reverse passes over one period. */
|
|
177
179
|
private visitPeriodCandidates;
|
|
180
|
+
/**
|
|
181
|
+
* In UTC, calendar days and sorted time slots form an ordered Cartesian
|
|
182
|
+
* product. Select positions and clip query bounds on integers, constructing
|
|
183
|
+
* Temporal values only for the candidates the visitor actually consumes.
|
|
184
|
+
* Keep the general visitor's work accounting, including both BYSETPOS passes.
|
|
185
|
+
*/
|
|
186
|
+
private visitUtcPeriodCandidates;
|
|
178
187
|
private nextCandidateSameDate;
|
|
188
|
+
/**
|
|
189
|
+
* Re-asserts the time of day an occurrence is supposed to have.
|
|
190
|
+
*
|
|
191
|
+
* A BYxxx part wins where one is given. Where none is, RFC 5545 3.3.10 takes the value from
|
|
192
|
+
* DTSTART, so that is what gets restored here -- the same fallback the candidate generators
|
|
193
|
+
* already apply (`this.opts.byHour ?? [this.originalDtstart.hour]`).
|
|
194
|
+
*
|
|
195
|
+
* Restoring it matters because advancing a cursor across a spring-forward gap moves the wall
|
|
196
|
+
* time: 02:30 + 1 day lands on a time that does not exist and `compatible` disambiguation
|
|
197
|
+
* resolves it to 03:30. Without re-asserting DTSTART's time, that shifted time is what the next
|
|
198
|
+
* advance builds on, so every later occurrence in the series keeps it.
|
|
199
|
+
*
|
|
200
|
+
* Only fields the frequency does not own are pinned: HOURLY advances the hour, MINUTELY the
|
|
201
|
+
* minute, SECONDLY the second, so those are left alone.
|
|
202
|
+
*/
|
|
179
203
|
private applyTimeOverride;
|
|
180
204
|
private computeFirst;
|
|
181
205
|
private matchesByDay;
|
|
@@ -222,6 +246,15 @@ declare class RRuleTemporal<TOutput extends TemporalZonedDateTimeInput = Tempora
|
|
|
222
246
|
private buildDailyNumericQueryPlan;
|
|
223
247
|
private buildWeeklyNumericQueryPlan;
|
|
224
248
|
private buildMonthlyNumericQueryPlan;
|
|
249
|
+
/**
|
|
250
|
+
* Build one Gregorian recurrence year's matching epoch days, without time
|
|
251
|
+
* expansion. This deliberately covers the common YEARLY shapes
|
|
252
|
+
* whose calendar membership repeats on the 400-year Gregorian cycle.
|
|
253
|
+
*/
|
|
254
|
+
private generateYearlyOccurrenceDaysUtc;
|
|
255
|
+
private generateYearlyOccurrenceEpochsUtc;
|
|
256
|
+
private yearlyCandidateEvaluationCountUtc;
|
|
257
|
+
private buildYearlyNumericQueryPlan;
|
|
225
258
|
private buildNumericQueryPlan;
|
|
226
259
|
private getNumericQueryPlan;
|
|
227
260
|
private findFirstMatchingDailyStep;
|
|
@@ -249,9 +282,8 @@ declare class RRuleTemporal<TOutput extends TemporalZonedDateTimeInput = Tempora
|
|
|
249
282
|
private canUseTzEpochFastPaths;
|
|
250
283
|
/**
|
|
251
284
|
* True if the rule's nominal time of day can be skipped by a DST gap
|
|
252
|
-
* anywhere in the (estimated) iteration range.
|
|
253
|
-
*
|
|
254
|
-
* shifting the time of day, so affected rules must use it for parity.
|
|
285
|
+
* anywhere in the (estimated) iteration range. Conservatively keep these
|
|
286
|
+
* rules on the general engine for Temporal's compatible gap resolution.
|
|
255
287
|
*/
|
|
256
288
|
private tzFastPathGapHazard;
|
|
257
289
|
private allTzEpochFastPath;
|
|
@@ -304,6 +336,10 @@ declare class RRuleTemporal<TOutput extends TemporalZonedDateTimeInput = Tempora
|
|
|
304
336
|
* @returns True if the date is excluded
|
|
305
337
|
*/
|
|
306
338
|
private isExcluded;
|
|
339
|
+
private isExcludedEpoch;
|
|
340
|
+
/** Sorted, de-duplicated, and EXDATE-filtered explicit recurrence dates. */
|
|
341
|
+
private getNumericRDates;
|
|
342
|
+
private numericRDateLowerBound;
|
|
307
343
|
/**
|
|
308
344
|
* Excludes exDate entries from the given array of dates.
|
|
309
345
|
* @param dates - Array of dates to filter
|
|
@@ -359,6 +395,7 @@ declare class RRuleTemporal<TOutput extends TemporalZonedDateTimeInput = Tempora
|
|
|
359
395
|
* in the rule's time zone. This ignores time-of-day granularity.
|
|
360
396
|
*/
|
|
361
397
|
occursOn(date: TemporalPlainDateInput): boolean;
|
|
398
|
+
private nextInternal;
|
|
362
399
|
/**
|
|
363
400
|
* Returns the next occurrence of the rule after a specified date.
|
|
364
401
|
* @param after - The start date or Temporal.ZonedDateTime object.
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
export { RRuleTemporal, allowedFreq, allowedWeekdays, weekdayToIsoDay };
|
|
1
|
+
import{i as e,n as t,r as n,t as r}from"./src-B5AtsWj2.js";export{r as RRuleTemporal,t as allowedFreq,n as allowedWeekdays,e as weekdayToIsoDay};
|