Tailwind Logo

Sitecore Next.js 21.4.0 to 21.5.0 diff

XM CloudHeadless SXA

Published: 2023-12-12

In the last issue, we ran the new Next.js project, and you can actually see the differences from 21.4.0 to 21.5.0. Since we are here, let's take a look.

What has changed

package.json

The versions of the following modules have been changed

JSON
  "dependencies": {
    "@sitecore-feaas/clientside": "^0.3.17",
    "@sitecore-jss/sitecore-jss-nextjs": "~21.4.0",
    "@sitecore/engage": "^0.4.0",
  },
  "devDependencies": {
    "@sitecore-jss/sitecore-jss-cli": "~21.5.0",
    "@sitecore-jss/sitecore-jss-dev-tools": "~21.5.0",

css related

Some files were updated (content is detailed and omitted)

DcpPageView.tsx

In the previous call, it was host, but it has been changed to hostname.

TypeScript
      cookieDomain: window.location.hostname.replace(/^www\./, ''),

Summary

This time there wasn't much difference, but I could see how I could create a new project and check the base code to make sure I understood the changes. since I manage my code in Git, it would be useful to reflect the new version of the code in a way that I could see the differences.

Tags