Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

v1.0.0-beta.1: breaking changes, see description

Pre-release
Pre-release
Compare
Choose a tag to compare
@urish urish released this 14 Sep 09:57
· 100 commits to master since this release

!!! 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.