Repository navigation
feat!: support Payload 4 - #3
Merged
Merged
Conversation
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Automations to automatically generate PRs for you. |
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What
Moves the plugin to Payload 4.0.0-canary.38 and prepares v1.0.0-beta.1. The version in
package.jsonis already1.0.0-beta.1. This PR adds no tag.Breaking changes:
0.x.metadata→info,specEndpoint→path,interactiveAuth.endpoint→interactiveAuth.path, docs UIspecEndpoint→specURL. Old names throw at startup.securityWhenis nowsecurity, andfilters.excludeWhenmoves intofilters.excludeOperations.custom.openapi.securitytakes'public'or'secured'instead oftrueorfalse.transformgets one object, and an error in it fails the request.serversno longer comes from theHostheader.Also new: Payload 4 endpoints (validate, upload instructions, file download, API key reveal, document access), the
access,servers,trustedHostsandinteractiveAuth.collectionoptions, folders and tags,definePlugin, and opt-out telemetry. Request bodies, query params and responses now match what Payload reads and sends. The repo moves to shared tooling 0.2.3, and the docs site gets a v1 (Beta) version.Full list:
.github/releases/v1.0.0-beta.1.mdanddocs/v1/upgrade-guide.mdx.Why
Payload 4 changes routes, config and generated types, so 0.x does not work with it. The rename and security changes clean up the options before v1.
How I tested it
Unit tests (151) and integration tests (78) against the dev app with SQLite. The integration tests validate the 3.2, 3.1 and 3.0 output with an OpenAPI validator. Each of the 3 commits passes typecheck, lint, tests and build on its own.
Checklist
pnpm typecheck && pnpm lint && pnpm format && pnpm test:unitpassREADME.mdanddocs/updated if users will notice the changefix: ...,feat: ...)