From e2c716474f56c893ede61c89034e5cbdbabaa772 Mon Sep 17 00:00:00 2001 From: Illia Kovalenko <23364749+illiakovalenko@users.noreply.github.com> Date: Fri, 26 Jan 2024 13:01:00 +0200 Subject: [PATCH] [Nextjs] Bump to version 14.1.0 (#1723) * [Nextjs] Bump to version 14.1.0 * Updated CHANGELOG * Bumped sample app version --- CHANGELOG.md | 2 +- .../src/templates/nextjs/package.json | 2 +- packages/sitecore-jss-nextjs/package.json | 4 +- yarn.lock | 108 +++++++++--------- 4 files changed, 61 insertions(+), 55 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1a55618160..53a9354b50 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -27,7 +27,7 @@ Our versioning strategy is as follows: ### ๐Ÿ›  Breaking Changes -* `[sitecore-jss-nextjs]` `[templates/nextjs]` Upgrade to Next 14 +* `[sitecore-jss-nextjs]` `[templates/nextjs]` Upgrade to Next 14 ([#1720](https://github.com/Sitecore/jss/pull/1720))([#1723](https://github.com/Sitecore/jss/pull/1723)) * Due to changes in peer dependencies, please ensure your app uses Next version 14 ### ๐Ÿงน Chores diff --git a/packages/create-sitecore-jss/src/templates/nextjs/package.json b/packages/create-sitecore-jss/src/templates/nextjs/package.json index b85fa02b1d..5fa7072b43 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": "~21.7.0-canary", "graphql": "~15.8.0", "graphql-tag": "^2.12.6", - "next": "^14.0.4", + "next": "^14.1.0", "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 826cb152ee..0b6ad767a1 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.0.4", + "next": "^14.1.0", "nock": "^13.3.0", "nyc": "^15.1.0", "react": "^18.2.0", @@ -67,7 +67,7 @@ "peerDependencies": { "@sitecore-cloudsdk/events": "^0.1.1", "@sitecore-cloudsdk/personalize": "^0.1.1", - "next": "^14.0.4", + "next": "^14.1.0", "react": "^18.2.0", "react-dom": "^18.2.0" }, diff --git a/yarn.lock b/yarn.lock index 011fd01984..6b55244a1f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4295,72 +4295,72 @@ __metadata: languageName: node linkType: hard -"@next/env@npm:14.0.4": - version: 14.0.4 - resolution: "@next/env@npm:14.0.4" - checksum: e8dac033d92c10e55d3b1802f8fd9be00383ed9d479add9fee0823a9a0bf2ab0f4421d5baea52921871c82daf5cd292421db8a1ed5d173e3cb088c3b3a984c0d +"@next/env@npm:14.1.0": + version: 14.1.0 + resolution: "@next/env@npm:14.1.0" + checksum: ecec03a3e9745996ed1c7fc218fc9a1a4345a0cf368afb50f38a3b6fbf6f966a36dba174c90b5f90b568188dbd0eba48a2c5448b6742298417df4ff3351c6d40 languageName: node linkType: hard -"@next/swc-darwin-arm64@npm:14.0.4": - version: 14.0.4 - resolution: "@next/swc-darwin-arm64@npm:14.0.4" +"@next/swc-darwin-arm64@npm:14.1.0": + version: 14.1.0 + resolution: "@next/swc-darwin-arm64@npm:14.1.0" conditions: os=darwin & cpu=arm64 languageName: node linkType: hard -"@next/swc-darwin-x64@npm:14.0.4": - version: 14.0.4 - resolution: "@next/swc-darwin-x64@npm:14.0.4" +"@next/swc-darwin-x64@npm:14.1.0": + version: 14.1.0 + resolution: "@next/swc-darwin-x64@npm:14.1.0" conditions: os=darwin & cpu=x64 languageName: node linkType: hard -"@next/swc-linux-arm64-gnu@npm:14.0.4": - version: 14.0.4 - resolution: "@next/swc-linux-arm64-gnu@npm:14.0.4" +"@next/swc-linux-arm64-gnu@npm:14.1.0": + version: 14.1.0 + resolution: "@next/swc-linux-arm64-gnu@npm:14.1.0" conditions: os=linux & cpu=arm64 languageName: node linkType: hard -"@next/swc-linux-arm64-musl@npm:14.0.4": - version: 14.0.4 - resolution: "@next/swc-linux-arm64-musl@npm:14.0.4" +"@next/swc-linux-arm64-musl@npm:14.1.0": + version: 14.1.0 + resolution: "@next/swc-linux-arm64-musl@npm:14.1.0" conditions: os=linux & cpu=arm64 languageName: node linkType: hard -"@next/swc-linux-x64-gnu@npm:14.0.4": - version: 14.0.4 - resolution: "@next/swc-linux-x64-gnu@npm:14.0.4" +"@next/swc-linux-x64-gnu@npm:14.1.0": + version: 14.1.0 + resolution: "@next/swc-linux-x64-gnu@npm:14.1.0" conditions: os=linux & cpu=x64 languageName: node linkType: hard -"@next/swc-linux-x64-musl@npm:14.0.4": - version: 14.0.4 - resolution: "@next/swc-linux-x64-musl@npm:14.0.4" +"@next/swc-linux-x64-musl@npm:14.1.0": + version: 14.1.0 + resolution: "@next/swc-linux-x64-musl@npm:14.1.0" conditions: os=linux & cpu=x64 languageName: node linkType: hard -"@next/swc-win32-arm64-msvc@npm:14.0.4": - version: 14.0.4 - resolution: "@next/swc-win32-arm64-msvc@npm:14.0.4" +"@next/swc-win32-arm64-msvc@npm:14.1.0": + version: 14.1.0 + resolution: "@next/swc-win32-arm64-msvc@npm:14.1.0" conditions: os=win32 & cpu=arm64 languageName: node linkType: hard -"@next/swc-win32-ia32-msvc@npm:14.0.4": - version: 14.0.4 - resolution: "@next/swc-win32-ia32-msvc@npm:14.0.4" +"@next/swc-win32-ia32-msvc@npm:14.1.0": + version: 14.1.0 + resolution: "@next/swc-win32-ia32-msvc@npm:14.1.0" conditions: os=win32 & cpu=ia32 languageName: node linkType: hard -"@next/swc-win32-x64-msvc@npm:14.0.4": - version: 14.0.4 - resolution: "@next/swc-win32-x64-msvc@npm:14.0.4" +"@next/swc-win32-x64-msvc@npm:14.1.0": + version: 14.1.0 + resolution: "@next/swc-win32-x64-msvc@npm:14.1.0" conditions: os=win32 & cpu=x64 languageName: node linkType: hard @@ -5524,7 +5524,7 @@ __metadata: eslint-plugin-react: ^7.32.1 jsdom: ^21.1.0 mocha: ^10.2.0 - next: ^14.0.4 + next: ^14.1.0 nock: ^13.3.0 node-html-parser: ^6.1.4 nyc: ^15.1.0 @@ -5540,7 +5540,7 @@ __metadata: peerDependencies: "@sitecore-cloudsdk/events": ^0.1.1 "@sitecore-cloudsdk/personalize": ^0.1.1 - next: ^14.0.4 + next: ^14.1.0 react: ^18.2.0 react-dom: ^18.2.0 languageName: unknown @@ -10098,13 +10098,20 @@ __metadata: languageName: node linkType: hard -"caniuse-lite@npm:^1.0.30000844, caniuse-lite@npm:^1.0.30001406, caniuse-lite@npm:^1.0.30001464, caniuse-lite@npm:^1.0.30001538, caniuse-lite@npm:^1.0.30001565": +"caniuse-lite@npm:^1.0.30000844, caniuse-lite@npm:^1.0.30001464, caniuse-lite@npm:^1.0.30001538, caniuse-lite@npm:^1.0.30001565": version: 1.0.30001570 resolution: "caniuse-lite@npm:1.0.30001570" checksum: 460be2c7a9b1c8a83b6aae4226661c276d9dada6c84209dee547699cf4b28030b9d1fc29ddd7626acee77412b6401993878ea0ef3eadbf3a63ded9034896ae20 languageName: node linkType: hard +"caniuse-lite@npm:^1.0.30001579": + version: 1.0.30001580 + resolution: "caniuse-lite@npm:1.0.30001580" + checksum: 8d287d1e2a64348365f55562457b52afc8c5e0e8ddf040e18e53395ca165241a697205611dc209dace5c7f7d1d3ee8d566672cce6f9668d658d7930b7a200875 + languageName: node + linkType: hard + "capture-exit@npm:^2.0.0": version: 2.0.0 resolution: "capture-exit@npm:2.0.0" @@ -19729,27 +19736,26 @@ __metadata: languageName: node linkType: hard -"next@npm:^14.0.4": - version: 14.0.4 - resolution: "next@npm:14.0.4" +"next@npm:^14.1.0": + version: 14.1.0 + resolution: "next@npm:14.1.0" dependencies: - "@next/env": 14.0.4 - "@next/swc-darwin-arm64": 14.0.4 - "@next/swc-darwin-x64": 14.0.4 - "@next/swc-linux-arm64-gnu": 14.0.4 - "@next/swc-linux-arm64-musl": 14.0.4 - "@next/swc-linux-x64-gnu": 14.0.4 - "@next/swc-linux-x64-musl": 14.0.4 - "@next/swc-win32-arm64-msvc": 14.0.4 - "@next/swc-win32-ia32-msvc": 14.0.4 - "@next/swc-win32-x64-msvc": 14.0.4 + "@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 busboy: 1.6.0 - caniuse-lite: ^1.0.30001406 + caniuse-lite: ^1.0.30001579 graceful-fs: ^4.2.11 postcss: 8.4.31 styled-jsx: 5.1.1 - watchpack: 2.4.0 peerDependencies: "@opentelemetry/api": ^1.1.0 react: ^18.2.0 @@ -19781,7 +19787,7 @@ __metadata: optional: true bin: next: dist/bin/next - checksum: 879842979d3c7e2d2e2cd3edad3e715d408060a286bb12299089e08d7142af9effceee877e6d18aad359983119d025298ec5c63dd6317443027b47dc5167ac40 + checksum: 077fd76a6fe7127a8be3d11035dcefb2c829f304aaa85144e0d1b531a1549b6c9bb99459af1ef0782c1f1110ca08f6f33efd293a2dc51672dd9dc45ede608ecf languageName: node linkType: hard @@ -25975,7 +25981,7 @@ __metadata: languageName: node linkType: hard -"watchpack@npm:2.4.0, watchpack@npm:^2.4.0": +"watchpack@npm:^2.4.0": version: 2.4.0 resolution: "watchpack@npm:2.4.0" dependencies: