Skip to content

Releases: Sitecore/content-sdk

create-content-sdk-app@2.3.2

Choose a tag to compare

Patch Changes

  • Ensure correct cli package version for angular sample (2dc64e6)

create-content-sdk-app@2.3.1

Choose a tag to compare

Patch Changes

  • Resolve draft/preview before cached page lookup so Pages Editor works for non-default locales (3a21c12)

  • Leverage appLocalePrefix config setting in AppRouter ensuring redirect locale handling works when LocaleProxy is removed (x-sc-locale is optional). (e2bac91)

  • [Chore] Cleanup demo code (758194c)

  • Bot tracking support for Angular (4c907d5)

    • Expose createBotTrackingMiddleware function that creates an Express middleware for identifying bot requests
  • SXA Redirects support in Angular (07c6169)

  • minor @sitecore-content-sdk/angular dependency update:

    • Add loader prefetch for scRouterLink/scRichText links, so route data is already loaded by the time a user navigates.

    Controlled per-link via each directive's prefetch input, or globally via sitecore.config's angular.linkPrefetch:

    • 'eager' (default) — prefetch as soon as the link renders.
    • 'hover' — defer prefetching until the pointer dwells on the link for angular.linkPrefetch.delayMs (default 100ms).
    • 'off' — never prefetch. (84866de)
      • Support optional sc_previewTime on the Angular editing render endpoint for time-based Edge preview. (8b18c6e)
      • Bot tracking support for Angular
      • Expose createBotTrackingMiddleware function that creates an Express middleware for identifying bot requests (4c907d5)
      • SXA Redirects support in Angular (07c6169)
  • minor @sitecore-content-sdk/react dependency update:

    • Add locale and facet support to search package and React hooks

    • SearchParameters now accepts an optional locale field for multi-locale index configurations

    • SearchParameters now accepts an optional facet field (FacetRequest) to request facet counts and filter by facet values

    • SearchResponse now includes an optional facets field (FacetResult[]) with facet data when requested

    • Six new public types exported from @sitecore-content-sdk/search: FacetRequest, FacetField, FacetFilter, FacetFilterOperator, FacetValue, FacetResult

    • useSearch and useInfiniteSearch hooks in @sitecore-content-sdk/react updated to support the new locale and facet options and expose facets in the returned state (ce89722)

  • minor @sitecore-content-sdk/search dependency update:

    • Add locale and facet support to search package and React hooks

    • SearchParameters now accepts an optional locale field for multi-locale index configurations

    • SearchParameters now accepts an optional facet field (FacetRequest) to request facet counts and filter by facet values

    • SearchResponse now includes an optional facets field (FacetResult[]) with facet data when requested

    • Six new public types exported from @sitecore-content-sdk/search: FacetRequest, FacetField, FacetFilter, FacetFilterOperator, FacetValue, FacetResult

    • useSearch and useInfiniteSearch hooks in @sitecore-content-sdk/react updated to support the new locale and facet options and expose facets in the returned state (ce89722)

@sitecore-content-sdk/search@0.4.0

Choose a tag to compare

Minor Changes

  • Add locale and facet support to search package and React hooks (ce89722)

    • SearchParameters now accepts an optional locale field for multi-locale index configurations
    • SearchParameters now accepts an optional facet field (FacetRequest) to request facet counts and filter by facet values
    • SearchResponse now includes an optional facets field (FacetResult[]) with facet data when requested
    • Six new public types exported from @sitecore-content-sdk/search: FacetRequest, FacetField, FacetFilter, FacetFilterOperator, FacetValue, FacetResult
    • useSearch and useInfiniteSearch hooks in @sitecore-content-sdk/react updated to support the new locale and facet options and expose facets in the returned state

@sitecore-content-sdk/react@2.3.0

Choose a tag to compare

Minor Changes

  • Add locale and facet support to search package and React hooks (ce89722)

    • SearchParameters now accepts an optional locale field for multi-locale index configurations
    • SearchParameters now accepts an optional facet field (FacetRequest) to request facet counts and filter by facet values
    • SearchResponse now includes an optional facets field (FacetResult[]) with facet data when requested
    • Six new public types exported from @sitecore-content-sdk/search: FacetRequest, FacetField, FacetFilter, FacetFilterOperator, FacetValue, FacetResult
    • useSearch and useInfiniteSearch hooks in @sitecore-content-sdk/react updated to support the new locale and facet options and expose facets in the returned state
  • minor @sitecore-content-sdk/search dependency update:

    • Add locale and facet support to search package and React hooks

    • SearchParameters now accepts an optional locale field for multi-locale index configurations

    • SearchParameters now accepts an optional facet field (FacetRequest) to request facet counts and filter by facet values

    • SearchResponse now includes an optional facets field (FacetResult[]) with facet data when requested

    • Six new public types exported from @sitecore-content-sdk/search: FacetRequest, FacetField, FacetFilter, FacetFilterOperator, FacetValue, FacetResult

    • useSearch and useInfiniteSearch hooks in @sitecore-content-sdk/react updated to support the new locale and facet options and expose facets in the returned state (ce89722)

