v3.0.0-beta.111
Version v3.0.0-beta.111Major ReleasePre-release
Release Notes
v3.0.0-beta.111 (2024-10-04)
š Features
- update [email protected], [email protected] (#8489) (fa59d4c)
š Bug Fixes
- db-postgres: missing types for db.pool by moving @types/pg from devDependencies to dependencies (#8556) (0d3416c)
- drizzle: make radio and select column names to snake_case (#8439) (0128eed)
- drizzle: row / collapsible inside of localized fields (#8539) (414030e)
- ui: disableBulkEdit on ui fields, defaults to true (#8540) (cf8347f)
- plugin-seo: now respects serverURL and api routes configuration (#8546) (157b1e1)
- templates: dark and light mode not correctly working on website template's header (#8542) (dffdb22)
- templates: add no search results text to website template search page (#8531) (eb4e371)
- templates: static generation from incorrect params provided (#8530) (132131a)
- ui crashes editing doc with deleted upload (#8526) (9ef4fab)
- templates: add force-static to pages and posts (#8527) (65015aa)
- next: safely checks user within useEffect (#8524) (0f7d444)
- properly resolves cjs withPayload export (#8521) (ca90d2b)
- templates: remove lock from website template (#8520) (ecfd90b)
- templates: fixed drafts not being unpublished in the frontend of the website template (#8514) (8637144)
- next: current published version label (#8505) (a8eceb0)
- ui: admin.allowCreate in upload field (#8484) (d80410b)
- db-postgres, db-sqlite: joins relation name (#8491) (27b1629)
ā ļø BREAKING CHANGES
- drizzle: make radio and select column names to snake_case (#8439) (0128eed)
Fixes https://github.com/payloadcms/payload/issues/8402 and https://github.com/payloadcms/payload/issues/8027 Before DB column names were camelCase: !image After this change, they are snake_case: !Screenshot 2024-10-04 114226 #### Breaking SQLite / Postgres ā ļø If you had any select (not
hasMany: true) or radio fields with the name in camelCase, for example:
```ts
{
name: 'selectReadOnly',
type: 'select',
admin: {
readOnly: true,
},
options: [
{
label: 'Value One',
value: 'one',
},
{
label: 'Value Two',
value: 'two',
},
],
},
```
This previously was mapped to the db column name"selectReadOnly". Now
it'sselect_read_only.
Generate a new migration to rename your columns.
```sh
pnpm payload migrate:create
```
Then select "rename column" for targeted columns and Drizzle will handle
the migration.
- update [email protected], [email protected] (#8489) (fa59d4c)
Updates the minimal supported versions of next.js to
15.0.0-canary.173
and react to19.0.0-rc-3edc000d-20240926.
Adds neccessary awaits according to this breaking change
https://github.com/vercel/next.js/pull/68812
TheparamsandsearchParamstypes in
app/(payload)/admin/[[...segments]]/page.tsxand
app/(payload)/admin/[[...segments]]/not-found.tsxmust be changed to
promises:
```diff - type Args = {
- params: {
- segments: string[]
- }
- searchParams: {
- [key: string]: string | string[]
- }
- }
- type Args = {
- params: Promise<{
- segments: string[]
- }>
- searchParams: Promise<{
- [key: string]: string | string[]
- }>
- }
```
š¤ Contributors
- Sasha (@r1tsuu)
- Alessio Gravili (@AlessioGr)
- Jacob Fletcher (@jacobsfletch)
- Paul (@paulpopus)
- Dan Ribbens (@DanRibbens)
- Patrik (@PatrikKozak)
- Elliot DeNolf (@denolfe)
- GermƔn JabloƱski (@GermanJablo)