@stigg/cache-core provides the shared cache entities, entitlement mapping, and in-memory cache service used across Stigg’s SDKs (@stigg/node-server-sdk, @stigg/js-client-sdk, sidecar) and persistent-cache-service. It has no store implementation of its own — see Cache Redis Store for the Redis-backed store.
- Changed:
CreditAccessPropagatormarks a credit-backed featureInsufficientCreditswhen its credits are depleted, even if the feature is already markedRequestedUsageExceedingLimit. SDK checks now decide the usage limit from cached usage and ignore that saved reason, so it can no longer hide depleted credits.
- Added: governance capability ID helpers (
capabilityId,capabilityIdFromRef,parseCapabilityIdandcapabilityIdToRestFields) and apromiseAllRejectLateutility. Only affects code that builds directly oncache-core.
- Added:
DimensionValuetype (string | number | boolean), exported alongsideMaybeandOneOrMany. Only affects code that builds directly oncache-core.
- No functional change to
cache-core. This release only bumped the package version to track releases of other packages in the monorepo.
- Fixed:
CreditAccessPropagatorno longer marks a credit-backed featureInsufficientCreditswhen its credit entitlement has a soft limit and the balance reaches zero.
- Added: cache reads (
getEntitlements, single-entitlement reads) now return the time the customer’s entitlements were written. - Changed: the usage record on a cached entitlement is now optional. Readers substitute the same zero-usage placeholder when it is absent, so evaluation results are unchanged, and the persisted format is unchanged.
- ⚠️ Changed: the usage write timestamp now lives on
UsageData.CacheMapperResultis removed,fromInputno longer returns a second timestamp collection, andUpdateUsageParams.usageTimestampis removed. Only affects code that builds directly oncache-core.
- Changed:
cache-coreno longer depends on@stigg/api-client-js. The enumerations used in cached entitlements are now declared incache-coreitself, as string-literal unions with same-named namespaces, so values arriving from the API client are accepted unchanged andFoo.Barcall sites keep working. Its only dependencies are nowdayjsandlodash.
- Versions 1.17.0 through 1.26.0 (2026-06-23 to 2026-08-12) carried no functional change to
cache-coreitself. Each only bumped the package version to track releases of other packages in the monorepo.
- Added:
hasSoftLimitonCalculatedEntitlement, so any store built oncache-corereflects a wallet’s soft-limit configuration. Requires@stigg/node-server-sdkv4.45.0+ on the reader side to take effect; older readers ignore the field.
- Changed:
InMemoryCacheServiceno longer depends onlru-cache, andEntitlementsMaptakes an array of entitlements instead of an iterable.
- Initial release. Extracted the cache entities, entitlement mapping (
CacheMapper,accessDeniedReasonMapper), and in-memory cache service, including credit entitlement support, into a standalone, shared package consumed bypersistent-cache-service,@stigg/node-server-sdk,@stigg/js-client-sdk, and the sidecar. No behavior change from the extraction itself.