github Sitecore/jss v22.7.0
22.7.0

latest releases: v22.10.0-canary.3, v22.9.0, v22.10.0-canary.1...
2 months ago

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

Don't miss a new jss release

NewReleases is sending notifications on new releases.