@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.
2026-09-28
- Fixed:
CreditAccessPropagatorno longer marks a credit-backed featureInsufficientCreditswhen its credit entitlement has a soft limit and the balance reaches zero.
2026-09-17
- 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.
2026-09-02
- 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.
2026-08-12
- 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.
2026-06-23
- 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.
2026-06-01
- Security: patched vulnerable transitive dependencies.
2026-03-30
- Changed:
InMemoryCacheServiceno longer depends onlru-cache, andEntitlementsMaptakes an array of entitlements instead of an iterable.
2026-02-25
- 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.