- [connectivity, generator, generator-common, http-client, odata-common, odata-v2, odata-v4, openapi, openapi-generator, resilience, temporal-de-serializers] Export
./internal.jsnamed export inpackage.jsonfor compatibility. Please migrate to the new named export./internal, the old export is deprecated and will be removed in the next major release. (e8f8134)
- [generator-common] Generated files now include a blank line between the copyright header and the file content. (118131d)
- [openapi-generator] Fields with
contentMediaType: application/jsonand acontentSchemawill now be typed as thecontentSchematype instead ofstring. Re-generate your client to pick up the new types. (404dc92)
- [openapi-generator] Support
contentSchemain OpenAPI 3.1 schemas: fields withcontentMediaType: application/jsonand acontentSchemaare now typed as thecontentSchematype instead ofstring. Serialization to a JSON string is supported for multipart bodies viaFormDataBuilder; non-multipart bodies are not yet handled. (404dc92) - [openapi-generator] OpenAPI generator now supports OAS 3.1 input. This feature is experiemental. Use with caution. (5f6fe80)
- [connectivity] Extend OnPremise HTTP agent cache key to scope it more strongly. The cache key now includes the subaccount identity ensuring keep-alive sockets are not reused across tenants in multi-tenant technical user flows. If no stable identity context can be derived from the request, a fresh agent without keep-alive is created for each request. This matches the behavior of the previous implementation in SAP Cloud SDK v4.6.0 and lower, which did not cache agents in any case. (9f55261)
- [generator-common]
readCompilerOptionsnow uses the TypeScript compiler API for tsconfig parsing, fixing support for JSONC (comments, trailing commas), package-nameextends(e.g.@tsconfig/node18), and circularextendschains. (88c304e) - [http-client] Restore proxy authorization headers for same-origin redirects when using proxy configuration. (05e9299)
- [generator, openapi-generator] Transpilation now includes inherited compiler options. (82a6d2d)
- [generator, generator-common, openapi-generator] The project has been updated to
typescriptversion 6. Some options are deprecated in TypeScript 6, reference the breaking changes page for more details. (b7cfc1b)
- [connectivity, http-client] A new
agentOptionsproperty onDestinationallows configuring the underlying HTTP(S) agent (e.g.keepAlive,timeout) without constructing an agent manually. (32aab37)
- [connectivity] HTTP(S) agents are now cached per destination instead of per protocol and options, preventing unintended agent reuse across different destinations. (34da40e)
- [connectivity] Refactor HTTP agent cache for better runtime compatibility. (a42a3a2)
- [connectivity] Fix
DestinationOrFetchOptionsandHttpDestinationOrFetchOptionsso theservicekey surfaces at the type level.- @sap-cloud-sdk/resilience@4.8.0
- @sap-cloud-sdk/util@4.8.0 (24fe0c5)
- [generator, openapi-generator] Transpilation now resolves
extendsinheritance in tsconfig files, merging base config options with child options taking precedence. (82a6d2d) - [openapi] Wrap
Bufferresponses inBlobwhen executing OpenAPI requests that return binary data. (e568017)
- [generator-common] Extend script target mapper to handle ES2023, ES2024, and ES2025 targets. Extend module kind mapper to handle UMD, System, ES2022, Node18, Node20, and Preserve module kinds. Extend module resolution mapping to handle Bundler. (9df742e)
- [connectivity] IAS tokens are now cached via
@sap/xssec.@sap/xssecuses an LRU cache limited to 100 items, previously this cache was unbound. (9102f18) - [eslint-config] Replaced
eslint-plugin-importwitheslint-plugin-import-x. Please ensure that you haveeslint-plugin-import-xinstalled. (9cbf19d)
- [connectivity] Add
createDestinationFromIasService()convenience function to build IAS-backed destinations. This function aims to offer more convenience for obtaining IAS-backed destinations outside SAP BTP-environments. (9102f18) - [connectivity] Add
getIasToken()convenience function to fetch IAS token. This function aims to offer more convenience for obtaining IAS tokens outside SAP BTP-environments. (9102f18)
- [connectivity] Avoid caching JWT if
forwardAuthTokenis set totrue.- @sap-cloud-sdk/resilience@4.7.0
- @sap-cloud-sdk/util@4.7.0 (df84426)
- [http-client] Warn when the CSRF token fetch URL has a different host than the request URL, as sensitive headers would be forwarded to the cross-host endpoint. (67e1c53)
- [connectivity, http-client] Cache custom http and https agents and enable the keep-alive option by default. (d54ba5a)
- [connectivity, http-client] Use node's global http/https agent unless a custom agent is required by the destination configuration. (d54ba5a)
- [util] Deprecate
unixEOLandwebEOL. Use '\n' or '\r\n' respectively. (a6c8ff6)
- [connectivity] Destinations with authentication type "SAMLAssertion" are no longer cached, even if caching is enabled. (see #6396) (0800e7a)
- [connectivity] Support
TrustStoreLocationforOAuth2ClientCredentialsdestinations. (8637346) - [connectivity] Extend
isDestinationFetchOptionsto checkserviceproperty. (259d8ad) - [http-client] Improve handling of missing
zlib-module in thecompress()middleware and lazy-load it only when needed. To compress requests in the browser, ensure that a suitable polyfill is provided. (7ea34ce)
- [eslint-config] Correct formatting in ESLint flat-config (330230c)
- [connectivity] Update
@sap/xssecto version 4.12.2 with changed XSUAA URL behavior. When fetching XSUAA tokens with zone ID (multi-tenant scenarios), xssec now uses the base domain without a tenant subdomain prefix. (02d1302)
- [openapi, openapi-generator] Support request bodies with content type "multipart/form-data". (3b95c42)
- [openapi-generator] Allow OpenAPI version 3.1. style "type": "null" schemas. OpenAPI version 3.1. support is limited. (007541a)
- [connectivity] Allow passing a
servicebinding directly throughDestinationFromServiceBindingOptionsinstead of looking it up by name. (962cdcb) - [http-client] Add
signalproperty toCustomRequestConfigandHttpRequestConfigBasetype definition to documentAbortSignalsupport for cancelling HTTP requests. (cbed72f) - [http-client] Add request compression middleware.
Use the
compress()middleware to compress HTTP request payloads using gzip, brotli, deflate, or zstd algorithms. Supports multiple compression modes: auto (size-based), passthrough (pre-compressed), or forced compression. (f5715de)
- [connectivity] Support IAS (App-to-App) authentication. Use
transformServiceBindingToDestination()function orgetDestinationFromServiceBinding()function to create a destination targeting an IAS application. (d444438)
- [eslint-config] Open the peer dependency range of the
eslintmodule to include version 8 and 9. Version 9 can now be used without the potentially unsafe npm flag--legacy-peer-deps. (6431463)
- [connectivity] Support certificates in JKS format for
ClientCertificateAuthentication. (ab96aff)
- [generator, generator-common] Introduce option
generateESMin OData generator to generate ESM compatible code. (c73c7fa)
- [openapi] Fix missing
type: modulein generatedpackage.jsonwhen--generateESMoption is enabled. (e09754a) - [openapi-generator] Improve the handling of arrays of enums (f17ca59)
- [connectivity, http-client, openapi, resilience, util] Update
axiosto1.12.2to fix vulnerability to DoS attack. Refer here for more details. (011b841)
- [connectivity, http-client, openapi, resilience, util] Update
axiosto1.11.0to use non-vulnerable version ofform-data. (b502b40)
- [connectivity] The
getDestinationFromDestinationService()function no longer verifies the incoming XSUAA JWT against the application's bound XSUAA instance. Consequently, thecacheVerificationKeysoption is now deprecated and has no effect. (3c19ffa)
- [connectivity] Remove dependency on XSUAA service binding while retrieving destinations using
getDestinationFromDestinationService()andgetAllDestinationsFromDestinationService()functions. (3c19ffa)
- [connectivity] Remove destination cache in
getDestinationFromServiceBinding()function to let cached destinations retrieved ingetDestinationFromDestinationService()function be added with theproxyConfigurationproperty.- @sap-cloud-sdk/resilience@4.0.2
- @sap-cloud-sdk/util@4.0.2 (4a187d6)
- [eslint-config] Downgrade
@stylistic/eslint-pluginto v3 as v4 is EMS-only. (97ad0ad)
- [connectivity] Enable destination caching by default when retrieving destinations via the destination service. Change affects behavior of
getDestination()method,getAllDestinationsFromDestinationService()method, generated client'sexecute()method and generic HTTP requests execution usingexecuteHttpRequest(). (d69325a) - [generator, odata-common, odata-v4] Support precision handling during serialization of
Edm.DateTimeOffsetfields in OData v4. (ab6ca60)
- [connectivity] The following deprecated content has been removed from the package:
- The behaviour of
getAgentConfig()function is changed to be asynchronous. The temporary asynchronous functiongetAgentConfigAsync()has been removed. - The
destinationForServiceBinding()function has been removed. UsegetDestinationFromServiceBinding()instead. - The
PartialDestinationFetchOptionstype has been removed. Use eitherServiceBindingTransformOptionsorgetDestinationFromServiceBinding()function. - The
serviceToken()function no longer takesxsuaaCredentialsas part of theoptionsparameter. - The
parseDestination()function is no longer a public API. - The
DestinationForServiceBindingOptionsinterface has been renamed toDestinationFromServiceBindingOptions. (7d92a1b)
- The behaviour of
- [connectivity] Disable
iasToXsuaaTokenExchangeby default if not defined. (25c9dd8) - [odata-common] The following deprecated content has been removed from the package:
- The
FunctionImportParameterstype has been removed. UseOperationParametersinstead. - The
ODataFunctionImportRequestConfigconstant has been removed. UseODataFunctionRequestConfiginstead. - The
FunctionImportParameterconstant has been removed. UseOperationParameterinstead. - The
ActionFunctionImportRequestBuilderBaseconstant has been removed. UseOperationRequestBuilderBaseinstead. (7d92a1b)
- The
- [odata-v2] The following deprecated content has been removed from the package:
- The
ODataFunctionImportRequestConfigconstant has been removed. UseODataFunctionRequestConfiginstead. - The
FunctionImportRequestBuilderconstant has been removed. UseOperationRequestBuilderinstead. (7d92a1b)
- The
- [odata-v4] The following deprecated content has been removed from the package:
- The
ODataFunctionImportRequestConfigconstant has been removed. UseODataFunctionRequestConfiginstead. - The
ActionImportParameterclass has been removed. UseOperationParameterinstead. - The
ActionImportParameterstype has been removed. UseOperationParametersinstead. - The
FunctionImportRequestBuilderclass has been removed. UseOperationRequestBuilderinstead. - The
BoundFunctionImportRequestBuilderclass has been removed. UseOperationRequestBuilderinstead. - The
BoundActionImportRequestBuilderclass has been removed. UseOperationRequestBuilderinstead. - The
ODataActionImportRequestConfigconstant has been removed. UseODataActionRequestConfiginstead. - The
ODataBoundActionImportRequestConfigclass has been removed. UseODataBoundActionRequestConfiginstead. - The
OdataBoundFunctionImportRequestConfigconstant has been removed. UseODataBoundFunctionRequestConfiginstead. - The
ActionImportRequestBuilderclass has been removed. UseOperationRequestBuilderinstead. (7d92a1b)
- The
- [resilience] The following deprecated content has been removed from the package:
- The
circuitBreakerHttpconstant has been removed. UsecircuitBreakerinstead. (7d92a1b)
- The
- [util] The following deprecated content has been removed from the package:
- The
assocconstant has been removed. There is no replacement. (7d92a1b)
- The