Skip to content

Commit 6845878

Browse files
authored
feat!: bumps date-fns to 4.1.0 (#9221)
1 parent 810c29b commit 6845878

File tree

4 files changed

+12
-7
lines changed

4 files changed

+12
-7
lines changed

docs/fields/date.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ _\* This property is passed directly to [react-datepicker](https://github.com/Ha
8686

8787
These properties only affect how the date is displayed in the UI. The full date is always stored in the format `YYYY-MM-DDTHH:mm:ss.SSSZ` (e.g. `1999-01-01T8:00:00.000+05:00`).
8888

89-
`displayFormat` determines how the date is presented in the field **cell**, you can pass any valid (unicode date format)[https://date-fns.org/v2.29.3/docs/format].
89+
`displayFormat` determines how the date is presented in the field **cell**, you can pass any valid (unicode date format)[https://date-fns.org/v4.1.0/docs/format].
9090

9191
`pickerAppearance` sets the appearance of the **react datepicker**, the options available are `dayAndTime`, `dayOnly`, `timeOnly`, and `monthOnly`. By default, the datepicker will display `dayOnly`.
9292

packages/translations/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"translateNewKeys": "node --no-deprecation --import @swc-node/register/esm-register scripts/translateNewKeys/run.ts"
5555
},
5656
"dependencies": {
57-
"date-fns": "3.3.1"
57+
"date-fns": "4.1.0"
5858
},
5959
"devDependencies": {
6060
"@payloadcms/eslint-config": "workspace:*",

packages/ui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100
"@payloadcms/translations": "workspace:*",
101101
"body-scroll-lock": "4.0.0-beta.0",
102102
"bson-objectid": "2.0.4",
103-
"date-fns": "3.3.1",
103+
"date-fns": "4.1.0",
104104
"dequal": "2.0.3",
105105
"md5": "2.3.0",
106106
"object-to-formdata": "4.5.1",

pnpm-lock.yaml

Lines changed: 9 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)