finkinfridom / payload-cloudinary-plugin

Upload media to Cloudinary service
MIT License
54 stars 3 forks source link

chore(deps): update dependency payload to v2.5.0 #128

Closed renovate[bot] closed 8 months ago

renovate[bot] commented 8 months ago

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
payload (source) 2.4.0 -> 2.5.0 age adoption passing confidence

Release Notes

payloadcms/payload (payload) ### [`v2.5.0`](https://togithub.com/payloadcms/payload/blob/HEAD/CHANGELOG.md#250-2023-12-19) [Compare Source](https://togithub.com/payloadcms/payload/compare/v2.4.0...v2.5.0) ##### Features - add Chinese Traditional translation ([#​4372](https://togithub.com/payloadcms/payload/issues/4372)) ([50253f6](https://togithub.com/payloadcms/payload/commit/50253f617c22d0d185bbac7f9d4304cddbc01f06)) - add context to auth and globals local API ([#​4449](https://togithub.com/payloadcms/payload/issues/4449)) ([168d629](https://togithub.com/payloadcms/payload/commit/168d6296974042c3ff2a113f9f6c2bded7ba2b3e)) - adds new `actions` property to admin customization ([#​4468](https://togithub.com/payloadcms/payload/issues/4468)) ([9e8f14a](https://togithub.com/payloadcms/payload/commit/9e8f14a897e77f6933eedb2410956a468f4187c3)) - async live preview urls ([#​4339](https://togithub.com/payloadcms/payload/issues/4339)) ([5f17324](https://togithub.com/payloadcms/payload/commit/5f173241df6dc316d498767b1c81718e9c2b9a51)) - pass path to FieldDescription ([#​4364](https://togithub.com/payloadcms/payload/issues/4364)) ([3b8a27d](https://togithub.com/payloadcms/payload/commit/3b8a27d199b3969cbca6ca750450798cb70f21e8)) - **plugin-form-builder:** Lexical support ([#​4487](https://togithub.com/payloadcms/payload/issues/4487)) ([c6c5cab](https://togithub.com/payloadcms/payload/commit/c6c5cabfbb7eb954eea51170a6af7582b1f9b84b)) - prevent querying relationship when filterOptions returns false ([#​4392](https://togithub.com/payloadcms/payload/issues/4392)) ([c1bd338](https://togithub.com/payloadcms/payload/commit/c1bd338d0d5e899f3892f1d18e355c00b265447a)) - **richtext-lexical:** improve floating select menu Dropdown classNames ([#​4444](https://togithub.com/payloadcms/payload/issues/4444)) ([9331204](https://togithub.com/payloadcms/payload/commit/9331204295bfeaf7dd10bc075f42995b2cab2de4)) - **richtext-lexical:** improve link URL validation ([#​4442](https://togithub.com/payloadcms/payload/issues/4442)) ([9babf68](https://togithub.com/payloadcms/payload/commit/9babf6804ce04d5828167eb8e7717727fe1cd472)) - **richtext-lexical:** lazy import React components to prevent client-only code from leaking into the server ([#​4290](https://togithub.com/payloadcms/payload/issues/4290)) ([5de347f](https://togithub.com/payloadcms/payload/commit/5de347ffffca3bf38315d3d87d2ccc5c28cd2723)) - **richtext-lexical:** Link & Relationship Feature: field-level configurable allowed relationships ([#​4182](https://togithub.com/payloadcms/payload/issues/4182)) ([7af8f29](https://togithub.com/payloadcms/payload/commit/7af8f29b4a8dddf389356e4db142f8d434cdc964)) - **richtext-lexical:** link node: change doc data format to be consistent with relationship field ([#​4504](https://togithub.com/payloadcms/payload/issues/4504)) ([cc0ba89](https://togithub.com/payloadcms/payload/commit/cc0ba895188f40181c6ba3779f66d547d4ea66f9)) - **richtext-lexical:** rename TreeviewFeature into TreeViewFeature ([#​4520](https://togithub.com/payloadcms/payload/issues/4520)) ([c49fd66](https://togithub.com/payloadcms/payload/commit/c49fd6692231b68ca61b079103a0fd7aa4673be1)) - **richtext-lexical:** Slate to Lexical converter: add blockquote conversion, convert custom link fields ([#​4486](https://togithub.com/payloadcms/payload/issues/4486)) ([31f8f3c](https://togithub.com/payloadcms/payload/commit/31f8f3cac6bfd08f3adfa0a026a57c4b1b510045)) - **richtext-lexical:** Upload html serializer: Output picture element if the image has multiple sizes, improve absolute URL creation ([e558894](https://togithub.com/payloadcms/payload/commit/e55889480fceb8995646621923159d92de6e89c9)) ##### Bug Fixes - adds bg color for year/month select options in datepicker ([#​4508](https://togithub.com/payloadcms/payload/issues/4508)) ([07371b9](https://togithub.com/payloadcms/payload/commit/07371b9cad111999f2df4e1f709d6b95cd511c15)) - correctly fetches externally stored files when passing uploadEdits ([#​4505](https://togithub.com/payloadcms/payload/issues/4505)) ([228d45c](https://togithub.com/payloadcms/payload/commit/228d45cf52e592cea6377cd93648fba75d73c88d)) - cursor jumping around inside json field ([#​4453](https://togithub.com/payloadcms/payload/issues/4453)) ([6300037](https://togithub.com/payloadcms/payload/commit/63000373e66fb39443f882689e0ecf5c11ed8ad0)) - **db-mongodb:** documentDB unique constraint throws incorrect error ([#​4513](https://togithub.com/payloadcms/payload/issues/4513)) ([05e8914](https://togithub.com/payloadcms/payload/commit/05e8914db70fa64bfb2d15ecfb58e9c229d71108)) - **db-postgres:** findOne correctly querying with where queries ([#​4550](https://togithub.com/payloadcms/payload/issues/4550)) ([8bc31cd](https://togithub.com/payloadcms/payload/commit/8bc31cd5923517ab39ae1427aa0d0fb19d876dab)) - **db-postgres:** querying nested blocks fields ([#​4404](https://togithub.com/payloadcms/payload/issues/4404)) ([6e9ae65](https://togithub.com/payloadcms/payload/commit/6e9ae65374124ee000cc2988ef77247c94b0dd18)) - **db-postgres:** sorting on a not-configured field throws error ([#​4382](https://togithub.com/payloadcms/payload/issues/4382)) ([dbaecda](https://togithub.com/payloadcms/payload/commit/dbaecda0e92fcb0fa67b4c5ac085e025f02de53a)) - defaultValues computed on new globals ([#​4380](https://togithub.com/payloadcms/payload/issues/4380)) ([b6cffce](https://togithub.com/payloadcms/payload/commit/b6cffcea07b9fa21698b00b8bbed6f27197ded41)) - disallow duplicate fieldNames to be used on the same level in the config ([#​4381](https://togithub.com/payloadcms/payload/issues/4381)) ([a1d66b8](https://togithub.com/payloadcms/payload/commit/a1d66b83e0dbea21e8da549b73cd25c537a57938)) - ensure ui fields do not make it into gql schemas ([#​4457](https://togithub.com/payloadcms/payload/issues/4457)) ([3a20ddc](https://togithub.com/payloadcms/payload/commit/3a20ddc5f85162a316006f22ba66ee1c7aab99e3)) - format fields within tab for list controls ([#​4516](https://togithub.com/payloadcms/payload/issues/4516)) ([2650c70](https://togithub.com/payloadcms/payload/commit/2650c70960a7374307a8862c3940c97d337d1d30)) - formats locales with multiple labels for versions locale selector ([#​4495](https://togithub.com/payloadcms/payload/issues/4495)) ([8257661](https://togithub.com/payloadcms/payload/commit/8257661c47b5b968a57fb2228d7045d876a3f484)) - graphql schema generation for fields without queryable subfields ([#​4463](https://togithub.com/payloadcms/payload/issues/4463)) ([13e3e06](https://togithub.com/payloadcms/payload/commit/13e3e0671353ca34e603fece57a12199f2082ca0)) - handles null upload field values ([#​4397](https://togithub.com/payloadcms/payload/issues/4397)) ([cf9a370](https://togithub.com/payloadcms/payload/commit/cf9a3704df21ce8b32feb0680793cba804cd66f7)) - **live-preview:** populates rte uploads and relationships ([#​4379](https://togithub.com/payloadcms/payload/issues/4379)) ([4090aeb](https://togithub.com/payloadcms/payload/commit/4090aebb0e94e776258f0c1c761044a4744a1857)) - **live-preview:** sends raw js objects through window.postMessage instead of json ([#​4354](https://togithub.com/payloadcms/payload/issues/4354)) ([03a3872](https://togithub.com/payloadcms/payload/commit/03a387233d1b8876a2fcaa5f3b3fd5ed512c0bc4)) - make admin navigation transition smoother ([#​4217](https://togithub.com/payloadcms/payload/issues/4217)) ([eb6572e](https://togithub.com/payloadcms/payload/commit/eb6572e9e56e680cad331c1bc5da47e91306deb9)) - omit field default value if read access returns false ([#​4518](https://togithub.com/payloadcms/payload/issues/4518)) ([3e9ef84](https://togithub.com/payloadcms/payload/commit/3e9ef849cd8e69e1e8d7f2f653f0647e93c8ab39)) - pin ts-node versions which are causing swc errors ([#​4447](https://togithub.com/payloadcms/payload/issues/4447)) ([b9c0248](https://togithub.com/payloadcms/payload/commit/b9c024882350d14edd57f0f662a2269ed37975e3)) - properly spreads collection fields into non-tabbed configs [#​50](https://togithub.com/payloadcms/payload/issues/50) ([#​51](https://togithub.com/payloadcms/payload/issues/51)) ([7e88159](https://togithub.com/payloadcms/payload/commit/7e88159e99e2afdc10addc02cf299c11fe188be7)) - **plugin-form-builder:** removes use of slate in rich-text serializer ([#​4451](https://togithub.com/payloadcms/payload/issues/4451)) ([3df52a8](https://togithub.com/payloadcms/payload/commit/3df52a88568622f8fafeabad47c7501229e4ea5f)) - **plugin-nested-docs:** properly exports field utilities ([#​4462](https://togithub.com/payloadcms/payload/issues/4462)) ([1cc87bd](https://togithub.com/payloadcms/payload/commit/1cc87bd8ea575dfa2e1f5ce5b38414bbba95b2cb)) - **richtext-\*:** loosen RichTextAdapter types due to re-occuring ts strict mode errors ([#​4416](https://togithub.com/payloadcms/payload/issues/4416)) ([48f1299](https://togithub.com/payloadcms/payload/commit/48f1299fcba3e3811c6a7f31499f238537f9a5e3)) - **richtext-lexical:** Blocks field: should not prompt for unsaved changes due to value comparison between null and non-existent props ([#​4450](https://togithub.com/payloadcms/payload/issues/4450)) ([548e78c](https://togithub.com/payloadcms/payload/commit/548e78c598cb6d029e7cc40f80d9855754f043bc)) - **richtext-lexical:** do not add unnecessary paragraph before upload, relationship and blocks nodes ([#​4441](https://togithub.com/payloadcms/payload/issues/4441)) ([5c2739e](https://togithub.com/payloadcms/payload/commit/5c2739ebd144620cfd4ff02531f5812dd62ac61d)) - **richtext-lexical:** lexicalHTML field not working when used inside of Blocks field ([128f9c4](https://togithub.com/payloadcms/payload/commit/128f9c4e7e6e20dd1ee221f49428a5bce5179c5f)) - **richtext-lexical:** lexicalHTML field now works when used inside of row fields ([#​4440](https://togithub.com/payloadcms/payload/issues/4440)) ([0421173](https://togithub.com/payloadcms/payload/commit/0421173f9e2d6db1b6a94b25884ea807921f2d09)) - **richtext-lexical:** not all types of URLs are validated correctly ([ac7f980](https://togithub.com/payloadcms/payload/commit/ac7f9809bc2b9fb6a52b48c10f7d51414801e4de)) - searching by id sends undefined in where query param ([#​4464](https://togithub.com/payloadcms/payload/issues/4464)) ([46e8c01](https://togithub.com/payloadcms/payload/commit/46e8c01fbed68856be68804f2bd9744c4c6f5a95)) - simplifies query validation and fixes nested relationship fields ([#​4391](https://togithub.com/payloadcms/payload/issues/4391)) ([4b5453e](https://togithub.com/payloadcms/payload/commit/4b5453e8e5484f7afcadbf5bccf8369b552969c6)) - updates return value of empty arrays in getDataByPath ([#​4553](https://togithub.com/payloadcms/payload/issues/4553)) ([f3748a1](https://togithub.com/payloadcms/payload/commit/f3748a1534a13e6d844aadd9f0e3e6acbe483d03)) - upload editing error with plugin-cloud ([#​4170](https://togithub.com/payloadcms/payload/issues/4170)) ([fcbe574](https://togithub.com/payloadcms/payload/commit/fcbe5744d945dc43642cdaa2007ddc252ecafafa)) - upload related issues, cropping, fetching local file, external preview image ([#​4461](https://togithub.com/payloadcms/payload/issues/4461)) ([45c472d](https://togithub.com/payloadcms/payload/commit/45c472d6b35c41e597038089ad1755cdb88193b6)) - uploads files after validation ([#​4218](https://togithub.com/payloadcms/payload/issues/4218)) ([65adfd2](https://togithub.com/payloadcms/payload/commit/65adfd21ed538b79628dc4f8ce9e1a5a1bba6aed)) ##### ⚠ BREAKING CHANGES ##### [@​payloadcms/richtext-lexical](https://togithub.com/payloadcms/richtext-lexical) - **richtext-lexical:** rename TreeviewFeature into TreeViewFeature ([#​4520](https://togithub.com/payloadcms/payload/issues/4520)) ([c49fd66](https://togithub.com/payloadcms/payload/commit/c49fd6692231b68ca61b079103a0fd7aa4673be1)) If you import TreeviewFeature, you have to rename the import to use TreeViewFeature (capitalized "V") - **richtext-lexical:** link node: change doc data format to be consistent with relationship field ([#​4504](https://togithub.com/payloadcms/payload/issues/4504)) ([cc0ba89](https://togithub.com/payloadcms/payload/commit/cc0ba895188f40181c6ba3779f66d547d4ea66f9)) An unpopulated, internal link node no longer saves the doc id under fields.doc.value.id. Now, it saves it under fields.doc.value. Migration inside of payload is automatic. If you are reading from the link node inside of your frontend though, you will have to adjust it. - **richtext-lexical:** improve floating select menu Dropdown classNames ([#​4444](https://togithub.com/payloadcms/payload/issues/4444)) ([9331204](https://togithub.com/payloadcms/payload/commit/9331204295bfeaf7dd10bc075f42995b2cab2de4)) Dropdown component has a new mandatory sectionKey prop - **richtext-lexical:** lazy import React components to prevent client-only code from leaking into the server ([#​4290](https://togithub.com/payloadcms/payload/issues/4290)) ([5de347f](https://togithub.com/payloadcms/payload/commit/5de347ffffca3bf38315d3d87d2ccc5c28cd2723)) 1. Most important: If you are updating `@payloadcms/richtext-lexical` to v0.4.0 or higher, you will HAVE to update payload to the latest version as well. If you don't update it, payload likely won't start up due to validation errors. It's generally good practice to upgrade packages prefixed with @​payloadcms/ together with payload and keep the versions in sync. 2. `@payloadcms/richtext-slate` is not affected by this. 3. Every single property in the `Feature` interface which accepts a React component now no longer accepts a React component, but a function which imports a React component instead. This is done to ensure no unnecessary client-only code is leaked to the server when importing Features on a server. Here's an example migration: Old: ```ts import { BlockIcon } from '../../lexical/ui/icons/Block' ... Icon: BlockIcon, ``` New: ```ts // import { BlockIcon } from '../../lexical/ui/icons/Block' // <= Remove this import ... Icon: () => // @​ts-expect-error import('../../lexical/ui/icons/Block').then((module) => module.BlockIcon), ``` Or alternatively, if you're using default exports instead of named exports: ```ts // import BlockIcon from '../../lexical/ui/icons/Block' // <= Remove this import ... Icon: () => // @​ts-expect-error import('../../lexical/ui/icons/Block'), ``` 4. The types for `SanitizedEditorConfig` and `EditorConfig` have changed. Their respective `lexical` property no longer expects the `LexicalEditorConfig`. It now expects a function returning the `LexicalEditorConfig`. You will have to adjust this if you adjusted that property anywhere, e.g. when initializing the lexical field editor property, or when initializing a new headless editor. 5. The following exports are now exported from the `@payloadcms/richtext-lexical/components` subpath exports instead of `@payloadcms/richtext-lexical`: - `ToolbarButton` - `ToolbarDropdown` - `RichTextCell` - `RichTextField` - `defaultEditorLexicalConfig` You will have to adjust your imports, only if you import any of those properties in your project.

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.



This PR has been generated by Mend Renovate. View repository job log here.