Skip to content

Commit 234e5e0

Browse files
authored
feat(material-date-fns-adapter): add support for date-fns 4 (angular#29744)
Updates the `date-fns` adapter to support version 4. Fixes angular#29740.
1 parent 2b972e1 commit 234e5e0

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122
"browser-sync": "2.26.13",
123123
"chalk": "^4.1.0",
124124
"cross-env": "^7.0.3",
125-
"date-fns": "^3.0.6",
125+
"date-fns": "^4.1.0",
126126
"dgeni": "^0.4.14",
127127
"dgeni-packages": "^0.29.5",
128128
"esbuild": "^0.17.5",

src/material-date-fns-adapter/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"peerDependencies": {
1515
"@angular/material": "0.0.0-PLACEHOLDER",
1616
"@angular/core": "0.0.0-NG",
17-
"date-fns": ">2.20.0 <4.0"
17+
"date-fns": ">2.20.0 <5.0"
1818
},
1919
"dependencies": {
2020
"tslib": "0.0.0-TSLIB"

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6653,10 +6653,10 @@ data-uri-to-buffer@^6.0.2:
66536653
resolved "https://registry.yarnpkg.com/data-uri-to-buffer/-/data-uri-to-buffer-6.0.2.tgz#8a58bb67384b261a38ef18bea1810cb01badd28b"
66546654
integrity sha512-7hvf7/GW8e86rW0ptuwS3OcBGDjIi6SZva7hCyWC0yYry2cOPmLIjXAUHI6DK2HsnwJd9ifmt57i8eV2n4YNpw==
66556655

6656-
date-fns@^3.0.6:
6657-
version "3.6.0"
6658-
resolved "https://registry.yarnpkg.com/date-fns/-/date-fns-3.6.0.tgz#f20ca4fe94f8b754951b24240676e8618c0206bf"
6659-
integrity sha512-fRHTG8g/Gif+kSh50gaGEdToemgfj74aRX3swtiouboip5JDLAyDE9F11nHMIcvOaXeOC6D7SpNhi7uFyB7Uww==
6656+
date-fns@^4.1.0:
6657+
version "4.1.0"
6658+
resolved "https://registry.yarnpkg.com/date-fns/-/date-fns-4.1.0.tgz#64b3d83fff5aa80438f5b1a633c2e83b8a1c2d14"
6659+
integrity sha512-Ukq0owbQXxa/U3EGtsdVBkR1w7KOQ5gIBqdH2hkvknzZPYvBxb/aa6E8L7tmjFtkwZBu3UXBbjIgPo/Ez4xaNg==
66606660

66616661
date-format@^4.0.14:
66626662
version "4.0.14"

0 commit comments

Comments
 (0)