Skip to content

Releases: Sitecore/jss

22.8.0

07 Jul 09:39
Compare
Choose a tag to compare

22.8.0

🎉 New Features & Improvements

  • [sitecore-jss-nextjs] Improved RedirectsMiddleware extensibility with new getRedirects method (#2099)
  • [sitecore-jss-nextjs] Improved PersonalizeMiddleware for better extensibility (#2098):
    • Added processPersonalizationRequest method to be able to extend the personalize handler logic
    • Added getPersonalizeInfo method to be able to control and extend personalizeService.getPersonalizeInfo behavior
  • [nextjs] [sitecore-jss-nextjs] Support for Component Library in XM Cloud (#1987)(#2000)(#2002)(#2005)(#2024)(#2053)(#2059)(#2064)(#2068)(#2087)(#2091)(#2101)

🐛 Bug Fixes

  • [sitecore-jss] Fix forwarding of Set-Cookie headers to prevent form submissions from failing due to missing verification token(__RequestVerificationToken) (#2112)

Chores

  • [sitecore-jss-react] [nextjs-xmcloud] FEAAS dependencies updated (#2113)

22.7.0

17 Jun 17:02
Compare
Choose a tag to compare

22.7.0

🎉 New Features & Improvements

  • [templates/NextJs] [templates/NextJs-Styleguide] [templates/NextJs-Styleguide-Tracking] Remove graphql-let and graphql code generation functionality from NextJs starter applications. One of the major reasons for the decision is graphql-let is not maintained anymore and was introducing severeal critical security vulnerabilities. (#2100)

🐛 Bug Fixes

  • [sitecore-jss-react] Add an optional disableSuspense flag to the Placeholder component to prevent error boundaries from rendering Suspense which helps contain errors for components. This can help avoid hydration issues in connected mode. (#2081)(#2085)
  • [templates/NextJs-Styleguide] [templates/NextJs-Styleguide-Tracking] Bug fixes in Styleguide-Layout-Tabs-Tab, Styleguide-Layout-Tabs, Styleguide-Tracking components (#2100)
  • [sitecore-jss-proxy] Fix build failure of XMCloud Proxy application when using PNPM (#2106)
  • [sitecore-jss-nextjs] Prevent false prefetch detection for mobile navigation in middlewares. (#2102)
  • [sitecore-jss-nextjs] Add Cache-Control: no-store, no-cache, must-revalidate to personalize middleware to ensure personalized responses are not served from prefetch cache and proper personalization was applied during client side navigation. (#2105)
  • [sitecore-jss-nextjs] Improve device detection and prevent false prefetch handling in Personalize middleware. (#2102) (#2107)

🛠 Breaking Changes

  • [Next.js] [React]: [sitecore-jss] [sitecore-jss-react] [sitecore-jss-nextjs] [sitecore-jss-react-forms] [create-sitecore-jss] Upgrade React to version 19 and Nextjs to version 15 (#2078)(#2084)(#2090) (#2093) (#2096):
    • upgrade React and Nextjs dependencies for the new major versions
    • with React 19, JSX is in the 'react' namespace and therefore 'react' needs to be imported befoore using JSX. All OOTB react and nextjs components have been updated
    • react-test-renderer has been deprecated in react 19. additionaly enzyme is not supported anymore so all unit tests have been migrated to use @testing-library/react`
    • propTypes have been deprecated by react and have been removed from the solution
    • in NextJs 15 the geo and ip properties on NextRequest have been removed. To account for this @sitecore-cloudsdk dependencies have been upgraded to 0.5.1, which does not include breaking changes, however you will have to upgrade your cloudsdk dependencies to meet peer dependencies requirements
    • remove 'react' dependency from nextconfig webpack externals in monorepo next config plugin as it is not needed anymore.
    • PersonalizeMiddleware handler now accepts PersonalizeOptions, that can be used to provide geolocation data from application level
    • upgrade eslint-plugin-react to latest
  • [Angular]: [sitecore-jss-proxy] [sitecore-jss-angular] @sitecore-cloudsdk dependencies have been upgraded to 0.5.1 (#2060)(#2078)
    • This upgrade doesn't introduce any breaking changes, however you will have to upgrade your cloudsdk dependencies to meet peer dependencies requirements

21.10.0

17 Jun 16:20
Compare
Choose a tag to compare

21.10.0

🛠 Breaking Changes

  • [sitecore-jss] [sitecore-jss-react] [sitecore-jss-nextjs] [create-sitecore-jss] [sitecore-jss-react-forms] Upgrade React to version 19 and Nextjs to version 15 (#2078)(#2084) (#2093) (#2103):
    • upgrade React and Nextjs dependencies for the new major versions
    • with React 19, JSX is in the 'react' namespace and therefore 'react' needs to be imported befoore using JSX. All OOTB react and nextjs components have been updated
    • react-test-renderer has been deprecated in react 19. additionaly enzyme is not supported anymore so all unit tests have been migrated to use @testing-library/react`
    • propTypes have been deprecated by react and have been removed from the solution
    • in NextJs 15 the geo and ip properties on NextRequest have been removed. To account for this @sitecore-cloudsdk dependencies have been upgraded to 0.5.1, which includes breaking changes, see upgrade guide for details. Also cloudsdk v0.4.0 introduces breaking changes
      • replaces the old init approach for cloudsdk with new one according to upgrade guide. This causes several followup changes.
      • Context logic is no longer used
      • New object type is passed into FEAAS.setContextProperties instead of context passed previously
      • @sitecore/components dependency updated to 2.0.0
      • Browser-side CloudSDK is initialized in Bootstrap component. It should be initialized for events to work.
    • remove 'react' dependency from nextconfig webpack externals in monorepo next config plugin as it is not needed anymore.
    • PersonalizeMiddleware handler now accepts PersonalizeOptions, that can be used to provide geolocation data from application level
    • eslint-plugin-react depenency has been upgraded to latest
    • [templates/nextjs] graphql has been upgraded to 15.10.1
    • [templates/nextjs-styleguide] [templates/nextjs-styleguide-tracking] styleguide components types have been fixed

22.6.0

07 May 14:19
Compare
Choose a tag to compare

🎉 New Features & Improvements

  • [Next.js] XM Cloud Forms support without BYOC (#2052)(#2066):
    • Introduced a new Form component in the sitecore-jss-react package.
    • The Form component must be registered in the app to enable non-BYOC Forms support.
    • SitecoreContext now supports an api property for passing XM Cloud Edge endpoint settings, enabling the Form component to access the configured endpoint.
    • Added shared Form functionality via the sitecore-jss package.

🐛 Bug Fixes

  • [sitecore-jss] [template/nextjs-sxa] Fix /api/sitemap endpoint (#2058)(#2063)

22.5.5

25 Apr 18:13
Compare
Choose a tag to compare

🐛 Bug Fixes

  • [sitecore-jss-nextjs] Experience Editor and Preview render 500 when using Vercel Editing Host (#2077)
  • [sitecore-jss-nextjs] Fix for case sensitive redirects (make all redirects case-insensitive) #2074
  • [sitecore-jss] Handle trailing slash in sitecoreEdgeUrl to prevent request failures (#2062)
  • [sitecore-jss-nextjs] Fix React warning from Link component when using custom emptyFieldEditingComponent prop (#2061)
  • [create-sitecore-jss] Fix nextjs(xmcloud) app initialization (#2070)
  • [sitecore-jss-react] Suspense in ErrorBoundary component is not rendered when it is wrapping a BYOCWrapper to prevent client side hydration errors (#2071)

🤝 Community contributions

  • [sitecore-jss] Fix for lookbehind regex. (not supported on ios 16) #2057
    Thank you @FrankvanZ !

22.5.4

21 Mar 15:16
Compare
Choose a tag to compare

22.5.4

🐛 Bug Fixes

  • [sitecore-jss] Can not use 'in' operator to search for 'editable' (#1768)

22.5.3

19 Mar 20:44
Compare
Choose a tag to compare

22.5.3

🐛 Bug Fixes

  • [sitecore-jss-nextjs] Fixes an issue where a more specific redirect rule with locale is not activating when a less specific rule is present. (#2054)(#2056)
  • [sitecore-jss-nextjs] Fix an endless redirect issue with [/default/(.*) -> /en/$1] redirect rule when nextjs default locale is set to default. (#2055)

22.5.2

03 Mar 21:04
Compare
Choose a tag to compare

22.5.2

🐛 Bug Fixes

  • [sitecore-jss-nextjs] When redirect rule was not using regex and was only matching a path (without query string), incoming matching URLs were ignored when query string is present. This has been fixed (#2050)
  • [sitecore-jss-nextjs] Fixed redirect header from previous middleware execution not being cleaned up correctly. (#2050)

22.5.1

27 Feb 17:35
Compare
Choose a tag to compare

22.5.1

🎉 New Features & Improvements

  • [sitecore-jss-nextjs] [RichText] Add support for the "prefetch on hover" (#2049):
    • The prefetchLinks property now supports the hover value, that allows prefetching internal links on hover.
  • [sitecore-jss-nextjs] Refactor RedirectsMiddleware for better extensibility (#2040)(#2048):
    • Introduced processRedirectRequest that can be overridden in custom middleware.
  • [sitecore-jss-nextjs] Link component supports prefetch property (#2039)(#2046)
  • [create-sitecore-jss] Create apps with exact jss dependency versions for prerelease versions; all apps are now created with v0.1.0 instead of the version of JSS (#2033)

🐛 Bug Fixes

  • [templates/nextjs-sxa] Fixed unsafe property access by replacing direct calls with optional chaining (#2035)
  • [sitecore-jss-react] Extend PlaceholderProps to support Item type field (#2043)

22.5.0

11 Feb 10:33
Compare
Choose a tag to compare

22.5.0

🎉 New Features & Improvements

  • [sitecore-jss-angular] Support CanActivate RedirectCommand API (#2029)
  • [sitecore-jss-angular] CanActivate and CanResolve now additionally accept router as a parameter (#2029)
  • [templates/angular] Remove unnecessary PROXY_HOST setting (#2036):
    • The environment variable PROXY_HOST is no longer required and can be fully removed from the application.
  • [node-xmcloud-proxy] Update Netlify deployment guide (#2041)

🛠 Breaking Change

  • Upgrade Angular to v18 (#2029)
    • Updated Angular and core dependencies to ~18.2.13