Skip to content

Releases: payloadcms/payload

v3.0.0-beta.107

16 Sep 15:57
a198fe0
Compare
Choose a tag to compare
v3.0.0-beta.107 Pre-release
Pre-release

v3.0.0-beta.107 (2024-09-16)

🚀 Features

⚡ Performance

  • remove find-up dependency, upgrade file-type dependency (#8195) (6d1a287)

🐛 Bug Fixes

  • duplication with localized arrays in unnamed tabs (#8236) (c460868)
  • drizzle: polymorphic querying of different ID types (#8191) (a0a1e20)

🤝 Contributors

v3.0.0-beta.106

15 Sep 13:13
bb2dd5f
Compare
Choose a tag to compare
v3.0.0-beta.106 Pre-release
Pre-release

v3.0.0-beta.106 (2024-09-15)

🐛 Bug Fixes

🤝 Contributors

v3.0.0-beta.105

15 Sep 02:45
8fc2c43
Compare
Choose a tag to compare
v3.0.0-beta.105 Pre-release
Pre-release

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

  • ui: bulk selection and useSelection hook losing types of the IDs its returning (#8194) (d28d40c)

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

v3.0.0-beta.104

12 Sep 13:10
dbf2301
Compare
Choose a tag to compare
v3.0.0-beta.104 Pre-release
Pre-release

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
    the BlockField 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

v3.0.0-beta.103

11 Sep 13:10
6e61431
Compare
Choose a tag to compare
v3.0.0-beta.103 Pre-release
Pre-release

v3.0.0-beta.103 (2024-09-11)

🚀 Features

  • examples: adds custom components example (#8162) (8fe6ffd)

🐛 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

v3.0.0-beta.102

09 Sep 21:14
df023a5
Compare
Choose a tag to compare
v3.0.0-beta.102 Pre-release
Pre-release

v3.0.0-beta.102 (2024-09-09)

🚀 Features

🐛 Bug Fixes

⚠️ 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

v3.0.0-beta.101

09 Sep 20:13
a8c60c1
Compare
Choose a tag to compare
v3.0.0-beta.101 Pre-release
Pre-release

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

v3.0.0-beta.100

06 Sep 19:30
6b82196
Compare
Choose a tag to compare
v3.0.0-beta.100 Pre-release
Pre-release

v3.0.0-beta.100 (2024-09-06)

🚀 Features

  • cpa: add support for bun package manager in v3 installer (#7709) (b69826a)

🐛 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

v3.0.0-beta.99

05 Sep 16:43
22ee8bf
Compare
Choose a tag to compare
v3.0.0-beta.99 Pre-release
Pre-release

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

v2.28.0

04 Sep 21:09
c8a659c
Compare
Choose a tag to compare

2.28.0 (2024-09-04)

Features

Bug Fixes

  • db-postgres: migration exit codes (#7873) (25e9bc6), closes #7031
  • db-postgres: query hasMany text/number in array/blocks (#8033) (96a624a)
  • plugin-cloud: better logging on static handler (#7924) (1f09348)