Changes done for the new version of JSS #562
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Upgrade Summary for The Task Assinged
JSS and React Version Upgrade
Updated all @sitecore-jss/* dependencies to ~22.9.0 in package.json.
Upgraded react and react-dom to ^19.1.0.
GraphQL Service Refactoring
Replaced direct usage of endpoint and apiKey with clientFactory for all GraphQL services:
GraphQLDictionaryService
GraphQLSitemapXmlService
Others as applicable.
Used graphQLClientFactory from @sitecore-jss/sitecore-jss-nextjs where possible.
Updated custom factory in create.ts to use GraphQLRequestClient.createClientFactory.
FEAAS Themes Plugin Adjustments
Removed usage of deprecated getFEAASLibraryStylesheetLinks from feaas-themes.ts.
Codebase Alignment with JSS v22+
Refactored code to match new APIs and types introduced in JSS v22+.
Removed deprecated imports and configuration options.
Ensured all GraphQL and dictionary services follow the new factory pattern.
Documentation Reference
Followed Sitecore’s official upgrade guide:
[](Upgrade JSS 21.7 Next.js apps to version 22.0.0)