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.
APACHE-2.0 License
Bot releases are visible (Hide)
Published by github-actions[bot] about 1 year ago
destinationForServiceBinding()
and PartialDestinationFetchOptions
. Use getDestinationFromServiceBinding()
and ServiceBindingTransformOptions
instead. (bde64634d)getDestinationFromServiceBinding()
. (db0780f1b)Published by github-actions[bot] about 1 year ago
[connectivity] The expiresIn
property of authTokens
on a Destination
can be undefined
. (c09b1d06f)
[connectivity] Deprecate getAgentConfig()
:
getAgentConfigAsync()
.getAgentConfigAsync()
to getAgentConfig()
in next major version. (36a01f775)'tenant_id'
). (8f54207b6)ext_attr.ehancer
property is checked. (6b58354e8)undefined
from now on. (8f54207b6)Published by github-actions[bot] over 1 year ago
forwardAuthToken
is set to true on a destination (56c3f70f4)getEntityKeys()
as it should only happen once in getResourcePathForKeys()
.Fixes the error value.format is not a function
when executing requests for entities with Edm.Date
type key property. (aa1a4bdb0)Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] over 1 year ago
iss
and jwt
is now supported when fetching destinations. When both properties are set, the iss
property is no longer ignored. (28b7af86f)NoAuthentication
on-premise destinations. (039412e59)iss
an jwt
when fetching a destination. In this case the iss
URL will be used to fetch the destination service token and jwt
will be used for the x-user-token
header of user based authentication types. (28b7af86f)FromJsonType
to stricter typings in TypeScript 5. (cc8425abc)Published by github-actions[bot] over 1 year ago
ActionFunctionImportRequestBuilderBase
has an additional mandatory type parameter to pass the according (de-)serializer type. This was missing previously due to a bug. (2fa8c36a6)The proxy configuration is undefined
error for OnPrem MAIL
destinations by removing the isHttpDestination
check when adding proxyConfiguration to the destination object.
Greeting never received
when sending emails to On-Premise mail servers. The _readableListening
property of socket is set to true
to allow nodemailer to receive SMTP greeting messages. (47fc7278d)Invalid greeting
error from nodemailer by removing the transport.verify
function call. (be04dafc2)Published by github-actions[bot] over 1 year ago
circuitBreakerHttp()
function in favor of circuitBreaker()
.
Published by github-actions[bot] over 1 year ago
JwtKeyMapping
is simplified so the second type argument JwtKeysT
are always strings. (fde964e37)Protocol
enum was replaced with a string literal union type. Now, instead of passing Protocol.HTTPS
pass 'https'. (fde964e37)timeout
and enableCircuitBreaker
from all BTP service interactions i.e. destination and token fetching. (fde964e37)Node16
instead of CommonJS
for better interoperability with ES modules. See the TypeScript handbook for technical details if needed. (fde964e37)IsolationStrategy
was replaced with a string literal union type of the same name. Use 'tenant' and 'tenant-user' instead of IsolationStrategy.Tenant
and IsolationStrategy.Tenant_User
. (fde964e37)url
property in Destination
is now optional as destinations of type MAIL
do not have a URL. (fde964e37)timeout()
method from the request builders and the timeout
options from the executeHttpRequest()
function.HttpRequestConfigWithOrigin
as a parameter, is removed and replaced by the function executeHttpRequestWithOrigin
. (fde964e37)servicePath
value in the options-per-service.json
or set skipValidation
to true, in which case, /
will be used. (fde964e37)ODataRequestConfig
was changed so that the third parameter cannot be a string
anymore.Content-Type
HTTP header was deprecated.Record<string, any>
, and if only want to set the Content-Type
HTTP header you can do so by passing {'content-type': 'some-value'}
to the constructor. (fde964e37)serviceMapping
option of the OData generator has been renamed to optionsPerService
. The mapping file, service-mapping.json
has also been renamed to options-per-service.json
. By default, an options file will not be generated. (fde964e37)fromJson
through the _customFields
property has been removed.forceOverwrite
option of the generator is removed. Use the overwrite
option instead.generatePackageJson
option of the generator is removed. Use the packageJson
option instead.writeReadme
option of the generator is removed. Use the readme
option instead.processesJsGeneration
option of the generator is removed. Use the transpilationProcesses
option instead.sdkAfterVersionScript
, s4HanaCloud
and packageVersion
of the generator are removed.generateNpmrc
option of the generator is removed. Use the include
option to add a .npmrc
to the generated code if needed. (fde964e37)verbose
generator option. By default, only error and warning logs will be displayed. If verbose
is set to true
, all logs will be displayed. (fde964e37)generateJs
option has been replaced with the transpile
option. Transpilation is not enabled by default. (fde964e37)inputDir
of the OData generator is renamed to input
.input
options accepts now also file paths and glob patterns. (fde964e37)skipValidation
flag if you want to generate despite name conflicts and are okay with changed identifier names to avoid conflicts. (fde964e37)versionInPackageJson
from the OData and OpenAPI generator.packageJson
is enabled now a package.json
with a default version 1.0.0
is created.include
option to add a package.json
with a custom value.licenseInPackageJson
from the OData and OpenAPI generator.packageJson
is enabled now a package.json
with a default license UNLICENSED
is created.include
option to add a package.json
with a custom value. (fde964e37)generateCSN
is removed. There is no replacement. (fde964e37)GeneratorOptions
is changed from fs.PathLike
to string
.verbose
flag to investigate the new paths. (fde964e37)variadicArgumentToArray
is replaced by the function transformVariadicArgumentToArray
. (fde964e37)logger
on the interface LoggerOptions
was not used and is removed from the interface. (fde964e37)packageVersion
of the OpenAPI generator is removed. (fde964e37)tsConfig
option has been renamed to tsconfig
. (fde964e37)d.ts.map
files per default anymore. If you need them include a custom tsconfig.json
.d.ts.map
files from now on.OAuth2RefreshToken
authentication type (fde964e37)retry
option in the DestinationFetchOption
.ResilienceOptions
and resilience()
function. The function returns an array of middlewares based on the provided options. (fde964e37)headers
using this reference in the middleware context.url
, headers
and all other properties of the HTTP request. (fde964e37)transpile
and tsconfig
to configure transpilation for generated OData clients. (fde964e37)Protocol
enum with a string literal union type. (fde964e37)IsolationStrategy
enum with union type. (fde964e37)_
prefix (fde964e37)iss
together with OnPremise
basic destinations. (fde964e37)null
. Fixes 3204. (fde964e37)Published by github-actions[bot] over 1 year ago
ClientCertificateAuthentication
will have a certificate in the request, while OAuth2SAMLBearerAssertion
does not. Previously, the certificate would be added regardless. (5bad86c70)Published by github-actions[bot] almost 2 years ago
iss
together with OnPremise
basic destinations. (20f550efd)Published by github-actions[bot] almost 2 years ago
actionImports
and functionImports
exposed in generated services are now deprecated and replaced by options
. (aa0cf4820)licenseInPackageJson
and versionInPackageJson
are deprecated. If you want to set the license or version in your generated package.json
file, use the include
option to add a custom package.json
instead. (aa0cf4820)null
. Fixes 3204.
Published by github-actions[bot] almost 2 years ago
[connectivity] Update jsonwebtoken
to 9.0.0 due to several security vulnerabilities:
@sap-cloud-sdk/[email protected] (466cbec36)
Published by github-actions[bot] almost 2 years ago
processesJsGeneration
option. (0f1056817)generatePackageJson
option. Use packageJson
instead. (0f1056817)GeneratorOptions
optional, if they are not mandatory. (0f1056817)generateCSN
option. (0f1056817)licenseInPackageJson
option. Use include
instead. (0f1056817)forceOverwrite
option. Use overwrite
instead. (0f1056817)Published by github-actions[bot] almost 2 years ago
getBatchReference()
and setBatchId()
in request builders to use the batch ID as a reference to an entity in a batch request changeset.create
, delete
, getByKey
, update
and actions/functions
request builder. (79e0fe811)prettierConfigPath
to provide a custom config. (74e14427a)Published by github-actions[bot] almost 2 years ago
EntityBase
from schema
to _entityApi
. (144ff66f4)force
option torm
commands, when setting clearOutputDir
to true. (f76da3060)[object Object]
. (f76da3060)[object Object]
.
Published by github-actions[bot] about 2 years ago
nodemailer
. (d1bf2dee)setGlobalTransports
to support setting custom transport globally. (4c51d3dc).orderBy()
to ascending order by default. (f62eb0d3)Published by github-actions[bot] about 2 years ago
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. (15e9ef4b)Published by github-actions[bot] about 2 years ago
Published by github-actions[bot] about 2 years ago
input
option. (3f70b0c9)serviceToken
introduced in 2.0, so it accepts XsuaaServiceCredentials
again as an option. (3bff42e1)Published by github-actions[bot] over 2 years ago
Edm.Date
, Edm.DateTimeOffset
, Edm.Time
, and Edm.Duration
to be closer to the OData v4 specification.versionInPackageJson
. If you need to set the version, use the new include
option to add your own package.json
file instead. (069aa168)additionalFiles
is renamed to include
. (069aa168)transformationFn
into serviceBindingTransformFn
in DestinationForServiceBindingsOptions
to avoid ambiguity and make the function async. (8fdfebd6)JKU
property. (cb598c16)DestinationCacheInterface
and method setDestinationCache
to support implementation of custom destination cache. (09094607)include
which allows to add files to generated packages. (069aa168)requestConfig
of OriginOptions
optional. (e46bb51d)getDestination()
to allow passing an async transform function serviceBindingTransformFn
in options
. The transform function can also be passed by execute()
, executeHttpRequest()
, executeRaw()
, etc.executeHttpRequest
/executeHttpRequestWithOrigin
function, so the warning is only shown when overwriting headers by using custom headers. (e44c214a)Edm.DateTimeOffset
with high-precision fractional seconds and edge-cases like 5-digit years. (de851289)