diff --git a/CHANGELOG.md b/CHANGELOG.md index 2a8957ced2..4196f554b1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ Our versioning strategy is as follows: ### 🐛 Bug Fixes * `[templates/nextjs]` `[templates/react]` `[templates/angular]` `[templates/vue]` Fixed an issue when environment variable is undefined (not present in .env), that produced an "undefined" value in generated config file ([#1875](https://github.com/Sitecore/jss/pull/1875)) +* `[templates/nextjs]` Fix embedded personalization not rendering correctly after navigation through router links. ([#1911](https://github.com/Sitecore/jss/pull/1911)) ### 🎉 New Features & Improvements diff --git a/packages/create-sitecore-jss/src/templates/nextjs/package.json b/packages/create-sitecore-jss/src/templates/nextjs/package.json index bba031d2dd..7665d0d39a 100644 --- a/packages/create-sitecore-jss/src/templates/nextjs/package.json +++ b/packages/create-sitecore-jss/src/templates/nextjs/package.json @@ -28,7 +28,7 @@ "@sitecore-jss/sitecore-jss-nextjs": "~22.2.0-canary", "graphql": "~15.8.0", "graphql-tag": "^2.12.6", - "next": "^14.1.0", + "next": "^14.2.7", "next-localization": "^0.12.0", "react": "^18.2.0", "react-dom": "^18.2.0", diff --git a/packages/sitecore-jss-nextjs/package.json b/packages/sitecore-jss-nextjs/package.json index 29fb271acc..8adc68b1cf 100644 --- a/packages/sitecore-jss-nextjs/package.json +++ b/packages/sitecore-jss-nextjs/package.json @@ -54,7 +54,7 @@ "eslint-plugin-react": "^7.32.1", "jsdom": "^21.1.0", "mocha": "^10.2.0", - "next": "^14.1.0", + "next": "^14.2.7", "nock": "^13.3.0", "nyc": "^15.1.0", "react": "^18.2.0", @@ -67,7 +67,7 @@ "peerDependencies": { "@sitecore-cloudsdk/events": "^0.3.1", "@sitecore-cloudsdk/personalize": "^0.3.1", - "next": "^14.1.0", + "next": "^14.2.7", "react": "^18.2.0", "react-dom": "^18.2.0" }, diff --git a/yarn.lock b/yarn.lock index 4b4193f7db..91bb0347c4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4829,72 +4829,72 @@ __metadata: languageName: node linkType: hard -"@next/env@npm:14.1.0": - version: 14.1.0 - resolution: "@next/env@npm:14.1.0" - checksum: ecec03a3e9745996ed1c7fc218fc9a1a4345a0cf368afb50f38a3b6fbf6f966a36dba174c90b5f90b568188dbd0eba48a2c5448b6742298417df4ff3351c6d40 +"@next/env@npm:14.2.7": + version: 14.2.7 + resolution: "@next/env@npm:14.2.7" + checksum: 8d3c4338f1a06683f938492391634ce1dd7a5c4a3dff030f4aeddc06fb0feb05904d292af42d5c87c4bb2521c9186c973d6146410a89d1161966b3f6a8d46c75 languageName: node linkType: hard -"@next/swc-darwin-arm64@npm:14.1.0": - version: 14.1.0 - resolution: "@next/swc-darwin-arm64@npm:14.1.0" +"@next/swc-darwin-arm64@npm:14.2.7": + version: 14.2.7 + resolution: "@next/swc-darwin-arm64@npm:14.2.7" conditions: os=darwin & cpu=arm64 languageName: node linkType: hard -"@next/swc-darwin-x64@npm:14.1.0": - version: 14.1.0 - resolution: "@next/swc-darwin-x64@npm:14.1.0" +"@next/swc-darwin-x64@npm:14.2.7": + version: 14.2.7 + resolution: "@next/swc-darwin-x64@npm:14.2.7" conditions: os=darwin & cpu=x64 languageName: node linkType: hard -"@next/swc-linux-arm64-gnu@npm:14.1.0": - version: 14.1.0 - resolution: "@next/swc-linux-arm64-gnu@npm:14.1.0" +"@next/swc-linux-arm64-gnu@npm:14.2.7": + version: 14.2.7 + resolution: "@next/swc-linux-arm64-gnu@npm:14.2.7" conditions: os=linux & cpu=arm64 languageName: node linkType: hard -"@next/swc-linux-arm64-musl@npm:14.1.0": - version: 14.1.0 - resolution: "@next/swc-linux-arm64-musl@npm:14.1.0" +"@next/swc-linux-arm64-musl@npm:14.2.7": + version: 14.2.7 + resolution: "@next/swc-linux-arm64-musl@npm:14.2.7" conditions: os=linux & cpu=arm64 languageName: node linkType: hard -"@next/swc-linux-x64-gnu@npm:14.1.0": - version: 14.1.0 - resolution: "@next/swc-linux-x64-gnu@npm:14.1.0" +"@next/swc-linux-x64-gnu@npm:14.2.7": + version: 14.2.7 + resolution: "@next/swc-linux-x64-gnu@npm:14.2.7" conditions: os=linux & cpu=x64 languageName: node linkType: hard -"@next/swc-linux-x64-musl@npm:14.1.0": - version: 14.1.0 - resolution: "@next/swc-linux-x64-musl@npm:14.1.0" +"@next/swc-linux-x64-musl@npm:14.2.7": + version: 14.2.7 + resolution: "@next/swc-linux-x64-musl@npm:14.2.7" conditions: os=linux & cpu=x64 languageName: node linkType: hard -"@next/swc-win32-arm64-msvc@npm:14.1.0": - version: 14.1.0 - resolution: "@next/swc-win32-arm64-msvc@npm:14.1.0" +"@next/swc-win32-arm64-msvc@npm:14.2.7": + version: 14.2.7 + resolution: "@next/swc-win32-arm64-msvc@npm:14.2.7" conditions: os=win32 & cpu=arm64 languageName: node linkType: hard -"@next/swc-win32-ia32-msvc@npm:14.1.0": - version: 14.1.0 - resolution: "@next/swc-win32-ia32-msvc@npm:14.1.0" +"@next/swc-win32-ia32-msvc@npm:14.2.7": + version: 14.2.7 + resolution: "@next/swc-win32-ia32-msvc@npm:14.2.7" conditions: os=win32 & cpu=ia32 languageName: node linkType: hard -"@next/swc-win32-x64-msvc@npm:14.1.0": - version: 14.1.0 - resolution: "@next/swc-win32-x64-msvc@npm:14.1.0" +"@next/swc-win32-x64-msvc@npm:14.2.7": + version: 14.2.7 + resolution: "@next/swc-win32-x64-msvc@npm:14.2.7" conditions: os=win32 & cpu=x64 languageName: node linkType: hard @@ -6242,7 +6242,7 @@ __metadata: eslint-plugin-react: ^7.32.1 jsdom: ^21.1.0 mocha: ^10.2.0 - next: ^14.1.0 + next: ^14.2.7 nock: ^13.3.0 nyc: ^15.1.0 prop-types: ^15.8.1 @@ -6257,7 +6257,7 @@ __metadata: peerDependencies: "@sitecore-cloudsdk/events": ^0.3.1 "@sitecore-cloudsdk/personalize": ^0.3.1 - next: ^14.1.0 + next: ^14.2.7 react: ^18.2.0 react-dom: ^18.2.0 languageName: unknown @@ -6521,12 +6521,20 @@ __metadata: languageName: node linkType: hard -"@swc/helpers@npm:0.5.2": - version: 0.5.2 - resolution: "@swc/helpers@npm:0.5.2" +"@swc/counter@npm:^0.1.3": + version: 0.1.3 + resolution: "@swc/counter@npm:0.1.3" + checksum: df8f9cfba9904d3d60f511664c70d23bb323b3a0803ec9890f60133954173047ba9bdeabce28cd70ba89ccd3fd6c71c7b0bd58be85f611e1ffbe5d5c18616598 + languageName: node + linkType: hard + +"@swc/helpers@npm:0.5.5": + version: 0.5.5 + resolution: "@swc/helpers@npm:0.5.5" dependencies: + "@swc/counter": ^0.1.3 tslib: ^2.4.0 - checksum: 51d7e3d8bd56818c49d6bfbd715f0dbeedc13cf723af41166e45c03e37f109336bbcb57a1f2020f4015957721aeb21e1a7fff281233d797ff7d3dd1f447fa258 + checksum: d4f207b191e54b29460804ddf2984ba6ece1d679a0b2f6a9c765dcf27bba92c5769e7965668a4546fb9f1021eaf0ff9be4bf5c235ce12adcd65acdfe77187d11 languageName: node linkType: hard @@ -20631,21 +20639,21 @@ __metadata: languageName: node linkType: hard -"next@npm:^14.1.0": - version: 14.1.0 - resolution: "next@npm:14.1.0" +"next@npm:^14.2.7": + version: 14.2.7 + resolution: "next@npm:14.2.7" dependencies: - "@next/env": 14.1.0 - "@next/swc-darwin-arm64": 14.1.0 - "@next/swc-darwin-x64": 14.1.0 - "@next/swc-linux-arm64-gnu": 14.1.0 - "@next/swc-linux-arm64-musl": 14.1.0 - "@next/swc-linux-x64-gnu": 14.1.0 - "@next/swc-linux-x64-musl": 14.1.0 - "@next/swc-win32-arm64-msvc": 14.1.0 - "@next/swc-win32-ia32-msvc": 14.1.0 - "@next/swc-win32-x64-msvc": 14.1.0 - "@swc/helpers": 0.5.2 + "@next/env": 14.2.7 + "@next/swc-darwin-arm64": 14.2.7 + "@next/swc-darwin-x64": 14.2.7 + "@next/swc-linux-arm64-gnu": 14.2.7 + "@next/swc-linux-arm64-musl": 14.2.7 + "@next/swc-linux-x64-gnu": 14.2.7 + "@next/swc-linux-x64-musl": 14.2.7 + "@next/swc-win32-arm64-msvc": 14.2.7 + "@next/swc-win32-ia32-msvc": 14.2.7 + "@next/swc-win32-x64-msvc": 14.2.7 + "@swc/helpers": 0.5.5 busboy: 1.6.0 caniuse-lite: ^1.0.30001579 graceful-fs: ^4.2.11 @@ -20653,6 +20661,7 @@ __metadata: styled-jsx: 5.1.1 peerDependencies: "@opentelemetry/api": ^1.1.0 + "@playwright/test": ^1.41.2 react: ^18.2.0 react-dom: ^18.2.0 sass: ^1.3.0 @@ -20678,11 +20687,13 @@ __metadata: peerDependenciesMeta: "@opentelemetry/api": optional: true + "@playwright/test": + optional: true sass: optional: true bin: next: dist/bin/next - checksum: 077fd76a6fe7127a8be3d11035dcefb2c829f304aaa85144e0d1b531a1549b6c9bb99459af1ef0782c1f1110ca08f6f33efd293a2dc51672dd9dc45ede608ecf + checksum: bc0237acb57c338803e0ef5ecc1b51908583da9d9dd325ece8b5862beba27b0ab556e9f8bdea863fc4fbf8378200946dcb0ad911ea978d166c8741c434461fe7 languageName: node linkType: hard