Skip to content

Commit

Permalink
feat!: bumps date-fns to 4.1.0 (#9221)
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrikKozak authored Nov 15, 2024
1 parent 810c29b commit 6845878
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/fields/date.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ _\* This property is passed directly to [react-datepicker](https://github.com/Ha

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`).

`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].
`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].

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

Expand Down
2 changes: 1 addition & 1 deletion packages/translations/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"translateNewKeys": "node --no-deprecation --import @swc-node/register/esm-register scripts/translateNewKeys/run.ts"
},
"dependencies": {
"date-fns": "3.3.1"
"date-fns": "4.1.0"
},
"devDependencies": {
"@payloadcms/eslint-config": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
"@payloadcms/translations": "workspace:*",
"body-scroll-lock": "4.0.0-beta.0",
"bson-objectid": "2.0.4",
"date-fns": "3.3.1",
"date-fns": "4.1.0",
"dequal": "2.0.3",
"md5": "2.3.0",
"object-to-formdata": "4.5.1",
Expand Down
13 changes: 9 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6845878

Please sign in to comment.