What's new in Content SDK 2.2
Content SDK 2.2 introduces on-demand static revalidation (OSR), draft component workflows, developer experience improvements, and several important bug fixes and maintenance updates.
To update your existing Content SDK 2.1 application to 2.2:
-
In your existing application's
package.jsonfile, update every@sitecore-content-sdkpackage to version2.2.0. -
Install the dependencies with the following command:
Notable improvements and bug fixes
The following features, improvements, and bug fixes have been introduced in Content SDK 2.2. This is not an exhaustive list. Please review the Content SDK release page for a complete list of all changes for version 2.2.
On-demand static revalidation
See On-demand static revalidation for App Router apps for more information.
Support for draft components
Content SDK 2.2 introduces support for draft components in the Design Studio. Before this, the Design Studio required a renderingId, exposed as sc_renderingId in query parameters, whenever rendering a component in isolation. This restriction prevented components that had not yet been fully registered in Sitecore, or draft components, from being previewed in the Design Studio.
This change makes the sc_renderingId optional, enabling the Design Studio to render draft or unregistered components without a rendering ID being present.
New proxy execution context
See Using the proxy execution context for more information.