Releases: SAP/cloud-sdk-js
Releases · SAP/cloud-sdk-js
v1.50.0
New Functionality
- [connectivity] Allow token forwarding for local destination stored in the environment variables.
Improvements
- [generator] Include and exclude options added to the
transpileDirectory()
method
Fixed Issues
- [core] Fix a type error, when
moment()
is used in filtering an OData field of typeEdm.DateTimeOffset
v1.49.0
Compatibility Notes
- [core] Stop using client credentials to fetch public keys for token verification.
- [core] Replace own implementation for requesting user tokens and client credential tokens from the XSUAA service with the
@sap/xssec
library.
New Functionality
- [core] Support authentication through client certificates (X.509) in client credentials grant requests.
Improvements
- [core] Reduce the number of warnings when selecting an XSUAA instance.
Fixed Issues
- [core] Fix verification key retrieval to match the given key id (
kid
). - [core] Fix the missing export for files under
http-agent
directory. - [core] Support using custom http(s)Agent when sending CSRF token requests.
- [core] Fix URL encoding for
$orderby
query parameter of OData requests.
v1.48.1
Compatibility Notes
- [openapi-generator] Paths referenced in the options per service configuration now use POSIX-style separators (
/
) 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/
.
Fixed Issues
- [core] Fix failing destination retrieval for
OnPremise
proxy type and basic authentication. - [openapi-generator] Fix generation of options per service configuration files to always use POSIX-style file path separators independent of operating system.
v1.48.0
Compatibility Notes
- [generator] Consider the
Nullable
property on action and function import parameters and return types correctly.
For parameters, this is uncritical because the type is extended fromT
toT | null
if the property is nullable.
For return types, the same extension could lead to compile errors after client regeneration because the is broadened includingnull
.
New Functionality
- [core] Support additional headers and query parameters, that are set on destinations.
- [core] Support authentication type
OAuth2Password
. - [core] Support
DestinationOptions
on OpenAPI request builders. - [K8s] Support for Kubernetes, check our migration guide.
Improvements
- [generator] Add underlying type and value information as part of the API documentation for enums.
- [generator] Disallow invalid enum entries or random string parameters when building filters on enum properties.
- [openapi-generator] Add additional information to the schema documentation, e.g.
maxLength
,minimum
.
Fixed Issues
- [core] Fix parsing of proxy environment variables to allow
-
in the hostname. - [core] Fix URL encoding for GetByKey, Update, and Delete request builders, when a key of the entity contains special characters like
/
. - [generator] Fix generation errors, when the Enum type field is used as a key of an entity.
- [generator] Fix action and function import typing, when parameter or return types are nullable.
v1.47.1
Improvements
- [metadata] Adjust internal metadata generation.
v1.47.0
New Functionality
- [core] Support
OAuth2JWTBearer
authentication type.
Fixed Issues
- [proxy] Fix destination service calls using web proxies.
- [core] Fix type error to allow
null
values in filters for nullable properties. - [core] Fix OData filter runtime error, when using lambda expression with operands like
or
.
v1.46.0
Compatibility Notes
-
[core] Deprecate JWT related interfaces in favor of the interfaces provided by the
jsonwebtoken
library.
The following interfaces were deprecated:JWTHeader
(useJwtHeader
instead, the propertytyp
is now optional)JWTPayload
(useJwtPayload
instead)CompleteDecodedJWT
(useJwt
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.
New Functionality
- [openapi-generator] Add the
-c/--config
command line option to specify options through a configuration file instead of on the command line.
Improvements
- [core] Support setting custom
SAP-Connectivity-Authentication
headers for Principal Propagation. - [core] Improve types in convenience functions for JWT access. See "Compatibility Notes" for details.
- [openapi-generator] Improve the error message for invalid or unsupported path patterns.
- [openapi-generator] Improve the error message when detecting invalid Swagger 2.0 specification files.
Fixed Issues
- [core] Fix type error to allow filtering on one-to-many navigation properties in lambda expressions.
- [openapi-generator] Base uniqueness check for directory names on directory names in
optionsPerService
instead of the human readable service name.
v1.45.0
v1.44.0
Improvements
- [odata-generator][openapi-generator] Update
typescript
version to~4.1.2
in thepackage.json
of the clients.
v1.43.0
New Functionality
- [odata] Support appending path to the request URL built by the request builders through the
appendPath
method. It can be used for unsupported OData functionality like querying navigation properties.
Fixed Issues
- [PROXY] Consider the web proxy also in the service call to BTP services like XSUAA and destination service.