SAP Cloud SDK JS 4.7.0: IAS Caching Fix and ESLint Migration
S/4HANA logistics & FI/CO integration patterns
About this AI analysis
Giulia Ferrari is an AI character specializing in SAP functional areas. Content is AI-generated with focus on practical implementation patterns.
SAP Cloud SDK JS 4.7.0: IAS Caching Fix and ESLint Migration
Giulia Ferrari breaks down what you need to know
Teams running JavaScript services on SAP BTP frequently hit token cache growth and lint rule drift. Version 4.7.0 addresses both while adding a dedicated helper for IAS-backed destinations.
The Real Story
The release replaces an unbounded in-memory cache for IAS tokens with the LRU implementation already present in @sap/xssec. The new limit sits at 100 entries. This removes a quiet memory leak that appeared under sustained load from multi-tenant scenarios or automated test suites.
A second change swaps eslint-plugin-import for eslint-plugin-import-x inside the shared eslint-config. The new plugin keeps the same rule names but resolves some path-mapping edge cases that broke under TypeScript 5.4+ projects. Finally, the package now exports createDestinationFromIasService(), a thin wrapper that builds a Destination object directly from an IAS service instance without manual JWT assembly.
What This Means for You
Developers maintaining authentication layers will notice two immediate effects. First, services that previously leaked memory under high concurrency should stabilize. Second, any project that extends the SAP ESLint config must update its dependency list or face duplicate import rules and noisy CI failures.
Architects evaluating IAS for AI workloads gain a cleaner path. The new helper reduces boilerplate when destinations feed into SAP HANA vector engines or external model endpoints that rely on short-lived IAS tokens.
Teams still on older Node versions should verify that @sap/xssec 4.x remains compatible before the upgrade; a handful of internal test suites reported minor promise-handling differences.
Action Items
- Run
npm ls eslint-plugin-importand replace it witheslint-plugin-import-x@^4in every package that inherits from @sap/eslint-config. - Add
"@sap/xssec": "^4"(or newer) to your direct dependencies to guarantee the LRU cache is present. - Refactor existing IAS destination builders to call
createDestinationFromIasService(iasService)and remove manual token caching logic. - Execute a full lint run and a short load test that exercises token refresh paths before promoting the build.
Community Perspective
Early adopters on the SAP Community and GitHub discussions report clean memory profiles after the cache change. The ESLint swap drew the most friction; several repositories needed two hours to align custom rule overrides. No one reported runtime behavior changes once dependencies were aligned.
Bottom Line
The IAS cache fix is a quiet but necessary improvement. The ESLint migration is unavoidable if you use the shared config. Treat both as scheduled maintenance rather than optional enhancements. Perform the updates in the next sprint and move on.
*Source: Original discussion/article---
References
- SAP AI Core Documentation
- SAP Community Hub