Skip to content

πŸ“œ Version 5.x History ​

[v5.1.1] - 2026-12-05 ​

Tempo v5.1.1 is a focused polish release bringing classic <script> browser bundles in line with the tempo-kit namespace alongside a sweep of documentation cleanups:

  • window.TempoKit Global Namespace: Browser UMD/IIFE bundles (dist/tempo.bundle.js and dist/tempo.bundle.min.js) now expose window.TempoKit (TempoKit.Tempo, TempoKit.plugins) so classic <script> usage matches the tempo-kit ecosystem, while window.Magma remains supported under the hood throughout v5.x for existing plugins.
  • Documentation & Import Path Polish: Updated the Installation Guide with current plugin CDN versions (@tempo-kit/plugin-celestial@2, @tempo-kit/plugin-ticker@3) and TempoKit examples, aligned core terminology strictly with tempo-kit/core, and tightened getter and Temporal v1 phrasing across the docs.

[v5.1.0] - 2026-12-02 ​

Tempo v5.1.0 expands core ergonomics with inspiration from the community ideas and discussions tracked in js-temporal/proposal-temporal-v2 β€” bringing high-demand Temporal wishlist capabilities directly to Tempo users today while also rolling in post-v5.0.0 core stability fixes:

  • Lazy Stepped Iteration on Interval (each, splitBy): Inspired by proposal-temporal-v2 #4, Interval now exposes lazy *each(step) and *splitBy(step) generators supporting duration objects, Temporal.Duration, and millisecond steps β€” with zero month-end drift (Jan 31 β†’ Feb 28 β†’ Mar 31), DST wall-clock preservation, open-ended (end: null) streaming, and final-chunk clamping. See the Interval Guide.
  • Comparison Predicates (t.is.*) & Tempo.enums.BOUNDS: Inspired by proposal-temporal-v2 #6, Tempo instances now expose a lazy-memoized, frozen t.is namespace covering relational comparisons (before, after, same, sameOrBefore, sameOrAfter), between() (with Tempo.enums.BOUNDS defaulting to half-open '[)', Interval / { start, end } overloads, and open-ended null support), 7 built-in calendar/state checks (leapYear, locale-aware weekend/weekday, today, past, future, dst), and sandbox-isolated custom predicates via config.registry.predicates. See the Comparisons & Predicates Guide.
  • Duration Scaling (.scale, .multiply, .divide): Inspired by proposal-temporal-v2 #7, Tempo.Duration objects now expose .scale(factor), .multiply(factor), and .divide(divisor) (sharing the same engine as tempo-fns's standalone scaleDuration / divideDuration) with exact clock balancing, fractional calendar cascades, relativeTo anchor inheritance for fractional months, and NaN / Infinity / divide-by-zero guards. See the Duration Guide.
  • Opt-In DstTerm (tempo-kit/terms/daylight) & tempo-fns@1.3.0 Temporal v2 Helpers: Added opt-in DstTerm (modeling contiguous DST / Standard Time windows via zdt.getTimeZoneTransition() with lazy .span.remaining, OpenTermSpan for non-DST zones, and #dst.> / #dst.< transition navigation), alongside standalone startOfMonth / endOfMonth (#9), roundToMonth / roundToYear (#20), toEpochSeconds / fromEpochSeconds / toEpochMicroseconds / fromEpochMicroseconds (#33/#40), and inspectWallTime (#35) in tempo-fns.
  • Slick-Syntax Boundary Navigation & Open-Ended Term Spans: Fixed chained and multi-step slick shifters (#term.<1, #term.<2, #term.-2, #term.+1) across exact half-open range boundaries, preserved null endpoints in getTermRange, and added null-boundary guards across relative add/subtract, absolute shifters, and .start/.mid/.end boundary mutations so unbounded cultural and timeline spans (such as Reiwa or Gen Beta) behave cleanly.
  • Empty-Dialect Format & Parse Symmetry: Aligned dialect === '' native-brace detection across ParseModule and FormatModule so quoted LDML literals and unquoted native {token} masks round-trip consistently.
  • Cleaner Subpath Exports & Fairer Benchmarks: Removed stale ./term/zodiac and ./term/eastern entries from tempo-kit's package.json exports map (both live in @tempo-kit/plugin-cultural), and added per-mode warm-up / gc() isolation to BenchmarkModule.run().
  • Deprecations: Marked Tempo.enums.LIMIT (maxTempo, minTempo) as @deprecated (scheduled for removal in v6.0.0) in favor of null for unbounded Interval / TermSpan boundaries or Β±Infinity for numeric comparisons.
  • REPL & Docs Polish: Added a dedicated Tempo REPL logo, refreshed tempo.config.sample.ts (FiscalTerm), and updated v5.0.0 benchmark tables.

[v5.0.0] - 2026-11-28 ​

πŸš€ Key Highlights & Developer Experience ​

Tempo v5.0.0 is a clean-break modernization of the Tempo date-time engine. It introduces the dedicated tempo-kit and @tempo-kit/* package namespace, shifts Tempo.now() to an immutable Tempo instance factory, separates universal Civic Terms from opt-in Fiscal and standalone Cultural plugins, and brings TC39 Signal reactivity across the ecosystem. See the v4 β†’ v5 Migration Guide for full upgrade details.

NOTE

Summary of Highlights

  • New tempo-kit & @tempo-kit/* Namespace: import { Tempo } from 'tempo-kit' (or 'tempo-kit/core' for the bare-bones tree-shakeable kernel) paired with @tempo-kit/plugin-* ecosystem packages.
  • Tempo.now() Returns an Immutable Tempo: Tempo.now({ timeZone }) now returns a full Tempo instance; raw epoch numbers live on Tempo.epoch.{ns,ms,us,ss} and native Temporal.Instant on Tempo.instant.
  • Tempo.extend() Prototypal Sandboxes: Isolated subclass sandboxes with Symbol.dispose (using) resource cleanup.
  • Civic, Fiscal & Cultural Terms Split: CivicTerms (QuarterTerm, SeasonTerm, TimelineTerm) ship pre-loaded in tempo-kit; FiscalTerm is opt-in via tempo-kit/terms; ZodiacTerm and EasternTerm now live in @tempo-kit/plugin-cultural.
  • Encapsulated .span Metrics: Range-based Terms expose { start, end, total, elapsed, remaining, progress } under .span with lazy memoized duration/progress getters and cached boundary instances.
  • Format Token Rationalization: {ww} is reclaimed for calendar week of year (matching SQL WW), {wom} adds week of month, {yow} / {woy} represent ISO week-numbering year/week, and :compact replaces legacy fused modifiers.

🌟 New Features & Developer Guide ​

1. tempo-kit & Modular Subpaths ​

Install the core package and only the plugins you need:

typescript
import { Tempo } from 'tempo-kit';

const now = Tempo.now({ timeZone: 'Australia/Sydney' });
console.log(now.term.quarter.key);         // 'Q4'
console.log(now.term.quarter.span.progress);

For minimal bundles, use tempo-kit/core and opt in selectively:

typescript
import { Tempo } from 'tempo-kit/core';
import { CivicTerms, FiscalTerm } from 'tempo-kit/terms';

Tempo.use(CivicTerms);
Tempo.use(FiscalTerm);

2. Isolated Sandboxes with Tempo.extend() ​

Create scoped Tempo configurations without mutating the global singleton:

typescript
import { Tempo } from 'tempo-kit';

{
  using Sandbox = Tempo.extend({ locale: 'fr-FR', timeZone: 'Europe/Paris' });
  const t = Sandbox.now();
  console.log(t.format('{wkd} {dd} {mon}'));
}

3. Standalone Ecosystem Plugins (@tempo-kit/plugin-*) ​

  • @tempo-kit/plugin-cultural: ZodiacTerm and EasternTerm (Chinese/Japanese/Korean/Vietnamese lunar zodiac variants).
  • @tempo-kit/plugin-dialects: Moment, Day.js, Luxon, POSIX strftime, Go, PHP, and Oracle SQL format compatibility.
  • @tempo-kit/plugin-signals: TC39 Signals integration (toRelativeSignal, intervalSignal, watchSystem).

For full upgrade details, see the v4 β†’ v5 Migration Guide.

Released under the MIT License.