Releases: Sitecore/jss
Releases · Sitecore/jss
22.8.0
22.8.0
🎉 New Features & Improvements
[sitecore-jss-nextjs]
Improved RedirectsMiddleware extensibility with newgetRedirects
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 extendpersonalizeService.getPersonalizeInfo
behavior
- Added
[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
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 isgraphql-let
is not maintained anymore and was introducing severeal critical security vulnerabilities. (#2100)
🐛 Bug Fixes
[sitecore-jss-react]
Add an optionaldisableSuspense
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]
AddCache-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. additionalyenzyme
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
andip
properties onNextRequest
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
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. additionalyenzyme
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
andip
properties onNextRequest
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
🎉 New Features & Improvements
[Next.js]
XM Cloud Forms support without BYOC (#2052)(#2066):- Introduced a new
Form
component in thesitecore-jss-react
package. - The
Form
component must be registered in the app to enable non-BYOC Forms support. SitecoreContext
now supports anapi
property for passing XM Cloud Edge endpoint settings, enabling theForm
component to access the configured endpoint.- Added shared
Form
functionality via thesitecore-jss
package.
- Introduced a new
🐛 Bug Fixes
22.5.5
🐛 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
22.5.3
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
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
22.5.1
🎉 New Features & Improvements
[sitecore-jss-nextjs]
[RichText] Add support for the "prefetch on hover" (#2049):- The
prefetchLinks
property now supports thehover
value, that allows prefetching internal links on hover.
- The
[sitecore-jss-nextjs]
Refactor RedirectsMiddleware for better extensibility (#2040)(#2048):- Introduced
processRedirectRequest
that can be overridden in custom middleware.
- Introduced
[sitecore-jss-nextjs]
Link component supportsprefetch
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
22.5.0
22.5.0
🎉 New Features & Improvements
[sitecore-jss-angular]
SupportCanActivate
RedirectCommand
API (#2029)[sitecore-jss-angular]
CanActivate
andCanResolve
now additionally acceptrouter
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.
- The environment variable
[node-xmcloud-proxy]
Update Netlify deployment guide (#2041)
🛠 Breaking Change
- Upgrade Angular to v18 (#2029)
- Updated Angular and core dependencies to ~18.2.13