github payloadcms/payload v3.10.0

12 hours ago

v3.10.0 (2024-12-20)

🚀 Features

  • jsdocs for generated types, by using admin.description (#9917) (b330873)

  • join field with polymorphic relationships (#9990) (d03658d)

  • db-postgres, db-sqlite: drizzle schema generation (#9953) (23f1ed4)

    Full type safety on payload.drizzle with a single command

     pnpm payload generate:db-schema
    
    395461122-3ced958b-ec1d-49f5-9f51-d859d5fae236.mov
  • make req partial and optional in DB / Local API operations (#9935) (0e5bda9)

  • db-postgres, db-sqlite: drizzle schema generation (#9953) (23f1ed4)

  • db-sqlite: add idType: 'uuid' support (#10016) (03ff775)

  • ui: export RelationshipTable component (#10084) (6bba7be)

🐛 Bug Fixes

  • unique error message regression (#10064) (0c57eef)
  • commit transaction if a user isnt found in forgotPassword operation (#10055) (439dd04)
  • db-mongodb: querying by localized polymorphic relationships using objects (#10037) (5753efb)
  • db-postgres: relationships v2-v3 migration errors when migrating from v2 to stable v3 (#10080) (07be617)
  • db-postgres: query has many relationships nested in row fields (#9944) (#9944) (eee6432)
  • examples: awaits getHeaders in auth example (#10100) (7bedd6d)
  • examples: add missing header component in auth example (#10088) (dd3c2eb)
  • richtext-*: use correct "for" attribute for label (#10036) (97c120a)
  • richtext-lexical: incorrect string interpolation in the upload converter (#10069) (6a8aeca)
  • richtext-lexical: ui bug when zooming in Safari (#10072) (12dad35)
  • storage-vercel-blob: fixes issue where files with spaces in their name would not be retrieved correctly (#10062) (ce74f1b)
  • templates: broken preview if alternative auth strategy was used, invalid error handling (#9785) (d8c106c)
  • ui: close copy locale modal after locale is changed (#10096) (59fc9d0)
  • ui: join field "add new" calculate initial drawer data with relationship inside blocks (#10057) (1d46b6d)

⚡ Performance

  • db-mongodb: improve performance of all operations, up to 50% faster (#9594) (e468292)

🛠 Refactors

  • consistent caps for acronyms in variable names (#10101) (a7109ed)
  • optimize database schema generation bin script (#10086) (7c4ea5b)

🧪 Tests

  • revert default db adapter in integration tests to mongodb (#10079) (034b442)
  • consolidates custom id e2e tests (#10061) (97a1f4a)

📝 Templates

  • removes DATABASE_URI env var from with-vercel-website template .env.example (#10098) (52b1a9a)
  • update dockerfiles (#10073) (997aed3)
  • add Posts to internal links in website template (#10063) (605cf42)

🏡 Chores

  • proper docker-compose postgres url (ba0e7ae)
  • deps: bump turbo (044c22d)
  • examples: updates auth example to latest (#10090) (7292220)
  • richtext-slate: exports useElementButton, useLeafButton (#10047) (a501e60)
  • templates: remove console.log that logs payload secret for security (#10095) (dec87e9)

🤝 Contributors

Don't miss a new payload release

NewReleases is sending notifications on new releases.