π 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.TempoKitGlobal Namespace: Browser UMD/IIFE bundles (dist/tempo.bundle.jsanddist/tempo.bundle.min.js) now exposewindow.TempoKit(TempoKit.Tempo,TempoKit.plugins) so classic<script>usage matches thetempo-kitecosystem, whilewindow.Magmaremains 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) andTempoKitexamples, alignedcoreterminology strictly withtempo-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,Intervalnow 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,Tempoinstances now expose a lazy-memoized, frozent.isnamespace covering relational comparisons (before,after,same,sameOrBefore,sameOrAfter),between()(withTempo.enums.BOUNDSdefaulting to half-open'[)',Interval/{ start, end }overloads, and open-endednullsupport), 7 built-in calendar/state checks (leapYear, locale-awareweekend/weekday,today,past,future,dst), and sandbox-isolated custom predicates viaconfig.registry.predicates. See the Comparisons & Predicates Guide. - Duration Scaling (
.scale,.multiply,.divide): Inspired by proposal-temporal-v2 #7,Tempo.Durationobjects now expose.scale(factor),.multiply(factor), and.divide(divisor)(sharing the same engine astempo-fns's standalonescaleDuration/divideDuration) with exact clock balancing, fractional calendar cascades,relativeToanchor inheritance for fractional months, andNaN/Infinity/ divide-by-zero guards. See the Duration Guide. - Opt-In
DstTerm(tempo-kit/terms/daylight) &tempo-fns@1.3.0Temporal v2 Helpers: Added opt-inDstTerm(modeling contiguous DST / Standard Time windows viazdt.getTimeZoneTransition()with lazy.span.remaining,OpenTermSpanfor non-DST zones, and#dst.>/#dst.<transition navigation), alongside standalonestartOfMonth/endOfMonth(#9),roundToMonth/roundToYear(#20),toEpochSeconds/fromEpochSeconds/toEpochMicroseconds/fromEpochMicroseconds(#33/#40), andinspectWallTime(#35) intempo-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, preservednullendpoints ingetTermRange, and added null-boundary guards across relativeadd/subtract, absolute shifters, and.start/.mid/.endboundary 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 acrossParseModuleandFormatModuleso quoted LDML literals and unquoted native{token}masks round-trip consistently. - Cleaner Subpath Exports & Fairer Benchmarks: Removed stale
./term/zodiacand./term/easternentries fromtempo-kit'spackage.jsonexportsmap (both live in@tempo-kit/plugin-cultural), and added per-mode warm-up /gc()isolation toBenchmarkModule.run(). - Deprecations: Marked
Tempo.enums.LIMIT(maxTempo,minTempo) as@deprecated(scheduled for removal inv6.0.0) in favor ofnullfor unboundedInterval/TermSpanboundaries orΒ±Infinityfor numeric comparisons. - REPL & Docs Polish: Added a dedicated Tempo REPL logo, refreshed
tempo.config.sample.ts(FiscalTerm), and updatedv5.0.0benchmark 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 ImmutableTempo:Tempo.now({ timeZone })now returns a fullTempoinstance; raw epoch numbers live onTempo.epoch.{ns,ms,us,ss}and nativeTemporal.InstantonTempo.instant.Tempo.extend()Prototypal Sandboxes: Isolated subclass sandboxes withSymbol.dispose(using) resource cleanup.- Civic, Fiscal & Cultural Terms Split:
CivicTerms(QuarterTerm,SeasonTerm,TimelineTerm) ship pre-loaded intempo-kit;FiscalTermis opt-in viatempo-kit/terms;ZodiacTermandEasternTermnow live in@tempo-kit/plugin-cultural. - Encapsulated
.spanMetrics: Range-based Terms expose{ start, end, total, elapsed, remaining, progress }under.spanwith lazy memoized duration/progress getters and cached boundary instances. - Format Token Rationalization:
{ww}is reclaimed for calendar week of year (matching SQLWW),{wom}adds week of month,{yow}/{woy}represent ISO week-numbering year/week, and:compactreplaces legacy fused modifiers.
π New Features & Developer Guide β
1. tempo-kit & Modular Subpaths β
Install the core package and only the plugins you need:
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:
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:
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:ZodiacTermandEasternTerm(Chinese/Japanese/Korean/Vietnamese lunar zodiac variants).@tempo-kit/plugin-dialects: Moment, Day.js, Luxon, POSIXstrftime, 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.