Releases: SAP/cloud-sdk-js
Releases · SAP/cloud-sdk-js
v4.7.0
Compatibility Notes
- [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)
New Features
- [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)
Fixed Issues
- [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)
Improvements
v4.6.0
Compatibility Notes
- [util] Deprecate
unixEOLandwebEOL. Use '\n' or '\r\n' respectively. (a6c8ff6)
Fixed Issues
- [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)
v4.5.1
v4.5.0
Compatibility Notes
- [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)
New Features
- [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)
Improvements
- [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 thecompress()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)
v4.4.0
v4.3.1
v4.3.0
v4.2.0
New Features
- [generator, generator-common] Introduce option
generateESMin OData generator to generate ESM compatible code. (c73c7fa)