Cloud Sdk Js Versions Save

Use the SAP Cloud SDK for JavaScript / TypeScript to reduce development effort when building applications on SAP Business Technology Platform that communicate with SAP solutions and services such as SAP S/4HANA Cloud, SAP SuccessFactors, and many others.

v3.14.0

1 month ago

Fixed Issues

  • [openapi-generator] Fix nested array type in generated OpenAPI schemas such that array wraps the whole object. (ff3ede6)
  • [openapi-generator] Fix serialization of path params that contain quotes to avoid syntax error and failing client generation (b4bc9ad)

v3.13.0

1 month ago

New Functionalities

  • [connectivity] Support the AI Core Service Binding when creating destinations from service bindings (f72986a)

v3.12.1

2 months ago

Fixed Issues

  • [connectivity] Fix fetchDestinationWithoutTokenRetrieval to correctly return instance and subaccount destinations.
  • [openapi, odata-common] Fix type in addCustomRequestConfiguration method to accept values of type any. (60fdc04)

v3.12.0

3 months ago

New Functionalities

  • [connectivity] Support certificates in PEM format for ClientCertificateAuthentication. (36be489)

Fixed Issues

  • [openapi] Fix incorrect encoding of query parameters in OpenAPI requests. Query parameters (except for additional custom parameters) are now encoded by default. To change this behavior overwrite the parameterEncoder in the request options. (d6b1c5b)
  • [openapi-generator] Fix types in generated OpenAPI schemas to have proper types instead of type any. (6bbdd4d)

v3.11.0

3 months ago

Improvements

  • [mail-client] Add optional logger property to enable console logs. Defaults to false. (7ec62fa)

Fixed Issues

  • [mail-client] Fix "Hostname/IP does not match certificate's altnames" issues with "localhost" when sending e-mails OnPremise. Always pass the host and port of the MAIL destination explicitly to the underlying nodemailer instead of falling back to the default.

v3.10.0

4 months ago

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 (/subaccountDestinations and /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 call getAllDestinationsFromDestinationService() with cache enabled instead. (c721bbd)
  • [connectivity] Using Principal Propagation through authentication type NoAuthentication is no longer supported. This resulted in erroneous behavior for destinations with authentication type NoAuthentication. If you need to use Principal Propagation use authentication type PrincipalPropagation. (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 NoAuthentication with proxy type OnPremise without requiring the SAP-Connectivity-Authentication header. (28c9cb7)

v3.9.0

5 months ago

Fixed Issues

  • [odata-common] Add support for subrequest serialization where a batch request may only contain an entity with no path. (a87dd7f)

v3.8.1

5 months ago

Improvements

  • [eslint-config] Update eslint plugins (d6bbd3210)

v3.8.0

6 months ago

Compatibility Notes

  • [connectivity] Remove unused internal functionality around JWT property access, like userFromJwt (removed) and audiences (changed). (693cd655f)

New Functionalities

  • [mail-client] Add Support for Location ID in destinations of type MAIL (8516b7f04)

Fixed Issues

v3.7.0

7 months ago

Fixed Issues

  • [odata-common, odata-v2, odata-v4, generator, generator-common] Do not send null values 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 exceeded error that occurs when updating an entity after calling getByKey. (bdcf14f85)