github Sitecore/content-sdk v0.2.0
0.2.0

latest releases: v1.1.0-canary.42, v1.2.0-canary.14, v1.2.0-canary.13...
4 months ago

๐ŸŽ‰ New Features & Improvements

  • [nextjs] Rework and simplify .env (#89):
    • Introduced .env.container.example
      • Intended for local development against a Sitecore container instance.
    • Introduced .env.remote.example
      • Intended for working with a remote Sitecore instance.
    • Removed GRAPH_QL_ENDPOINT environment variable
      No longer required or used.
    • Removed GRAPH_QL_SERVICE_RETRIES environment variable
      This is not environment-specific and should be defined in the configuration instead.
    • Removed DISABLE_SSG_FETCH environment variable
      • In XM Cloud, this is set to true by default as the application runs as an editing host.
      • It can still be configured via the DISABLE_SSG_FETCH environment variable or the disableStaticPaths config property if needed.
      • By default, it is set to false in the configuration.
  • [core] [nextjs] Introduced getRobots method in SitecoreClient and a new RobotsMiddleware for Next.js API routes (#83)
    • The getRobots(siteName, fetchOptions?) method centralizes logic for fetching robots.txt content.
    • A new RobotsMiddleware class encapsulates HTTP-level logic for generating robots.txt responses in Next.js apps.
    • These additions follow the same extensible architecture as existing features enabling custom behavior via service overrides and improving consistency across endpoints.
  • [cli] Introduce "project" subcommands (#73)
  • [nextjs] Enhance customizability for Sitecore Client and SDK Middlwares (#87)
  • [core] [nextjs] [create-sitecore-jss] Passing configuration object to defineConfig in sitecore.config is now optional. Introduced sitecore.config.ts.example (#90) (#93)

๐Ÿ›  Breaking Changes

  • [core] SXA Form can't fire CloudSDK events due to initialization error (#63):
    • Form utilities have been moved from @sitecore-content-sdk/core/form to the root of @sitecore-content-sdk/core. Update your imports to reflect this change if you are referencing these utilities.
  • [nextjs] Update React to version 19 and Next JS to version 15 (#76)

๐Ÿ› Bug Fixes

  • [nextjs] Fix for case sensitive redirects (make all redirects case-insensitive) (#70)
  • [core] Fix for lookbehind regex. (not supported on ios 16) (#67)
  • [nextjs] Render "unoptimized" Next Image in component rendering mode (#66)
  • [react] Extend withDatasourceCheck logic to handle empty datasource in DesignLibrary mode (#62)
  • [cli] Process env variables in both cli global and local mode by default. (#61)
  • [react] [nextjs] Do not render EditingScripts component in DesignLibrary component. Fix 'dataSourceId' query parameter name in editing render middleware. (#64)

๐Ÿงน Chores

  • [template/nextjs] Clean package.json scripts (#75)
  • Upgrade 3rd party dependencies (#88) (#92)

Don't miss a new content-sdk release

NewReleases is sending notifications on new releases.