Skip to content

Releases: SAP/cloud-sdk-js

v2.10.0

02 Nov 13:41
Compare
Choose a tag to compare

Compatibility Notes

  • [odata-common, odata-v2, odata-v4] Change constructor argument of class EntityBase from schema to _entityApi. (144ff66)

Improvements

  • [openapi-generator] Add force option torm commands, when setting clearOutputDir to true. (f76da30)

Fixed Issues

  • [odata-v2, odata-v4] Fix the "entity generic type" of the "delete request builder". (f76da30)
  • [generator, openapi-generator] Show detailed error message of compilation errors instead of [object Object]. (f76da30)
  • [generator-common] Show detailed error message of compilation errors instead of [object Object].

v2.9.0

20 Sep 12:43
Compare
Choose a tag to compare

New Functionalities

  • [connectivity] Support fetching all subaccount- and service instance destinations from the destination service simultaneously. (2402950)
  • [mail-client] Expose SMTP transport options of nodemailer. (d1bf2de)
  • [util] Add method setGlobalTransports to support setting custom transport globally. (4c51d3d)

Improvements

  • [odata-common] Set .orderBy() to ascending order by default. (f62eb0d)

v2.8.0

06 Sep 12:21
Compare
Choose a tag to compare

Compatibility Notes

  • [eslint-config] Activated the eslint rule 'check-tag-names' to allowed jsdoc tags. If you use custom tags add them via the 'definedTags' in the eslint options. (15e9ef4)
  • [generator] Deprecated generateNpmrc cli option. This option was only used to configure the now defunct npm registry hosted by SAP. It now has no effect anymore and should be removed in all invocations of the generator cli. (15e9ef4)
  • [generator, openapi-generator, generator-common] Description for package.json in a generated client has changed. (15e9ef4)

New Functionalities

  • [mail-client] Support defining the strategy of sending emails. By default, the emails are sent "in parallel" and can be set to "in sequential". (15e9ef4)
  • [odata-common, generator] Allow function imports using GET http method in batch requests. (15e9ef4)

Improvements

  • [connectivity] Reduce default logs for failing requests in @sap-cloud-sdk/http-client.

Fixed Issues

  • [connectivity] Remove last explicit references to 'VCAP_SERVICES' and replace them with '@sap/xsenv'. (15e9ef4)
  • [connectivity] Fix that unparsable destinations in the subaccount prevent other destinations from beeing fetched. (15e9ef4)

v2.7.1

12 Aug 10:21
Compare
Choose a tag to compare

Fixed Issues

  • [mail-client] Fix proxy authorization for sending emails.

v2.7.0

10 Aug 10:50
Compare
Choose a tag to compare

New Functionalities

  • [openapi-generator] Support globs in the input option. (3f70b0c)

Improvements

  • [connectivity] Support consumption of the XSUAA API via destinations. (010a46f)

Fixed Issues

  • [connectivity] Fix a breaking change of serviceToken introduced in 2.0, so it accepts XsuaaServiceCredentials again as an option. (3bff42e)

v2.6.0

15 Jul 11:13
Compare
Choose a tag to compare

Compatibility Notes

  • [odata-v4, temporal-de-serializers] Adjust parsing of Edm.Date, Edm.DateTimeOffset, Edm.Time, and Edm.Duration to be closer to the OData v4 specification.
    There may be loss of precision if using the default (de-)serializers with high-precision fractional seconds. (de85128)
  • [generator] Deprecate generator option versionInPackageJson. If you need to set the version, use the new include option to add your own package.json file instead. (069aa16)
  • [generator] The hidden generator option additionalFiles is renamed to include. (069aa16)
  • [connectivity] Rename transformationFn into serviceBindingTransformFn in DestinationForServiceBindingsOptions to avoid ambiguity and make the function async. (8fdfebd)

New Functionalities

  • [connectivity] Support JWTs without a JKU property. (cb598c1)
  • [connectivity] Add interface DestinationCacheInterface and method setDestinationCache to support implementation of custom destination cache. (0909460)
  • [connectivity] Fetch client credential token for destinations created by service bindings. (93d4128)
  • [generator] New generator option include which allows to add files to generated packages. (069aa16)

