Skip to content

Releases: SAP/cloud-sdk-js

v2.12.0

07 Dec 15:11

Choose a tag to compare

Compatibility Notes

  • [generator] Deprecate the processesJsGeneration option. (0f10568)
  • [generator] Deprecate the generatePackageJson option. Use packageJson instead. (0f10568)
  • [generator] Make options in GeneratorOptions optional, if they are not mandatory. (0f10568)
  • [generator] Deprecate generateCSN option. (0f10568)
  • [generator] Deprecate the licenseInPackageJson option. Use include instead. (0f10568)
  • [generator] Deprecate the forceOverwrite option. Use overwrite instead. (0f10568)

Improvements

  • [generator] Show warnings for deprecated options only if options where used.
    • @sap-cloud-sdk/generator-common@2.12.0
    • @sap-cloud-sdk/odata-common@2.12.0
    • @sap-cloud-sdk/odata-v2@2.12.0
    • @sap-cloud-sdk/odata-v4@2.12.0
    • @sap-cloud-sdk/util@2.12.0 (0f10568)

Fixed Issues

  • [generator] Allow OData service to contain an entity name 'Service'. (0f10568)

v2.11.0

16 Nov 08:58

Choose a tag to compare

New Functionalities

  • [odata-common] Add getBatchReference() and setBatchId() in request builders to use the batch ID as a reference to an entity in a batch request changeset.
    Batch reference are available in create, delete, getByKey, update and actions/functions request builder. (79e0fe8)
  • [odata-v4, generator] Support parsing and generating OData bound functions and actions in OData v4 (8ea2815)
  • [generator, openapi-generator, generator-common] Generated sources are formatted using prettier with default config. Use the CLI option prettierConfigPath to provide a custom config. (74e1442)

Improvements

  • [odata-common] Change the place where batch ID is generated from on serialization to request creation. (79e0fe8)

v2.10.0

02 Nov 13:41

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].
    • @sap-cloud-sdk/util@2.10.0 (f76da30)

v2.9.0

20 Sep 12:43

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

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.
    • @sap-cloud-sdk/util@2.8.0 (15e9ef4)

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

Choose a tag to compare

Fixed Issues

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

v2.7.0

10 Aug 10:50

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

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

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

Choose a tag to compare

Improvements

  • [core] Remove the postinstall script.