rrule-temporal 1.1.2 → 1.1.3

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.d.cts CHANGED
@@ -65,6 +65,7 @@ declare class RRuleTemporal {
65
65
  constructor(params: ({
66
66
  rruleString: string;
67
67
  } & BaseOpts) | ManualOpts);
68
+ private sanitizeNumericArray;
68
69
  private sanitizeOpts;
69
70
  private rawAdvance;
70
71
  /** Expand one base ZonedDateTime into all BYHOUR × BYMINUTE × BYSECOND
@@ -77,12 +78,18 @@ declare class RRuleTemporal {
77
78
  private computeFirst;
78
79
  private matchesByDay;
79
80
  private matchesByMonth;
81
+ private matchesNumericConstraint;
80
82
  private matchesByMonthDay;
83
+ private matchesByHour;
84
+ private matchesByMinute;
85
+ private matchesBySecond;
81
86
  private matchesAll;
82
87
  private matchesByYearDay;
83
88
  private getIsoWeekInfo;
84
89
  private matchesByWeekNo;
85
90
  options(): ManualOpts;
91
+ private addDtstartIfNeeded;
92
+ private processOccurrences;
86
93
  /**
87
94
  * Returns all occurrences of the rule.
88
95
  * @param iterator - An optional callback iterator function that can be used to filter or modify the occurrences.
@@ -137,6 +144,7 @@ declare class RRuleTemporal {
137
144
  */
138
145
  previous(before?: Date | Temporal.ZonedDateTime, inc?: boolean): Temporal.ZonedDateTime | null;
139
146
  toString(): string;
147
+ private formatIcsDateTime;
140
148
  private joinDates;
141
149
  /**
142
150
  * Given any date in a month, return all the ZonedDateTimes in that month
@@ -149,6 +157,15 @@ declare class RRuleTemporal {
149
157
  * if BYMONTH is not specified.
150
158
  */
151
159
  private generateYearlyOccurrences;
160
+ /**
161
+ * Helper to find the next valid value from a sorted array
162
+ */
163
+ private findNextValidValue;
164
+ /**
165
+ * Efficiently find the next valid date for MINUTELY and SECONDLY frequency by jumping over
166
+ * large gaps when BYXXX constraints don't match.
167
+ */
168
+ private findNextValidDate;
152
169
  private applyBySetPos;
153
170
  }
154
171
 
package/dist/index.d.ts CHANGED
@@ -65,6 +65,7 @@ declare class RRuleTemporal {
65
65
  constructor(params: ({
66
66
  rruleString: string;
67
67
  } & BaseOpts) | ManualOpts);
68
+ private sanitizeNumericArray;
68
69
  private sanitizeOpts;
69
70
  private rawAdvance;
70
71
  /** Expand one base ZonedDateTime into all BYHOUR × BYMINUTE × BYSECOND
@@ -77,12 +78,18 @@ declare class RRuleTemporal {
77
78
  private computeFirst;
78
79
  private matchesByDay;
79
80
  private matchesByMonth;
81
+ private matchesNumericConstraint;
80
82
  private matchesByMonthDay;
83
+ private matchesByHour;
84
+ private matchesByMinute;
85
+ private matchesBySecond;
81
86
  private matchesAll;
82
87
  private matchesByYearDay;
83
88
  private getIsoWeekInfo;
84
89
  private matchesByWeekNo;
85
90
  options(): ManualOpts;
91
+ private addDtstartIfNeeded;
92
+ private processOccurrences;
86
93
  /**
87
94
  * Returns all occurrences of the rule.
88
95
  * @param iterator - An optional callback iterator function that can be used to filter or modify the occurrences.
@@ -137,6 +144,7 @@ declare class RRuleTemporal {
137
144
  */
138
145
  previous(before?: Date | Temporal.ZonedDateTime, inc?: boolean): Temporal.ZonedDateTime | null;
139
146
  toString(): string;
147
+ private formatIcsDateTime;
140
148
  private joinDates;
141
149
  /**
142
150
  * Given any date in a month, return all the ZonedDateTimes in that month
@@ -149,6 +157,15 @@ declare class RRuleTemporal {
149
157
  * if BYMONTH is not specified.
150
158
  */
151
159
  private generateYearlyOccurrences;
160
+ /**
161
+ * Helper to find the next valid value from a sorted array
162
+ */
163
+ private findNextValidValue;
164
+ /**
165
+ * Efficiently find the next valid date for MINUTELY and SECONDLY frequency by jumping over
166
+ * large gaps when BYXXX constraints don't match.
167
+ */
168
+ private findNextValidDate;
152
169
  private applyBySetPos;
153
170
  }
154
171
 
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  RRuleTemporal
3
- } from "./chunk-6A2XASAM.js";
3
+ } from "./chunk-BFYHWV7H.js";
4
4
  export {
5
5
  RRuleTemporal
6
6
  };