v3.21.0

payloadcms/payloadv3.21.0Feb 5, 2025by denolfe

AI Summary

Exposes helpful arguments for TypeScript schema generation and adds auto-resize functionality to textareas. The multi-tenant plugin also gained an option to opt-out of access control merging.

Key Highlights

  • Helpful args exposed for TypeScript schema generation.
  • Auto-resize feature for textarea fields.
  • Multi-tenant plugin can opt-out of access control merge.

New Features

  • Exposed args for ts schema gen
  • Auto resize feature to textarea
  • Multi-tenant access control merge opt-out

Full Release Notes

## [v3.21.0](https://github.com/payloadcms/payload/compare/v3.20.0...v3.21.0) (2025-02-05)


### ๐Ÿš€ Features

* exposes helpful args to ts schema gen ([#10984](https://github.com/payloadcms/payload/issues/10984)) ([2118c6c](https://github.com/payloadcms/payload/commit/2118c6c))
* adds auto resize feature to textarea ([#10786](https://github.com/payloadcms/payload/issues/10786)) ([7d429f8](https://github.com/payloadcms/payload/commit/7d429f8))
* **plugin-multi-tenant:** allow opting out of tenant access control merge ([#10888](https://github.com/payloadcms/payload/issues/10888)) ([be790a9](https://github.com/payloadcms/payload/commit/be790a9))

### ๐Ÿ› Bug Fixes

* allow public errors to thread through on response ([#10419](https://github.com/payloadcms/payload/issues/10419)) ([ea9abfd](https://github.com/payloadcms/payload/commit/ea9abfd))
* **db-postgres:** select hasMany inside arrays and blocks with versions ([#10829](https://github.com/payloadcms/payload/issues/10829)) ([68a7de2](https://github.com/payloadcms/payload/commit/68a7de2))
* **db-postgres:** write operations on polymorphic joined collections throw error ([#10854](https://github.com/payloadcms/payload/issues/10854)) ([e1dcb95](https://github.com/payloadcms/payload/commit/e1dcb95))
* **plugin-multi-tenant:** incorrect tenant selection with postgres ([#10992](https://github.com/payloadcms/payload/issues/10992)) ([2a1ddf1](https://github.com/payloadcms/payload/commit/2a1ddf1))
* **plugin-multi-tenant:** fixed hardcoded user tenants field ([#10782](https://github.com/payloadcms/payload/issues/10782)) ([9638dbe](https://github.com/payloadcms/payload/commit/9638dbe))
* **plugin-search:** deleting docs even when there's a published version ([#10993](https://github.com/payloadcms/payload/issues/10993)) ([42da87b](https://github.com/payloadcms/payload/commit/42da87b))
* **plugin-search:** generates full docURL with basePath from next config ([#10910](https://github.com/payloadcms/payload/issues/10910)) ([0f85a6e](https://github.com/payloadcms/payload/commit/0f85a6e))
* **plugin-search:** gets api route from useConfig ([#10632](https://github.com/payloadcms/payload/issues/10632)) ([6353cf8](https://github.com/payloadcms/payload/commit/6353cf8))
* **richtext-lexical:** removes css from jsx converter ([#10997](https://github.com/payloadcms/payload/issues/10997)) ([45913e4](https://github.com/payloadcms/payload/commit/45913e4))
* **richtext-lexical:** link drawer has no fields if parent document `create` access control is `false` ([#10954](https://github.com/payloadcms/payload/issues/10954)) ([136c90c](https://github.com/payloadcms/payload/commit/136c90c))
* **ui:** client should add back default values for valid and passesCondition form field properties ([#10709](https://github.com/payloadcms/payload/issues/10709)) ([35e5be8](https://github.com/payloadcms/payload/commit/35e5be8))
* **ui:** revert unrelated code ([#10897](https://github.com/payloadcms/payload/issues/10897)) ([3985893](https://github.com/payloadcms/payload/commit/3985893))
* **ui:** error in version view if document contains localized arrays or blocks ([#10893](https://github.com/payloadcms/payload/issues/10893)) ([85c0842](https://github.com/payloadcms/payload/commit/85c0842))
* **ui:** create-first-user crashes when users collection has join field ([#10871](https://github.com/payloadcms/payload/issues/10871)) ([2f66bdc](https://github.com/payloadcms/payload/commit/2f66bdc))

### ๐Ÿ“š Documentation

* fixes dynamic, fully qualified live preview url args ([#10985](https://github.com/payloadcms/payload/issues/10985)) ([a07fd9e](https://github.com/payloadcms/payload/commit/a07fd9e))
* correct broken NPM badge images on plugin documentation ([#10959](https://github.com/payloadcms/payload/issues/10959)) ([1a68fa1](https://github.com/payloadcms/payload/commit/1a68fa1))
* correct grammar and improve clarity on preventing-abuse.mdx ([#10937](https://github.com/payloadcms/payload/issues/10937)) ([8ace0ca](https://github.com/payloadcms/payload/commit/8ace0ca))
* fix typo on overview.mdx ([#10877](https://github.com/payloadcms/payload/issues/10877)) ([8f27f85](https://github.com/payloadcms/payload/commit/8f27f85))
* admin preview and draft preview ([#10875](https://github.com/payloadcms/payload/issues/10875)) ([d7c3b4e](https://github.com/payloadcms/payload/commit/d7c3b4e))

### ๐Ÿงช Tests

* admin list view custom components ([#10956](https://github.com/payloadcms/payload/issues/10956)) ([b337499](https://github.com/payloadcms/payload/commit/b337499))

### ๐Ÿ“ Templates

* set pnpm engines to version 9 ([#10979](https://github.com/payloadcms/payload/issues/10979)) ([b671fd5](https://github.com/payloadcms/payload/commit/b671fd5))
* use typed functions in website template seed endpoint ([#10420](https://github.com/payloadcms/payload/issues/10420)) ([0a1cc6a](https://github.com/payloadcms/payload/commit/0a1cc6a))
* add `@ts-ignore` in seed to allow initial build on vercel ([#10889](https://github.com/payloadcms/payload/issues/10889)) ([2043b4a](https://github.com/payloadcms/payload/commit/2043b4a))
* remove unknown CSS values ([#10891](https://github.com/payloadcms/payload/issues/10891)) ([ebb5173](https://github.com/payloadcms/payload/commit/ebb5173))

### ๐Ÿ““ Examples

* multi-tenant seed script, readme and other improvements ([#10702](https://github.com/payloadcms/payload/issues/10702)) ([ae0736b](https://github.com/payloadcms/payload/commit/ae0736b))
* added missing sharp dependency to the remix website package ([#10931](https://github.com/payloadcms/payload/issues/10931)) ([58666fb](https://github.com/payloadcms/payload/commit/58666fb))

### โš™๏ธ CI

* increase closed issue lock for inactivity to 7 days ([8af8bef](https://github.com/payloadcms/payload/commit/8af8bef))

### ๐Ÿก Chores

* **deps:** bump packages used to build payload ([#10950](https://github.com/payloadcms/payload/issues/10950)) ([109de8c](https://github.com/payloadcms/payload/commit/109de8c))
* **deps:** bumps @faceless-ui/window-info to v3.0.1 and @faceless-ui/scroll-info to 2.0.0 ([#10913](https://github.com/payloadcms/payload/issues/10913)) ([2f787a9](https://github.com/payloadcms/payload/commit/2f787a9))
* **deps:** deprecates body-scroll-lock ([c7ad46c](https://github.com/payloadcms/payload/commit/c7ad46c))
* **examples:** misc improvements to the draft preview example ([#10876](https://github.com/payloadcms/payload/issues/10876)) ([2b9ee62](https://github.com/payloadcms/payload/commit/2b9ee62))
* **plugin-search:** improves types ([#10955](https://github.com/payloadcms/payload/issues/10955)) ([1771271](https://github.com/payloadcms/payload/commit/1771271))
* **plugin-search:** deprecates apiBasePath from config ([#10953](https://github.com/payloadcms/payload/issues/10953)) ([4a4e90a](https://github.com/payloadcms/payload/commit/4a4e90a))
* **templates:** improves and simplifies draft preview ([#10895](https://github.com/payloadcms/payload/issues/10895)) ([8a79e59](https://github.com/payloadcms/payload/commit/8a79e59))


### ๐Ÿค Contributors

- Elliot DeNolf (@denolfe)
- James Mikrut (@jmikrut)
- Paul (@paulpopus)
- Jarrod Flesch (@JarrodMFlesch)
- Jacob Fletcher (@jacobsfletch)
- Boyan Bratvanov (@bratvanov)
- Tylan Davis (@tylandavis)
- Said Akhrarov (@akhrarovsaid)
- Jessica Chowdhury (@JessChowdhury)
- Steve Kuznetsov (@stevekuznetsov)
- Alessio Gravili (@AlessioGr)
- Suphon T. (@suphon-t)
- Alexander Cato (@alexander-cato)
- Marwin Hormiz (@marwinhormiz)
- Sasha (@r1tsuu)
- Franco D'Agostino (@francodgstn)
- David Murdoch (@dsm23)
- Pavel B. (@inlinecoder)
- Amelia (@LimChorngUan)
- Robert Clancy (Robbo) (@robclancy)