- Update angular.js version in bower.json #310
- Add additional typeof check for the global.moment instance (#295, contributed by schester44)
- Improvments to the UMD code
Breaking change: The AMD version now exports the module name ('angularMoment') instead of the actual module object.
- Support for setting the units of the full date threshold of
am-time-ago(#237, contributed by denistrustepain) - Add optional arguments
referenceTimeandformatsto theamCalendarfilter (#241, contributed by Nitro-N) - Support moment 2.13.x and above
- Bugfix:
amTimeAgoshouldn't convert the time to local timezone on the element'stitleattribute (#226, contributed by stackia) - Support moment 2.12.x
- Add amStartOf and amEndOf filter (#203, contributed by pratik14)
- Support Moment 2.11.x
- Happy Year of the Monkey!
- Support AngularJS 1.5.x
- Support for nw.js (#196, contributed by makkesk8)
- Bugfix:
titleattribute does update when model changes (#201, contributed by stackia)
- Bugfix: Infinite digest loop when combining
am-time-agoandamTimezone(#178) - Bugfix: Cannot use angular-moment under webpack (#108)
- Add
amLocalfilter (see #114)
!!! 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.
- Allow
amDateFormatto work with custom formatted input date strings (#162, contributed by jblashka) amAdd,amSubtract- add/subtract a value from a given date (#171, contributed by nicholasruggeri)- Bugfix: Timezones with a 'Z' somewhere in them all become UTC (#168).
- Look for
momenton theglobalobject (#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-fromparameter to theamTimeAgodirective (#145, contributed by baleato) - Add
fromparameter to theamTimeAgofilter (#146, contributed by pipo02mix)
- Fix broken SystemJS/JSPM support (see #104)
- Breaking change: removed one-time binding for
am-time-agoin 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)
- Critical fix: npm install angular-moment fails (#121)
- Add support for locale strings customization (#102, contributed by vosi)
- Add
amDifferencefilter (#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)
- 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:localeChangeinstead. - Filters are now stateful by default (fixes #97).
- The project is now available on NuGet (#99, contributed by markvp).
amTimeAgofilter (#96, contributed by maxklenk)- Show formatted time as element title (#78, contributed by ctesene)
- Support commonjs and browserify (#95, contributed by Pencroff)
- SystemJS Loader support (#85, contributed by capaj)
amMoment.changeLanguage()was deprecated in favor ofamMoment.changeLocale()(following a change introduced in moment v2.8.1)- Bugfix: changing the locale emitted a deprecation warning (see #76 for details).
- Support moment.js v2.8.0. See here for changelog.
- Support moment-timezone v0.2.1. See here for changelog.
- Bugfix:
updateTime()is called too often for future dates (#73)
- Generate source map for the minified version (#50)
- Add support HTML
<time>element - set thedatetimeattribute (#41, contributed by gsklee) - Add default format (angularMomentConfig.format config property) (#52, contributed by otang)
- Add
serverTimeconfiguration option (#53, contributed by Facundo Pedrazzini) - Implement one-time binding for
am-time-ago(#54, contributed by Ephi Gabay) - Support moment.js v2.7.0. See here for changelog.
- Support moment-timezone v0.1.0. See here for changelog.
- bugfix: Preprocess set in configuration not used by filters (#49)
- Use
momentas an injectable constant instead of relying on$window.moment(#35, contributed by just-boris) - Require.js support (#36)
- Add am-preprocess attribute to support unix and utc timestamps (#38, contributed by jspaper)
- NGDoc documentation (#40)
- Enable support for AngularJS 1.3.x in bower.json
- Support moment.js v2.6.0. See here for changelog.
- Add
amMomentservice with achangeLanguage()method (#32, contributed by Ornthalas) - bower.json: Move
moment-timezoneto devDependencies (fixes #34)
- Add optional timezone support to
amCalendarandamDateFormatfilters (#27, contributed by kayhadrin) - Happy Year of the Horse!
- Add optional
am-without-suffixattribute toam-time-ago(#22, contributed by hramaker) - Support moment.js v2.5.0. See here for changelog.
- Merry Christmas!
- Add
amDurationfilter (#20, contributed by gabrielstuff)
- Use $window.setTimeout instead of $timeout, fixes protractor synchronization issue (#19)
- Add settings constant for configuring moment.js withoutSuffix-option (#18)
- Support moment.js v2.4.0. See here for changelog.
- Support moment.js v2.3.0. See here for possibly breaking changes.
- Bugfix:
am-time-agosupport for empty string (#15) - Behavior change:
am-time-agowill only change the text once there is date
- Add support for passing unix timestamp as a string to
amDateFormatfilter (#14)
- Fix an issue with tests failing on a different timezone
- Support moment 2.2.x, AngularJS 1.2
- Add optional
am-formatattribute toam-time-ago(#11) - Add new
amDateFormatfilter (#12) - Add changelog file
- Fix to support iOS (#2, contributed by giuseppeaiello)
- Initial release