- The new
readonlyoption makes content read-only at the top level, or for a collection, a file, a singleton or an asset collection. Editors can still browse and preview the content but can’t change it, which is handy while your site is under maintenance. This effectively solves decaporg/decap-cms#3320 and decaporg/decap-cms#2734. - With the new
fileoption, used instead offolder, an entry collection stores all its entries in a single JSON file as an array of objects. This is especially useful for vanilla JavaScript sites that fetch JSON files directly from their pages. Entries can be added, edited, deleted and reordered as usual. This effectively solves decaporg/decap-cms#3542. - The new
filename_templatemedia storage option renames uploaded files automatically, e.g.{{year}}{{month}}{{day}}-{{uuid_short}}or{{slug}}-{{filename}}. Also works with cloud storage providers. This effectively solves decaporg/decap-cms#857. (#422, #902) - The bundled React is now available as
CMS.React, and as theReactexport of the NPM package, so custom previews, editor components and field types can use hooks. This effectively solves decaporg/decap-cms#4568. - Field-level
media_librariesoptions are now merged over the top-level ones, so a File/Image field only needs to set the options it changes and inherits the rest, such as cloud storage credentials. - Users now need write access to the repository to sign in, like Netlify/Decap CMS requires: the Write role or higher on GitHub (unless Open Authoring is enabled), the Developer role or higher on GitLab, and write access on Gitea/Forgejo. On GitLab, the check uses the user’s effective role, wherever it comes from. This effectively solves decaporg/decap-cms#8010.
- If the GitLab branch is protected and the user can’t push to it, collections using the Simple Workflow and the Asset Library are now read-only for that user.
- Files uploaded to Amazon S3 no longer get the
public-readobject ACL, because new buckets reject ACLs. Use a bucket policy to make them public instead. - The JSON schema and TypeScript type declarations have been corrected and expanded after being checked against the implementation.
- Bug fixes and improvements.
Full Changelog: v0.223.0...v0.224.0