From 08422de793cbbc0295268bc32acf399719f700d2 Mon Sep 17 00:00:00 2001 From: Alan Agius <17563226+alan-agius4@users.noreply.github.com> Date: Wed, 27 May 2026 07:40:42 +0000 Subject: [PATCH] refactor(http): export CACHE_OPTIONS to support test suite requirements Export the CACHE_OPTIONS injection token from transfer_cache.ts to resolve compilation failures in the unit test specs. On the 19.2.x branch, the CACHE_OPTIONS token was previously a local private constant. However, the newly cherry-picked testing configurations import this token directly, requiring it to be exported. --- packages/common/http/src/transfer_cache.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/common/http/src/transfer_cache.ts b/packages/common/http/src/transfer_cache.ts index 480feefe531..9585451e108 100644 --- a/packages/common/http/src/transfer_cache.ts +++ b/packages/common/http/src/transfer_cache.ts @@ -113,7 +113,7 @@ interface CacheOptions extends HttpTransferCacheOptions { isCacheActive: boolean; } -const CACHE_OPTIONS = new InjectionToken( +export const CACHE_OPTIONS = new InjectionToken( ngDevMode ? 'HTTP_TRANSFER_STATE_CACHE_OPTIONS' : '', );