This repository has been archived by the owner on Nov 30, 2021. It is now read-only.
Releases: urish/angular-moment
Releases · urish/angular-moment
Breaking changes - see 1.0.0-beta.1 for info
v1.0.0-beta.1: breaking changes, see description
!!! BREAKING CHANGE !!!
Preprocessors, timezones and input format were removed from am-time-ago and all filters. Use the new amFromUnix
, amUtc
, amUtcOffset
, amTimezone
, and amParse
filters instead.
Examples:
<time am-time-ago="myDate" am-format="YYYY-MM-DD">
becomes<time am-time-ago="myDate|amParse:'YYYY-MM-DD'">
<time am-time-ago="myDate" am-preprocess="unix">
becomes<time am-time-ago="myDate|amFromUnix">
{{myDate|amCalendar:'unix'}}
becomes{{myDate|amFromUnix|amCalendar}}
{{myDate|amCalendar:null:'PDT'}}
becomes{{myDate|amTimezone:'PDT'|amCalendar}}
The removal of the preprocessors also affects the other positional parameters of the amTimeAgo
:
{{myDate|amTimeAgo:null:true:fromDate}}
becomes {{myDate|amTimeAgo:true:fromDate}}
.
For more information, please see #174.
v0.10.3
v0.10.2
- Look for
moment
on theglobal
object (#133, contributed by kitbrennan90) - Add support to use UTC offset timezones in addition to named timezones (#151, contributed by DiegoZoracKy)
- Add timezone parameter for amCalendar filter (#152, contributed by DiegoZoracKy)
- Add
am-from
parameter to theamTimeAgo
directive (#145, contributed by baleato) - Add
from
parameter to theamTimeAgo
filter (#146, contributed by pipo02mix)
v0.10.1: Fix SystemJS / JSPM support
- Fix broken SystemJS/JSPM support (see #104)
v0.10.0
- Breaking change: removed one-time binding for
am-time-ago
in favor of AngularJS 1.3's one time binding (#122) - Remove support for AngularJS 1.0.x and 1.1.x.
- Support moment.js v2.10.x
- Support for displaying full dates in
am-time-ago
(see #75) - Support Angular Core's style CommonJS standard (#123, contributed by seanhealy)
- Added an optional timezone parameter to amDateFormat (#90, contributed by robertbrooker)
v0.9.2: Critical fix for 0.9.1
- Critical fix: npm install angular-moment fails (#121)
v0.9.1
- Add support for locale strings customization (#102, contributed by vosi)
- Add
amDifference
filter (#120, contributed by ajhodges) - Support for changing the timezone via
amMoment.changeTimezone()
(#92) - Support for AngularJS 1.4.x
- Remove explicit module name for RequireJS (#112, contributed by WilliamCarter)
v0.9.0: moment.js v2.9.0, NuGet package
- Support moment.js v2.9.0. See here for changelog.
- Removed support for older moment.js versions. Only 2.8.0 and newer versions are now supported.
- Removed deprecated method:
amMoment.changeLanguage()
. UseamMoment.changeLocale()
instead. - Removed deprecated event:
amMoment:languageChange
. Listen foramMoment:localeChange
instead. - Filters are now stateful by default (fixes #97).
- The project is now available on NuGet (#99, contributed by markvp).