Skip to content

Releases: Sitecore/jss

22.0.0

29 Apr 07:59
Compare
Choose a tag to compare

22.0.0

🛠 Breaking Changes

  • [sitecore-jss] Switch to edge site query for XP and gets config sites + sxa sites (ignoring website) (#1772)

    • Previously introduced Boolean useSiteQuery switch for XMCloud users has been removed.
    • Search query usage has been removed.
    • If you have any non-nextjs sites they should filter them out in multisite config plugin
  • [sitecore-jss-nextjs] [templates/nextjs-xmcloud] CloudSDK dependencies are updated to version ^0.3.0 (#1779)

    • Please ensure @sitecore-cloudsdk/events dependency is updated
  • [sitecore-jss-nextjs] Deprecated exports have been removed (#1780):

    • sitecore-jss-nextjs no longer exports isEditorActive, resetEditorChormes, resolveUrl, handleEditorFastRefresh, getPublicUrl functions. Use sitecore-jss-nextjs/utils instead.
    • getFEAASLibraryStylesheetLinks function has been removed in favor of getComponentLibraryStylesheetLinks
  • [sitecore-jss-react] [templates/react] Deprecated media prop is removed from Image component. Use field prop instead (#1780)(#1785).

  • [templates/react] [templates/angular] [templates/vue] [templates/node-headless-ssr-experience-edge] [sitecore-jss-react] [sitecore-jss-nextjs] (#1783):

    • GraphQL-based services can now only be initialized with clientFactory parameter. Previously deprecated option of providing endpoint and apiKey has been removed
    • Removed deprecated defaultProps react component property
  • [templates/nextjs] GraphQL-based services can now only be initialized with clientFactory parameter. Previously deprecated option of providing endpoint and apiKey has been removed (#1780).

  • [templates/nextjs] [templates/react] [templates/vue] [templates/angular] Deprecated JSS_APP_NAME environment variable has been removed (#1780).

🧹 Chores

  • Security vulnerabilities audit (1778)

20.3.3

17 Apr 22:01
Compare
Choose a tag to compare

🐛 Bug Fixes

  • [sitecore-jss-forms] File upload validation error (#1213)

20.3.2

08 Apr 07:26
Compare
Choose a tag to compare

20.3.2

🐛 Bug Fixes

  • [sitecore-jss] Handle null items in graphql layout service (#1771)

21.7.1

02 Apr 05:22
Compare
Choose a tag to compare

21.7.1

🐛 Bug Fixes

  • [sitecore-jss-nextjs] [templates/nextjs-xmcloud] Updated @sitecore-cloudsdk/* dependencies to ^0.2.4 (#1769)

21.7.0

27 Mar 09:12
Compare
Choose a tag to compare

21.7.0

🎉 New Features & Improvements

  • [sitecore-jss-angular] Enhance Placeholder component error handling (#1744)
    • Placeholder component supports failed event that is triggered when the component fails to render.
    • Handle error in the Placeholder component more gracefully by using an appropriate error JssCanActivateRedirectError type for redirects handling.
    • JssModule.forChild now accepts component or component map type as a parameter.
    • Fixed missing guard this context when calling canActivate guard
  • [sitecore-jss] [templates/nextjs-xmcloud] Load the content styles for the RichText component (#1670)(#1683) (#1684) (#1693)
  • [templates/react] [sitecore-jss-react] Replace package 'deep-equal' with 'fast-deep-equal'. No functionality change only performance improvement (#1719) (#1665)
  • [templates/nextjs-xmcloud] [sitecore-jss] [sitecore-jss-nextjs] [sitecore-jss-react] Add support for loading appropriate stylesheets whenever a theme is applied to BYOC and SXA components by introducing new function getComponentLibraryStylesheetLinks, which replaces getFEAASLibraryStylesheetLinks (which has been marked as deprecated) (#1722)
  • [templates/nextjs-xmcloud] [sitecore-jss-nextjs] Add protected endpoint which provides configuration information (the sitecore packages used by the app and all registered components) to be used to determine feature compatibility on Pages side. (#1724 #1734)
  • [sitecore-jss-nextjs] [templates/nextjs] [BYOC] Component Builder integration endpoint (#1729)
  • [sitecore-jss] [templates/nextjs-xmcloud] Enable site GraphQL query for mutlisite in XMCloud instead of default search one. Site query should take "Valid for environment" SXA site setting into account when returning site list. (#1739)
    • To enable this on your existing app, modify the \scripts\config\plugins\multisite.ts file and add "useSiteQuery: true" to GraphQLSiteInfoService constructor call
  • [sitecore-jss-nextjs] Set secure, httpOnly, sameSite attributes to the sc_site cookie by default: (#1746)
  • [sitecore-jss] GraphQL Client Retry Improvements:
    • Handle additional string error codes like ECONNRESET, ETIMEDOUT, EPROTO. Can configure more using DefaultRetryStrategy.
    • Retries has now been enabled by default with a default value of 3. It can be disabled by configuring it to 0.
    • [Retry-After] header now falls back to the default delay time when it comes out to be empty.
      (#1755) (#1759) (#1763)
  • [sitecore-jss-nextjs] [templates/nextjs-xmcloud] Updated @sitecore-cloudsdk/* dependencies to ^0.2.3
  • [templates/nextjs-xmcloud] Updated @sitecore/components to ^1.1.10

🐛 Bug Fixes

  • [templates/nextjs] [templates/nextjs-styleguide] Modify all GraphQLRequestClient import statements so that it gets imported from the /graphql submodule (#1728)
  • [templates/node-headless-ssr-proxy] [node-headless-ssr-proxy] Add sc_site qs parameter to Layout Service requests by default (#1660)
  • [templates/nextjs-sxa] Fix Image component when there is using Banner variant which set property background-image when image is empty. (#1689) (#1692)
  • [templates/nextjs-sxa] Fix feature show Grid column in Experience Editor. (#1704)
  • [sitecore-jss-nextjs] [templates/nextjs-xmcloud] SDK initialization rejections are now correctly handled. Errors should no longer occur after getSDK() promises resolve when they shouldn't (for example, getting Events SDK in development environment) (#1712 #1715 #1716)
  • [sitecore-jss-nextjs] Fix redirects middleware for working with absolute url where is using site language context (#1727) (#1737)
  • [templates/nextjs-sxa] Fix base styles of SXA components. Remove conflicted styles of BasicSite template. (#1757)

🛠 Breaking Changes

  • [sitecore-jss-nextjs] [templates/nextjs] Upgrade to Next 14 (#1720)(#1723)
    • Due to changes in peer dependencies, please ensure your app uses Next version 14

🧹 Chores

  • Upgrade to Node.js 20.x (#1679)(#1681)
  • [nextjs/template] Upgrade graphql-codegen packages to latest (#1711)

21.6.4

12 Mar 21:54
Compare
Choose a tag to compare

21.6.4

🎉 New Features & Improvements

  • [templates/nextjs] Add support for .env.* files during bootstrap process, matching what Next.js supports OOTB for build/runtime. (#1741)
  • [sitecore-jss] Enable the Layout, dictionary and ErrorPages service to use custom retryStrategy. (#1749) (#1751)

🐛 Bug Fixes

  • [templates/nextjs] Exclude ComponentProps functions from the client bundle (#1753)
  • [sitecore-jss] Any unused personalized component variants are deleted before sending layout data to the client, thus are completely hidden from the customer. (#1752)

20.3.1

06 Mar 18:13
Compare
Choose a tag to compare

20.3.1

🐛 Bug Fixes

  • [sitecore-jss] Export ClientError type (#1738)
  • [templates/nextjs] [sitecore-jss-nextjs] Better error handling for component-level data fetching (#1586)
  • [sitecore-jss] Enable the Layout, dictionary and Error Page service to use custom retryStrategy. (#1749)

21.6.3

26 Feb 08:23
Compare
Choose a tag to compare

21.6.3

🐛 Bug Fixes

  • [sitecore-jss-angular] Missing ngModuleRef in lazy loaded components (#1743)
  • [sitecore-jss-react] Fix the pattern of detecting dynamic placeholder when user tried to add a new dynamic placeholder with double digit. (#1745)
  • [sitecore-jss] Retry policy to handle transient network errors. Users can pass retryStrategy to configure custom retry config to the services. They can customize the error codes and the number of retries. It consist of two functions shouldRetry and getDelay. (#1731) (#1733)

21.6.2

13 Feb 20:45
Compare
Choose a tag to compare

21.6.2

🐛 Bug Fixes

  • [templates/nextjs] Whitelist additional hostname for feaas component images to use with Next.js Image Optimization API (#1735)

20.3.0

13 Feb 23:19
Compare
Choose a tag to compare

20.3.0

🎉 New Features & Improvements

  • [sitecore-jss] Retry policy to handle transient network errors. Users can pass retryStrategy to configure custom retry config to the services. They can customize the error codes and the number of retries. It consist of two functions shouldRetry and getDelay. To determine the back-off time, we employ an exponential strategy with a default factor of 2.(#1731) (#1733)