rrule-temporal 2.2.4 → 2.2.5
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/dist/index.cjs +1 -1
- package/dist/index.d.cts +14 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +1 -1
- package/dist/{src-DpGQ_5iS.cjs → src-CDWzulSL.cjs} +1 -1
- package/dist/{src-B5AtsWj2.js → src-OdJ9kyVI.js} +1 -1
- package/dist/totext.cjs +1 -1
- package/dist/totext.js +1 -1
- package/package.json +1 -1
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-CDWzulSL.cjs`);exports.RRuleTemporal=e.t,exports.allowedFreq=e.n,exports.allowedWeekdays=e.r,exports.weekdayToIsoDay=e.i;
|
package/dist/index.d.cts
CHANGED
|
@@ -416,6 +416,20 @@ declare class RRuleTemporal<TOutput extends TemporalZonedDateTimeInput = Tempora
|
|
|
416
416
|
* @returns The previous occurrence of the rule before the specified date or null if no occurrences are found.
|
|
417
417
|
*/
|
|
418
418
|
previous(before?: DateFilter, inc?: boolean): TOutput | null;
|
|
419
|
+
/**
|
|
420
|
+
* The latest occurrence of the RRULE itself at or before the target, with explicit RDATEs
|
|
421
|
+
* held out of the scan.
|
|
422
|
+
*
|
|
423
|
+
* They have to be held out. The scan does not start from DTSTART: it starts from a
|
|
424
|
+
* phase-aligned dtstart near the target and walks forward, so the occurrences between the
|
|
425
|
+
* real DTSTART and that anchor are never generated. An RDATE is an absolute instant rather
|
|
426
|
+
* than a phase, so iterateRecurrenceSet() flushes any that predate the anchor into the same
|
|
427
|
+
* pass, and this scan keeps the last date it is handed. That leaves the last flushed RDATE
|
|
428
|
+
* standing in for a rule occurrence the aligned scan never produced -- and because the scan
|
|
429
|
+
* then has a non-null answer, the backoff loop below returns it instead of widening the
|
|
430
|
+
* window to look for the real one. previous() merges the RDATEs back in afterwards.
|
|
431
|
+
*/
|
|
432
|
+
private previousFromRule;
|
|
419
433
|
/** A duration of `count` steps in this rule's frequency unit. */
|
|
420
434
|
private freqDuration;
|
|
421
435
|
toString(): string;
|
package/dist/index.d.ts
CHANGED
|
@@ -416,6 +416,20 @@ declare class RRuleTemporal<TOutput extends TemporalZonedDateTimeInput = Tempora
|
|
|
416
416
|
* @returns The previous occurrence of the rule before the specified date or null if no occurrences are found.
|
|
417
417
|
*/
|
|
418
418
|
previous(before?: DateFilter, inc?: boolean): TOutput | null;
|
|
419
|
+
/**
|
|
420
|
+
* The latest occurrence of the RRULE itself at or before the target, with explicit RDATEs
|
|
421
|
+
* held out of the scan.
|
|
422
|
+
*
|
|
423
|
+
* They have to be held out. The scan does not start from DTSTART: it starts from a
|
|
424
|
+
* phase-aligned dtstart near the target and walks forward, so the occurrences between the
|
|
425
|
+
* real DTSTART and that anchor are never generated. An RDATE is an absolute instant rather
|
|
426
|
+
* than a phase, so iterateRecurrenceSet() flushes any that predate the anchor into the same
|
|
427
|
+
* pass, and this scan keeps the last date it is handed. That leaves the last flushed RDATE
|
|
428
|
+
* standing in for a rule occurrence the aligned scan never produced -- and because the scan
|
|
429
|
+
* then has a non-null answer, the backoff loop below returns it instead of widening the
|
|
430
|
+
* window to look for the real one. previous() merges the RDATEs back in afterwards.
|
|
431
|
+
*/
|
|
432
|
+
private previousFromRule;
|
|
419
433
|
/** A duration of `count` steps in this rule's frequency unit. */
|
|
420
434
|
private freqDuration;
|
|
421
435
|
toString(): string;
|
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-OdJ9kyVI.js";export{r as RRuleTemporal,t as allowedFreq,n as allowedWeekdays,e as weekdayToIsoDay};
|