Skip to content

v2.2.0

Choose a tag to compare

@github-actions github-actions released this 04 Oct 18:01
· 5 commits to main since this release
Immutable release. Only release title and notes can be modified.
385dc17

hron 2.2.0

hron 2.2 changes the TypeScript package, hron-ts (#114). Every other package is unchanged from 2.1.0 and takes the new version number, because hron's packages share one version.

hron-ts

  • ESM only: the package is now built with plain tsc and ships ES modules only. CommonJS code can still load it with require() on Node 20.19+ or 22.12+, which load ES modules synchronously.
  • temporal-polyfill: hron-ts now uses temporal-polyfill in place of @js-temporal/polyfill. It is about 19 KB gzipped instead of 45 KB, and evaluation is faster. hron-ts uses its own copy even where a global Temporal exists, so a partial native implementation cannot change its results.
  • Any Temporal implementation: every timestamp argument may be a Temporal.ZonedDateTime or Temporal.Instant from native Temporal, temporal-polyfill or @js-temporal/polyfill, in both types and at runtime. Returned timestamps are temporal-polyfill ZonedDateTimes; the package re-exports its Temporal.
  • TypeScript 7: the package is built and type-checked with TypeScript 7.

Other changes

  • The playground uses hron-wasm 2.1.0 and shows hron's own reason when an expression has no cron equivalent (#112).
  • Renovate leaves each published package's minimum language version alone (#113).
  • Dev dependency and GitHub Actions updates (#108, #109, #110).

Full changelog: v2.1.0...v2.2.0