Skip to content

Releases: payloadcms/payload

v3.0.2

20 Nov 21:11
025d917
Compare
Choose a tag to compare

v3.0.2 (2024-11-20)

🐛 Bug Fixes

  • allow self referencing relationships when adding new collections to config (#9360) (4030e21)
  • next: properly sets doc id types when using postgres (#9381) (07a9125)
  • next: autosave document rendering (#9364) (9e85be0)
  • richtext-lexical: use copy of @lexical/markdown that does not install @lexical/code (#9382) (5db7e1e)
  • ui: prioritize server rendered Actions in ActionsProvider (#9379) (439dcd4)
  • ui: invalid permissions passed to group and named tab sub-fields (#9366) (c67291d)
  • ui: bulk update and delete ignoring search query (#9377) (ef37483)

🤝 Contributors

v3.0.1

19 Nov 19:39
9ea2663
Compare
Choose a tag to compare

v3.0.1 (2024-11-19)

⚡ Performance

  • significantly reduce HTML we send to the client. Up to 4x smaller (#9321) (5d2b0b3)

🐛 Bug Fixes

  • ui: could not save selection from upload has many drawer (#9325) (f42b1e1)
  • allow setting admin path route from config (#8085) (d3b0a04)
  • templates: website logo not showing (#9334) (7f65c83)
  • templates: seeding in website template moved to a separate route so timeout can be customised (#9327) (26cb1e1)
  • ui: client side doc data not updating after save (#9340) (661f450)
  • ui: show required indicator for select fields (#9348) (2c7ea63)
  • ui: proper permissions within version diff view (#9346) (188baec)
  • ui: addFieldRow set modified (#9324) (0f3f6e7)

🤝 Contributors

v3.0.0

19 Nov 01:19
6407e57
Compare
Choose a tag to compare

This is a major release that includes a re-architecture of Payload from Express and a single-page React app to Next.js. In addition to this architectural change, we've also shipped a ton of large features, miscellaneous fixes, and DX improvements.

Architectural changes

  • Payload now installs fully in any Next.js app router
  • You can now deploy your entire project (frontend and backend) in one app
  • Payload can now be deployed serverless on platforms like Vercel
  • Everything Payload does now works seamlessly within any Next.js project
  • You can now use the Payload Local API in Server Components and Server Functions
  • Postgres, Live Preview, and Lexical have been marked as stable
  • All Payload exports have been significantly cleaned up and organized
  • Payload is now an ESM project
  • Payload is now modular, and we now publish new packages ui, next, translations, and graphql
  • The Payload config is now server-side only, and works in any Node environment
  • Server-side HMR works out of the box - removing the need for nodemon

Large features

  • Join field - bi-directional relationships, more control over the database schema, and more
  • Select API - select specific fields when querying using Local API
  • Jobs Queue - background jobs fully supported in Payload with no third-party dependencies
  • Populate / DefaultPopulate API - determine which fields should be retrieved when Payload populates relationships
  • Lexical blocks and inline blocks - easily make Payload Blocks available in Lexical as custom rich text features
  • SQLite database adapter now available
  • Vercel Postgres database adapter released, specifically for serverless deploys on Vercel
  • Live Preview server components support
  • Admin UI has been refreshed
  • hasMany upload fields are now supported
  • Bulk upload has been added
  • Document Locking pattern has been implemented, which shows if someone is currently editing a document
  • Ability to publish individual locales one at a time has been added
  • Lexical now has Table support

Small but still important features

  • New Payload logo (thanks Candycode!)
  • New Resend email adapter is now available
  • Postgres now saves single, monomorphic relationships directly in a column rather than in _rels table
  • GraphQL has been abstracted into a specific Next.js route handler, and no longer affects Payload initialization at all
  • React Compiler has been introduced into Payload build pipeline
  • You can now run migrations on init, rather than only in CI (helpful for long-running servers)
  • New Local API operations - count, countVersions, countGlobalVersions, upsert
  • Adds baseListFilter function to allow enforced list view filters based on user
  • Lexical fixed toolbar option has been added
  • Optimized the way that relational DBs store relations
  • Postgres point field is now supported
  • Postgres deep JSON querying is now supported
  • Cuztomize Drizzle schema by passing in your own, which is handled outside of Payload
  • Fully typed i18n t function
  • Focal point data is now stored on uploads
  • Adds ability to login with username rather than email
  • New pattern for passing custom server / client props to custom components
  • Email adapter pattern, including optimized Resend HTTP client
  • Reduced / optimized the shape of /access permissions results
  • Allows sorting by multiple fields
  • MongoDB now saves ObjectID for relationships
  • Adds more control over log level customization
  • Downgrades common errors like NotFound or Forbidden to info
  • Swaps out react-toastify for sonner
  • True "virtual" fields via virtual: true
  • Adds ability to customize filenames before upload
  • Adds locale indicators to localized field labels
  • Scope all payload css to payload-default layer
  • Document duplicate / delete from drawers

⚠️ BREAKING CHANGES

This release includes breaking changes. In order to update from version 2 to 3, please review the migration docs.

🤝 Contributors

v3.0.0-beta.135

19 Nov 00:26
fade739
Compare
Choose a tag to compare
v3.0.0-beta.135 Pre-release
Pre-release

v3.0.0-beta.135 (2024-11-19)

🚀 Features

⚡ Performance

  • removes unnecessary field styles from initial page response (#9286) (30947d2)

🐛 Bug Fixes

  • queues types with strict: true (#9281) (e40141b)
  • nav jumping around if no nav preferences are set (#9301) (0a6f530)
  • sanitize sub block field permissions correctly (#9296) (5503afd)
  • getPayload node exits on webpack-hmr websocket failure (#9279) (488c28c)
  • db-mongodb: potential errors in sanitizeRelationshipIDs with ref being a non object (#9292) (665b353)
  • graphql: loading of polymorphic hasMany relationships (#9175) (0075b99)
  • next: passes doc through edit view handler (#9302) (ec95ce8)
  • next: passes locale through requests in live preview edit view (#9298) (54ac8b9)
  • next: initialize payload with importMap (#9297) (58ac784)
  • templates: remove req from seed script (ecbafbf)
  • templates: seed from url (#9306) (333da1b)
  • ui: safely accesses field in default filter component (#9276) (1a31e63)

⚠️ BREAKING CHANGES

  • removes unnecessary field styles from initial page response (#9286) (30947d2)

    This only effects those who are importing Payload's field components
    into your own Custom Components or front-end application. The width
    prop no longer exists. It has been consolidated into the existing
    style prop. To migrate, simply move this prop as follows:

    import { TextInput } from '@payloadcms/ui
    
    export const MyCustomComponent = () => {
      return (
        <TextInput 
    -      width="60%"
           style={{
    +        width: "60%,
           }}
        />
      )
    }

🤝 Contributors

v3.0.0-beta.134

17 Nov 16:55
cb6ceae
Compare
Choose a tag to compare
v3.0.0-beta.134 Pre-release
Pre-release

v3.0.0-beta.134 (2024-11-17)

🚀 Features

  • support relationship writes using objects instead of IDs (#9253) (d21fca9)
  • deprecates getPayloadHMR in favor of simpler getPayload (#9249) (31b32ef)
  • richtext-lexical: allow replacing entire blocks with custom components (#9234) (63cc966)

⚡ Performance

  • richtext-lexical: significantly reduce lexical rerendering and amount of network requests from blocks (#9255) (35917c6)

🐛 Bug Fixes

  • proper casing for default root views (#9248) (ed21c1c)
  • next: custom default root views (#9247) (c4269d2)
  • ui: avoid calling getTableState from join field on create (#9256) (ef2475d)

⚠️ BREAKING CHANGES

  • proper casing for default root views (#9248) (ed21c1c)

    Custom account and dashboard views now defined as lowercase in the
    config.

    import { buildConfig } from 'payload'
    
    const config = buildConfig({
      // ...
      admin: {
        components: {
          // ...
          views: {
            // ...
    -       Account: ...
    -       Dashboard: ...
    +       account: ...
    +       dashboard: ...
          },
        },
      },
    })
  • richtext-lexical: significantly reduce lexical rerendering and amount of network requests from blocks (#9255) (35917c6)

    The field RSC now provides an initial state for all lexical blocks. This
    completely obliterates any flashes and lexical block loading states when
    loading or saving a document.

    This removes the feature.hooks.load and feature.hooks.save
    interfaces from custom lexical features, as they weren't used internally
    and added unnecessary, additional overhead.

    If you have custom features that use those, you can migrate to using
    normal payload hooks that run on the server instead of the client.

🤝 Contributors

v3.0.0-beta.133

16 Nov 19:05
457be31
Compare
Choose a tag to compare
v3.0.0-beta.133 Pre-release
Pre-release

v3.0.0-beta.133 (2024-11-16)

🚀 Features

🐛 Bug Fixes

  • corrects cases of false positive identification of custom id fields (#9245) (9b00b59)

🤝 Contributors

v3.0.0-beta.132

15 Nov 23:18
ff8e7bb
Compare
Choose a tag to compare
v3.0.0-beta.132 Pre-release
Pre-release

v3.0.0-beta.132 (2024-11-15)

🐛 Bug Fixes

  • templates: vercel website migrations (#9235) (30d66bf)
  • ui: lexical was incorrectly set to readonly in blocks, groups, and tabs (#9237) (131d1be)

🤝 Contributors

v3.0.0-beta.131

15 Nov 20:45
90686fa
Compare
Choose a tag to compare
v3.0.0-beta.131 Pre-release
Pre-release

v3.0.0-beta.131 (2024-11-15)

🚀 Features

  • sanitise access endpoint (#7335) (26ffbca)
  • bumps date-fns to 4.1.0 (#9221) (6845878)
  • re-order DefaultCellComponentProps generics (#9207) (77c99c2)
  • db-mongodb: update mongoose to 8.8.1 (#9115) (7c6f419)
  • db-mongodb: support query options in db update operations (#9191) (2d2d020)
  • richtext-lexical: add tooltips to toolbar dropdown items (#9218) (7294880)
  • richtext-lexical, ui: add icon if link opens in new tab (#9211) (82e72fa)
  • storage-uploadthing: upgrade to v7 (#8346) (4690cd8)

⚡ Performance

  • removes undefined props from rsc requests (#9195) (2d7626c)
  • removes i18n.supportedLanguages from client config (#9209) (5482e7e)

🐛 Bug Fixes

  • improve collection / global slugs type-safety in various places (#8311) (810c29b)
  • duplicate list preferences stored (#9185) (a5cae07)
  • wires up abort controller logic for list columns (#9180) (129fadf)
  • ui: jumping hasmany uploads when form is submitting or in readonly mode (#9198) (315b4e5)
  • ui: fixes layout shift when form is submitted (#9184) (e6d0443)

⚠️ BREAKING CHANGES

  • db-mongodb: update mongoose to 8.8.1 (#9115) (7c6f419)

    MongoDB projects need to run a migration after updating to this beta version, because all relationship IDs are now stored as ObjectID (as they should have always been saved) and we need to migrate your existing relationship data from string-based IDs to ObjectIDs.

    To create this migration, run:

    pnpm payload migrate:create --file @payloadcms/mongodb/relationships-v2-v3
    

    And then run your migrations using:

    pnpm payload migrate
    

    In addition, if your project is heavily relying on using the Mongoose models directly, you may want to review the upgrade guides from v6 to v7 and v7 to v8, making
    adjustments as needed.

  • bumps date-fns to 4.1.0 (#9221) (6845878)

  • improve collection / global slugs type-safety in various places (#8311) (810c29b)

    Improves type-safety of collection / global slugs by using CollectionSlug / UploadCollectionSlug and GlobalSlug types instead of string in these places:
    Adds UploadCollectionSlug and TypedUploadCollection utility types

    This also changes how we suggest to add an upload collection to a cloud-storage adapter:
    Before:

    azureStorage({
      collections: {
        [Media.slug]: true,
      },
    })

    After:

    azureStorage({
      collections: {
        media: true,
      },
    })
  • re-order DefaultCellComponentProps generics (#9207) (77c99c2)

    Changes the order of the DefaultCellComponentProps generic type,
    allowing us to infer the type of cellData when a ClientField type is
    passed as the first generic argument. You can override the cellData type
    by passing the second generic.

    Previously:

    type DefaultCellComponentProps<TCellData = any, TField extends ClientField = ClientField>

    New:

    type DefaultCellComponentProps<TField extends ClientField = ClientField, TCellData = undefined>

    You can override the cellData type by passing in the second argument
    to the generic. ie if you know the shape of your data differs than the
    inferred type then you can do something like:

    DefaultCellComponentProps<RelationshipFieldClient, { myShape: string, here: string }>
  • storage-uploadthing: upgrade to v7 (#8346) (4690cd8)

    Upgrade uploadthing to v7

    The options that can be passed to the plugin now mirror the
    UTApiOptions of v7.

    The most notable change is to pass token with
    process.env.UPLOADTHING_TOKEN instead of apiKey with
    process.env.UPLOADTHING_SECRET.

    options: {
    - apiKey: process.env.UPLOADTHING_SECRET,
    + token: process.env.UPLOADTHING_TOKEN,
      acl: 'public-read',
    },

v3.0.0-beta.130

13 Nov 19:23
6baff8a
Compare
Choose a tag to compare
v3.0.0-beta.130 Pre-release
Pre-release

v3.0.0-beta.130 (2024-11-13)

🚀 Features

  • adds ability to define base filter for list view (#9177) (9da8543)
  • customize log levels and downgrade common errors to info (#9156) (d628222)
  • next: initializes nav group prefs on the server and consolidates records (#9145) (f6bdc0a)
  • templates: update config structure in website template to be more clear (#9161) (5ac4e73)

🐛 Bug Fixes

  • add inline <style> to ensure the order of declared css layers as much as possible (#9123) (cd95daf)
  • fallbackLocale not respecting default settings, locale specific fallbacks and not respecting 'none' or false (#8591) (f4d526d)
  • expose server and client props to custom list slot components (#9159) (a8e3095)
  • db-postgres: create relationship-v2-v3 migration (#9178) (5b9cee6)
  • next: safely check for state when creating first user (#9168) (3b55458)

🤝 Contributors

v3.0.0-beta.129

12 Nov 22:13
8c2fc71
Compare
Choose a tag to compare
v3.0.0-beta.129 Pre-release
Pre-release

v3.0.0-beta.129 (2024-11-12)

🐛 Bug Fixes

  • richtext-lexical: inline blocks drawer not rendering any fields due to incorrect schemapath suffix (#9158) (a1c99c8)

🤝 Contributors