File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed
src/material-date-fns-adapter Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 169
169
"browser-sync" : " 2.26.13" ,
170
170
"chalk" : " ^4.1.0" ,
171
171
"cross-env" : " ^7.0.3" ,
172
- "date-fns" : " ^2.28.0 " ,
172
+ "date-fns" : " ^3.0.6 " ,
173
173
"dgeni" : " ^0.4.14" ,
174
174
"dgeni-packages" : " ^0.29.5" ,
175
175
"esbuild" : " ^0.17.5" ,
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ const DAY_OF_WEEK_FORMATS = {
54
54
export class DateFnsAdapter extends DateAdapter < Date , Locale > {
55
55
constructor ( @Optional ( ) @Inject ( MAT_DATE_LOCALE ) matDateLocale : { } ) {
56
56
super ( ) ;
57
- this . setLocale ( matDateLocale ) ;
57
+ this . setLocale ( matDateLocale as Locale ) ;
58
58
}
59
59
60
60
getYear ( date : Date ) : number {
Original file line number Diff line number Diff line change 14
14
"peerDependencies" : {
15
15
"@angular/material" : " 0.0.0-PLACEHOLDER" ,
16
16
"@angular/core" : " 0.0.0-NG" ,
17
- "date-fns" : " ^2.23 .0"
17
+ "date-fns" : " >2.20.0 <4 .0"
18
18
},
19
19
"dependencies" : {
20
20
"tslib" : " 0.0.0-TSLIB"
Original file line number Diff line number Diff line change @@ -7803,10 +7803,10 @@ data-uri-to-buffer@^4.0.0:
7803
7803
resolved "https://registry.yarnpkg.com/data-uri-to-buffer/-/data-uri-to-buffer-4.0.0.tgz#b5db46aea50f6176428ac05b73be39a57701a64b"
7804
7804
integrity sha512-Vr3mLBA8qWmcuschSLAOogKgQ/Jwxulv3RNE4FXnYWRGujzrRWQI4m12fQqRkwX06C0KanhLr4hK+GydchZsaA==
7805
7805
7806
- date-fns@^2.28.0 :
7807
- version "2.28.0 "
7808
- resolved "https://registry.yarnpkg.com/date-fns/-/date-fns-2.28.0. tgz#9570d656f5fc13143e50c975a3b6bbeb46cd08b2 "
7809
- integrity sha512-8d35hViGYx/QH0icHYCeLmsLmMUheMmTyV9Fcm6gvNwdw31yXXH+O85sOBJ+OLnLQMKZowvpKb6FgMIQjcpvQw ==
7806
+ date-fns@^3.0.6 :
7807
+ version "3.0.6 "
7808
+ resolved "https://registry.yarnpkg.com/date-fns/-/date-fns-3.0.6. tgz#fe3aeb7592d359f075ffc41cb16139828810ca83 "
7809
+ integrity sha512-W+G99rycpKMMF2/YD064b2lE7jJGUe+EjOES7Q8BIGY8sbNdbgcs9XFTZwvzc9Jx1f3k7LB7gZaZa7f8Agzljg ==
7810
7810
7811
7811
date-format@^4.0.7:
7812
7812
version "4.0.7"
You can’t perform that action at this time.
0 commit comments