diff --git a/docs/release-notes/6.5.4/changelog.ai.txt b/docs/release-notes/6.5.4/changelog.ai.txt new file mode 100644 index 000000000..a6b26961a --- /dev/null +++ b/docs/release-notes/6.5.4/changelog.ai.txt @@ -0,0 +1,17 @@ +AI Context: 6.5.4 Changelog (changelog.mdx) + +This file tracks manual edits made after the generation script ran. +The script reads the "Skipped PRs" section to avoid re-adding removed entries. + +## Skipped PRs + +6326 - chore: replace get-yarn-workspaces with listWorkspaces from @webiny/stdlib; internal (internal dependency cleanup, no user-facing change), skipped automatically. +6352 - chore: update dependencies for 6.5.4; internal (dependency bumps with no behaviour change), skipped automatically. + +## Manual Rewrites + +- #6351: written by hand under a new "Workflows" section. The triage had skipped it as a follow-up to #6325, but the publish gap it fixes was already in 6.5.3 and also covered Website Builder pages, so it gets its own entry. +- #6325, #6335: removed em dashes. +- #6329: reframed as a dependency cleanup. Removed the backwards-compatibility notes (Emotion warning, `ButtonContainer` note) and the matching upgrade guide step, since no one is expected to rely on Emotion from Webiny. +- #6344: dropped the AI Power-Ups cache mention (internal detail); the entry now describes only the `KeyValueStore.set` options change. +- #6343: dropped "18 dependencies" (that count was for the webiny-js yarn.lock, not user projects). diff --git a/docs/release-notes/6.5.4/changelog.authors.json b/docs/release-notes/6.5.4/changelog.authors.json new file mode 100644 index 000000000..544d6f6d3 --- /dev/null +++ b/docs/release-notes/6.5.4/changelog.authors.json @@ -0,0 +1,10 @@ +{ + "6325": "adrians5j", + "6326": "adrians5j", + "6329": "adrians5j", + "6335": "brunozoric", + "6343": "adrians5j", + "6344": "adrians5j", + "6351": "adrians5j", + "6352": "brunozoric" +} diff --git a/docs/release-notes/6.5.4/changelog.mdx b/docs/release-notes/6.5.4/changelog.mdx new file mode 100644 index 000000000..103ce7b8c --- /dev/null +++ b/docs/release-notes/6.5.4/changelog.mdx @@ -0,0 +1,52 @@ +--- +id: kxplhg37 +title: Webiny 6.5.4 Changelog +description: See what's new in Webiny version 6.5.4 +--- + +import { GithubRelease } from "@/components/GithubRelease"; +import { Alert } from "@/components/Alert"; + + + +## Workflows + +### Publishing Now Requires an Approved Review on Entries and Pages With a Workflow ([#6351](https://github.com/webiny/webiny-js/pull/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](https://github.com/webiny/webiny-js/pull/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](https://github.com/webiny/webiny-js/pull/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](https://github.com/webiny/webiny-js/pull/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](https://github.com/webiny/webiny-js/pull/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-svgr` with a Smaller SVG Loader ([#6343](https://github.com/webiny/webiny-js/pull/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. diff --git a/docs/release-notes/6.5.4/upgrade-guide.mdx b/docs/release-notes/6.5.4/upgrade-guide.mdx new file mode 100644 index 000000000..6849b12a7 --- /dev/null +++ b/docs/release-notes/6.5.4/upgrade-guide.mdx @@ -0,0 +1,61 @@ +--- +id: fsi9tu9o +title: Upgrade from 6.5.x to 6.5.4 +description: Learn how to upgrade Webiny from 6.5.x to 6.5.4. +--- + +import { Alert } from "@/components/Alert"; +import { AdditionalNotes } from "@/components/upgrade/AdditionalNotes"; + + + +- how to upgrade Webiny from 6.5.x to 6.5.4 + + + + + +Make sure to check out the [6.5.4 changelog](./changelog) to get familiar with the changes introduced in this release. + + + +## Step-by-Step Guide + +### 1. Upgrade Webiny Packages + +Upgrade all Webiny packages by running the following command: + +```bash +yarn webiny upgrade 6.5.4 --debug +``` + +Note that the command above will run upgrades for all available versions of Webiny up to 6.5.4. If there are upgrades for 6.5.1, 6.5.5, they will be ran. + +You can omit the version to upgrade to the latest available: + +```bash +yarn webiny upgrade --debug +``` + +Once the upgrade has finished, running the `yarn webiny --version` command in your terminal should return **6.5.4**. + + + +If the above command fails or is not available in your setup, you can run the upgrade script directly via `npx`: + +```bash +npx https://github.com/webiny/webiny-upgrades-v6 6.5.4 --debug +``` + + + +### 2. Deploy Your Project + +Proceed by redeploying your Webiny project: + +```bash +# Execute in your project root. +yarn webiny deploy --env {environment} +``` + +