github Sitecore/content-sdk @sitecore-content-sdk/nextjs@2.3.0

latest releases: @sitecore-content-sdk/cli@2.2.1, @sitecore-content-sdk/events@2.1.2, @sitecore-content-sdk/angular@0.2.0...
3 hours ago

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)

Don't miss a new content-sdk release

NewReleases is sending notifications on new releases.