npm payload 3.0.0-beta.111
v3.0.0-beta.111

latest release: 3.0.0-canary.4a58b0c
4 hours ago

v3.0.0-beta.111 (2024-10-04)

🚀 Features

  • update next@15.0.0-canary.173, react@19.0.0-rc-3edc000d-20240926 (#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 #8402 and
    #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:

    {
      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's select_read_only.
    Generate a new migration to rename your columns.

    pnpm payload migrate:create

    Then select "rename column" for targeted columns and Drizzle will handle
    the migration.

  • update next@15.0.0-canary.173, react@19.0.0-rc-3edc000d-20240926 (#8489) (fa59d4c)

    Updates the minimal supported versions of next.js to
    15.0.0-canary.173
    and react to 19.0.0-rc-3edc000d-20240926.

    Adds neccessary awaits according to this breaking change
    vercel/next.js#68812

    The params and searchParams types in
    app/(payload)/admin/[[...segments]]/page.tsx and
    app/(payload)/admin/[[...segments]]/not-found.tsx must be changed to
    promises:

    - type Args = {
    -   params: {
    -     segments: string[]
    -   }
    -   searchParams: {
    -     [key: string]: string | string[]
    -   }
    - }
    
    + type Args = {
    +   params: Promise<{
    +     segments: string[]
    +   }>
    +   searchParams: Promise<{
    +     [key: string]: string | string[]
    +   }>
    + }
    

🤝 Contributors

Don't miss a new payload release

NewReleases is sending notifications on new releases.