Releases: payloadcms/payload
v3.0.0-beta.107
v3.0.0-beta.107 (2024-09-16)
🚀 Features
- add new option for admin.components.header (#7647) (3b59416)
- cpa: add node engines (#8234) (7c8272b)
⚡ Performance
🐛 Bug Fixes
- duplication with localized arrays in unnamed tabs (#8236) (c460868)
- drizzle: polymorphic querying of different ID types (#8191) (a0a1e20)
🤝 Contributors
- James Mikrut (@jmikrut)
- Sasha (@r1tsuu)
- Jessica Chowdhury (@JessChowdhury)
- Elliot DeNolf (@denolfe)
- Jacob Fletcher (@jacobsfletch)
- Alessio Gravili (@AlessioGr)
v3.0.0-beta.106
v3.0.0-beta.105
v3.0.0-beta.105 (2024-09-15)
⚡ Performance
- upgrade ajv, and upgrade typescript to 5.6.2 in monorepo (#8204) (fbc28b0)
- upgrade jsonwebtoken from 9.0.1 to 9.0.2 (#8202) (ec624bd)
🐛 Bug Fixes
- plugin-seo: removes duplicative json translations (#8206) (64f2395)
- error when viewing versions if plural label is set as a function (#8213) (ff1c1e0)
- richtext-lexical: default Cell not being a link when used as the primary column in lists (#8212) (d0bb1c9)
- ui: field type being overridden when providing a Cell component (#8211) (1608150)
- db-postgres: preserve parent createdAt when creating a new version (#8160) (43a9109)
- richtext-lexical: unnecessary
isEnabled
computations on toolbar items (#8176) (334f940) - graphql: id field non null (#8169) (db29e1e)
- ui: bulk selection and useSelection hook losing types of the IDs its returning (#8194) (d28d40c)
- ui: properly extracts label from field in FieldLabel component (#8190) (a6f13f7)
- requires client field prop in server field components (#8188) (c28618b)
⚠️ BREAKING CHANGES
This PR changes the type of selected
returned from the useSelection
hook from the SelectionProvider
from an object to a Map.
This fixes a bug where in some situations we lose the type of the ID
which can break data entry when using postgres, due to keys being cast
to strings inside of objects which doesn't happen when using a Map.
This PR also fixes a CSS bug with the checkbox when it should be
partially selected.
// before
selected: Record<number | string, boolean>
// after
selected: Map<number | string, boolean>
This means you now need to read the data differently than before.
// before
Object.entries(selected).forEach(([key, value]) => {
// do something
})
// after
for (const [key, value] of selected) {
// do something
}
🤝 Contributors
- Jacob Fletcher (@jacobsfletch)
- Paul (@paulpopus)
- Alessio Gravili (@AlessioGr)
- Sasha (@r1tsuu)
- Germán Jabloñski (@GermanJablo)
- Jarrod Flesch (@JarrodMFlesch)
- Elliot DeNolf (@denolfe)
- Victor Winberg (@VictorWinberg)
- Florian Quiblier (@fofoy)
- Christoffer Hasselberg (@stofolus)
v3.0.0-beta.104
v3.0.0-beta.104 (2024-09-12)
🚀 Features
- passes client field config to server components (#8166) (8b30701)
- document drawer controls (#7679) (51bc8b4)
- drizzle: add support for in and not_in operators on json field (#8148) (ec37307)
🐛 Bug Fixes
- ui: properly retrieves singular labels for array field rows (#8171) (6e94884)
- templates: website media staticDir to public folder (#8175) (9561aa3)
- properly names BlocksField and related types (#8174) (465e47a)
- cpa: match vercel postgres db type with package name (#8141) (043bf95)
- ui: fix row width bug (#7940) (cd734b0)
- ui: set max-width for row (efe17ff)
⚠️ BREAKING CHANGES
-
properly names
BlocksField
and related types (#8174) (465e47a)The
BlockField
type is not representative of the underlying "blocks"
field type, which is plural, i.e.BlocksField
. This is a semantic
change that will better align the type with the field.Breaking Changes
Types related to the
blocks
field have change names. If you were using
theBlockField
or related types in your own applications, simply
change the import name to be plural and instead of singular.Old (singular):
import type { BlockField, BlockFieldClient, BlockFieldValidation, BlockFieldDescriptionClientComponent, BlockFieldDescriptionServerComponent, BlockFieldErrorClientComponent, BlocksFieldErrorServerComponent, BlockFieldLabelClientComponent, BlockFieldLabelServerComponent, } from 'payload'
New (plural):
import type { BlocksField, BlocksFieldClient, BlocksFieldValidation, BlocksFieldDescriptionClientComponent, BlocksFieldDescriptionServerComponent, BlocksFieldErrorClientComponent, BlocksFieldErrorServerComponent, BlocksFieldLabelClientComponent, BlocksFieldLabelServerComponent, } from 'payload'
🤝 Contributors
- Dan Ribbens (@DanRibbens)
- Patrik (@PatrikKozak)
- Jacob Fletcher (@jacobsfletch)
- Paul (@paulpopus)
- Hampus Wallentin Olsen (@hampusolsen)
- Germán Jabloñski (@GermanJablo)
- Bruno Crosier (@brunocrosier)
v3.0.0-beta.103
v3.0.0-beta.103 (2024-09-11)
🚀 Features
🐛 Bug Fixes
- useAsTitle validation now accounts for default and base fields (#8165) (663e511)
- next: set the user data before redirect after login (#8135) (0118bce)
- upload.defParamCharset: utf8 by default (#8157) (a234092)
- richtext-lexical: hover style of the button to remove blocks (#8154) (281c80d)
- extends server props onto field component types (#8155) (12a30a0)
- db-postgres: querying on array wtihin a relationship field (#8152) (0c563eb)
🤝 Contributors
- Paul (@paulpopus)
- Jacob Fletcher (@jacobsfletch)
- Sasha (@r1tsuu)
- Jarrod Flesch (@JarrodMFlesch)
- Germán Jabloñski (@GermanJablo)
v3.0.0-beta.102
v3.0.0-beta.102 (2024-09-09)
🚀 Features
🐛 Bug Fixes
- beforeDuplicate localized blocks and arrays (#8144) (d267cad)
- richtext-lexical: indent regression (#8138) (fa38dfc)
⚠️ BREAKING CHANGES
-
explicitly types field components (#8136) (8e1a5c8)
We are no longer exporting
TextFieldProps
etc. for each field type.
Instead, we now export props for each client/server environment
explicitly. If you were previously importing one of these types into
your custom component, simply change the import name to reflect your
environment.Old:
import type { TextFieldProps } from 'payload'
New:
import type { TextFieldClientProps, TextFieldServerProps } from 'payload'
🤝 Contributors
- Dan Ribbens (@DanRibbens)
- Germán Jabloñski (@GermanJablo)
- Jacob Fletcher (@jacobsfletch)
v3.0.0-beta.101
v3.0.0-beta.101 (2024-09-09)
🚀 Features
- add validation for useAsTitle to throw an error if it's an invalid or nested field (#8122) (638382e)
🐛 Bug Fixes
- #6800, graphql parallel queries with different fallback locales (#8140) (d44fb2d)
- multiple preferences for the same user and entry (#8100) (852f9fc)
- removes transactions wrapping auth strategies and login (#8137) (e2d8038)
- ui: wrong block indication when an error occurred (#7963) (7fa68d1)
- ui: bulk select checkbox being selected by default when in drawer (#8126) (9ec431a)
- ui: thumbnails when serverURL config is provided (#8124) (cadf815)
- ui: various issues around documents lists, listQuery provider and search params (#8081) (b27e42c)
- ui: missing thumbnail for non-image files in bulk upload sidebar (#8102) (32cc1a5)
- ui: better responsiveness for upload fields in sidebar (#8101) (38be69b)
🤝 Contributors
- James Mikrut (@jmikrut)
- Dan Ribbens (@DanRibbens)
- Germán Jabloñski (@GermanJablo)
- Paul (@paulpopus)
- Elliot DeNolf (@denolfe)
- Tylan Davis (@tylandavis)
v3.0.0-beta.100
v3.0.0-beta.100 (2024-09-06)
🚀 Features
🐛 Bug Fixes
- ui, next: adjust modal alignment and padding (#7931) (ead12c8)
- ui: optimizes the relationship field by sharing a single document drawer across all values (#8094) (6253ec5)
- ui: handles falsey relationship options on reset (#8095) (f9ae56e)
- db-postgres: sanitize tab/group path for table name (#8009) (0688c2b)
- cpa: detect package manager from command execution environment (#8087) (c624661)
🤝 Contributors
- Tylan Davis (@tylandavis)
- Jacob Fletcher (@jacobsfletch)
- Sasha (@r1tsuu)
- Alexander (@Arctomachine)
- Paul (@paulpopus)
- Francisco Lourenço (@franciscolourenco)
v3.0.0-beta.99
v3.0.0-beta.99 (2024-09-05)
🐛 Bug Fixes
- ui: significantly optimizes relationship field (#8063) (308fad8)
- only show restore as draft option when drafts enabled (#8066) (6427b7e)
- db-postgres: query hasMany text/number in array/blocks (#8003) (3a65784)
🤝 Contributors
- Jacob Fletcher (@jacobsfletch)
- Jessica Chowdhury (@JessChowdhury)
- Sasha (@r1tsuu)
- Elliot DeNolf (@denolfe)
v2.28.0
2.28.0 (2024-09-04)
Features
- collections can use custom database operations (#7675) (6ba293c) (@kendelljoseph)