This project follows semVer, where:
- [major] is an API, or result-format change
- [minor] is a result change
- [patch] is a bugfix
- [new] - add stepCount paramater to
.every()
#411 - [fix] - eslint update and fixes
- [change] - readme improvements #412
- [update] - minor DST hour changes
- [update] - github actions script
- [update] - dependencies
- [fix] - leap-year string parse issue
- [change] - typescript export changes #408 #409 (thanks jecraig!)
- [update] - DST date changes for metlakatla, kiev, ciudad_juarez
- [update] - late DST date changes for gaza, hebron
- [change] - update github script
- [update] - deps
- [fix] - offset in Africa/Cairo #404
- [update] - 2024 DST changes
- [change] - support i18n config in .since() #403
- [fix] - fix for reversed-DST in
africa/casablanca
andafrica/el_aaiun
#400 - [update] - deps
- [fix] - guard against non-IANA responses in Intl #397
- [update] - deps
- [change] - add new dst for #395
- [update] - deps
- [fix] - typescript node16 issue #393
- [update] - moroccan and palestinian dst dates
- [update] - africa/cairo is back on DST
- [update] - deps
- [fix] - .week() results #387
- [fix] - .dayTime() results #388
- [fix] - support leap-years in setting dayOfYear() #382
- [change] - Iran off of dst #379
- [change] - mexico off of dst #378
- [change] - allow chaining of .i18() #372
- [change] - typescript update #373
- [update] - add etc/unknown timezone for #367
- [update] - 2023 DST changes for mexico
- [update] - 2023 DST changes for jordan
- [update] - 2023 DST changes for fiji
- [update] - missing seconds, quarters methods #360 #359
- [new] - {AMPM} uppercase fmt
- [update] - 2023 DST changes
- [fix] - southern hemisphere december season #352
- [fix] - Yakutsk timezone
- [update] - Kiev/Kyiv alias
- [update] - chile DST change
- [fix] - antarctic dst times
- update dependencies
- [fix] - export .cjs format for plugins in es5
- [fix] - typescript fix #338
- [fix] - typescript fix #336
- update dependencies
- [fix] - typescript fixes
- [change] - update asia/gaza and asia/hebron dst times
- update dependencies
- [fix] - for asmara issue #328
- [new] - support custom i18n strings for am/pm
- [new] - more alias support for deprecated iana codes
- [fix] - for silent/verbose mode
- update deps
- [change] - rename cjs build to .cjs #319
- [fix] - another esm build path #316
- [fix] - esm build path
- [change] - update to 2022 DST dates
- [change] - return 'Sep' instead of 'Sept' in format('month-short') and 'MMM' #304
- [change] - convert to ES-modules, + exports fields
- [change] - make .every() results inclusive of start
- [change] - alias old IANA codes to contemporary ones
- [change] - move cal plugin to repo spencermountain/scal
- [new] - add ISO duration to .since() results (thanks Adam)
- [fix] - iso-parsing issues #320
- [fix] - typescript issue #305
- [fix] - subtract months issue #312
- [fix] - unix 'yy' format issue #302
- [change] - return 'Etc/GMT' not 'Etc/GMT+0'
- [change] - update deps
- bump + republish plugins
- [fix] - ISO fmt parsing #310
- [update] - gaza, hebron dst date change
- update deps
- [new] - .daysInMonth() method (thanks m1212e!)
- [change] - replace deprecated timezone aliases (thanks Michael!)
- [change] - date/day naming inconsistency in add method (thanks Andy!)
- [fix] - typescript fixes (thanks Adam!)
- [fix] - many-year add issue #235
- [fix] - iso format year-padding for BC years
- update deps
- [fix] - offset for
asia/baku
#292 - [fix] - date-parser for #291
- update deps
- [new] - add millisecond pad #283
- update deps
- [change] - improvements to date-sting parsers
- [change] - drop ie11 polyfills in min.js build
- [change] - minify and stop compiling esm build
- [fix] - .add(n, 'weekend')
- update deps
- [fix] - Fix pacific/chatham iana DST change time (thanks Michael!)
- update deps
- [fix] - string parsing issue for tue/tues
- [fix] - .time('4:88') now has ceiling of 59m
- [new] - add goFwd params to all (appropriate) setter methods
- [change] - add missing timezones from indiana and argentina
- [change] - set old timezones as aliases of newer ones
- [new] - add min, max methods
- [change] - comment-out tests that were failing in some timezones
- update deps, and documentation
- [change] - support more alt day formats like
.day('mo')
- [change] - allow
.week()
to return 53 - [change] - support swapped-parameters for
.each()
- [change] - support swapped-parameters for
.isSame()
- update deps
- [fix] - add/minus by quarter issue
- [fix] - typescript issue
- [fix] - fix .every() >= issue
- [fix] - fix today-passthrough in some date formats
- [change] - use updated DST changes (171 changes)
- [change] - support explicit local-timezone (thanks Mitsunee)
- [new] - spacetime.timezones() method
- update deps
- [change] - support i18n titlecase config (thanks Kayla)
- [fix] - endOf('season') issue
- [fix] - fix character escaping issue in unixFmt method #207 update deps
- [new] - support for '97 year format
- [change] - support
13h00
time format - [change] - support
09.13.2013
and13.09.2013
formats - [fix] -
.add()
issue sometimes effecting quarter/season
- [new] - support period-seperated short-iso format
- [new] - support fortnight in add/remove methods
- [new] - support 'tues' 'thurs' in day() method
- [new] - support '2002-06' truncated iso input
- [change] - support 6-digit millisecond, and lowercase iso
- [change] - first week of year must start > dec 29th
- [fix] - typescript fixes
- update deps
- [fix] - keep yukon dst changes (for now!) #243
- [fix] - support new-zealand time in '13h' format #242
- update deps
- [fix] - support whitespace between time and am/pm (thanks Andy!)
- [change] - make empty array + obj equal to null inputs #240
- [change] - update timezones
- [change] - remove Yukon DST pre-emtively
- [fix] - dst-change issues like #236
- [fix] - inc/dec year issue on exact nye millisecond
- [change] support parsing quarter-names as input - 'q2 2001'
- [change] support parsing season-names as input - 'fall 2001'
- [fix] major DST issue #182 (thanks Boris!)
- [fix] add missing timezones
America/Fort_Nelson
,Asia/Qostanay
, andAmerica/Nuuk
- [fix] comparison issue #231 effecting
.isSame()
and.since()
accross different timezones
- [fix] 45m offset formatting issue
- update deps
- [change] support for 'today' param with null inputs
- [change] support for 'today' param with 'today/tonight' inputs
- [change] interpret empty-string input like null input (as 'now')
- [fix] typescript fixes (#220 #222)
- [fix] for formatting when the output is 0 π
- [fix] for leap-day in
.date()
method - update deps
- add github release/publish script
- [fix] typescript fix
- [change] support
undefined
as input (like null) - [fix] for missing defaults in object input
- [fix] major DST add/subtract bug #193
- support
options.today
- update deps, minor zonefile update
- run mjs build through babel (#175)
- add
.toLocalDate()
- update zonefile to 2020
- add Famagusta and Yangon iana zones
- add
.decade()
- add
.century()
- add
.millenium()
- add
.json()
method - remove dst for Brazil
- fix .week() counting logic
- change overflow error-amount for #166
- fix typescript types
- add config for
dmy
british date parsing - support
18-feb-2019
format
- support for +14 timezones.
- remove 'informal' timezone parsing (like
.goto('south africa')
) - remove 'display' info from
.timezone()
like 'EST' (move to spacetime-informal) - throw error on an invalid timezone #150
- optimize
.week()
method
- add support for changing start/end of the week
- allow more flexible
.i18n()
inputs
- faster diff for large-number of months
- more support for esoteric iso formats
- add format('iso-month')
- change fallback behaviour for set failure edge-cases
- avoid setting dates/months/hours past maximums and minimums
.hour(24)
now changes date to tomorrow- faster diffs for large (decade-long) ranges
- [big] fix awkward diff/since issues ('dec 25->jan 5' should be 0 years)
- support typescript types by Jacob Craig
- use given timezone when given a spacetime object as an input
- adds
.every(unit, to)
method - set UTC as default fallback timezone
- support more time input formats
- fixes offset input issue #103
- added more iana timezones
- fixed zero-padding in iso offsets
- support half hour offsets in iso formats
next()
andlast()
methods- support for century and decades
- full-api tests and docs
- titlecase short-forms of months, days in
.format()
- support implicit date in
nov 2019
- support
tues March 5th 2018
inputs - pretty-dramatic speed optimizations (~50%)
- π¨ all methods now immutable by default.π¨
-- existing code will now need to be
s = s.add(1,'day')
--- (instead ofs.add(1,'day')
) - move unix-formating out of
.format()
into.unixFmt()
- support new
{hour} oclock
-style format templates - change default
.format()
response to yyyy-mm-dd - uppercase month and day names in
.dayName()
- support city-names,
EST
,PDT
, etc as input - set default
silent: true
to avoid unwanted logging
- update a few TZ offsets in mostly eastern-Russia
- updates to 2019 Palestinian dst dates
- fixes for missing immutable setter methods
- big - swap interpretation of ISO date offsets
-0500 β +5 offset
#61
- assume current year with input
spacetime('July 5th')
- do larger
.diff()
operations (gt 1yr) in fast-mode - support BC formatting of input and in
s.format('year')
- bug fix for iso-format hour-offsets (#58)
- adds
.extend()
method for authoring plugins
- fix dayOfYear regression on 31st days
- support space in ISO-186 format
- update deps, use babel-env
- fix 'February 30th' regression
- remove denormalized
.valid
boolean on Spacetime class
- support
.from()
and.fromNow()
methods
format(iso)
now uses.
for millisecond separator:2016-11-04T09:00:59.122Z
- adds
.since()
method to calculate a human-readable diff - support string/number input to
.diff()
- support ordinal inputs, like
June 5th 2018
- isAwake() method
- alias for .plus() .minus() methods
.diff()
without a unit does a couple units together- update zonefile to proper dst-flip time
- update zonefile to 2018 dst dates
- dramatic speedup by optimizing walkTo method
- fallback to UTC, instead of PST if no
Intl
is present - support passing-in offsets as ISO_8601 date-strings
- add epoch-seconds warning msg
- allow getting/setting new timezones
- support unix/unicode time-formating basic-level
- add
.era()
get/set method - found 6 or 7 wrong offsets
- fix major southern-hemisphere issue
- re-structure
d.timezone()
response - add
.hemisphere()
method - use proper short-day forms
- fix for inf-loop regression on DST-switch
- adds
spacetime.i18n()
method - adds
spacetime.nearest()
method - support for
"quarterHour"
units - '4:15, 4:30, 4:45, 5:00' etc
- adds
spacetime.whereIts()
method - actually implement π season by hemisphere
- adds isBetween() method