diff --git a/CHANGELOG.md b/CHANGELOG.md index ec06f0b97f..613100d63a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -60,6 +60,8 @@ Our versioning strategy is as follows: ### 🛠 Breaking Change +* `[sitecore-jss]` Set FETCH_WITH.REST to 'REST' instead of 'Rest' ([#1927](https://github.com/Sitecore/jss/pull/1927)): + * The `FETCH_WITH.REST` constant has been updated to 'REST' instead of 'Rest' to match the value that we mention in the documentation. If you are using this constant in your code, please update your FETCH_WITH env variable to 'REST'. * `[templates/angular]` `[sitecore-jss-angular]` A new `JssStateService` has been introduced in the `sitecore-jss-angular` package, enhancing type safety and enabling state sharing across the application and SDK components. As a result, the JssContextService now relies on JssStateService for state management.([#1918](https://github.com/Sitecore/jss/pull/1918)) * `[sitecore-jss-proxy]` Updated exports of the module for better extensibility ([#1903](https://github.com/Sitecore/jss/pull/1903)) * `express@^4.19.2` dependency is marked as a peer dependency diff --git a/docs/upgrades/unreleased.md b/docs/upgrades/unreleased.md index ee97f82a5f..bd2db98a91 100644 --- a/docs/upgrades/unreleased.md +++ b/docs/upgrades/unreleased.md @@ -1,5 +1,7 @@ ## Unreleased +* `FETCH_WITH.REST` constant string value from '@sitecore-jss/sitecore-jss' package now is set to 'REST' instead of 'Rest'. If you are using this constant in your code, please update your FETCH_WITH env variable to 'REST'. + # Angular * Update the JssContextService and all the references to it, since some of the sitecore-jss-angular components now rely on the application state: diff --git a/packages/sitecore-jss/src/constants.ts b/packages/sitecore-jss/src/constants.ts index 7a974f39c7..295c116dcf 100644 --- a/packages/sitecore-jss/src/constants.ts +++ b/packages/sitecore-jss/src/constants.ts @@ -8,7 +8,7 @@ export enum SitecoreTemplateId { export const FETCH_WITH = { GRAPHQL: 'GraphQL', - REST: 'Rest', + REST: 'REST', }; export const JSS_MODE = {