github Sitecore/content-sdk @sitecore-content-sdk/angular@1.0.1

5 hours ago

Patch Changes

  • Fixed next dev --webpack / next build --webpack failing with UnhandledSchemeError for (153a804)
    node:events when the generated .sitecore/import-map.ts imported combineImportEntries.

    content/tools stays the browser-safe entry for that helper. Pure component-map helpers now live
    apart from glob, and the Node-only prepareComponentsForMap / buildComponentMapContent
    helpers (which depend on path) are exported from content/node-tools.

  • Sitecore webhook revalidation no longer invalidates dictionary data for every configured site on (a321794)
    every call — only an actual Dictionary entry update revalidates its own site's dictionary tag.

    createSitecoreRevalidateRouteHandler (Next.js) and createSitecoreRevalidateMiddleware (Angular)
    previously appended a sc:dict:<site>:<locale> tag for every site in sites on every webhook
    call, regardless of what the payload actually changed. Because dictionary data is shared across
    nearly every page, this meant any unrelated content update - or even a call with no dictionary
    changes at all - revalidated every page for that site and locale, defeating the benefit of
    targeted, on-demand revalidation.

  • sc:item tags no longer carry a version segment (sc:item:<id>:<locale>), so cache writes and (9d6168b)
    webhook revalidation always agree.
    Item cache tags could previously include a specific published version (sc:item:<id>:<locale>:v<N>)
    when the layout response reported itemVersion, but webhook-driven revalidation always targets
    sc:item:<id>:<locale>:latest. The mismatch meant those page cache entries were silently unreachable by revalidateTag and only went stale on cache TTL expiry.

  • sc:item tags now always use hyphenated lowercase GUIDs (sc:item:<hyphenated-id>:<locale>:latest), so cache writes and webhook revalidation always agree. (fae7cb9)

    Experience Edge publish payloads send unhyphenated item IDs (xxxxxxxxx). Cached pages already tag content with hyphenated lowercase GUIDs (sc:item:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx:...). Because Next.js / loader cache tags are compared as exact strings, those invalidation tags missed and published updates could stay stale.

Don't miss a new content-sdk release

NewReleases is sending notifications on new releases.