Skip to content

Commit

Permalink
Export ClientError (#1738)
Browse files Browse the repository at this point in the history
  • Loading branch information
addy-pathania authored and illiakovalenko committed Mar 6, 2024
1 parent 57d027c commit d05366a
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ This project does NOT adhere to [Semantic Versioning](https://semver.org/spec/v2

### 🐛 Bug Fixes

* `[sitecore-jss]` Export _ClientError_ type ([#1738](https://github.com/Sitecore/jss/pull/1738))
* `[templates/nextjs]` `[sitecore-jss-nextjs]` Better error handling for component-level data fetching ([#1586](https://github.com/Sitecore/jss/pull/1586))
* `[sitecore-jss]` Enable the Layout, dictionary and Error Page service to use custom `retryStrategy`. ([#1749](https://github.com/Sitecore/jss/pull/1749))

Expand Down
1 change: 1 addition & 0 deletions packages/sitecore-jss-angular/src/public_api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export {
} from '@sitecore-jss/sitecore-jss/layout';
export { RetryStrategy, DefaultRetryStrategy } from '@sitecore-jss/sitecore-jss/graphql';
export { constants, HttpDataFetcher, HttpResponse } from '@sitecore-jss/sitecore-jss';
export { ClientError } from 'graphql-request';
export {
isServer,
isExperienceEditorActive,
Expand Down
1 change: 1 addition & 0 deletions packages/sitecore-jss-nextjs/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export {
HttpResponse,
AxiosDataFetcher,
AxiosDataFetcherConfig,
ClientError,
} from '@sitecore-jss/sitecore-jss';
export {
isEditorActive,
Expand Down
2 changes: 1 addition & 1 deletion packages/sitecore-jss-react/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export { constants } from '@sitecore-jss/sitecore-jss';
export { constants, ClientError } from '@sitecore-jss/sitecore-jss';
export {
isExperienceEditorActive,
resetExperienceEditorChromes,
Expand Down
2 changes: 1 addition & 1 deletion packages/sitecore-jss-vue/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export {
resetExperienceEditorChromes,
handleEditorAnchors,
} from '@sitecore-jss/sitecore-jss/utils';
export { constants } from '@sitecore-jss/sitecore-jss';
export { constants, ClientError } from '@sitecore-jss/sitecore-jss';
export {
trackingApi,
TrackingRequestOptions,
Expand Down
1 change: 1 addition & 0 deletions packages/sitecore-jss/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ export {
GraphQLRequestClientConfig,
} from './graphql-request-client';
export { AxiosDataFetcher, AxiosDataFetcherConfig } from './axios-fetcher';
export { ClientError } from 'graphql-request';
export { constants };

0 comments on commit d05366a

Please sign in to comment.