4.4 KiB
2.0.0 / 14.01.2018
-
Moved
RelativeTimeFormatto a separaterelative-time-formatpackage. -
(breaking change) Removed
.locale()static function. Use.addLocale()instead. -
(breaking change)
flavourproperty renamed in non-single-word cases: underscores (_) got replaced with dashes (-). Examples:short_convenient->short-convenient,long_convenient->long-convenient,short_time->short-time,long_time->long-time. The relevant keys in localeindex.jsfiles got renamed the same way. -
(breaking change)
RelativeTimeFormatis no longer exported from this library. -
(could be a breaking change) Re-did
/prop-types,/gradation,/cacheexports as sub-packages. This could possibly change their import behavior. Maybe/prop-typesdid change — I changed some export strategies for it. -
(unlikely a breaking change)
yue-Hantlocale removed (due to its removal from CLDR). -
(unlikely to be a breaking change) Removed handling for a case when "now" unit had "past"/"future" which is an object of quantifier messages instead of a string. The rationale that having "now" unit with "past"/"future" which are objects of quantifier messages wouldn't make sense because "now" is a moment and one can't differentiate between "past moment", "current moment" and "next moment" in real life.
1.0.33 / 29.11.2018
-
Resolved cyclic dependency between
JavascriptTimeAgo.jsandRelativeTimeFormat.js. -
JavascriptTimeAgo.default_localevariable no longer exists (it wasn't public or documented).
1.0.32 / 04.11.2018
-
Added
.addLocale()alias for.locale()function (better naming). The old.locale()function name is now deprecated and will be removed in some next major version release. -
Added
RelativeTimeFormat.addLocale()proxy function which simply callsJavascriptTimeAgo.addLocale().
1.0.19 / 12.01.2018
- Refactored
twitterstyle and styles overall: style can now havethreshold(now)function and also gradation step can haveformat(value, locale)function instead ofunit.
1.0.17 / 11.01.2018
- Renamed
overridetocustomfor styles
1.0.15 / 11.01.2018
- Renamed
fuzzystyle totime. - Refactored
gradations andstyles. gradationis now not being exported fromindex.jsalong withday,monthandyear(one can stillimportit manually fromgradation.js).es6folder got renamed tomodulesbuildfolder got renamed tocommonjs
1.0.11 / 10.01.2018
- Renamed
pluraltoquantifyinside locale data. - Implemented
Intl.RelativeTimeFormatproposal polyfill which is now being exported.
1.0.10 / 09.01.2018
- (can be a breaking change for custom styles) Renamed
just-nowunit tonowandxxx-conciseflavour toxxx_time(+ flavour.jsonfiles got renamed accordingly).
1.0.8 / 09.01.2018
- (breaking change) When defining a custom
styleitsoverride()function takesdateandtimeparameters: nowdateparameter ofoverride()is not guaranteed to be set (can be inferred fromtime).
1.0.2 / 08.01.2018
-
(breaking change) Due to a long-standing engineering flaw in
intl-messageformatlibrary (the locale data loading process) I dismissed it and this library is now using raw CLDR locale data instead so built-in locale data now holds an extra property: thepluralfunction taking a number and returning the pluralization type of that number ("one", "few", etc). Therefore, if adding raw CLDR locale data for locales which are not built-in this pluralization function must be passed as the second argument to.locale(localeDataCLDR, pluralsClassifier). -
(breaking change)
javascriptTimeAgo.stylesis no more accesible: passstyleas a string instead. -
(breaking change)
localesfolder inside the package renamed tolocale(e.g.javascript-time-ago/locales/en->javascript-time-ago/locale/en). -
style.flavourcan now be an array
0.4.4 / 22.12.2016
- Changed
yesterdayandtomorrowlabels for Russian localization
0.2.0 / 13.04.2016
- Moved
intl-messageformattopeerDependencies
0.1.0 / 03.04.2016
- Initial release