Releases: SAP/cloud-sdk-js
Releases · SAP/cloud-sdk-js
v3.10.0
Compatibility Notes
- [connectivity] The SAP Cloud SDK used to get all subaccount and instance destinations, that are available with your JWT (without potentially required token retrieval), through two requests to the destination service (
/subaccountDestinationsand/instanceDestinations). While this approach can have advantages when caching, it can cause severe performance issues without caching. Therefore, from now on, only one destination is retrieved per requested destination through/destinations.
You can no longer rely on the SDK to automatically cache all destinations on the first request. If needed, you can callgetAllDestinationsFromDestinationService()with cache enabled instead. (c721bbd) - [connectivity] Using Principal Propagation through authentication type
NoAuthenticationis no longer supported. This resulted in erroneous behavior for destinations with authentication typeNoAuthentication. If you need to use Principal Propagation use authentication typePrincipalPropagation. (28c9cb7)
New Functionalities
- [util] Add support for setting log level for newly created logger using environment variable
SAP_CLOUD_SDK_LOG_LEVEL. (4d2b49b)
Improvements
- [connectivity] Retrieve only one destination per requested destination instead of all subaccount and instance destinations. (See compatibility notes.) (c721bbd)
Fixed Issues
- [connectivity] Allow the use of authentication type
NoAuthenticationwith proxy typeOnPremisewithout requiring theSAP-Connectivity-Authenticationheader. (28c9cb7)
v3.9.0
v3.8.1
v3.8.0
Compatibility Notes
- [connectivity] Remove unused internal functionality around JWT property access, like
userFromJwt(removed) andaudiences(changed). (693cd65)
New Functionalities
- [mail-client] Add Support for
Location IDin destinations of typeMAIL(8516b7f)
Fixed Issues
- [generator] Don't generate
delete(),update(), andgetByKey()methods in the RequestBuilder of an entity without keys.- @sap-cloud-sdk/generator-common@3.8.0
- @sap-cloud-sdk/odata-common@3.8.0
- @sap-cloud-sdk/odata-v2@3.8.0
- @sap-cloud-sdk/odata-v4@3.8.0
- @sap-cloud-sdk/util@3.8.0 (34ef77a)
v3.7.0
Fixed Issues
- [odata-common, odata-v2, odata-v4, generator, generator-common] Do not send
nullvalues in the request payload for properties that are not set while creating or updating an entity. - [odata-common, odata-v2, odata-v4, generator, generator-common] Fix
RangeError: Maximum call stack size exceedederror that occurs when updating an entity after callinggetByKey. (bdcf14f)
v3.6.0
Compatibility Notes
- [connectivity] Proxy configuration is no longer realized through a proxy agent, but with the native axios proxy setting instead. (025b6aa)
- [http-client, connectivity] When using proxies with
@sap-cloud-sdk/connectivity@>=3.6.0, you must upgrade to@sap-cloud-sdk/http-client@>=3.6.0. Proxies in@sap-cloud-sdk/connectivity@>=3.6.0are not compatible with@sap-cloud-sdk/http-client@<3.6.0. (025b6aa)
Fixed Issues
v3.5.0
Fixed Issues
- [connectivity] Compare
selectionStrategyinDestinationFetchOptionsbased on value instead of reference. (7ed5ceb) - [connectivity] Fix destination caching for destinations from service bindings. The destinations are not cached repeatedly. The function
getDestinationFromServiceBinding()returnsundefinedfor destinations which have expired JWTs. (bf54df0) - [connectivity] Support destinations of type
ClientCertificateAuthenticationwithout password.- @sap-cloud-sdk/resilience@3.5.0
- @sap-cloud-sdk/util@3.5.0 (2277f94)
- [odata-common, odata-v2, odata-v4] Fix OData v2 serialization for
Edm.Decimalto serialize tostring. (ee7477c)
v3.4.0
Compatibility Notes
- [connectivity] Deprecate
destinationForServiceBinding()andPartialDestinationFetchOptions. UsegetDestinationFromServiceBinding()andServiceBindingTransformOptionsinstead. (bde6463)
New Functionalities
- [connectivity] Always add a name to destinations from service bindings created with
getDestinationFromServiceBinding(). (db0780f) - [connectivity] Support forwarding of auth tokens for destinations from the destination service, service bindings and environment variables. (bde6463)
Fixed Issues
- [odata-common, odata-v4] Serialize properties of type "Edm.Decimal" to numbers when they are within the safe range and strings when they are not. (431d2a5)
v3.3.0
Compatibility Notes
-
[connectivity] The
expiresInproperty ofauthTokenson aDestinationcan beundefined. (c09b1d0) -
[connectivity] Deprecate
getAgentConfig():- Temporarily use replacement function
getAgentConfigAsync(). - Rename
getAgentConfigAsync()togetAgentConfig()in next major version. (36a01f7)
- Temporarily use replacement function
New Functionalities
- [connectivity] Add option to cache mTLS certificates. (36a01f7)
Improvements
- [connectivity] Do not rely on XSUAA service when caching service tokens. Cache keys are now based on service credentials URL. (0583836)
- [connectivity] Do not rely on the XSUAA service binding to retrieve tenant information when registering destinations. If tenant is unknown and no binding is found, set it to a default value (
'tenant_id'). (8f54207) - [connectivity] Read mTLS certificates asynchronously. (36a01f7)
Fixed Issues
- [connectivity] Remove dependency to XSUAA service binding when checking whether a JWT was issued by XSUAA for destination retrieval. Now, the
ext_attr.ehancerproperty is checked. (6b58354) - [http-client] Do not set default tenant ID in the context of middlewares, if the tenant ID is unknown. In those cases it will be
undefinedfrom now on. (8f54207)
v3.2.0
New Functionalities
- [connectivity] Enable the use of mTLS certificates for registered destinations on CloudFoundry. (616d77b)
Improvements
- [connectivity] Set the default validity time of the client credentials token cache to 5 minutes instead of never expiring. (782b9e3)
Fixed Issues
- [connectivity, http-client] Forward the user JWT irrespective of the destination authentication type when
forwardAuthTokenis set to true on a destination (56c3f70) - [http-client] Improve CSRF token fetching for large requests. (73ff0ab)
- [odata-common] Remove encoding of keys in the
getEntityKeys()as it should only happen once ingetResourcePathForKeys().Fixes the errorvalue.format is not a functionwhen executing requests for entities withEdm.Datetype key property. (aa1a4bd) - [resilience] Fix parsing error when the last response in a chain of retries returned undefined.
- @sap-cloud-sdk/util@3.2.0 (234675f)