@adobe/spacecat-shared-utils 1.100.1 → 1.101.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## [@adobe/spacecat-shared-utils-v1.101.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-utils-v1.100.1...@adobe/spacecat-shared-utils-v1.101.0) (2026-03-10)
2
+
3
+ ### Features
4
+
5
+ * **utils:** export resetFetchContext and clearFetchCache ([#1421](https://github.com/adobe/spacecat-shared/issues/1421)) ([0e05bd8](https://github.com/adobe/spacecat-shared/commit/0e05bd865c92fe4f4bbfffb29575faa15e8d93b3))
6
+
1
7
  ## [@adobe/spacecat-shared-utils-v1.100.1](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-utils-v1.100.0...@adobe/spacecat-shared-utils-v1.100.1) (2026-03-07)
2
8
 
3
9
  ### Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/spacecat-shared-utils",
3
- "version": "1.100.1",
3
+ "version": "1.101.0",
4
4
  "description": "Shared modules of the Spacecat Services - utils",
5
5
  "type": "module",
6
6
  "exports": {
@@ -11,4 +11,7 @@
11
11
  */
12
12
  import { context as h2, h1 } from '@adobe/fetch';
13
13
 
14
- export const { fetch } = process.env.HELIX_FETCH_FORCE_HTTP1 ? h1() : h2();
14
+ const fetchContext = process.env.HELIX_FETCH_FORCE_HTTP1 ? h1() : h2();
15
+ export const {
16
+ fetch, reset: resetFetchContext, clearCache: clearFetchCache,
17
+ } = fetchContext;
package/src/index.js CHANGED
@@ -83,7 +83,7 @@ export { s3Wrapper, getObjectFromKey } from './s3.js';
83
83
 
84
84
  export { OPPORTUNITY_TYPES, DEFAULT_CPC_VALUE } from './constants.js';
85
85
 
86
- export { fetch } from './adobe-fetch.js';
86
+ export { fetch, resetFetchContext, clearFetchCache } from './adobe-fetch.js';
87
87
  export { tracingFetch, SPACECAT_USER_AGENT } from './tracing-fetch.js';
88
88
  export {
89
89
  getHighFormViewsLowConversionMetrics,