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 2 years ago
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. (c3166ff6)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. (89f1c423)executeHttpRequest
function, that accepts HttpRequestConfigWithOrigin
as a parameter. Use the new function executeHttpRequestWithOrigin
as replacement. (9481ec69)executeHttpRequest
function, so it accepts the same parameters as in version 1. (9481ec69)Published by github-actions[bot] over 2 years ago
postinstall
script.Published by florian-richter over 2 years ago
API Docs: https://sap.github.io/cloud-sdk/api/2.4.0
noDestinationErrorMessage
as internal API. (0a008674)uriConverter
as internal API. (0a008674)jsdoc
related levels from warn
to error
:
jsdoc/check-param-names
jsdoc/require-description-complete-sentence
jsdoc/require-jsdoc
jsdoc/require-param
jsdoc/require-returns
(0a008674)info
log level, log everything else as debug
or warn
. (04726a35)trustStore
property of the destination object. (0a008674)info
level significantly. (04726a35)Published by github-actions[bot] over 2 years ago
$format=json
query parameters since header Accept: application/json
is sent by default.Content-Id
headers for changeset parts in batch request payloads (see OData Spec).warn
to error
if service path cannot be determined from the service specification (VALUE_IS_UNDEFINED
).schema
in API classes (e.g., BusinessPartnerAPI
)./path/{param}:{param}
.Published by github-actions[bot] over 2 years ago
valid-jsdoc
with eslint-plugin-jsdoc
plugin for checking JSDoc comments, since the valid-jsdoc
rule is deprecated in ESLint. To stop your project from using a specific rule, turn it off by setting the rule ID to off
under the rules
key inside your configuration file.BusinessPartnerService
) from generated clients, use businessPartnerService()
instead.BusinessPartnerAPI
) from generated clients, use businessPartnerService().businessPartnerApi
instead.parameterEncoder
option to the request config of the http-client
to allow custom parameter encoding.method
from defaultDisallowedKeys
to not filter out custom http method when using filterCustomRequestConfig
.addCustomRequestConfiguration
to overwrite the default http method.addCustomRequestConfiguration
to overwrite the default http method.moment
, bignumber.js
and EdmTypeField
) in API classes (e.g., BusinessPartnerAPI
) to reduce memory usage.Published by github-actions[bot] over 2 years ago
sanitizeRecord
function to cloud-sdk-logger
which replaces potentially sensitive information in a Record<string, any>
based on a list of sensitive keys.licenceInPackageJson
offers the possibility to specify the license property in a generated package.json
.@sap-cloud-sdk/openapi
as a dependency to the OpenAPI generator to fix errors during generation with --transpile
enabled.DestinationSelectionStrategies
.getByKey
Published by github-actions[bot] over 2 years ago
postinstall
script.Published by github-actions[bot] over 2 years ago
We released version 2 🥳
Be mindful of breaking changes when upgrading. Enjoy multiple improvements and new features.
Check the upgrade doc.
es2019
.registerDestination
function to create destinations in the destinations
environment variable.SamlAssertion
flow in destination retrieval.aggregatorDirectoryName
and aggregatorNpmPackageName
generateTypedocJson
packageJson
function from aggregator-package@sap-cloud-sdk/analytics
packagecore
package into smaller packages, so functions are moved to the target package.EdmTypeField
only support EDM types, no field types in genericsServiceNameFormatter
deprecated constructor removed, reserverdName parameter from typeNameToFactoryName method removedVdmNavigationpropety
multiplicity, isMultiLink removedVdmFunctionImportReturnType
isMulti removedexecute
Request Builder APIs changed to use a single parameter, either a Destination or DestinationFetchOptions.executeRaw
Request Builder APIs changed to use a single parameter, either a Destination or DestinationFetchOptions.ComplexTypeField
deprecated constructors removedConstructable
Selectable removedCreateRequestBuilderBase
prepare removedEntityBase
getCurrentMapKey, initializeCustomFields removedEnumField
edmType removedFilter
_fieldName property removedFilterFunction
toString, transformParameter removedLink
clone, selects removedMethodRequestBuilder
withCustomHeaders, withCustomQueryParameters, withCustomServicePath removed, build protectedODataRequestConfig
contentType, deprecated constructor removedODataBatchRequestConfig
batchId, content_type_prefix removedOneToOneLink
clone removedUpdateRequestBuilderBase
prepare, requiredFields, ignoredFields, withCustomVersionIdentifier removedexecute
Request Builder APIs changed to use a single parameter, either a Destination or DestinationFetchOptions..executeRaw
Request Builder APIs changed to use a single parameter, either a Destination or DestinationFetchOptions.execute
Request Builder APIs changed to use a single parameter, either a Destination or DestinationFetchOptions.executeRaw
Request Builder APIs changed to use a single parameter, either a Destination or DestinationFetchOptions.execute
Request Builder APIs changed to use a single parameter, either a Destination or DestinationFetchOptions.executeRaw
Request Builder APIs changed to use a single parameter, either a Destination or DestinationFetchOptions.getDestination
changed to use DestinationFetchOptions as single parameter.getProxyRelatedAuthHeaders
legacyNoAuthOnPremiseProxy case removedserviceToken
uses jwt instead of userJwt now.jwtBearerToken
uses jwt instead of userJwt now.fetchVerificationKeys
merged with executeFetchVerificationKeys
, now only accepts url as parameterexecuteHttpRequest
fetches CsrfToken for non-GET requests by default.Published by github-actions[bot] over 2 years ago
PrivateLink
is now supported. This proxy type is used when your destination represents a tunnel created via Private Link Service.Published by github-actions[bot] almost 3 years ago
@sap/edm-converters
to make sure node 14 is supported.OAuth2Password
auth type for the missing token in the header.Published by jjtang1985 almost 3 years ago
Published by github-actions[bot] almost 3 years ago
x-tenant
and x-user-token
header for multiple authorization flows.Published by github-actions[bot] almost 3 years ago
IsolationStrategy.Tenant
to IsolationStrategy.Tenant_User
, when setting useCache
to true for destination lookup functions like getDestination
.IsolationStrategy.Tenant_User
, the JWT has to contain both tenant id and user id.Published by github-actions[bot] almost 3 years ago
getAuthHeaders()
and buildAuthorizationHeaders()
functions.openapi-generator
now calls ./dist/cli.js
instead of ./bin/run
. This will be handled automatically if you install or update the CLI via node
or run it with npx
.oclif
library with yargs
. This is a refactoring without functional changes.Edm.Time
when some parts of the time are missing, e.g. PT1H21S
.setGlobalLogLevel(level)
sets log levels of all existing loggers globally.equal(item1, item2)
method to return false
when either object is null
or undefined
.--optionsPerService
) are merged with new options instead of overwriting.Published by github-actions[bot] about 3 years ago
transpileDirectory()
methodmoment()
is used in filtering an OData field of type Edm.DateTimeOffset
Published by github-actions[bot] about 3 years ago
@sap/xssec
library.kid
).http-agent
directory.$orderby
query parameter of OData requests.Published by github-actions[bot] about 3 years ago
/
) independent of the operating system. Existing configuration files generated on Windows contain Windows-style separators (\\
) in the paths. Those paths will not be read correctly and should be updated manually to /
.OnPremise
proxy type and basic authentication.Published by github-actions[bot] about 3 years ago
Nullable
property on action and function import parameters and return types correctly.T
to T | null
if the property is nullable.null
.OAuth2Password
.DestinationOptions
on OpenAPI request builders.maxLength
, minimum
.-
in the hostname./
.Published by github-actions[bot] about 3 years ago
Published by github-actions[bot] about 3 years ago
OAuth2JWTBearer
authentication type.null
values in filters for nullable properties.or
.