Improvements

  • [http-client] Make requestConfig of OriginOptions optional. (e46bb51)

Fixed Issues

  • [connectivity] Fix getDestination() to allow passing an async transform function serviceBindingTransformFn in options. The transform function can also be passed by execute(), executeHttpRequest(), executeRaw(), etc.
  • [http-client] Fix the executeHttpRequest/executeHttpRequestWithOrigin function, so the warning is only shown when overwriting headers by using custom headers. (e44c214)
  • [odata-common, odata-v4, temporal-de-serializers] Fix parsing of Edm.DateTimeOffset with high-precision fractional seconds and edge-cases like 5-digit years. (de85128)
  • [odata-common, generator] Allow OData service to contain an entity name 'entity'. (0675ee3)
  • [odata-v2] Support negative epoch timestamps in serialization. (9ffe082)

v2.5.0

13 Jun 09:00
Compare
Choose a tag to compare

Compatibility Notes

  • [odata-common, generator] Change Edm.String, Edm.Boolean and Edm.Guid to be orderable to support lt/lessThan(), le/lessOrEqual(), gt/greaterThan(), and ge/greaterOrEqual operators. Re-generate odata services to adopt the changes. (c3166ff)
  • [util] Stop using VCAP_SERVICES to determine the log format. Use setLogFormat and setGlobalLogFormat to specify the log format. By default, the log format is set to kibana for NODE_ENV=production and local otherwise. (89f1c42)
  • [http-client] Deprecate one overload of the executeHttpRequest function, that accepts HttpRequestConfigWithOrigin as a parameter. Use the new function executeHttpRequestWithOrigin as replacement. (9481ec6)

New Functionality

  • [http-client] Support defining header options and query parameter options with origins. (9481ec6)

Fixed Issues

  • [http-client] Fix the executeHttpRequest function, so it accepts the same parameters as in version 1. (9481ec6)

v1.54.2

27 May 09:17
Compare
Choose a tag to compare

Improvements

  • [core] Remove the postinstall script.

v2.4.0

20 May 11:43
Compare
Choose a tag to compare

2.4.0

API Docs: https://sap.github.io/cloud-sdk/api/2.4.0

Compatibility Notes

  • [connectivity] Mark the function noDestinationErrorMessage as internal API. (0a00867)
  • [odata-v4] Mark the function uriConverter as internal API. (0a00867)
  • [eslint-config] Switch the following jsdoc related levels from warn to error:
    • jsdoc/check-param-names
    • jsdoc/require-description-complete-sentence
    • jsdoc/require-jsdoc
    • jsdoc/require-param
    • jsdoc/require-returns (0a00867)
  • [connectivity, http-client] Only log the successful retrieval of destinations on the info log level, log everything else as debug or warn. (04726a3)

New Functionality

  • [connectivity] Support self-signed certificate using the trustStore property of the destination object. (0a00867)

Improvements

  • [connectivity, http-client] Reduce default log output on the info level significantly. (04726a3)

Fixed Issues

  • [util] Fix a bug in the implementation of the trim method. (0a00867)

v2.3.0

22 Apr 10:58
Compare
Choose a tag to compare

Compatibility Notes

  • [odata-common, odata-v2, odata-v4] Remove all $format=json query parameters since header Accept: application/json is sent by default.

New Functionality

  • [odata-common] Generate mandatory Content-Id headers for changeset parts in batch request payloads (see OData Spec).
  • [odata-common] Support transforming response data for function and action imports before deserialization. #682.

Improvements

  • [generator] Change log level from warn to error if service path cannot be determined from the service specification (VALUE_IS_UNDEFINED).
  • [generator] Reduce memory usage of schema in API classes (e.g., BusinessPartnerAPI).

Fixed Issues

  • [openapi-generator, openapi] Support path parameters that are not separated by '/', e.g., /path/{param}:{param}.