github Sitecore/content-sdk @sitecore-content-sdk/content@2.2.0

Minor Changes

  • Support Draft Components (a1d3798)

Patch Changes

  • Personalize hide component does not work properly in edit in case of nested personalization (77825b9)
  • Return empty app-router static params when generateStaticPaths is false (standard app-router template). Only prepend the configured default site to sites.json when defaultSite is explicitly set. Cache-components OSR template uses a build-validation site placeholder (_DEFAULT_) in generateStaticParams when path generation is off so next build succeeds without Edge or CMS content. (2bff473)
  • Fix imageParams breaking preview context images. Preview authentication parameters (ttc, tt, hash) were being stripped when imageParams were applied, causing images to fail loading. These parameters are now preserved in the required params list. (3dc5fa6)
  • [content] Fix fallback URL in Sitemapindex (9d576f7)
  • [core][content] Replace url-parse with the WHATWG URL API in the GraphQL client and media URL helpers to avoid Node DEP0169 / legacy URL parsing warnings. (c50ffd7)
  • [content] Fix build crash and normalize DetailedRenderingParams object values for Styles, CSSStyles, LibraryId, and GridParameters rendering params (562866b)
  • Fix personalization resolution in Edit Mode and Preview Mode by sending the sc_variant header to the Preview GraphQL API so API resolves the active variant server-side, instead of relying on sdk experiences filtering. (858afaf)
  • Support time-based preview via sc_previewTime query parameter. The editing render endpoint now accepts an optional sc_previewTime query parameter and forwards it as a header to Edge Preview GraphQL, enabling calendar-based content validation at specific future dates. (7b3b3f3)
  • Upgrade glob dependency from deprecated v11 to v13 to resolve security vulnerabilities (CVE-2025-64756) (debe2bd)

Don't miss a new content-sdk release

NewReleases is sending notifications on new releases.