github Sitecore/content-sdk v1.1.0
1.1.0

latest release: v1.2.0-canary.23
12 hours ago

1.1.0

🎉 New Features & Improvements

  • Add Cursor AI coding agent rules for consistent development patterns across the Content SDK repository (#207)
  • [nextjs] Support component-level data fetching in 404/500 pages (#199)
  • Migration from ESlint 8 -> ESLint 9 and introduction of the new Flat Config file (#176)
  • Code generation for Design Library enablers:
    • [core] [nextjs] Add import-map generation (#157)(#167)(#170)(#171)(#175)(#177)(#187) (#221)
      • New writeImportMap(), combineImportEntries() methods and defaultImportEntries export available from @sitecore-content-sdk/nextjs/codegen
    • Dynamic component rendering (#163)
    • Updated API endpoint to new Edge Platform format (#162)
    • Ensure editing state is enabled in Design Library mode (#181)
  • [core] Ensure displayName paths are properly UTF-8 encoded. (#179)
  • [react] Add component:status events for VariantGeneration (#190)
  • [react] Enhanced the Design Library cache buster format to hh-dd-mm-yyyy (#188)
  • [react] [core] Unite capabilities of library | library-metadata with library-variant-generation modes. isVariantGeneration is honored only when isDesignLibrary(library | library-metadata) is true and generation=variant query string is passed to the editing render endpoint. (#208) (#215)
  • [nextjs] Optimization for editing render middleware: issue an internal server request for fetching page data during editing instead of doing temporary redirect (#195) (#196)
    • added new environment variable SITECORE_INTERNAL_EDITING_HOST_URL - the internal host URL for the Next.js application, used for server-side requests for page rendering during editing
    • added a new setting in sitecore.config: sitecoreInternalEditingHostUrl. This setting allows you to define the internal host URL explicitly, overriding the corresponding environment variable.
    • if none of the above is set:
      • in XM Cloud environment server request will be issued to http://localhost:3000
      • in Vercel or Netlify scenarios, the host header of the incoming request will be used to make the internal request

🐛 Bug Fixes

  • [nextjs] Preserve default locale in external absolute urls (#201)
  • [react] Custom properties are not applied to empty field in editing mode (#200)
  • [core] Content styles fail to load due to incorrect contextId resolution (#192)
  • [core] Duplicate dictionary requests in editing, preview, and design library modes (#161)
    • SitecoreClient.getPreview and SitecoreClient.getDesignLibraryData no longer request dictionary data. Page type is not affected.
    • Updated EditingService.fetchEditingData:
      • Removed siteName parameter.
      • No longer requests and returns dictionary data.
  • [cli] Code extraction extends XM Cloud Rendering Host build by several minutes (#173)
  • [core] Fix redirect regex processing to prevent over-escaping of question marks in regex patterns (#174)

Don't miss a new content-sdk release

NewReleases is sending notifications on new releases.