Skip to content

Releases: sapozhnikovay/ngx-mat-datefns-date-adapter

11.2.2

01 Jul 22:50
Compare
Choose a tag to compare

Fix date-fns/locales ES import for Jest #10

Fix possible regression with date-fns ES imports. Bump date-fns peer dependency to ^2.22.1

Fix optional chaining for the options property. #12

All NgxDateFnsDateAdapter constructor parameters are optional now. You can now omit available locales array if you want to use en-US locale only.

11.2.1

30 May 19:05
Compare
Choose a tag to compare

Change install section in the README to include info about date-fns and date-fns-tz peer dependencies installation. #7

Fix deep import error message after library compilation by ngcc in the end-user project. #8

11.2.0

20 May 21:51
Compare
Choose a tag to compare

Add locale dependent date format parse and display. Change display and parse format of the date inside mat-date-picker according to selected date-fns locale. #5

Add useUtc options flag to allow creation of a dates with 00:00:00Z time by default. #6

11.1.0

06 Apr 19:58
Compare
Choose a tag to compare

Add support for the ES modules for the date-fns locales. See #4 .
This enables tree-shaking by Angular builder.

Also, it allows to import locales in 2 ways in code:

  • pre-import locales in module definition and use with string label later in dateAdapter.setLocale() method. This is partially compatible with the previous package versions.
  • import locale object directly in dateAdapter.setLocale() method.

11.0.2

19 Feb 16:08
Compare
Choose a tag to compare

73232cf feat: Trim string when parsing a date

11.0.0

20 Dec 11:39
Compare
Choose a tag to compare

Add support for Angular 11

10.0.0

20 Dec 11:37
Compare
Choose a tag to compare

Add Angular 10 support

9.0.1

20 Dec 11:30
Compare
Choose a tag to compare

Update package version to support different Angular versions.