diff --git a/CHANGELOG.md b/CHANGELOG.md index 339e06b2d9..840bc9c63d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/packages/sitecore-jss-angular/src/public_api.ts b/packages/sitecore-jss-angular/src/public_api.ts index 2f299a3903..0a45e046d1 100644 --- a/packages/sitecore-jss-angular/src/public_api.ts +++ b/packages/sitecore-jss-angular/src/public_api.ts @@ -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 { diff --git a/packages/sitecore-jss-nextjs/src/index.ts b/packages/sitecore-jss-nextjs/src/index.ts index bff971f82c..82dc99b4c0 100644 --- a/packages/sitecore-jss-nextjs/src/index.ts +++ b/packages/sitecore-jss-nextjs/src/index.ts @@ -11,6 +11,9 @@ export { HTMLLink, enableDebug, debug, + CacheClient, + CacheOptions, + MemoryCacheClient, } from '@sitecore-jss/sitecore-jss'; export { diff --git a/packages/sitecore-jss-react/src/index.ts b/packages/sitecore-jss-react/src/index.ts index d11283ee90..a8e38528a3 100644 --- a/packages/sitecore-jss-react/src/index.ts +++ b/packages/sitecore-jss-react/src/index.ts @@ -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, diff --git a/packages/sitecore-jss-vue/src/index.ts b/packages/sitecore-jss-vue/src/index.ts index eadb527ff2..4cef359a51 100644 --- a/packages/sitecore-jss-vue/src/index.ts +++ b/packages/sitecore-jss-vue/src/index.ts @@ -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, diff --git a/packages/sitecore-jss/src/index.ts b/packages/sitecore-jss/src/index.ts index 5da8a5c365..842de11d7e 100644 --- a/packages/sitecore-jss/src/index.ts +++ b/packages/sitecore-jss/src/index.ts @@ -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';