Releases: SAP/cloud-sdk-js
Releases · SAP/cloud-sdk-js
v2.12.0
Compatibility Notes
- [generator] Deprecate the
processesJsGenerationoption. (0f10568) - [generator] Deprecate the
generatePackageJsonoption. UsepackageJsoninstead. (0f10568) - [generator] Make options in
GeneratorOptionsoptional, if they are not mandatory. (0f10568) - [generator] Deprecate
generateCSNoption. (0f10568) - [generator] Deprecate the
licenseInPackageJsonoption. Useincludeinstead. (0f10568) - [generator] Deprecate the
forceOverwriteoption. Useoverwriteinstead. (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
New Functionalities
- [odata-common] Add
getBatchReference()andsetBatchId()in request builders to use the batch ID as a reference to an entity in a batch request changeset.
Batch reference are available increate,delete,getByKey,updateandactions/functionsrequest 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
prettierConfigPathto 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
Compatibility Notes
- [odata-common, odata-v2, odata-v4] Change constructor argument of class
EntityBasefromschemato_entityApi. (144ff66)
Improvements
- [openapi-generator] Add
forceoption tormcommands, when settingclearOutputDirto 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
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
setGlobalTransportsto 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
generateNpmrccli 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
v2.7.1
Fixed Issues
- [mail-client] Fix proxy authorization for sending emails.
v2.7.0
New Functionalities
- [openapi-generator] Support globs in the
inputoption. (3f70b0c)
Improvements
- [connectivity] Support consumption of the XSUAA API via destinations. (010a46f)
Fixed Issues
- [connectivity] Fix a breaking change of
serviceTokenintroduced in 2.0, so it acceptsXsuaaServiceCredentialsagain as an option. (3bff42e)
v2.6.0
Compatibility Notes
- [odata-v4, temporal-de-serializers] Adjust parsing of
Edm.Date,Edm.DateTimeOffset,Edm.Time, andEdm.Durationto 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 newincludeoption to add your ownpackage.jsonfile instead. (069aa16) - [generator] The hidden generator option
additionalFilesis renamed toinclude. (069aa16) - [connectivity] Rename
transformationFnintoserviceBindingTransformFninDestinationForServiceBindingsOptionsto avoid ambiguity and make the function async. (8fdfebd)
New Functionalities
- [connectivity] Support JWTs without a
JKUproperty. (cb598c1) - [connectivity] Add interface
DestinationCacheInterfaceand methodsetDestinationCacheto support implementation of custom destination cache. (0909460) - [connectivity] Fetch client credential token for destinations created by service bindings. (93d4128)
- [generator] New generator option
includewhich allows to add files to generated packages. (069aa16)
Improvements
- [http-client] Make
requestConfigofOriginOptionsoptional. (e46bb51)
Fixed Issues
- [connectivity] Fix
getDestination()to allow passing an async transform functionserviceBindingTransformFninoptions. The transform function can also be passed byexecute(),executeHttpRequest(),executeRaw(), etc. - [http-client] Fix the
executeHttpRequest/executeHttpRequestWithOriginfunction, 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.DateTimeOffsetwith 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.BooleanandEdm.Guidto be orderable to supportlt/lessThan(),le/lessOrEqual(),gt/greaterThan(), andge/greaterOrEqualoperators. Re-generate odata services to adopt the changes. (c3166ff) - [util] Stop using
VCAP_SERVICESto determine the log format. UsesetLogFormatandsetGlobalLogFormatto specify the log format. By default, the log format is set tokibanaforNODE_ENV=productionandlocalotherwise. (89f1c42) - [http-client] Deprecate one overload of the
executeHttpRequestfunction, that acceptsHttpRequestConfigWithOriginas a parameter. Use the new functionexecuteHttpRequestWithOriginas replacement. (9481ec6)
New Functionality
- [http-client] Support defining header options and query parameter options with origins. (9481ec6)
Fixed Issues
- [http-client] Fix the
executeHttpRequestfunction, so it accepts the same parameters as in version 1. (9481ec6)
v1.54.2
Improvements
- [core] Remove the
postinstallscript.