Update dependency @payloadcms/ui to v3.1.0 #12
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
3.0.0-beta.127
->3.1.0
Release Notes
payloadcms/payload (@payloadcms/ui)
v3.1.0
Compare Source
🚀 Features
🐛 Bug Fixes
payload.collections
type (#9414) (91dcf6d)[email protected]
compatibillity for turbopack warnings patch (#9341) (f2205d1)🤝 Contributors
v3.0.2
Compare Source
🐛 Bug Fixes
🤝 Contributors
v3.0.1
Compare Source
⚡ Performance
🐛 Bug Fixes
🤝 Contributors
v3.0.0
This is a major release that includes a re-architecture of Payload from an Express + React Router SPA to the Next.js App Router + RSCs. In addition to this architectural change, we've also shipped a ton of large features, miscellaneous fixes, and DX improvements.
Architectural changes
ui
,next
,translations
, andgraphql
nodemon
Large features
hasMany
upload fields are now supportedSmall but still important features
_rels
tablecount
,countVersions
,countGlobalVersions
,upsert
baseListFilter
function to allow enforced list view filters based on usert
function/access
permissions resultsreact-toastify
forsonner
virtual: true
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
Compare Source
🚀 Features
⚡ Performance
🐛 Bug Fixes
strict: true
(#9281) (e40141b)sanitizeRelationshipIDs
withref
being a non object (#9292) (665b353)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:🤝 Contributors
v3.0.0-beta.134
Compare Source
🚀 Features
⚡ Performance
🐛 Bug Fixes
getTableState
from join field on create (#9256) (ef2475d)proper casing for default root views (#9248) (ed21c1c)
Custom
account
anddashboard
views now defined as lowercase in theconfig.
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
andfeature.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
Compare Source
🚀 Features
🐛 Bug Fixes
🤝 Contributors
v3.0.0-beta.132
Compare Source
🐛 Bug Fixes
🤝 Contributors
v3.0.0-beta.131
Compare Source
🚀 Features
date-fns
to4.1.0
(#9221) (6845878)⚡ Performance
🐛 Bug Fixes
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:
And then run your migrations using:
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
to4.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
andGlobalSlug
types instead ofstring
in these places:Adds
UploadCollectionSlug
andTypedUploadCollection
utility typesThis also changes how we suggest to add an upload collection to a cloud-storage adapter:
Before:
After:
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:
New:
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:
storage-uploadthing: upgrade to v7 (#8346) (4690cd8)
Upgrade uploadthing to v7
The
options
that can be passed to the plugin now mirror theUTApiOptions
of v7.The most notable change is to pass
token
withprocess.env.UPLOADTHING_TOKEN
instead ofapiKey
withprocess.env.UPLOADTHING_SECRET
.v3.0.0-beta.130
Compare Source
🚀 Features
🐛 Bug Fixes
state
when creating first user (#9168) (3b55458)🤝 Contributors
v3.0.0-beta.129
Compare Source
🐛 Bug Fixes
🤝 Contributors
v3.0.0-beta.128
Compare Source
This is a significant release which overhauls the way that we render, and provide, custom React components to the Payload Admin UI. Now, custom server components receive contextual props, like
data
andvalue
, so you can do considerably more with them on the server.It also ships with a variety of performance improvements to the server-side rendering done for the admin panel.
There are a few relatively simple breaking changes outlined below.
🚀 Features
useAsTitle
to the popup links label (#8718) (23907e4)⚡ Performance
🐛 Bug Fixes
user
for document locking (#9139) (48d0fae)relationTo
to locked documents creation (#9137) (3298113)on-demand rsc (#8364) (c96fa61)
Add the following to your root layout file, typically located at
(app)/(payload)/layout.tsx
:If you were previously posting to the
/api/form-state
endpoint, itno longer exists. Instead, you'll need to invoke the
form-state
ServerFunction, which can be done through the new
getFormState
utility:Multiple layer of React Context were removed in favor of direct props. As a result, the following React hooks were removed:
If you were previously using any of these hooks, for example to access field
path
orcellData
, you can now access that directly from theprops
object.The
field
prop also no longer contains a_schemaPath
property. Instead, this is now also accessed directly through props:db-mongodb: use dbName for mongodb model (#9107) (09c41d5)
If a
dbName
was previously provided, it will now be used as theMongoDB collection name instead of the collection
slug
.autoPluralization
will not be applied todbName
.richtext-lexical: upgrade lexical from 0.18.0 to 0.20.0 (#9126) (7767c94)
This upgrades our lexical dependencies from 0.18.0 to 0.20.0. If you
have lexical dependencies installed in your project, you will have to
upgrade those.
Additionally, the lexical team may introduce breaking changes in this
upgrade. If you use lexical APIs directly, please consult their
changelog for more information:
https://github.com/facebook/lexical/releases
🤝 Contributors
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.