rrule-temporal 1.5.1 β 1.5.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/README.md +3 -4
- package/dist/index.cjs +2682 -3017
- package/dist/index.d.cts +284 -279
- package/dist/index.d.ts +284 -279
- package/dist/index.js +2699 -11
- package/dist/totext.cjs +935 -3751
- package/dist/totext.d.cts +6 -5
- package/dist/totext.d.ts +6 -5
- package/dist/totext.js +934 -723
- package/package.json +8 -8
- package/dist/chunk-S4JPXM4U.js +0 -3015
package/README.md
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
# RRule Temporal
|
|
2
2
|
|
|
3
|
-
> This library is sponsored by [PostalForm π](https://postalform.com/?utm_source=github&utm_medium=readme&utm_campaign=rrule-temporal) β upload a PDF and we print + mail it via USPS (no printer or stamps needed). The only mailing platform for AI Agents via MCP, and the easiest one for humans!
|
|
4
|
-
|
|
5
3
|
The first and only fully compliant Recurrence rule ([RFC-5545](https://www.rfc-editor.org/rfc/rfc5545.html)) processing JS/TS library built on the Temporal API, now with support for [RFC-7529](https://www.rfc-editor.org/rfc/rfc7529.html) (RSCALE / SKIP) for non-Gregorian calendars.
|
|
6
4
|
The library accepts the familiar `RRULE` format and returns
|
|
7
5
|
`Temporal.ZonedDateTime` instances for easy timeβzone aware scheduling.
|
|
@@ -166,6 +164,7 @@ rule.toString();
|
|
|
166
164
|
toText(rule); // uses the runtime locale, defaults to English
|
|
167
165
|
toText(rule, "es"); // Spanish description
|
|
168
166
|
toText(rule, "en", { includeDtstart: true }); // include "starting from <DTSTART date>"
|
|
167
|
+
toText(rule, "en", { excludeTzAbbreviation: true }); // omit timezone abbreviation in the output
|
|
169
168
|
toText(rule);
|
|
170
169
|
// "every day for 3 times"
|
|
171
170
|
|
|
@@ -299,7 +298,7 @@ Notes
|
|
|
299
298
|
| `next(after?, inclusive?)` | Next occurrence after a given date. |
|
|
300
299
|
| `previous(before?, inclusive?)` | Previous occurrence before a date. |
|
|
301
300
|
| `toString()` | Convert the rule back into `DTSTART` and `RRULE` lines. |
|
|
302
|
-
| `toText(rule, locale?, options?)` | Human readable description (`en`, `es`, `hi`, `yue`, `ar`, `he`, `zh`, `fr`). Options: `{ includeDtstart?: boolean }`. |
|
|
301
|
+
| `toText(rule, locale?, options?)` | Human readable description (`en`, `es`, `hi`, `yue`, `ar`, `he`, `zh`, `fr`). Options: `{ includeDtstart?: boolean, excludeTzAbbreviation?: boolean }`. |
|
|
303
302
|
| `options()` | Return the normalized options object. |
|
|
304
303
|
|
|
305
304
|
## Benchmarks
|
|
@@ -432,4 +431,4 @@ Both approaches preserve the original calendar, time-zone and nanosecond accurac
|
|
|
432
431
|
|
|
433
432
|
If this library saves you time, sponsorship helps keep it maintained.
|
|
434
433
|
|
|
435
|
-
|
|
434
|
+
> This library is sponsored by [PostalForm π](https://postalform.com/?utm_source=github&utm_medium=readme&utm_campaign=rrule-temporal) β upload a PDF and we print + mail it via USPS (no printer or stamps needed). The only mailing platform for AI Agents via MCP, and the easiest one for humans!
|