Skip to content

Releases: payloadcms/payload

3.0.0-beta.23

02 May 20:09
Compare
Choose a tag to compare
3.0.0-beta.23 Pre-release
Pre-release

3.0.0-beta.23 (2024-05-02)

Features

  • plugin-stripe: update plugin stripe for v3 (#6019) (75a9546)

Bug Fixes

  • reset password validations (#6153) (c0ae287)
  • ui: watch "where" query param inside route and reset WhereBuilder (#6184) (a2b92aa)

Contributors

3.0.0-beta.22

02 May 16:35
6d642fe
Compare
Choose a tag to compare
3.0.0-beta.22 Pre-release
Pre-release

3.0.0-beta.22 (2024-05-02)

Bug Fixes

  • templates: adds back missing CSS import in blank 3.0 template (#6183) (6d642fe)
  • next: ensures admin access only blocks admin routes (3290376)

Contributors

v3.0.0-beta.21

01 May 17:31
Compare
Choose a tag to compare
v3.0.0-beta.21 Pre-release
Pre-release

3.0.0-beta.21 (2024-05-01)

Features

  • richtext-lexical: various validation improvements (#6163) (d8f91cc)
  • richtext-lexical: add validation to link and upload nodes (8829fba)
  • richtext-lexical: link node: disable client-side link validation. This allows overriding validation behavior by providing your own url field to the Link feature. (01f38c4)
  • richtext-lexical: change link fields handling (#6162) (5a82f34)
  • richtext-lexical: initialize lexical during sanitization (#6119) (d9bb51f)
  • richtext-lexical: implement relationship node click and delete/backspace handling (#6147) (181f82f)
  • implement resend rest email adapter (#5916) (3d50caf)

Bug Fixes

  • templates: updates payload app files (#6172) (04f1df8)
  • deps: move file-type to deps (#6171) (1c490ae)
  • various loader issues (#6090) (568b074)
  • add missing error logger to buildFormState error catch (10b99ce)
  • richtext-slate: do not add empty fields group if no custom fields are added (5420d88)
  • richtext-lexical: floating toolbar caret positioned incorrectly for some line heights (#6149) (9a636a3)
  • richtext-lexical: drag and add block handles disappear too quickly for smaller screen sizes. (#6144) (6a9cde2)
  • blocks non-admin users from admin access (#6127) (4d7ef58)
  • importWithoutClientFiles not working due to incorrect import path used (cd5e8d7)
  • loader: typescript module resolver not resolving to source path of symlinked module (fa2083f)

BREAKING CHANGES

  • richtext-lexical: various validation improvement (#6163) (d8f91cc)

This will now display errors if you're previously had invalid link or upload fields data - for example if you have a required field added to an uploads node and did not provide a value to it every time you've added an upload node

  • richtext-lexical: change link fields handling (#6162) (5a82f34)
  • Drawer fields are no longer wrapped in a fields group. This might be breaking if you depend on them being in a field group in any way - potentially if you use custom link fields. This does not change how the data is saved
  • If you pass in an array of custom fields to the link feature, those were previously added to the base fields. Now, they completely replace the base fields for consistency. If you want to ADD fields to the base fields now, you will have to pass in a function and spread defaultFields - similar to how adding your own features to lexical works

Example Migration for ADDING fields to the link base fields:

Previous:

 LinkFeature({
    fields: [
      {
        name: 'rel',
        label: 'Rel Attribute',
        type: 'select',
        hasMany: true,
        options: ['noopener', 'noreferrer', 'nofollow'],
        admin: {
          description:
            'The rel attribute defines the relationship between a linked resource and the current document. This is a custom link field.',
        },
      },
    ],
  }),

Now:

 LinkFeature({
    fields: ({ defaultFields }) => [
      ...defaultFields,
      {
        name: 'rel',
        label: 'Rel Attribute',
        type: 'select',
        hasMany: true,
        options: ['noopener', 'noreferrer', 'nofollow'],
        admin: {
          description:
            'The rel attribute defines the relationship between a linked resource and the current document. This is a custom link field.',
        },
      },
    ],
  }),
"
  • richtext-lexical: initialize lexical during sanitization (#6119) (d9bb51f)
  • sanitizeFields is now an async function
  • the richText adapters now return a function instead of returning the adapter directly"

v3.0.0-beta.20

29 Apr 21:01
Compare
Choose a tag to compare
v3.0.0-beta.20 Pre-release
Pre-release

What's Changed

⚠ BREAKING CHANGES:

@payloadcms/richtext-lexical

Upgrade lexical from 0.13.1 to 0.14.5 and backport other changes by @AlessioGr in #6095

  • Lexical may introduce breaking changes in their updates. Please consult their changelog. One breaking change I noticed is that the SerializedParagraphNode now has a new, required textFormat property.
  • Now that lexical supports ESM, all CJS-style imports have been changed to ESM-style imports. You may have to do the same in your codebase if you import from lexical core packages

Full Changelog: v3.0.0-beta.18...v3.0.0-beta.20

v2.14.2

26 Apr 20:10
Compare
Choose a tag to compare

2.14.2 (2024-04-26)

Bug Fixes

v3.0.0-beta.18

25 Apr 14:36
Compare
Choose a tag to compare
v3.0.0-beta.18 Pre-release
Pre-release

What's Changed

Full Changelog: v3.0.0-beta.15...v3.0.0-beta.18

v2.14.1

25 Apr 18:41
Compare
Choose a tag to compare

2.14.1 (2024-04-25)

Bug Fixes

  • db-postgres: cumulative updates (#6033) (c31b8dc)
  • disable api key checkbox does not remove api key (#6017) (0ffdcc6)
  • richtext-lexical: minimize the amount of times sanitizeFields is called (#6018) (60372fa)

v3.0.0-beta.15

24 Apr 18:01
Compare
Choose a tag to compare
v3.0.0-beta.15 Pre-release
Pre-release

What's Changed

Features

  • feat!: removed getDataAndFile and getLocales from createPayloadRequest in favour of new utilities addDataAndFileToRequest and addLocalesToRequest by @paulpopus in #5999
  • feat(richtext-lexical)!: rework population behavior and allow richText adapter field hooks by @AlessioGr in #5893

Fixes

⚠ BREAKING CHANGES

  • feat!: removed getDataAndFile and getLocales from createPayloadRequest in favour of new utilities addDataAndFileToRequest and addLocalesToRequest by @paulpopus in #5999

Custom handlers will no longer resolve data, locale and fallbackLocale for you. Instead you can use our provided utilities from the next package

// ❌ Before
{
  path: '/whoami/:parameter',
  method: 'post',
  handler: async (req) => {
    return Response.json({
      name: req.data.name, // data will be undefined
      // locales will be undefined
      fallbackLocale: req.fallbackLocale,
      locale: req.locale,
    })
  }
} 

// ✅ After
import { addDataAndFileToRequest } from '@payloadcms/next/utilities'
import { addLocalesToRequest } from '@payloadcms/next/utilities'

{
  path: '/whoami/:parameter',
  method: 'post',
  handler: async (req) => {
    // mutates req, must be awaited
    await addDataAndFileToRequest(req)
    
    // mutates req
    addLocalesToRequest(req)
	  
    return Response.json({
      name: req.data.name, // data is now available
      fallbackLocale: req.fallbackLocale, // locales available
      locale: req.locale,
    })
  }
} 

Full Changelog: v3.0.0-beta.14...v3.0.0-beta.15

v2.14.0

24 Apr 19:42
Compare
Choose a tag to compare

2.14.0 (2024-04-24)

Features

Bug Fixes

  • bulk publish (#6006) (c11600a)
  • db-postgres: extra version suffix added to table names (#5939) (bd8b512)
  • db-postgres: Fixes nested groups inside nested blocks (#5882) (e258866)
  • db-postgres: row table names were not being built properly - v2 (#5961) (9152a23)
  • header filters (#5997) (ad01c67)
  • min/max attributes missing from number input (#5779) (985796b)
  • removes equals & not_equals operators from fields with hasMany (#5885) (a8c9625)

v3.0.0-beta.14

23 Apr 19:51
Compare
Choose a tag to compare
v3.0.0-beta.14 Pre-release
Pre-release

v3.0.0-beta.14

⚠ BREAKING CHANGES

@payloadcms/db-postgres

  • fix(db-postgres): shortens relation names (#5976)

Shortens the name of auto-generated Postgres relations. Should dramatically reduce errors for users in PG. Also handles an issue with HMR in Postgres by properly destroying the database adapter before re-initializing it.

This change will require anyone running @payloadcms/db-postgres to create a new migration and run it against their database.

  • Run your application in development
  • pnpm payload migrate:create will generate the new migration
  • pnpm payload migrate will run the migration against your DB