From 8bba224d9163099fd7e8bd9b7423ecf498160590 Mon Sep 17 00:00:00 2001 From: Keith Bauer Date: Fri, 4 Oct 2024 14:14:44 -0400 Subject: [PATCH 1/2] [sitecore-jss-nextjs]: Expose MiddlewareBase class and MiddlewareBaseConfig for project reusability --- packages/sitecore-jss-nextjs/src/middleware/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/sitecore-jss-nextjs/src/middleware/index.ts b/packages/sitecore-jss-nextjs/src/middleware/index.ts index 3c62846310..68408fac24 100644 --- a/packages/sitecore-jss-nextjs/src/middleware/index.ts +++ b/packages/sitecore-jss-nextjs/src/middleware/index.ts @@ -1,4 +1,5 @@ export { debug } from '@sitecore-jss/sitecore-jss'; +export { MiddlewareBase, MiddlewareBaseConfig } from './middleware'; export { RedirectsMiddleware, RedirectsMiddlewareConfig } from './redirects-middleware'; export { PersonalizeMiddleware, PersonalizeMiddlewareConfig } from './personalize-middleware'; export { MultisiteMiddleware, MultisiteMiddlewareConfig } from './multisite-middleware'; From 57699f38b331abbbe3fe2dfe249d58776fa0a009 Mon Sep 17 00:00:00 2001 From: Keith Bauer Date: Fri, 4 Oct 2024 14:22:24 -0400 Subject: [PATCH 2/2] update changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index fd6b8f3b3c..e5cebcb6e4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -61,6 +61,7 @@ Our versioning strategy is as follows: * `[sitecore-jss]` GenericFieldValue model is updated to accept Date type ([#1916](https://github.com/Sitecore/jss/pull/1916)) * `[template/node-xmcloud-proxy]` `[sitecore-jss-proxy]` Introduced /api/healthz endpoint ([#1928](https://github.com/Sitecore/jss/pull/1928)) * `[sitecore-jss]` `[sitecore-jss-angular]` Render field metdata chromes in editMode metadata - in edit mode metadata in Pages, angular package field directives will render wrapping `code` elements with field metadata required for editing; ([#1926](https://github.com/Sitecore/jss/pull/1926)) +* `[sitecore-jss-nextjs]` Expose MiddlewareBase class and MiddlewareBaseConfig type ([#1941](https://github.com/Sitecore/jss/pull/1941)) ### 🛠 Breaking Change