Patch Changes

  • Fix RichText recreating nested DOM on parent re-renders by memoizing dangerouslySetInnerHTML, preserving event listeners on unchanged HTML. (938ddb6)

  • Fix hydration mismatch warnings in Pages Editor for empty placeholders and placeholder/rendering chrome markers, most visibly with AppPlaceholder in Next.js App Router. Sitecore Pages attaches chrome attributes (e.g. cursor: pointer styling) to these SDK-owned elements directly in the DOM, which can happen before React hydration completes and previously surfaced as a "server rendered HTML didn't match the client" warning. suppressHydrationWarning is now set on these editing-only elements, since their DOM is expected to be mutated externally. (3b9edfe)

    Also fixes a separate "Each child in a list should have a unique key prop" warning from the same code path: AppPlaceholder's outer PlaceholderMetadata key now falls back to a placeholder-name-based key (placeholder-metadata-${name}) when the route rendering has no uid.

@sitecore-content-sdk/nextjs@2.3.0

Choose a tag to compare

Minor Changes

  • minor @sitecore-content-sdk/react dependency update:

    • Add locale and facet support to search package and React hooks

    • SearchParameters now accepts an optional locale field for multi-locale index configurations

    • SearchParameters now accepts an optional facet field (FacetRequest) to request facet counts and filter by facet values

    • SearchResponse now includes an optional facets field (FacetResult[]) with facet data when requested

    • Six new public types exported from @sitecore-content-sdk/search: FacetRequest, FacetField, FacetFilter, FacetFilterOperator, FacetValue, FacetResult

    • useSearch and useInfiniteSearch hooks in @sitecore-content-sdk/react updated to support the new locale and facet options and expose facets in the returned state (ce89722)

  • minor @sitecore-content-sdk/search dependency update:

    • Add locale and facet support to search package and React hooks

    • SearchParameters now accepts an optional locale field for multi-locale index configurations

    • SearchParameters now accepts an optional facet field (FacetRequest) to request facet counts and filter by facet values

    • SearchResponse now includes an optional facets field (FacetResult[]) with facet data when requested

    • Six new public types exported from @sitecore-content-sdk/search: FacetRequest, FacetField, FacetFilter, FacetFilterOperator, FacetValue, FacetResult

    • useSearch and useInfiniteSearch hooks in @sitecore-content-sdk/react updated to support the new locale and facet options and expose facets in the returned state (ce89722)

Patch Changes

  • [SXA Redirects] Refactor redirects logic to be reusable across frameworks (6f8e423)
  • [SXA Redirects] Ensure locales are compared case-insensitively (6f8e423)
  • [App router] Locale always attached on redirect when isLanguagePreserved is true, request URL does not have locale prefix and redirect does not change locale. Adds new behavior controlled by appLocalePrefix setting values passed into redirect proxy: (6563736)
    • always: prefix every locale, including the site default.
    • as-needed: prefix only non-default locales; the site default stays bare. This holds even for isLanguagePreserved rules.
    • never: never include locale prefix
    • unset: behave as as-needed, EXCEPT that isLanguagePreserved from redirect map's checkbox would always ensure locale prefix, when set (Sitecore logic takes precedence).
  • Redirect Proxy not matching encoded URLs with unicode characters in Redirect Map (6563736)

@sitecore-content-sdk/events@2.1.2

Choose a tag to compare

Patch Changes

  • Fix misalignment of the date of birth dob field in the identity event payload between backend and sdk (9329e6e)

@sitecore-content-sdk/core@2.1.3

Choose a tag to compare

Patch Changes

  • Default GraphQLRequestClient to the global fetch API so graphql-request does not use cross-fetch/node-fetch, which triggers Node DEP0169 via url.parse(). (f3401a8)

@sitecore-content-sdk/content@2.2.2

Choose a tag to compare

Patch Changes

  • [SXA Redirects] Refactor redirects logic to be reusable across frameworks (6f8e423)
  • Redirect Proxy not matching encoded URLs with unicode characters in Redirect Map (6563736)

@sitecore-content-sdk/cli@2.2.1

Choose a tag to compare

Patch Changes

  • Fix build command throwing an error when build commands use fetch calls (87b8db3)

@sitecore-content-sdk/angular@0.2.0

Choose a tag to compare

Minor Changes

  • Add loader prefetch for scRouterLink/scRichText links, so route data is already loaded by the time a user navigates. (84866de)

    Controlled per-link via each directive's prefetch input, or globally via sitecore.config's angular.linkPrefetch:

    • 'eager' (default) — prefetch as soon as the link renders.
    • 'hover' — defer prefetching until the pointer dwells on the link for angular.linkPrefetch.delayMs (default 100ms).
    • 'off' — never prefetch.
  • Support optional sc_previewTime on the Angular editing render endpoint for time-based Edge preview. (8b18c6e)

  • Bot tracking support for Angular (4c907d5)

    • Expose createBotTrackingMiddleware function that creates an Express middleware for identifying bot requests
  • SXA Redirects support in Angular (07c6169)

Patch Changes

  • [Chore] Cleanup demo code (758194c)