Release Notes > 6.5.4
Webiny 6.5.4 Changelog
See what's new in Webiny version 6.5.4
Workflows
Publishing Now Requires an Approved Review on Entries and Pages With a Workflow (#6351
)
On a content model with a workflow, a revision that was never sent for review, or whose review was cancelled, could still be published. This worked through the API, the “Save & Publish” button and scheduled publishes. Website Builder pages had the same gap.
Publishing such a revision or page now fails with the WORKFLOW_STATE_NOT_COMPLETED error, the same error an unfinished review gives. Models without a workflow, private models and singleton models publish as before.
If you publish entries or pages through the API on a model that has a workflow, each revision now needs an approved review first.
Headless CMS
Fixed "New Revision" Button Not Working on Reviewed, Published Entries (#6325
)
When using content review workflows, clicking “New Revision” on an approved and published entry did nothing. No request was sent and no revision was created. The only workaround was the “Create New Revision” option in the menu, which discarded any unsaved edits.
This has been fixed. The “New Revision” button now works correctly on published entries: it creates a new draft revision that preserves your edits and goes through the review workflow again before it can be published. The button is also disabled while a revision is being created to prevent duplicate revisions from repeated clicks.
Admin
Fixed GraphQL Playground Failing When Query Contains Multiple Operations (#6335
)
Executing a query with multiple named operations in the GraphQL Playground would fail with “Must provide operation name if query contains multiple operations”. Now, when a query has more than one operation, clicking Execute opens a menu to select which operation to run, and Cmd/Ctrl+Enter executes the operation under your cursor.
Development
Removed Emotion in Favour of Tailwind (#6329
)
As part of an ongoing dependency cleanup, Emotion (@emotion/css, @emotion/react, @emotion/styled) is gone from the admin apps. All styling now uses Tailwind classes. This also removes Emotion’s transitive dependencies, such as babel-plugin-macros, from your project’s yarn.lock.
Improved Key-Value Store API for Tenant-Scoped Caching (#6344
)
The tenant-scoped KeyValueStore.set method now accepts options, including expiresAt, the same as the global store. You can now store a tenant-scoped value that expires without going through GlobalKeyValueStore and passing the tenant as the scope yourself.
Replaced@rsbuild/plugin-svgrWith a Smaller SVG Loader (#6343
)
The build tools now use a custom SVG loader instead of @rsbuild/plugin-svgr. This removes @svgr/*, snake-case, dot-case, no-case and lower-case from your project’s dependencies. The import API is unchanged: import { ReactComponent as Icon } from "./icon.svg" and import url from "./icon.svg" work as before, in Webiny packages and in your extensions.