Releases: Sitecore/content-sdk
Release list
create-content-sdk-app@2.3.2
Patch Changes
- Ensure correct cli package version for angular sample (2dc64e6)
create-content-sdk-app@2.3.1
Patch Changes
-
Resolve draft/preview before cached page lookup so Pages Editor works for non-default locales (3a21c12)
-
Leverage
appLocalePrefixconfig setting in AppRouter ensuring redirect locale handling works when LocaleProxy is removed (x-sc-localeis optional). (e2bac91) -
[Chore] Cleanup demo code (758194c)
-
Bot tracking support for Angular (4c907d5)
- Expose
createBotTrackingMiddlewarefunction that creates an Express middleware for identifying bot requests
- Expose
-
SXA Redirects support in Angular (07c6169)
-
minor
@sitecore-content-sdk/angulardependency update:- Add loader prefetch for
scRouterLink/scRichTextlinks, so route data is already loaded by the time a user navigates.
Controlled per-link via each directive's
prefetchinput, or globally viasitecore.config'sangular.linkPrefetch:'eager'(default) — prefetch as soon as the link renders.'hover'— defer prefetching until the pointer dwells on the link forangular.linkPrefetch.delayMs(default 100ms).'off'— never prefetch. (84866de)- Support optional
sc_previewTimeon the Angular editing render endpoint for time-based Edge preview. (8b18c6e) - Bot tracking support for Angular
- Expose
createBotTrackingMiddlewarefunction that creates an Express middleware for identifying bot requests (4c907d5) - SXA Redirects support in Angular (07c6169)
- Support optional
- Add loader prefetch for
-
minor
@sitecore-content-sdk/reactdependency update:-
Add locale and facet support to search package and React hooks
-
SearchParametersnow accepts an optionallocalefield for multi-locale index configurations -
SearchParametersnow accepts an optionalfacetfield (FacetRequest) to request facet counts and filter by facet values -
SearchResponsenow includes an optionalfacetsfield (FacetResult[]) with facet data when requested -
Six new public types exported from
@sitecore-content-sdk/search:FacetRequest,FacetField,FacetFilter,FacetFilterOperator,FacetValue,FacetResult -
useSearchanduseInfiniteSearchhooks in@sitecore-content-sdk/reactupdated to support the newlocaleandfacetoptions and exposefacetsin the returned state (ce89722)
-
-
minor
@sitecore-content-sdk/searchdependency update:-
Add locale and facet support to search package and React hooks
-
SearchParametersnow accepts an optionallocalefield for multi-locale index configurations -
SearchParametersnow accepts an optionalfacetfield (FacetRequest) to request facet counts and filter by facet values -
SearchResponsenow includes an optionalfacetsfield (FacetResult[]) with facet data when requested -
Six new public types exported from
@sitecore-content-sdk/search:FacetRequest,FacetField,FacetFilter,FacetFilterOperator,FacetValue,FacetResult -
useSearchanduseInfiniteSearchhooks in@sitecore-content-sdk/reactupdated to support the newlocaleandfacetoptions and exposefacetsin the returned state (ce89722)
-
@sitecore-content-sdk/search@0.4.0
Minor Changes
-
Add locale and facet support to search package and React hooks (ce89722)
SearchParametersnow accepts an optionallocalefield for multi-locale index configurationsSearchParametersnow accepts an optionalfacetfield (FacetRequest) to request facet counts and filter by facet valuesSearchResponsenow includes an optionalfacetsfield (FacetResult[]) with facet data when requested- Six new public types exported from
@sitecore-content-sdk/search:FacetRequest,FacetField,FacetFilter,FacetFilterOperator,FacetValue,FacetResult useSearchanduseInfiniteSearchhooks in@sitecore-content-sdk/reactupdated to support the newlocaleandfacetoptions and exposefacetsin the returned state
@sitecore-content-sdk/react@2.3.0
Minor Changes
-
Add locale and facet support to search package and React hooks (ce89722)
SearchParametersnow accepts an optionallocalefield for multi-locale index configurationsSearchParametersnow accepts an optionalfacetfield (FacetRequest) to request facet counts and filter by facet valuesSearchResponsenow includes an optionalfacetsfield (FacetResult[]) with facet data when requested- Six new public types exported from
@sitecore-content-sdk/search:FacetRequest,FacetField,FacetFilter,FacetFilterOperator,FacetValue,FacetResult useSearchanduseInfiniteSearchhooks in@sitecore-content-sdk/reactupdated to support the newlocaleandfacetoptions and exposefacetsin the returned state
-
minor
@sitecore-content-sdk/searchdependency update:-
Add locale and facet support to search package and React hooks
-
SearchParametersnow accepts an optionallocalefield for multi-locale index configurations -
SearchParametersnow accepts an optionalfacetfield (FacetRequest) to request facet counts and filter by facet values -
SearchResponsenow includes an optionalfacetsfield (FacetResult[]) with facet data when requested -
Six new public types exported from
@sitecore-content-sdk/search:FacetRequest,FacetField,FacetFilter,FacetFilterOperator,FacetValue,FacetResult -
useSearchanduseInfiniteSearchhooks in@sitecore-content-sdk/reactupdated to support the newlocaleandfacetoptions and exposefacetsin the returned state (ce89722)
-
Patch Changes
-
Fix
RichTextrecreating nested DOM on parent re-renders by memoizingdangerouslySetInnerHTML, 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
AppPlaceholderin Next.js App Router. Sitecore Pages attaches chrome attributes (e.g.cursor: pointerstyling) 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.suppressHydrationWarningis 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 outerPlaceholderMetadatakey now falls back to a placeholder-name-based key (placeholder-metadata-${name}) when the route rendering has nouid.
@sitecore-content-sdk/nextjs@2.3.0
Minor Changes
-
minor
@sitecore-content-sdk/reactdependency update:-
Add locale and facet support to search package and React hooks
-
SearchParametersnow accepts an optionallocalefield for multi-locale index configurations -
SearchParametersnow accepts an optionalfacetfield (FacetRequest) to request facet counts and filter by facet values -
SearchResponsenow includes an optionalfacetsfield (FacetResult[]) with facet data when requested -
Six new public types exported from
@sitecore-content-sdk/search:FacetRequest,FacetField,FacetFilter,FacetFilterOperator,FacetValue,FacetResult -
useSearchanduseInfiniteSearchhooks in@sitecore-content-sdk/reactupdated to support the newlocaleandfacetoptions and exposefacetsin the returned state (ce89722)
-
-
minor
@sitecore-content-sdk/searchdependency update:-
Add locale and facet support to search package and React hooks
-
SearchParametersnow accepts an optionallocalefield for multi-locale index configurations -
SearchParametersnow accepts an optionalfacetfield (FacetRequest) to request facet counts and filter by facet values -
SearchResponsenow includes an optionalfacetsfield (FacetResult[]) with facet data when requested -
Six new public types exported from
@sitecore-content-sdk/search:FacetRequest,FacetField,FacetFilter,FacetFilterOperator,FacetValue,FacetResult -
useSearchanduseInfiniteSearchhooks in@sitecore-content-sdk/reactupdated to support the newlocaleandfacetoptions and exposefacetsin 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
isLanguagePreservedis true, request URL does not have locale prefix and redirect does not change locale. Adds new behavior controlled byappLocalePrefixsetting 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 forisLanguagePreservedrules.never: never include locale prefix- unset: behave as
as-needed, EXCEPT thatisLanguagePreservedfrom 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
Patch Changes
- Fix misalignment of the date of birth
dobfield in the identity event payload between backend and sdk (9329e6e)
@sitecore-content-sdk/core@2.1.3
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
@sitecore-content-sdk/cli@2.2.1
Patch Changes
- Fix build command throwing an error when build commands use fetch calls (87b8db3)
@sitecore-content-sdk/angular@0.2.0
Minor Changes
-
Add loader prefetch for
scRouterLink/scRichTextlinks, so route data is already loaded by the time a user navigates. (84866de)Controlled per-link via each directive's
prefetchinput, or globally viasitecore.config'sangular.linkPrefetch:'eager'(default) — prefetch as soon as the link renders.'hover'— defer prefetching until the pointer dwells on the link forangular.linkPrefetch.delayMs(default 100ms).'off'— never prefetch.
-
Support optional
sc_previewTimeon the Angular editing render endpoint for time-based Edge preview. (8b18c6e) -
Bot tracking support for Angular (4c907d5)
- Expose
createBotTrackingMiddlewarefunction that creates an Express middleware for identifying bot requests
- Expose
-
SXA Redirects support in Angular (07c6169)
Patch Changes
- [Chore] Cleanup demo code (758194c)