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 anddefaultImportEntries
export available from@sitecore-content-sdk/nextjs/codegen
- New
- 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]
Addcomponent: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 whenisDesignLibrary
(library | library-metadata) is true andgeneration=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
- in XM Cloud environment server request will be issued to
- added new environment variable
🐛 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
andSitecoreClient.getDesignLibraryData
no longer request dictionary data.Page
type is not affected.- Updated
EditingService.fetchEditingData
:- Removed
siteName
parameter. - No longer requests and returns dictionary data.
- Removed