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] over 3 years ago
[core] Deprecate JWT related interfaces in favor of the interfaces provided by the jsonwebtoken
library.
The following interfaces were deprecated:
JWTHeader
(use JwtHeader
instead, the property typ
is now optional)JWTPayload
(use JwtPayload
instead)CompleteDecodedJWT
(use Jwt
instead)RegisteredJWTClaims
RegisteredJWTClaimsBasic
RegisteredJWTClaimsTenant
RegisteredJWTClaimsUser
[openapi-generator] Change the basis for directory, package, and service names, when generating clients. If not specified otherwise, the default is based on the directory name instead of the service name.
[eslint-config] Remove brace-style
rule for compatibility with Prettier 2.3.
-c/--config
command line option to specify options through a configuration file instead of on the command line.SAP-Connectivity-Authentication
headers for Principal Propagation.optionsPerService
instead of the human readable service name.Published by github-actions[bot] over 3 years ago
HEAD
requests, the content length is always set to 0.Published by github-actions[bot] over 3 years ago
typescript
version to ~4.1.2
in the package.json
of the clients.Published by github-actions[bot] over 3 years ago
appendPath
method. It can be used for unsupported OData functionality like querying navigation properties.Published by github-actions[bot] over 3 years ago
HEAD
instead of GET
when fetching CSRF tokens. Change the URL for CSRF token fetching in OData requests from the service URL to the request URL.HEAD
for mockHeaderRequest()
to align with the core behaviour.Exclude
type, which was accidentally exposed as non-experimental.generate-openapi-client
to openapi-generator
.not
in the filter()
of OData request builders.filter()
of OData request builders without equals(true)
.execute
function, when an entity type is shared by multiple entity sets and is used as the return type of function/action imports.verbose
option to enable verbose logging.overwrite
option to allow overwriting of existing files.include
option to allow copying files to the generated clients.Published by github-actions[bot] over 3 years ago
userApprovedServiceToken
, refreshTokenGrant
and userTokenGrant
.jwtBearerToken
and jwtBearerTokenGrant
authorization.fetchCsrfToken
option to executeHttpRequest
to allow automatic fetching of CSRF tokens for write operations.null
as valid values.fromJson
function, when passing an object containing one-to-one navigation properties with null
value.Published by github-actions[bot] over 3 years ago
request
is added to the HttpResponse
.executeRaw
in all RequestBuilder
, which returns HttpResponse
that contains the raw response and original request.Published by github-actions[bot] over 3 years ago
_customFields
in the fromJson
method of the entity builders. Instead, add custom fields to the JSON objects directly.x-sap-cloud-sdk-api-name
and x-sap-cloud-sdk-operation-name
.fromJson
with navigation properties.Published by github-actions[bot] over 3 years ago
writeReadme
for generating readme files.additionalFiles
.eslint
configuration based on the SAP Cloud SDK's internal configuration as @sap-cloud-sdk/eslint-config
. Follow the official guide for information how to use the config.logger.error
is called with an error object.Published by github-actions[bot] over 3 years ago
generateJs
and tsConfig
.Published by github-actions[bot] over 3 years ago
operationId
s.codeBlock
.Published by github-actions[bot] almost 4 years ago
TypeError: Class constructor Command cannot be invoked without 'new'
due to the incompatibility of ES5 and oclif.Published by github-actions[bot] almost 4 years ago
package.json
is generated by default.package.json
generation and the service mapping configuration as CLI options.UniqueNameGenerator
class that stores used names and generates a unique name for each given string.Published by github-actions[bot] almost 4 years ago
Entity.getUpdatedProperties
was incorrect and was corrected to Record<string, any>
.Entity.getUpdatedProperties
to Record<string, any>
.Published by github-actions[bot] almost 4 years ago
refreshTokenGrant
,userTokenGrant
and clientCredentialsGrant
of the xsuaa-service
now accept a string
or XsuaaServiceCredentials
as first argument.string
it is treated as the URL to fetch the access token from.XsuaaServiceCredentials
, the the URL is built by appending oauth/token
to the .url
of the given object.string
.ErrorWithCause
for better analysis of errors, their causes and their root causes. All errors that have been caused by other errors through the SDK are based on this class.Destination
s with authentication type OAuth2UserTokenExchange
.oauth/token
if the service token URL is given to clientCredentialsGrant()
.Published by github-actions[bot] almost 4 years ago
_serviceName
will not be generated.OAuth2ClientCredentials
to keep using the token url from the destination without adding the path /oauth/token
to the end.OAuth2SAMLBearerAssertion
flow for technical users and subscriber account destinations.Published by github-actions[bot] almost 4 years ago
Published by marikaner almost 4 years ago
ReadResponse.as
does not parse errors anymore, but throws an error if the response in fact was an ErrorResponse
. To avoid this check response.isSuccess()
before casting.ODataCreateRequestConfig
-> ODataCreateRequestConfigLegacy
due to naming conflicts.tenant
interface from the scp-cf module.ReadResponse
that in fact is an ErrorResponse
.Published by github-actions[bot] almost 4 years ago
rambda
library to save approx 2MB or 10% of the SDK size.Edm.String
.Published by github-actions[bot] about 4 years ago
ODataRequest
s.SomeEntity.ts
and Someentity.ts
were generated, the second generated file would overwrite the first. In these cases the generator now adds a suffix to the name, e. g. Someentity_1.ts
.withSubRequestType
method to configure how batch sub requests are serialized.ODataRequest
s instead of the content type header only.execa
dependency.