Skip to content

Commit

Permalink
[sitecore-jss] Export cache-client functionality (#1954)
Browse files Browse the repository at this point in the history
* [sitecore-jss] Export cache-client functionality

* changelog
  • Loading branch information
yavorsk committed Oct 21, 2024
1 parent 9c234db commit 8987ca1
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Our versioning strategy is as follows:
### 🎉 New Features & Improvements

* `[sitecore-jss-nextjs]` Expose MiddlewareBase class and MiddlewareBaseConfig type ([#1941](https://github.com/Sitecore/jss/pull/1941))
* `[react]``[nextjs]``[angular]``[vue]` CacheClient, CacheOptions, MemoryCacheClient classes can now be imported into the app through corresponding a framework package ([#1954](https://github.com/Sitecore/jss/pull/1954))

## 22.1.3

Expand Down
3 changes: 3 additions & 0 deletions packages/sitecore-jss-angular/src/public_api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ export {
HttpResponse,
enableDebug,
ClientError,
CacheClient,
CacheOptions,
MemoryCacheClient,
} from '@sitecore-jss/sitecore-jss';
export { isServer } from '@sitecore-jss/sitecore-jss/utils';
export {
Expand Down
3 changes: 3 additions & 0 deletions packages/sitecore-jss-nextjs/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ export {
HTMLLink,
enableDebug,
debug,
CacheClient,
CacheOptions,
MemoryCacheClient,
} from '@sitecore-jss/sitecore-jss';

export {
Expand Down
9 changes: 8 additions & 1 deletion packages/sitecore-jss-react/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
export { constants, enableDebug, ClientError } from '@sitecore-jss/sitecore-jss';
export {
constants,
enableDebug,
ClientError,
CacheClient,
CacheOptions,
MemoryCacheClient,
} from '@sitecore-jss/sitecore-jss';
export { EnhancedOmit } from '@sitecore-jss/sitecore-jss/utils';
export {
isEditorActive,
Expand Down
9 changes: 8 additions & 1 deletion packages/sitecore-jss-vue/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,14 @@ export {
WebEditButton,
EditButtonTypes,
} from '@sitecore-jss/sitecore-jss/editing';
export { constants, enableDebug, ClientError } from '@sitecore-jss/sitecore-jss';
export {
constants,
enableDebug,
ClientError,
CacheClient,
CacheOptions,
MemoryCacheClient,
} 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 @@ -14,6 +14,7 @@ export {
GraphQLRequestClientFactoryConfig,
} from './graphql-request-client';
export { AxiosDataFetcher, AxiosDataFetcherConfig } from './axios-fetcher';
export { CacheClient, CacheOptions, MemoryCacheClient } from './cache-client';
export { AxiosResponse } from 'axios';
export { ClientError } from 'graphql-request';
export { NativeDataFetcher, NativeDataFetcherConfig } from './native-fetcher';
Expand Down

0 comments on commit 8987ca1

Please sign in to comment.