ngx-date-fns 13.0.0 requires Angular 21 and removes the per-pipe modules.
Breaking changes
- The peer dependencies
@angular/coreand@angular/commonare now>=21. - The per-pipe modules, such as
FormatPipeModule, are removed. ngx-date-fns 12.1.0 deprecated them.
The pipe names, arguments and results do not change. DateFnsModule still exports all pipes.
Compatibility
| Angular | ngx-date-fns |
|---|---|
| 21 and newer | 13.x |
| 17 to 20 | 12.x |
Migration
- Angular 17 to 20: stay on ngx-date-fns 12 (
npm install --save ngx-date-fns@12). - Replace each per-pipe module with its standalone pipe, or import
DateFnsModule:
// Before
imports: [FormatPipeModule]
// After
imports: [FormatPipe]