From 949e98d4d248e0962a347d0959e01ee99faf76ad Mon Sep 17 00:00:00 2001 From: yavorsk Date: Fri, 5 Jan 2024 18:18:12 +0200 Subject: [PATCH 1/4] upgrade graphql-codegen/cli to latest --- packages/create-sitecore-jss/src/templates/nextjs/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/create-sitecore-jss/src/templates/nextjs/package.json b/packages/create-sitecore-jss/src/templates/nextjs/package.json index 88381c0784..b9609b9260 100644 --- a/packages/create-sitecore-jss/src/templates/nextjs/package.json +++ b/packages/create-sitecore-jss/src/templates/nextjs/package.json @@ -34,7 +34,7 @@ "react-dom": "^18.2.0" }, "devDependencies": { - "@graphql-codegen/cli": "^1.21.8", + "@graphql-codegen/cli": "^5.0.0", "@graphql-codegen/import-types-preset": "^2.2.6", "@graphql-codegen/plugin-helpers": "^3.1.2", "@graphql-codegen/typed-document-node": "^2.3.12", From 7ceb8e162e843940a1a98afacf0b0694b064c2f5 Mon Sep 17 00:00:00 2001 From: yavorsk Date: Tue, 9 Jan 2024 14:22:22 +0200 Subject: [PATCH 2/4] update changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index acef4148ff..6012cfe5d1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,6 +22,7 @@ Our versioning strategy is as follows: * Upgrade to Node.js 20.x ([#1679](https://github.com/Sitecore/jss/pull/1679))([#1681](https://github.com/Sitecore/jss/pull/1681)) * Removed "npm" field from "engines" property ([#1698](https://github.com/Sitecore/jss/pull/1698)) * Removed "engines" field for templates ([#1701](https://github.com/Sitecore/jss/pull/1701)) +* `[nextjs/template]` Upgrade graphql-codegen/cli to latest ([#1711](https://github.com/Sitecore/jss/pull/1711)) ### 🐛 Bug Fixes From 8ecd926b8e0a03978dd7ff5b2affcf7c0e0239a8 Mon Sep 17 00:00:00 2001 From: yavorsk Date: Thu, 11 Jan 2024 16:16:54 +0200 Subject: [PATCH 3/4] upgrade all graphql codegen packages to latest --- .../src/templates/nextjs/package.json | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/create-sitecore-jss/src/templates/nextjs/package.json b/packages/create-sitecore-jss/src/templates/nextjs/package.json index b9609b9260..b788bb0ac9 100644 --- a/packages/create-sitecore-jss/src/templates/nextjs/package.json +++ b/packages/create-sitecore-jss/src/templates/nextjs/package.json @@ -35,13 +35,13 @@ }, "devDependencies": { "@graphql-codegen/cli": "^5.0.0", - "@graphql-codegen/import-types-preset": "^2.2.6", - "@graphql-codegen/plugin-helpers": "^3.1.2", - "@graphql-codegen/typed-document-node": "^2.3.12", - "@graphql-codegen/typescript": "^2.8.7", - "@graphql-codegen/typescript-operations": "^2.5.12", - "@graphql-codegen/typescript-resolvers": "^2.7.12", - "@graphql-typed-document-node/core": "^3.1.1", + "@graphql-codegen/import-types-preset": "^3.0.0", + "@graphql-codegen/plugin-helpers": "^5.0.1", + "@graphql-codegen/typed-document-node": "^5.0.1", + "@graphql-codegen/typescript": "^4.0.1", + "@graphql-codegen/typescript-operations": "^4.0.1", + "@graphql-codegen/typescript-resolvers": "^4.0.1", + "@graphql-typed-document-node/core": "^3.2.0", "@sitecore-jss/sitecore-jss-cli": "~21.7.0-canary", "@sitecore-jss/sitecore-jss-dev-tools": "~21.7.0-canary", "@types/node": "^18.11.18", From 4d2abe7219b31c264e512b680c86297077cd60c6 Mon Sep 17 00:00:00 2001 From: Yavor Krastev Date: Thu, 11 Jan 2024 17:13:18 +0200 Subject: [PATCH 4/4] Update CHANGELOG.md Co-authored-by: Illia Kovalenko <23364749+illiakovalenko@users.noreply.github.com> --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6012cfe5d1..c505dc7c64 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,7 +22,7 @@ Our versioning strategy is as follows: * Upgrade to Node.js 20.x ([#1679](https://github.com/Sitecore/jss/pull/1679))([#1681](https://github.com/Sitecore/jss/pull/1681)) * Removed "npm" field from "engines" property ([#1698](https://github.com/Sitecore/jss/pull/1698)) * Removed "engines" field for templates ([#1701](https://github.com/Sitecore/jss/pull/1701)) -* `[nextjs/template]` Upgrade graphql-codegen/cli to latest ([#1711](https://github.com/Sitecore/jss/pull/1711)) +* `[nextjs/template]` Upgrade graphql-codegen packages to latest ([#1711](https://github.com/Sitecore/jss/pull/1711)) ### 🐛 Bug Fixes