- Support for Angular 13 + Ivy
- fix: support for Angular 10 (see #240)
- breaking: drop support for Angular < 7
- republish to npm without ngcc backup files
- fix: correct input types for pipes 906e40c
- chore(deps): angular 9, typescript 3.8 9966a9a
- chore: reformat all code with prettier 10fe5c51
- docs: remove system.js instructions from README
- feat: add
formatFn
argument toamTimeAgo
(#213, contributed by chaoyangnz) - feat: add
format|formats
to from-utc pipe and parse-pipe (#215, contributed by gigadie) - fix: improve
amLocale
compability with Angular Ivy (#226, contributed by sobanieca)
- feat: add amIsBefore, amIsAfter pipes (#208, contributed by StickNitro)
- Ability to provide options to the MomentModule (#209, contributed by StickNitro)
- fix: Improved Text Update on locale change when not using MomentInput (#210, contributed by jensweigele)
- fix: Allow using all supported Moment inputs with TimeAgoPipe (#206, contributed by theodorejb)
- Angular 7 support (#203)
- Add 'amParseZone' pipe (#198, contributed by davidballester)
- Update installation instruction in readme (see #194)
- Make
moment
a peerDependency instead of dependency (see #149 for discussion)
When upgrading to this version, make sure to npm install --save moment
.
- Rename package to ngx-moment
- Migrate project to the Angular CLI
- Switch to Angular Package Format, (using ngPackagr)
2.0.0-beta.0 and 2.0.0-rc.0 are aliases for this version.
- Fix: update momentjs version (#190)
- Fix: amTimeAgo pipe updates it's output when locale changes (#188, contributed by lukasz-kusnierz)
- Fix bug where FromUtcPipe was being imported instead of exported (#180, contributed by fshin123)
- test: fix amLocal tests to pass regardless of timezone
- Add
amFromUtc
pipe (#163, contributed by connormlewis)
- Add
amLocal
pipe (#153, contributed by benwilkins)
- Add
amLocale
pipe (#155, contributed by FallenRiteMonk) - Migrate testing framework to jest
- Fix:
amCalendar
causes protractor to timeout on waiting async Angular (#135, contributed by romanovma)
- Add missing
amAdd
andamSubtract
pipes (fixes #130)
- Enable Angular 4 as peer dependency
Happy new year!
- Add
referenceTime
andformat
args toamCalendar
(#64, contributed by irsick) - Add
amAdd
andamSubtract
pipes (#113, contributed by dustin486) - Fix: Do not import whole Rx.js library (#117, contributed by FabienDehopre)
Promoted 1.0.0-rc.1 to final release
*** Breaking change: Requires moment 2.16.0 or newer
- Fix “Expression has changed after it was checked” (#111, contributed by nithril)
- Fix "Module 'moment' has no exported member 'UnitOfTime'" (#112)
*** Breaking change: typescript sources are no longer published in the npm package
- Inline sources in the source map file, should fix #96.
- Handle undefined dates in
amDateFormat
pipe (#105, contributed by amcdnl)
*** Breaking change: source files renamed, which could affect your imports:
import { TimeAgoPipe } from 'angular-moment/TimeAgoPipe';
now becomes:
import { TimeAgoPipe } from 'angular-moment/time-ago.pipe';
All changes:
- Rename source files to follow Angular 2 Style Guide conventions
- Require
moment
>= 2.13.0, and remove@types/moment
from our dependencies (as it is already included inmoment
)
- Add support for server side pre-rendering (#89, contributed by https://github.com/jmezach)
- Fix a bug caused TimeAgo and Calendar pipes not to update automatically (#94)
- Add
@types/moment
to package dependencies (see #91)
- Fix exports for Rollup / Ionic 2 users (#86, contributed by TheMadBug)
- Protractor fix: run long standing timeouts outside of angular zones (#74, contributed by tiagoroldao)
- Switch to Typescript 2.0
- Angular 2 AoT (Ahead of Time) template compilation support (#68)
- Removed impure flags from pure Pipes:
amDateFormat
andamDifference
(#75, contributed by tiagoroldao)
- Support angular-2.0.0-rc.5 NgModules, see README for details.
- Align with the angular 2.0.0-rc.0 and the new angular packaging system
- Move
angular2
from npmdependencies
topeerDependencies
(see #24) - Add
amDuration
pipe (#29, contributed by xenolinguist)
- include
amFromUnix
pipe in the package's exports - publish our
typings.json
to npm
- add
amFromUnix
pipe (#16, contributed by lanocturne)
- Don't run
typings install
on postinstall (fixes #13)
- Switch from
tsd
totypings
, stop publishing themoment.js
typings to npm. - Additional unit-tests
Note: You may need to manually install moment.js typings, by running typings install --save moment
in your project directory.
- add
amDateFormat
pipe (#9, contributed by andreialecu) - refactor: remove the
supports()
from all the pipes (it is no longer used as of angular2-beta)
- bugfix: wrong method name for cleanup, caused resource leak (#8, contributed by andreialecu)
- add
amCalendar
pipe (#6, contributed by andreialecu)
- Fix 'Cannot use in app due to triple-slash references' typescript error (#2)
- Align with angular 2.0.0-beta.0
- Align with angular-2.0.0-alpha.46
- Add ES5 transpiled version and typescript definitions (.d.ts) file to the published npm package
- Align with angular-2.0.0-alpha.44
- Align with angular-2.0.0-alpha.37
- Initial release