versioning
This plugin enables easy versioning for Payload collections.
Installation
pnpm add @stefgootzen/payload-plugin-versioning About
The Payload versioning plugin adds necessary fields and hooks for managing one-to-many relationships in collections. It introduces a 'versions' field to the base collection and a 'base' field to the version collection. This setup allows for automatic versioning and cascade behavior, ensuring that related versions are managed appropriately upon deletions. For configuration, users can utilize the `withVersioning` function in the Payload config, specifying which collections should have versioning enabled. An automatically incremented `versionNumber` field helps in keeping track of version history. Users can also create the first version upon the base document's creation through a simple configuration. This plugin targets users needing their versioning to reflect published states rather than just the latest document version. It offers a more user-friendly approach to version management in Payload CMS.
Package info
- Package name
@stefgootzen/payload-plugin-versioning- Latest version
1.0.2- Unpacked size
- 35 kB
- License
- MIT
- Weekly downloads
- 14
- Last publish
- Sep 8, 2025
Similar plugins
More in ContentPresets
Save and apply reusable block configurations as presets in the Payload admin panel.
AI Plugin
Integrates AI capabilities for content generation in Payload CMS.
Nested Docs Page Tree
Adds a nested tree view for managing documents in Payload CMS.
Nested Docs
Adds parent-child document hierarchies with auto-generated breadcrumbs to Payload collections.
Redirects
Manage redirects directly within the Payload CMS admin panel.
Reservation and Booking Manager
Manage reservations and bookings through Payload CMS with conflict detection and scheduling.