@ddd-ts-kit/scheduling 0.27.0 → 0.83.1

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.fr.md CHANGED
@@ -1,5 +1,5 @@
1
1
  [English](README.md) · **Français**
2
- <!-- translation-of: README.md sha256:2f1532d34dd0d64d -->
2
+ <!-- translation-of: README.md sha256:67deda4742409f0f -->
3
3
 
4
4
  # @ddd-ts-kit/scheduling
5
5
 
@@ -175,8 +175,11 @@ Chaque champ accepte `*`, une valeur, un intervalle `a-b`, un pas sur l'un ou l'
175
175
  `8-18/2`) et des listes de ceux-ci (`0,30`, `mon-fri`). Les noms ignorent la casse. Quand le jour
176
176
  du mois et le jour de la semaine sont tous deux restreints (aucun ne commence par `*`), un jour qui
177
177
  convient à l'un ou à l'autre convient, comme dans tout cron : `0 0 13 * fri` est le 13 et chaque
178
- vendredi. Non pris en charge : `@daily` et ses semblables, `?`, `L`, `W`, `#`, un pas sur une
179
- valeur seule (`5/15`), un intervalle qui fait le tour (`fri-mon`).
178
+ vendredi. Un raccourci vaut ses cinq champs, quelle que soit la casse : `@yearly` et `@annually`
179
+ valent `0 0 1 1 *`, `@monthly` vaut `0 0 1 * *`, `@weekly` vaut `0 0 * * 0`, `@daily` et
180
+ `@midnight` valent `0 0 * * *`, `@hourly` vaut `0 * * * *` ; un diagnostic le montre tel qu'il est
181
+ écrit. Non pris en charge : `@reboot` (un *job* planifié n'a pas d'occurrence au démarrage), `?`,
182
+ `L`, `W`, `#`, un pas sur une valeur seule (`5/15`), un intervalle qui fait le tour (`fri-mon`).
180
183
 
181
184
  **Les fuseaux horaires** sont des noms IANA, évalués avec `Intl.DateTimeFormat`, sans dépendance :
182
185
  les règles sont celles du *runtime*, mises à jour avec lui. Les champs sont lus sur les horloges
package/README.md CHANGED
@@ -166,8 +166,11 @@ write a cron.
166
166
  Each field takes `*`, a value, a range `a-b`, a step on either (`*/15`, `8-18/2`) and lists of
167
167
  those (`0,30`, `mon-fri`). Names ignore case. When the day of month and the day of week are
168
168
  both restricted (neither starts with `*`), a day that fits either one fits, as in every cron:
169
- `0 0 13 * fri` is the 13th and every Friday. Not supported: `@daily` and the like, `?`, `L`,
170
- `W`, `#`, a step on a single value (`5/15`), a range that wraps (`fri-mon`).
169
+ `0 0 13 * fri` is the 13th and every Friday. A shorthand stands for its five fields, in any case:
170
+ `@yearly` and `@annually` are `0 0 1 1 *`, `@monthly` is `0 0 1 * *`, `@weekly` is `0 0 * * 0`,
171
+ `@daily` and `@midnight` are `0 0 * * *`, `@hourly` is `0 * * * *`; a diagnostic shows it as
172
+ written. Not supported: `@reboot` (a scheduled job has no occurrence at start), `?`, `L`, `W`,
173
+ `#`, a step on a single value (`5/15`), a range that wraps (`fri-mon`).
171
174
 
172
175
  **Time zones** are IANA names, evaluated with `Intl.DateTimeFormat`, without a dependency: the
173
176
  rules are those of the runtime, updated with it. The fields are read on the clocks of the zone,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ddd-ts-kit/scheduling",
3
- "version": "0.27.0",
3
+ "version": "0.83.1",
4
4
  "description": "Scheduled jobs that only trigger use cases: interval and cron schedules, one run across instances, no overlap, each run in its own execution scope.",
5
5
  "keywords": [
6
6
  "ddd",
@@ -41,9 +41,9 @@
41
41
  "dist"
42
42
  ],
43
43
  "dependencies": {
44
- "@ddd-ts-kit/kernel": "0.27.0"
44
+ "@ddd-ts-kit/kernel": "0.83.1"
45
45
  },
46
46
  "devDependencies": {
47
- "@ddd-ts-kit/testing": "0.27.0"
47
+ "@ddd-ts-kit/testing": "0.83.1"
48
48
  }
49
49
  }