Releases: SAP/cloud-sdk-js
Releases · SAP/cloud-sdk-js
v2.10.0
Compatibility Notes
- [odata-common, odata-v2, odata-v4] Change constructor argument of class
EntityBase
fromschema
to_entityApi
. (144ff66)
Improvements
- [openapi-generator] Add
force
option torm
commands, when settingclearOutputDir
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/[email protected] (f76da30)
v2.9.0
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
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/[email protected] (15e9ef4)
Fixed Issues
v2.7.1
Fixed Issues
- [mail-client] Fix proxy authorization for sending emails.
v2.7.0
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 acceptsXsuaaServiceCredentials
again as an option. (3bff42e)
v2.6.0
Compatibility Notes
- [odata-v4, temporal-de-serializers] Adjust parsing of
Edm.Date
,Edm.DateTimeOffset
,Edm.Time
, andEdm.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 newinclude
option to add your ownpackage.json
file instead. (069aa16) - [generator] The hidden generator option
additionalFiles
is renamed toinclude
. (069aa16) - [connectivity] Rename
transformationFn
intoserviceBindingTransformFn
inDestinationForServiceBindingsOptions
to avoid ambiguity and make the function async. (8fdfebd)
New Functionalities
- [connectivity] Support JWTs without a
JKU
property. (cb598c1) - [connectivity] Add interface
DestinationCacheInterface
and methodsetDestinationCache
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
ofOriginOptions
optional. (e46bb51)
Fixed Issues
- [connectivity] Fix
getDestination()
to allow passing an async transform functionserviceBindingTransformFn
inoptions
. The transform function can also be passed byexecute()
,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
Compatibility Notes
- [odata-common, generator] Change
Edm.String
,Edm.Boolean
andEdm.Guid
to be orderable to supportlt
/lessThan()
,le
/lessOrEqual()
,gt
/greaterThan()
, andge
/greaterOrEqual
operators. Re-generate odata services to adopt the changes. (c3166ff) - [util] Stop using
VCAP_SERVICES
to determine the log format. UsesetLogFormat
andsetGlobalLogFormat
to specify the log format. By default, the log format is set tokibana
forNODE_ENV=production
andlocal
otherwise. (89f1c42) - [http-client] Deprecate one overload of the
executeHttpRequest
function, that acceptsHttpRequestConfigWithOrigin
as a parameter. Use the new functionexecuteHttpRequestWithOrigin
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
Improvements
- [core] Remove the
postinstall
script.
v2.4.0
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 fromwarn
toerror
: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 asdebug
orwarn
. (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
Compatibility Notes
- [odata-common, odata-v2, odata-v4] Remove all
$format=json
query parameters since headerAccept: 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
toerror
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}
.